| Index: generated/googleapis/test/content/v2sandbox_test.dart
|
| diff --git a/generated/googleapis/test/content/v2sandbox_test.dart b/generated/googleapis/test/content/v2sandbox_test.dart
|
| index e02363fac9bd2453de2338c47292596f2118b18f..d644f46ee1adf861aa3ba309700ae951041e4cdd 100644
|
| --- a/generated/googleapis/test/content/v2sandbox_test.dart
|
| +++ b/generated/googleapis/test/content/v2sandbox_test.dart
|
| @@ -74,14 +74,14 @@ checkError(api.Error o) {
|
| buildCounterError--;
|
| }
|
|
|
| -buildUnnamed1459() {
|
| +buildUnnamed1760() {
|
| var o = new core.List<api.Error>();
|
| o.add(buildError());
|
| o.add(buildError());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1459(core.List<api.Error> o) {
|
| +checkUnnamed1760(core.List<api.Error> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkError(o[0]);
|
| checkError(o[1]);
|
| @@ -93,7 +93,7 @@ buildErrors() {
|
| buildCounterErrors++;
|
| if (buildCounterErrors < 3) {
|
| o.code = 42;
|
| - o.errors = buildUnnamed1459();
|
| + o.errors = buildUnnamed1760();
|
| o.message = "foo";
|
| }
|
| buildCounterErrors--;
|
| @@ -104,46 +104,59 @@ checkErrors(api.Errors o) {
|
| buildCounterErrors++;
|
| if (buildCounterErrors < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed1459(o.errors);
|
| + checkUnnamed1760(o.errors);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterErrors--;
|
| }
|
|
|
| -buildUnnamed1460() {
|
| +buildUnnamed1761() {
|
| var o = new core.List<api.OrderLineItem>();
|
| o.add(buildOrderLineItem());
|
| o.add(buildOrderLineItem());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1460(core.List<api.OrderLineItem> o) {
|
| +checkUnnamed1761(core.List<api.OrderLineItem> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrderLineItem(o[0]);
|
| checkOrderLineItem(o[1]);
|
| }
|
|
|
| -buildUnnamed1461() {
|
| +buildUnnamed1762() {
|
| + var o = new core.List<api.OrderPromotion>();
|
| + o.add(buildOrderPromotion());
|
| + o.add(buildOrderPromotion());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1762(core.List<api.OrderPromotion> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkOrderPromotion(o[0]);
|
| + checkOrderPromotion(o[1]);
|
| +}
|
| +
|
| +buildUnnamed1763() {
|
| var o = new core.List<api.OrderRefund>();
|
| o.add(buildOrderRefund());
|
| o.add(buildOrderRefund());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1461(core.List<api.OrderRefund> o) {
|
| +checkUnnamed1763(core.List<api.OrderRefund> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrderRefund(o[0]);
|
| checkOrderRefund(o[1]);
|
| }
|
|
|
| -buildUnnamed1462() {
|
| +buildUnnamed1764() {
|
| var o = new core.List<api.OrderShipment>();
|
| o.add(buildOrderShipment());
|
| o.add(buildOrderShipment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1462(core.List<api.OrderShipment> o) {
|
| +checkUnnamed1764(core.List<api.OrderShipment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrderShipment(o[0]);
|
| checkOrderShipment(o[1]);
|
| @@ -159,15 +172,16 @@ buildOrder() {
|
| o.deliveryDetails = buildOrderDeliveryDetails();
|
| o.id = "foo";
|
| o.kind = "foo";
|
| - o.lineItems = buildUnnamed1460();
|
| + o.lineItems = buildUnnamed1761();
|
| o.merchantId = "foo";
|
| o.merchantOrderId = "foo";
|
| o.netAmount = buildPrice();
|
| o.paymentMethod = buildOrderPaymentMethod();
|
| o.paymentStatus = "foo";
|
| o.placedDate = "foo";
|
| - o.refunds = buildUnnamed1461();
|
| - o.shipments = buildUnnamed1462();
|
| + o.promotions = buildUnnamed1762();
|
| + o.refunds = buildUnnamed1763();
|
| + o.shipments = buildUnnamed1764();
|
| o.shippingCost = buildPrice();
|
| o.shippingCostTax = buildPrice();
|
| o.shippingOption = "foo";
|
| @@ -185,15 +199,16 @@ checkOrder(api.Order o) {
|
| checkOrderDeliveryDetails(o.deliveryDetails);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed1460(o.lineItems);
|
| + checkUnnamed1761(o.lineItems);
|
| unittest.expect(o.merchantId, unittest.equals('foo'));
|
| unittest.expect(o.merchantOrderId, unittest.equals('foo'));
|
| checkPrice(o.netAmount);
|
| checkOrderPaymentMethod(o.paymentMethod);
|
| unittest.expect(o.paymentStatus, unittest.equals('foo'));
|
| unittest.expect(o.placedDate, unittest.equals('foo'));
|
| - checkUnnamed1461(o.refunds);
|
| - checkUnnamed1462(o.shipments);
|
| + checkUnnamed1762(o.promotions);
|
| + checkUnnamed1763(o.refunds);
|
| + checkUnnamed1764(o.shipments);
|
| checkPrice(o.shippingCost);
|
| checkPrice(o.shippingCostTax);
|
| unittest.expect(o.shippingOption, unittest.equals('foo'));
|
| @@ -202,27 +217,27 @@ checkOrder(api.Order o) {
|
| buildCounterOrder--;
|
| }
|
|
|
| -buildUnnamed1463() {
|
| +buildUnnamed1765() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1463(core.List<core.String> o) {
|
| +checkUnnamed1765(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1464() {
|
| +buildUnnamed1766() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1464(core.List<core.String> o) {
|
| +checkUnnamed1766(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -234,13 +249,13 @@ buildOrderAddress() {
|
| buildCounterOrderAddress++;
|
| if (buildCounterOrderAddress < 3) {
|
| o.country = "foo";
|
| - o.fullAddress = buildUnnamed1463();
|
| + o.fullAddress = buildUnnamed1765();
|
| o.isPostOfficeBox = true;
|
| o.locality = "foo";
|
| o.postalCode = "foo";
|
| o.recipientName = "foo";
|
| o.region = "foo";
|
| - o.streetAddress = buildUnnamed1464();
|
| + o.streetAddress = buildUnnamed1766();
|
| }
|
| buildCounterOrderAddress--;
|
| return o;
|
| @@ -250,13 +265,13 @@ checkOrderAddress(api.OrderAddress o) {
|
| buildCounterOrderAddress++;
|
| if (buildCounterOrderAddress < 3) {
|
| unittest.expect(o.country, unittest.equals('foo'));
|
| - checkUnnamed1463(o.fullAddress);
|
| + checkUnnamed1765(o.fullAddress);
|
| unittest.expect(o.isPostOfficeBox, unittest.isTrue);
|
| unittest.expect(o.locality, unittest.equals('foo'));
|
| unittest.expect(o.postalCode, unittest.equals('foo'));
|
| unittest.expect(o.recipientName, unittest.equals('foo'));
|
| unittest.expect(o.region, unittest.equals('foo'));
|
| - checkUnnamed1464(o.streetAddress);
|
| + checkUnnamed1766(o.streetAddress);
|
| }
|
| buildCounterOrderAddress--;
|
| }
|
| @@ -332,27 +347,27 @@ checkOrderDeliveryDetails(api.OrderDeliveryDetails o) {
|
| buildCounterOrderDeliveryDetails--;
|
| }
|
|
|
| -buildUnnamed1465() {
|
| +buildUnnamed1767() {
|
| var o = new core.List<api.OrderCancellation>();
|
| o.add(buildOrderCancellation());
|
| o.add(buildOrderCancellation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1465(core.List<api.OrderCancellation> o) {
|
| +checkUnnamed1767(core.List<api.OrderCancellation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrderCancellation(o[0]);
|
| checkOrderCancellation(o[1]);
|
| }
|
|
|
| -buildUnnamed1466() {
|
| +buildUnnamed1768() {
|
| var o = new core.List<api.OrderReturn>();
|
| o.add(buildOrderReturn());
|
| o.add(buildOrderReturn());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1466(core.List<api.OrderReturn> o) {
|
| +checkUnnamed1768(core.List<api.OrderReturn> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrderReturn(o[0]);
|
| checkOrderReturn(o[1]);
|
| @@ -363,7 +378,7 @@ buildOrderLineItem() {
|
| var o = new api.OrderLineItem();
|
| buildCounterOrderLineItem++;
|
| if (buildCounterOrderLineItem < 3) {
|
| - o.cancellations = buildUnnamed1465();
|
| + o.cancellations = buildUnnamed1767();
|
| o.id = "foo";
|
| o.price = buildPrice();
|
| o.product = buildOrderLineItemProduct();
|
| @@ -374,7 +389,7 @@ buildOrderLineItem() {
|
| o.quantityReturned = 42;
|
| o.quantityShipped = 42;
|
| o.returnInfo = buildOrderLineItemReturnInfo();
|
| - o.returns = buildUnnamed1466();
|
| + o.returns = buildUnnamed1768();
|
| o.shippingDetails = buildOrderLineItemShippingDetails();
|
| o.tax = buildPrice();
|
| }
|
| @@ -385,7 +400,7 @@ buildOrderLineItem() {
|
| checkOrderLineItem(api.OrderLineItem o) {
|
| buildCounterOrderLineItem++;
|
| if (buildCounterOrderLineItem < 3) {
|
| - checkUnnamed1465(o.cancellations);
|
| + checkUnnamed1767(o.cancellations);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| checkPrice(o.price);
|
| checkOrderLineItemProduct(o.product);
|
| @@ -396,21 +411,21 @@ checkOrderLineItem(api.OrderLineItem o) {
|
| unittest.expect(o.quantityReturned, unittest.equals(42));
|
| unittest.expect(o.quantityShipped, unittest.equals(42));
|
| checkOrderLineItemReturnInfo(o.returnInfo);
|
| - checkUnnamed1466(o.returns);
|
| + checkUnnamed1768(o.returns);
|
| checkOrderLineItemShippingDetails(o.shippingDetails);
|
| checkPrice(o.tax);
|
| }
|
| buildCounterOrderLineItem--;
|
| }
|
|
|
| -buildUnnamed1467() {
|
| +buildUnnamed1769() {
|
| var o = new core.List<api.OrderLineItemProductVariantAttribute>();
|
| o.add(buildOrderLineItemProductVariantAttribute());
|
| o.add(buildOrderLineItemProductVariantAttribute());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1467(core.List<api.OrderLineItemProductVariantAttribute> o) {
|
| +checkUnnamed1769(core.List<api.OrderLineItemProductVariantAttribute> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrderLineItemProductVariantAttribute(o[0]);
|
| checkOrderLineItemProductVariantAttribute(o[1]);
|
| @@ -435,7 +450,7 @@ buildOrderLineItemProduct() {
|
| o.shownImage = "foo";
|
| o.targetCountry = "foo";
|
| o.title = "foo";
|
| - o.variantAttributes = buildUnnamed1467();
|
| + o.variantAttributes = buildUnnamed1769();
|
| }
|
| buildCounterOrderLineItemProduct--;
|
| return o;
|
| @@ -458,7 +473,7 @@ checkOrderLineItemProduct(api.OrderLineItemProduct o) {
|
| unittest.expect(o.shownImage, unittest.equals('foo'));
|
| unittest.expect(o.targetCountry, unittest.equals('foo'));
|
| unittest.expect(o.title, unittest.equals('foo'));
|
| - checkUnnamed1467(o.variantAttributes);
|
| + checkUnnamed1769(o.variantAttributes);
|
| }
|
| buildCounterOrderLineItemProduct--;
|
| }
|
| @@ -584,6 +599,90 @@ checkOrderPaymentMethod(api.OrderPaymentMethod o) {
|
| buildCounterOrderPaymentMethod--;
|
| }
|
|
|
| +buildUnnamed1770() {
|
| + var o = new core.List<api.OrderPromotionBenefit>();
|
| + o.add(buildOrderPromotionBenefit());
|
| + o.add(buildOrderPromotionBenefit());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1770(core.List<api.OrderPromotionBenefit> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkOrderPromotionBenefit(o[0]);
|
| + checkOrderPromotionBenefit(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterOrderPromotion = 0;
|
| +buildOrderPromotion() {
|
| + var o = new api.OrderPromotion();
|
| + buildCounterOrderPromotion++;
|
| + if (buildCounterOrderPromotion < 3) {
|
| + o.benefits = buildUnnamed1770();
|
| + o.effectiveDates = "foo";
|
| + o.genericRedemptionCode = "foo";
|
| + o.id = "foo";
|
| + o.longTitle = "foo";
|
| + o.productApplicability = "foo";
|
| + o.redemptionChannel = "foo";
|
| + }
|
| + buildCounterOrderPromotion--;
|
| + return o;
|
| +}
|
| +
|
| +checkOrderPromotion(api.OrderPromotion o) {
|
| + buildCounterOrderPromotion++;
|
| + if (buildCounterOrderPromotion < 3) {
|
| + checkUnnamed1770(o.benefits);
|
| + unittest.expect(o.effectiveDates, unittest.equals('foo'));
|
| + unittest.expect(o.genericRedemptionCode, unittest.equals('foo'));
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.longTitle, unittest.equals('foo'));
|
| + unittest.expect(o.productApplicability, unittest.equals('foo'));
|
| + unittest.expect(o.redemptionChannel, unittest.equals('foo'));
|
| + }
|
| + buildCounterOrderPromotion--;
|
| +}
|
| +
|
| +buildUnnamed1771() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1771(core.List<core.String> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| +}
|
| +
|
| +core.int buildCounterOrderPromotionBenefit = 0;
|
| +buildOrderPromotionBenefit() {
|
| + var o = new api.OrderPromotionBenefit();
|
| + buildCounterOrderPromotionBenefit++;
|
| + if (buildCounterOrderPromotionBenefit < 3) {
|
| + o.discount = buildPrice();
|
| + o.offerIds = buildUnnamed1771();
|
| + o.subType = "foo";
|
| + o.taxImpact = buildPrice();
|
| + o.type = "foo";
|
| + }
|
| + buildCounterOrderPromotionBenefit--;
|
| + return o;
|
| +}
|
| +
|
| +checkOrderPromotionBenefit(api.OrderPromotionBenefit o) {
|
| + buildCounterOrderPromotionBenefit++;
|
| + if (buildCounterOrderPromotionBenefit < 3) {
|
| + checkPrice(o.discount);
|
| + checkUnnamed1771(o.offerIds);
|
| + unittest.expect(o.subType, unittest.equals('foo'));
|
| + checkPrice(o.taxImpact);
|
| + unittest.expect(o.type, unittest.equals('foo'));
|
| + }
|
| + buildCounterOrderPromotionBenefit--;
|
| +}
|
| +
|
| core.int buildCounterOrderRefund = 0;
|
| buildOrderRefund() {
|
| var o = new api.OrderRefund();
|
| @@ -638,14 +737,14 @@ checkOrderReturn(api.OrderReturn o) {
|
| buildCounterOrderReturn--;
|
| }
|
|
|
| -buildUnnamed1468() {
|
| +buildUnnamed1772() {
|
| var o = new core.List<api.OrderShipmentLineItemShipment>();
|
| o.add(buildOrderShipmentLineItemShipment());
|
| o.add(buildOrderShipmentLineItemShipment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1468(core.List<api.OrderShipmentLineItemShipment> o) {
|
| +checkUnnamed1772(core.List<api.OrderShipmentLineItemShipment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrderShipmentLineItemShipment(o[0]);
|
| checkOrderShipmentLineItemShipment(o[1]);
|
| @@ -660,7 +759,7 @@ buildOrderShipment() {
|
| o.creationDate = "foo";
|
| o.deliveryDate = "foo";
|
| o.id = "foo";
|
| - o.lineItems = buildUnnamed1468();
|
| + o.lineItems = buildUnnamed1772();
|
| o.status = "foo";
|
| o.trackingId = "foo";
|
| }
|
| @@ -675,7 +774,7 @@ checkOrderShipment(api.OrderShipment o) {
|
| unittest.expect(o.creationDate, unittest.equals('foo'));
|
| unittest.expect(o.deliveryDate, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed1468(o.lineItems);
|
| + checkUnnamed1772(o.lineItems);
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| unittest.expect(o.trackingId, unittest.equals('foo'));
|
| }
|
| @@ -898,14 +997,14 @@ checkOrdersCreateTestOrderResponse(api.OrdersCreateTestOrderResponse o) {
|
| buildCounterOrdersCreateTestOrderResponse--;
|
| }
|
|
|
| -buildUnnamed1469() {
|
| +buildUnnamed1773() {
|
| var o = new core.List<api.OrdersCustomBatchRequestEntry>();
|
| o.add(buildOrdersCustomBatchRequestEntry());
|
| o.add(buildOrdersCustomBatchRequestEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1469(core.List<api.OrdersCustomBatchRequestEntry> o) {
|
| +checkUnnamed1773(core.List<api.OrdersCustomBatchRequestEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrdersCustomBatchRequestEntry(o[0]);
|
| checkOrdersCustomBatchRequestEntry(o[1]);
|
| @@ -916,7 +1015,7 @@ buildOrdersCustomBatchRequest() {
|
| var o = new api.OrdersCustomBatchRequest();
|
| buildCounterOrdersCustomBatchRequest++;
|
| if (buildCounterOrdersCustomBatchRequest < 3) {
|
| - o.entries = buildUnnamed1469();
|
| + o.entries = buildUnnamed1773();
|
| }
|
| buildCounterOrdersCustomBatchRequest--;
|
| return o;
|
| @@ -925,7 +1024,7 @@ buildOrdersCustomBatchRequest() {
|
| checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) {
|
| buildCounterOrdersCustomBatchRequest++;
|
| if (buildCounterOrdersCustomBatchRequest < 3) {
|
| - checkUnnamed1469(o.entries);
|
| + checkUnnamed1773(o.entries);
|
| }
|
| buildCounterOrdersCustomBatchRequest--;
|
| }
|
| @@ -1067,14 +1166,14 @@ checkOrdersCustomBatchRequestEntryReturnLineItem(api.OrdersCustomBatchRequestEnt
|
| buildCounterOrdersCustomBatchRequestEntryReturnLineItem--;
|
| }
|
|
|
| -buildUnnamed1470() {
|
| +buildUnnamed1774() {
|
| var o = new core.List<api.OrderShipmentLineItemShipment>();
|
| o.add(buildOrderShipmentLineItemShipment());
|
| o.add(buildOrderShipmentLineItemShipment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1470(core.List<api.OrderShipmentLineItemShipment> o) {
|
| +checkUnnamed1774(core.List<api.OrderShipmentLineItemShipment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrderShipmentLineItemShipment(o[0]);
|
| checkOrderShipmentLineItemShipment(o[1]);
|
| @@ -1086,7 +1185,7 @@ buildOrdersCustomBatchRequestEntryShipLineItems() {
|
| buildCounterOrdersCustomBatchRequestEntryShipLineItems++;
|
| if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) {
|
| o.carrier = "foo";
|
| - o.lineItems = buildUnnamed1470();
|
| + o.lineItems = buildUnnamed1774();
|
| o.shipmentId = "foo";
|
| o.trackingId = "foo";
|
| }
|
| @@ -1098,7 +1197,7 @@ checkOrdersCustomBatchRequestEntryShipLineItems(api.OrdersCustomBatchRequestEntr
|
| buildCounterOrdersCustomBatchRequestEntryShipLineItems++;
|
| if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) {
|
| unittest.expect(o.carrier, unittest.equals('foo'));
|
| - checkUnnamed1470(o.lineItems);
|
| + checkUnnamed1774(o.lineItems);
|
| unittest.expect(o.shipmentId, unittest.equals('foo'));
|
| unittest.expect(o.trackingId, unittest.equals('foo'));
|
| }
|
| @@ -1130,14 +1229,14 @@ checkOrdersCustomBatchRequestEntryUpdateShipment(api.OrdersCustomBatchRequestEnt
|
| buildCounterOrdersCustomBatchRequestEntryUpdateShipment--;
|
| }
|
|
|
| -buildUnnamed1471() {
|
| +buildUnnamed1775() {
|
| var o = new core.List<api.OrdersCustomBatchResponseEntry>();
|
| o.add(buildOrdersCustomBatchResponseEntry());
|
| o.add(buildOrdersCustomBatchResponseEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1471(core.List<api.OrdersCustomBatchResponseEntry> o) {
|
| +checkUnnamed1775(core.List<api.OrdersCustomBatchResponseEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrdersCustomBatchResponseEntry(o[0]);
|
| checkOrdersCustomBatchResponseEntry(o[1]);
|
| @@ -1148,7 +1247,7 @@ buildOrdersCustomBatchResponse() {
|
| var o = new api.OrdersCustomBatchResponse();
|
| buildCounterOrdersCustomBatchResponse++;
|
| if (buildCounterOrdersCustomBatchResponse < 3) {
|
| - o.entries = buildUnnamed1471();
|
| + o.entries = buildUnnamed1775();
|
| o.kind = "foo";
|
| }
|
| buildCounterOrdersCustomBatchResponse--;
|
| @@ -1158,7 +1257,7 @@ buildOrdersCustomBatchResponse() {
|
| checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) {
|
| buildCounterOrdersCustomBatchResponse++;
|
| if (buildCounterOrdersCustomBatchResponse < 3) {
|
| - checkUnnamed1471(o.entries);
|
| + checkUnnamed1775(o.entries);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterOrdersCustomBatchResponse--;
|
| @@ -1233,14 +1332,14 @@ checkOrdersGetTestOrderTemplateResponse(api.OrdersGetTestOrderTemplateResponse o
|
| buildCounterOrdersGetTestOrderTemplateResponse--;
|
| }
|
|
|
| -buildUnnamed1472() {
|
| +buildUnnamed1776() {
|
| var o = new core.List<api.Order>();
|
| o.add(buildOrder());
|
| o.add(buildOrder());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1472(core.List<api.Order> o) {
|
| +checkUnnamed1776(core.List<api.Order> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrder(o[0]);
|
| checkOrder(o[1]);
|
| @@ -1253,7 +1352,7 @@ buildOrdersListResponse() {
|
| if (buildCounterOrdersListResponse < 3) {
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| - o.resources = buildUnnamed1472();
|
| + o.resources = buildUnnamed1776();
|
| }
|
| buildCounterOrdersListResponse--;
|
| return o;
|
| @@ -1264,7 +1363,7 @@ checkOrdersListResponse(api.OrdersListResponse o) {
|
| if (buildCounterOrdersListResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed1472(o.resources);
|
| + checkUnnamed1776(o.resources);
|
| }
|
| buildCounterOrdersListResponse--;
|
| }
|
| @@ -1363,14 +1462,14 @@ checkOrdersReturnLineItemResponse(api.OrdersReturnLineItemResponse o) {
|
| buildCounterOrdersReturnLineItemResponse--;
|
| }
|
|
|
| -buildUnnamed1473() {
|
| +buildUnnamed1777() {
|
| var o = new core.List<api.OrderShipmentLineItemShipment>();
|
| o.add(buildOrderShipmentLineItemShipment());
|
| o.add(buildOrderShipmentLineItemShipment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1473(core.List<api.OrderShipmentLineItemShipment> o) {
|
| +checkUnnamed1777(core.List<api.OrderShipmentLineItemShipment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrderShipmentLineItemShipment(o[0]);
|
| checkOrderShipmentLineItemShipment(o[1]);
|
| @@ -1382,7 +1481,7 @@ buildOrdersShipLineItemsRequest() {
|
| buildCounterOrdersShipLineItemsRequest++;
|
| if (buildCounterOrdersShipLineItemsRequest < 3) {
|
| o.carrier = "foo";
|
| - o.lineItems = buildUnnamed1473();
|
| + o.lineItems = buildUnnamed1777();
|
| o.operationId = "foo";
|
| o.shipmentId = "foo";
|
| o.trackingId = "foo";
|
| @@ -1395,7 +1494,7 @@ checkOrdersShipLineItemsRequest(api.OrdersShipLineItemsRequest o) {
|
| buildCounterOrdersShipLineItemsRequest++;
|
| if (buildCounterOrdersShipLineItemsRequest < 3) {
|
| unittest.expect(o.carrier, unittest.equals('foo'));
|
| - checkUnnamed1473(o.lineItems);
|
| + checkUnnamed1777(o.lineItems);
|
| unittest.expect(o.operationId, unittest.equals('foo'));
|
| unittest.expect(o.shipmentId, unittest.equals('foo'));
|
| unittest.expect(o.trackingId, unittest.equals('foo'));
|
| @@ -1535,19 +1634,32 @@ checkPrice(api.Price o) {
|
| buildCounterPrice--;
|
| }
|
|
|
| -buildUnnamed1474() {
|
| +buildUnnamed1778() {
|
| var o = new core.List<api.TestOrderLineItem>();
|
| o.add(buildTestOrderLineItem());
|
| o.add(buildTestOrderLineItem());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1474(core.List<api.TestOrderLineItem> o) {
|
| +checkUnnamed1778(core.List<api.TestOrderLineItem> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTestOrderLineItem(o[0]);
|
| checkTestOrderLineItem(o[1]);
|
| }
|
|
|
| +buildUnnamed1779() {
|
| + var o = new core.List<api.OrderPromotion>();
|
| + o.add(buildOrderPromotion());
|
| + o.add(buildOrderPromotion());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1779(core.List<api.OrderPromotion> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkOrderPromotion(o[0]);
|
| + checkOrderPromotion(o[1]);
|
| +}
|
| +
|
| core.int buildCounterTestOrder = 0;
|
| buildTestOrder() {
|
| var o = new api.TestOrder();
|
| @@ -1555,9 +1667,10 @@ buildTestOrder() {
|
| if (buildCounterTestOrder < 3) {
|
| o.customer = buildTestOrderCustomer();
|
| o.kind = "foo";
|
| - o.lineItems = buildUnnamed1474();
|
| + o.lineItems = buildUnnamed1778();
|
| o.paymentMethod = buildTestOrderPaymentMethod();
|
| o.predefinedDeliveryAddress = "foo";
|
| + o.promotions = buildUnnamed1779();
|
| o.shippingCost = buildPrice();
|
| o.shippingCostTax = buildPrice();
|
| o.shippingOption = "foo";
|
| @@ -1571,9 +1684,10 @@ checkTestOrder(api.TestOrder o) {
|
| if (buildCounterTestOrder < 3) {
|
| checkTestOrderCustomer(o.customer);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed1474(o.lineItems);
|
| + checkUnnamed1778(o.lineItems);
|
| checkTestOrderPaymentMethod(o.paymentMethod);
|
| unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo'));
|
| + checkUnnamed1779(o.promotions);
|
| checkPrice(o.shippingCost);
|
| checkPrice(o.shippingCostTax);
|
| unittest.expect(o.shippingOption, unittest.equals('foo'));
|
| @@ -1631,14 +1745,14 @@ checkTestOrderLineItem(api.TestOrderLineItem o) {
|
| buildCounterTestOrderLineItem--;
|
| }
|
|
|
| -buildUnnamed1475() {
|
| +buildUnnamed1780() {
|
| var o = new core.List<api.OrderLineItemProductVariantAttribute>();
|
| o.add(buildOrderLineItemProductVariantAttribute());
|
| o.add(buildOrderLineItemProductVariantAttribute());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1475(core.List<api.OrderLineItemProductVariantAttribute> o) {
|
| +checkUnnamed1780(core.List<api.OrderLineItemProductVariantAttribute> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrderLineItemProductVariantAttribute(o[0]);
|
| checkOrderLineItemProductVariantAttribute(o[1]);
|
| @@ -1661,7 +1775,7 @@ buildTestOrderLineItemProduct() {
|
| o.price = buildPrice();
|
| o.targetCountry = "foo";
|
| o.title = "foo";
|
| - o.variantAttributes = buildUnnamed1475();
|
| + o.variantAttributes = buildUnnamed1780();
|
| }
|
| buildCounterTestOrderLineItemProduct--;
|
| return o;
|
| @@ -1682,7 +1796,7 @@ checkTestOrderLineItemProduct(api.TestOrderLineItemProduct o) {
|
| checkPrice(o.price);
|
| unittest.expect(o.targetCountry, unittest.equals('foo'));
|
| unittest.expect(o.title, unittest.equals('foo'));
|
| - checkUnnamed1475(o.variantAttributes);
|
| + checkUnnamed1780(o.variantAttributes);
|
| }
|
| buildCounterTestOrderLineItemProduct--;
|
| }
|
| @@ -1714,14 +1828,14 @@ checkTestOrderPaymentMethod(api.TestOrderPaymentMethod o) {
|
| buildCounterTestOrderPaymentMethod--;
|
| }
|
|
|
| -buildUnnamed1476() {
|
| +buildUnnamed1781() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1476(core.List<core.String> o) {
|
| +checkUnnamed1781(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1855,6 +1969,24 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-OrderPromotion", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildOrderPromotion();
|
| + var od = new api.OrderPromotion.fromJson(o.toJson());
|
| + checkOrderPromotion(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-OrderPromotionBenefit", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildOrderPromotionBenefit();
|
| + var od = new api.OrderPromotionBenefit.fromJson(o.toJson());
|
| + checkOrderPromotionBenefit(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-OrderRefund", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildOrderRefund();
|
| @@ -2653,7 +2785,7 @@ main() {
|
| var arg_pageToken = "foo";
|
| var arg_placedDateEnd = "foo";
|
| var arg_placedDateStart = "foo";
|
| - var arg_statuses = buildUnnamed1476();
|
| + var arg_statuses = buildUnnamed1781();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
|
|