Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: generated/googleapis/test/content/v2sandbox_test.dart

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.content.v2sandbox.test; 1 library googleapis.content.v2sandbox.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 checkError(api.Error o) { 67 checkError(api.Error o) {
68 buildCounterError++; 68 buildCounterError++;
69 if (buildCounterError < 3) { 69 if (buildCounterError < 3) {
70 unittest.expect(o.domain, unittest.equals('foo')); 70 unittest.expect(o.domain, unittest.equals('foo'));
71 unittest.expect(o.message, unittest.equals('foo')); 71 unittest.expect(o.message, unittest.equals('foo'));
72 unittest.expect(o.reason, unittest.equals('foo')); 72 unittest.expect(o.reason, unittest.equals('foo'));
73 } 73 }
74 buildCounterError--; 74 buildCounterError--;
75 } 75 }
76 76
77 buildUnnamed1489() { 77 buildUnnamed1499() {
78 var o = new core.List<api.Error>(); 78 var o = new core.List<api.Error>();
79 o.add(buildError()); 79 o.add(buildError());
80 o.add(buildError()); 80 o.add(buildError());
81 return o; 81 return o;
82 } 82 }
83 83
84 checkUnnamed1489(core.List<api.Error> o) { 84 checkUnnamed1499(core.List<api.Error> o) {
85 unittest.expect(o, unittest.hasLength(2)); 85 unittest.expect(o, unittest.hasLength(2));
86 checkError(o[0]); 86 checkError(o[0]);
87 checkError(o[1]); 87 checkError(o[1]);
88 } 88 }
89 89
90 core.int buildCounterErrors = 0; 90 core.int buildCounterErrors = 0;
91 buildErrors() { 91 buildErrors() {
92 var o = new api.Errors(); 92 var o = new api.Errors();
93 buildCounterErrors++; 93 buildCounterErrors++;
94 if (buildCounterErrors < 3) { 94 if (buildCounterErrors < 3) {
95 o.code = 42; 95 o.code = 42;
96 o.errors = buildUnnamed1489(); 96 o.errors = buildUnnamed1499();
97 o.message = "foo"; 97 o.message = "foo";
98 } 98 }
99 buildCounterErrors--; 99 buildCounterErrors--;
100 return o; 100 return o;
101 } 101 }
102 102
103 checkErrors(api.Errors o) { 103 checkErrors(api.Errors o) {
104 buildCounterErrors++; 104 buildCounterErrors++;
105 if (buildCounterErrors < 3) { 105 if (buildCounterErrors < 3) {
106 unittest.expect(o.code, unittest.equals(42)); 106 unittest.expect(o.code, unittest.equals(42));
107 checkUnnamed1489(o.errors); 107 checkUnnamed1499(o.errors);
108 unittest.expect(o.message, unittest.equals('foo')); 108 unittest.expect(o.message, unittest.equals('foo'));
109 } 109 }
110 buildCounterErrors--; 110 buildCounterErrors--;
111 } 111 }
112 112
113 buildUnnamed1490() { 113 buildUnnamed1500() {
114 var o = new core.List<api.OrderLineItem>(); 114 var o = new core.List<api.OrderLineItem>();
115 o.add(buildOrderLineItem()); 115 o.add(buildOrderLineItem());
116 o.add(buildOrderLineItem()); 116 o.add(buildOrderLineItem());
117 return o; 117 return o;
118 } 118 }
119 119
120 checkUnnamed1490(core.List<api.OrderLineItem> o) { 120 checkUnnamed1500(core.List<api.OrderLineItem> o) {
121 unittest.expect(o, unittest.hasLength(2)); 121 unittest.expect(o, unittest.hasLength(2));
122 checkOrderLineItem(o[0]); 122 checkOrderLineItem(o[0]);
123 checkOrderLineItem(o[1]); 123 checkOrderLineItem(o[1]);
124 } 124 }
125 125
126 buildUnnamed1491() { 126 buildUnnamed1501() {
127 var o = new core.List<api.OrderPromotion>(); 127 var o = new core.List<api.OrderPromotion>();
128 o.add(buildOrderPromotion()); 128 o.add(buildOrderPromotion());
129 o.add(buildOrderPromotion()); 129 o.add(buildOrderPromotion());
130 return o; 130 return o;
131 } 131 }
132 132
133 checkUnnamed1491(core.List<api.OrderPromotion> o) { 133 checkUnnamed1501(core.List<api.OrderPromotion> o) {
134 unittest.expect(o, unittest.hasLength(2)); 134 unittest.expect(o, unittest.hasLength(2));
135 checkOrderPromotion(o[0]); 135 checkOrderPromotion(o[0]);
136 checkOrderPromotion(o[1]); 136 checkOrderPromotion(o[1]);
137 } 137 }
138 138
139 buildUnnamed1492() { 139 buildUnnamed1502() {
140 var o = new core.List<api.OrderRefund>(); 140 var o = new core.List<api.OrderRefund>();
141 o.add(buildOrderRefund()); 141 o.add(buildOrderRefund());
142 o.add(buildOrderRefund()); 142 o.add(buildOrderRefund());
143 return o; 143 return o;
144 } 144 }
145 145
146 checkUnnamed1492(core.List<api.OrderRefund> o) { 146 checkUnnamed1502(core.List<api.OrderRefund> o) {
147 unittest.expect(o, unittest.hasLength(2)); 147 unittest.expect(o, unittest.hasLength(2));
148 checkOrderRefund(o[0]); 148 checkOrderRefund(o[0]);
149 checkOrderRefund(o[1]); 149 checkOrderRefund(o[1]);
150 } 150 }
151 151
152 buildUnnamed1493() { 152 buildUnnamed1503() {
153 var o = new core.List<api.OrderShipment>(); 153 var o = new core.List<api.OrderShipment>();
154 o.add(buildOrderShipment()); 154 o.add(buildOrderShipment());
155 o.add(buildOrderShipment()); 155 o.add(buildOrderShipment());
156 return o; 156 return o;
157 } 157 }
158 158
159 checkUnnamed1493(core.List<api.OrderShipment> o) { 159 checkUnnamed1503(core.List<api.OrderShipment> o) {
160 unittest.expect(o, unittest.hasLength(2)); 160 unittest.expect(o, unittest.hasLength(2));
161 checkOrderShipment(o[0]); 161 checkOrderShipment(o[0]);
162 checkOrderShipment(o[1]); 162 checkOrderShipment(o[1]);
163 } 163 }
164 164
165 core.int buildCounterOrder = 0; 165 core.int buildCounterOrder = 0;
166 buildOrder() { 166 buildOrder() {
167 var o = new api.Order(); 167 var o = new api.Order();
168 buildCounterOrder++; 168 buildCounterOrder++;
169 if (buildCounterOrder < 3) { 169 if (buildCounterOrder < 3) {
170 o.acknowledged = true; 170 o.acknowledged = true;
171 o.channelType = "foo";
171 o.customer = buildOrderCustomer(); 172 o.customer = buildOrderCustomer();
172 o.deliveryDetails = buildOrderDeliveryDetails(); 173 o.deliveryDetails = buildOrderDeliveryDetails();
173 o.id = "foo"; 174 o.id = "foo";
174 o.kind = "foo"; 175 o.kind = "foo";
175 o.lineItems = buildUnnamed1490(); 176 o.lineItems = buildUnnamed1500();
176 o.merchantId = "foo"; 177 o.merchantId = "foo";
177 o.merchantOrderId = "foo"; 178 o.merchantOrderId = "foo";
178 o.netAmount = buildPrice(); 179 o.netAmount = buildPrice();
179 o.paymentMethod = buildOrderPaymentMethod(); 180 o.paymentMethod = buildOrderPaymentMethod();
180 o.paymentStatus = "foo"; 181 o.paymentStatus = "foo";
181 o.placedDate = "foo"; 182 o.placedDate = "foo";
182 o.promotions = buildUnnamed1491(); 183 o.promotions = buildUnnamed1501();
183 o.refunds = buildUnnamed1492(); 184 o.refunds = buildUnnamed1502();
184 o.shipments = buildUnnamed1493(); 185 o.shipments = buildUnnamed1503();
185 o.shippingCost = buildPrice(); 186 o.shippingCost = buildPrice();
186 o.shippingCostTax = buildPrice(); 187 o.shippingCostTax = buildPrice();
187 o.shippingOption = "foo"; 188 o.shippingOption = "foo";
188 o.status = "foo"; 189 o.status = "foo";
189 } 190 }
190 buildCounterOrder--; 191 buildCounterOrder--;
191 return o; 192 return o;
192 } 193 }
193 194
194 checkOrder(api.Order o) { 195 checkOrder(api.Order o) {
195 buildCounterOrder++; 196 buildCounterOrder++;
196 if (buildCounterOrder < 3) { 197 if (buildCounterOrder < 3) {
197 unittest.expect(o.acknowledged, unittest.isTrue); 198 unittest.expect(o.acknowledged, unittest.isTrue);
199 unittest.expect(o.channelType, unittest.equals('foo'));
198 checkOrderCustomer(o.customer); 200 checkOrderCustomer(o.customer);
199 checkOrderDeliveryDetails(o.deliveryDetails); 201 checkOrderDeliveryDetails(o.deliveryDetails);
200 unittest.expect(o.id, unittest.equals('foo')); 202 unittest.expect(o.id, unittest.equals('foo'));
201 unittest.expect(o.kind, unittest.equals('foo')); 203 unittest.expect(o.kind, unittest.equals('foo'));
202 checkUnnamed1490(o.lineItems); 204 checkUnnamed1500(o.lineItems);
203 unittest.expect(o.merchantId, unittest.equals('foo')); 205 unittest.expect(o.merchantId, unittest.equals('foo'));
204 unittest.expect(o.merchantOrderId, unittest.equals('foo')); 206 unittest.expect(o.merchantOrderId, unittest.equals('foo'));
205 checkPrice(o.netAmount); 207 checkPrice(o.netAmount);
206 checkOrderPaymentMethod(o.paymentMethod); 208 checkOrderPaymentMethod(o.paymentMethod);
207 unittest.expect(o.paymentStatus, unittest.equals('foo')); 209 unittest.expect(o.paymentStatus, unittest.equals('foo'));
208 unittest.expect(o.placedDate, unittest.equals('foo')); 210 unittest.expect(o.placedDate, unittest.equals('foo'));
209 checkUnnamed1491(o.promotions); 211 checkUnnamed1501(o.promotions);
210 checkUnnamed1492(o.refunds); 212 checkUnnamed1502(o.refunds);
211 checkUnnamed1493(o.shipments); 213 checkUnnamed1503(o.shipments);
212 checkPrice(o.shippingCost); 214 checkPrice(o.shippingCost);
213 checkPrice(o.shippingCostTax); 215 checkPrice(o.shippingCostTax);
214 unittest.expect(o.shippingOption, unittest.equals('foo')); 216 unittest.expect(o.shippingOption, unittest.equals('foo'));
215 unittest.expect(o.status, unittest.equals('foo')); 217 unittest.expect(o.status, unittest.equals('foo'));
216 } 218 }
217 buildCounterOrder--; 219 buildCounterOrder--;
218 } 220 }
219 221
220 buildUnnamed1494() { 222 buildUnnamed1504() {
221 var o = new core.List<core.String>(); 223 var o = new core.List<core.String>();
222 o.add("foo"); 224 o.add("foo");
223 o.add("foo"); 225 o.add("foo");
224 return o; 226 return o;
225 } 227 }
226 228
227 checkUnnamed1494(core.List<core.String> o) { 229 checkUnnamed1504(core.List<core.String> o) {
228 unittest.expect(o, unittest.hasLength(2)); 230 unittest.expect(o, unittest.hasLength(2));
229 unittest.expect(o[0], unittest.equals('foo')); 231 unittest.expect(o[0], unittest.equals('foo'));
230 unittest.expect(o[1], unittest.equals('foo')); 232 unittest.expect(o[1], unittest.equals('foo'));
231 } 233 }
232 234
233 buildUnnamed1495() { 235 buildUnnamed1505() {
234 var o = new core.List<core.String>(); 236 var o = new core.List<core.String>();
235 o.add("foo"); 237 o.add("foo");
236 o.add("foo"); 238 o.add("foo");
237 return o; 239 return o;
238 } 240 }
239 241
240 checkUnnamed1495(core.List<core.String> o) { 242 checkUnnamed1505(core.List<core.String> o) {
241 unittest.expect(o, unittest.hasLength(2)); 243 unittest.expect(o, unittest.hasLength(2));
242 unittest.expect(o[0], unittest.equals('foo')); 244 unittest.expect(o[0], unittest.equals('foo'));
243 unittest.expect(o[1], unittest.equals('foo')); 245 unittest.expect(o[1], unittest.equals('foo'));
244 } 246 }
245 247
246 core.int buildCounterOrderAddress = 0; 248 core.int buildCounterOrderAddress = 0;
247 buildOrderAddress() { 249 buildOrderAddress() {
248 var o = new api.OrderAddress(); 250 var o = new api.OrderAddress();
249 buildCounterOrderAddress++; 251 buildCounterOrderAddress++;
250 if (buildCounterOrderAddress < 3) { 252 if (buildCounterOrderAddress < 3) {
251 o.country = "foo"; 253 o.country = "foo";
252 o.fullAddress = buildUnnamed1494(); 254 o.fullAddress = buildUnnamed1504();
253 o.isPostOfficeBox = true; 255 o.isPostOfficeBox = true;
254 o.locality = "foo"; 256 o.locality = "foo";
255 o.postalCode = "foo"; 257 o.postalCode = "foo";
256 o.recipientName = "foo"; 258 o.recipientName = "foo";
257 o.region = "foo"; 259 o.region = "foo";
258 o.streetAddress = buildUnnamed1495(); 260 o.streetAddress = buildUnnamed1505();
259 } 261 }
260 buildCounterOrderAddress--; 262 buildCounterOrderAddress--;
261 return o; 263 return o;
262 } 264 }
263 265
264 checkOrderAddress(api.OrderAddress o) { 266 checkOrderAddress(api.OrderAddress o) {
265 buildCounterOrderAddress++; 267 buildCounterOrderAddress++;
266 if (buildCounterOrderAddress < 3) { 268 if (buildCounterOrderAddress < 3) {
267 unittest.expect(o.country, unittest.equals('foo')); 269 unittest.expect(o.country, unittest.equals('foo'));
268 checkUnnamed1494(o.fullAddress); 270 checkUnnamed1504(o.fullAddress);
269 unittest.expect(o.isPostOfficeBox, unittest.isTrue); 271 unittest.expect(o.isPostOfficeBox, unittest.isTrue);
270 unittest.expect(o.locality, unittest.equals('foo')); 272 unittest.expect(o.locality, unittest.equals('foo'));
271 unittest.expect(o.postalCode, unittest.equals('foo')); 273 unittest.expect(o.postalCode, unittest.equals('foo'));
272 unittest.expect(o.recipientName, unittest.equals('foo')); 274 unittest.expect(o.recipientName, unittest.equals('foo'));
273 unittest.expect(o.region, unittest.equals('foo')); 275 unittest.expect(o.region, unittest.equals('foo'));
274 checkUnnamed1495(o.streetAddress); 276 checkUnnamed1505(o.streetAddress);
275 } 277 }
276 buildCounterOrderAddress--; 278 buildCounterOrderAddress--;
277 } 279 }
278 280
279 core.int buildCounterOrderCancellation = 0; 281 core.int buildCounterOrderCancellation = 0;
280 buildOrderCancellation() { 282 buildOrderCancellation() {
281 var o = new api.OrderCancellation(); 283 var o = new api.OrderCancellation();
282 buildCounterOrderCancellation++; 284 buildCounterOrderCancellation++;
283 if (buildCounterOrderCancellation < 3) { 285 if (buildCounterOrderCancellation < 3) {
284 o.actor = "foo"; 286 o.actor = "foo";
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 342
341 checkOrderDeliveryDetails(api.OrderDeliveryDetails o) { 343 checkOrderDeliveryDetails(api.OrderDeliveryDetails o) {
342 buildCounterOrderDeliveryDetails++; 344 buildCounterOrderDeliveryDetails++;
343 if (buildCounterOrderDeliveryDetails < 3) { 345 if (buildCounterOrderDeliveryDetails < 3) {
344 checkOrderAddress(o.address); 346 checkOrderAddress(o.address);
345 unittest.expect(o.phoneNumber, unittest.equals('foo')); 347 unittest.expect(o.phoneNumber, unittest.equals('foo'));
346 } 348 }
347 buildCounterOrderDeliveryDetails--; 349 buildCounterOrderDeliveryDetails--;
348 } 350 }
349 351
350 buildUnnamed1496() { 352 buildUnnamed1506() {
351 var o = new core.List<api.OrderCancellation>(); 353 var o = new core.List<api.OrderCancellation>();
352 o.add(buildOrderCancellation()); 354 o.add(buildOrderCancellation());
353 o.add(buildOrderCancellation()); 355 o.add(buildOrderCancellation());
354 return o; 356 return o;
355 } 357 }
356 358
357 checkUnnamed1496(core.List<api.OrderCancellation> o) { 359 checkUnnamed1506(core.List<api.OrderCancellation> o) {
358 unittest.expect(o, unittest.hasLength(2)); 360 unittest.expect(o, unittest.hasLength(2));
359 checkOrderCancellation(o[0]); 361 checkOrderCancellation(o[0]);
360 checkOrderCancellation(o[1]); 362 checkOrderCancellation(o[1]);
361 } 363 }
362 364
363 buildUnnamed1497() { 365 buildUnnamed1507() {
364 var o = new core.List<api.OrderReturn>(); 366 var o = new core.List<api.OrderReturn>();
365 o.add(buildOrderReturn()); 367 o.add(buildOrderReturn());
366 o.add(buildOrderReturn()); 368 o.add(buildOrderReturn());
367 return o; 369 return o;
368 } 370 }
369 371
370 checkUnnamed1497(core.List<api.OrderReturn> o) { 372 checkUnnamed1507(core.List<api.OrderReturn> o) {
371 unittest.expect(o, unittest.hasLength(2)); 373 unittest.expect(o, unittest.hasLength(2));
372 checkOrderReturn(o[0]); 374 checkOrderReturn(o[0]);
373 checkOrderReturn(o[1]); 375 checkOrderReturn(o[1]);
374 } 376 }
375 377
376 core.int buildCounterOrderLineItem = 0; 378 core.int buildCounterOrderLineItem = 0;
377 buildOrderLineItem() { 379 buildOrderLineItem() {
378 var o = new api.OrderLineItem(); 380 var o = new api.OrderLineItem();
379 buildCounterOrderLineItem++; 381 buildCounterOrderLineItem++;
380 if (buildCounterOrderLineItem < 3) { 382 if (buildCounterOrderLineItem < 3) {
381 o.cancellations = buildUnnamed1496(); 383 o.cancellations = buildUnnamed1506();
382 o.id = "foo"; 384 o.id = "foo";
383 o.price = buildPrice(); 385 o.price = buildPrice();
384 o.product = buildOrderLineItemProduct(); 386 o.product = buildOrderLineItemProduct();
385 o.quantityCanceled = 42; 387 o.quantityCanceled = 42;
386 o.quantityDelivered = 42; 388 o.quantityDelivered = 42;
387 o.quantityOrdered = 42; 389 o.quantityOrdered = 42;
388 o.quantityPending = 42; 390 o.quantityPending = 42;
389 o.quantityReturned = 42; 391 o.quantityReturned = 42;
390 o.quantityShipped = 42; 392 o.quantityShipped = 42;
391 o.returnInfo = buildOrderLineItemReturnInfo(); 393 o.returnInfo = buildOrderLineItemReturnInfo();
392 o.returns = buildUnnamed1497(); 394 o.returns = buildUnnamed1507();
393 o.shippingDetails = buildOrderLineItemShippingDetails(); 395 o.shippingDetails = buildOrderLineItemShippingDetails();
394 o.tax = buildPrice(); 396 o.tax = buildPrice();
395 } 397 }
396 buildCounterOrderLineItem--; 398 buildCounterOrderLineItem--;
397 return o; 399 return o;
398 } 400 }
399 401
400 checkOrderLineItem(api.OrderLineItem o) { 402 checkOrderLineItem(api.OrderLineItem o) {
401 buildCounterOrderLineItem++; 403 buildCounterOrderLineItem++;
402 if (buildCounterOrderLineItem < 3) { 404 if (buildCounterOrderLineItem < 3) {
403 checkUnnamed1496(o.cancellations); 405 checkUnnamed1506(o.cancellations);
404 unittest.expect(o.id, unittest.equals('foo')); 406 unittest.expect(o.id, unittest.equals('foo'));
405 checkPrice(o.price); 407 checkPrice(o.price);
406 checkOrderLineItemProduct(o.product); 408 checkOrderLineItemProduct(o.product);
407 unittest.expect(o.quantityCanceled, unittest.equals(42)); 409 unittest.expect(o.quantityCanceled, unittest.equals(42));
408 unittest.expect(o.quantityDelivered, unittest.equals(42)); 410 unittest.expect(o.quantityDelivered, unittest.equals(42));
409 unittest.expect(o.quantityOrdered, unittest.equals(42)); 411 unittest.expect(o.quantityOrdered, unittest.equals(42));
410 unittest.expect(o.quantityPending, unittest.equals(42)); 412 unittest.expect(o.quantityPending, unittest.equals(42));
411 unittest.expect(o.quantityReturned, unittest.equals(42)); 413 unittest.expect(o.quantityReturned, unittest.equals(42));
412 unittest.expect(o.quantityShipped, unittest.equals(42)); 414 unittest.expect(o.quantityShipped, unittest.equals(42));
413 checkOrderLineItemReturnInfo(o.returnInfo); 415 checkOrderLineItemReturnInfo(o.returnInfo);
414 checkUnnamed1497(o.returns); 416 checkUnnamed1507(o.returns);
415 checkOrderLineItemShippingDetails(o.shippingDetails); 417 checkOrderLineItemShippingDetails(o.shippingDetails);
416 checkPrice(o.tax); 418 checkPrice(o.tax);
417 } 419 }
418 buildCounterOrderLineItem--; 420 buildCounterOrderLineItem--;
419 } 421 }
420 422
421 buildUnnamed1498() { 423 buildUnnamed1508() {
422 var o = new core.List<api.OrderLineItemProductVariantAttribute>(); 424 var o = new core.List<api.OrderLineItemProductVariantAttribute>();
423 o.add(buildOrderLineItemProductVariantAttribute()); 425 o.add(buildOrderLineItemProductVariantAttribute());
424 o.add(buildOrderLineItemProductVariantAttribute()); 426 o.add(buildOrderLineItemProductVariantAttribute());
425 return o; 427 return o;
426 } 428 }
427 429
428 checkUnnamed1498(core.List<api.OrderLineItemProductVariantAttribute> o) { 430 checkUnnamed1508(core.List<api.OrderLineItemProductVariantAttribute> o) {
429 unittest.expect(o, unittest.hasLength(2)); 431 unittest.expect(o, unittest.hasLength(2));
430 checkOrderLineItemProductVariantAttribute(o[0]); 432 checkOrderLineItemProductVariantAttribute(o[0]);
431 checkOrderLineItemProductVariantAttribute(o[1]); 433 checkOrderLineItemProductVariantAttribute(o[1]);
432 } 434 }
433 435
434 core.int buildCounterOrderLineItemProduct = 0; 436 core.int buildCounterOrderLineItemProduct = 0;
435 buildOrderLineItemProduct() { 437 buildOrderLineItemProduct() {
436 var o = new api.OrderLineItemProduct(); 438 var o = new api.OrderLineItemProduct();
437 buildCounterOrderLineItemProduct++; 439 buildCounterOrderLineItemProduct++;
438 if (buildCounterOrderLineItemProduct < 3) { 440 if (buildCounterOrderLineItemProduct < 3) {
439 o.brand = "foo"; 441 o.brand = "foo";
440 o.channel = "foo"; 442 o.channel = "foo";
441 o.condition = "foo"; 443 o.condition = "foo";
442 o.contentLanguage = "foo"; 444 o.contentLanguage = "foo";
443 o.gtin = "foo"; 445 o.gtin = "foo";
444 o.id = "foo"; 446 o.id = "foo";
445 o.imageLink = "foo"; 447 o.imageLink = "foo";
446 o.itemGroupId = "foo"; 448 o.itemGroupId = "foo";
447 o.mpn = "foo"; 449 o.mpn = "foo";
448 o.offerId = "foo"; 450 o.offerId = "foo";
449 o.price = buildPrice(); 451 o.price = buildPrice();
450 o.shownImage = "foo"; 452 o.shownImage = "foo";
451 o.targetCountry = "foo"; 453 o.targetCountry = "foo";
452 o.title = "foo"; 454 o.title = "foo";
453 o.variantAttributes = buildUnnamed1498(); 455 o.variantAttributes = buildUnnamed1508();
454 } 456 }
455 buildCounterOrderLineItemProduct--; 457 buildCounterOrderLineItemProduct--;
456 return o; 458 return o;
457 } 459 }
458 460
459 checkOrderLineItemProduct(api.OrderLineItemProduct o) { 461 checkOrderLineItemProduct(api.OrderLineItemProduct o) {
460 buildCounterOrderLineItemProduct++; 462 buildCounterOrderLineItemProduct++;
461 if (buildCounterOrderLineItemProduct < 3) { 463 if (buildCounterOrderLineItemProduct < 3) {
462 unittest.expect(o.brand, unittest.equals('foo')); 464 unittest.expect(o.brand, unittest.equals('foo'));
463 unittest.expect(o.channel, unittest.equals('foo')); 465 unittest.expect(o.channel, unittest.equals('foo'));
464 unittest.expect(o.condition, unittest.equals('foo')); 466 unittest.expect(o.condition, unittest.equals('foo'));
465 unittest.expect(o.contentLanguage, unittest.equals('foo')); 467 unittest.expect(o.contentLanguage, unittest.equals('foo'));
466 unittest.expect(o.gtin, unittest.equals('foo')); 468 unittest.expect(o.gtin, unittest.equals('foo'));
467 unittest.expect(o.id, unittest.equals('foo')); 469 unittest.expect(o.id, unittest.equals('foo'));
468 unittest.expect(o.imageLink, unittest.equals('foo')); 470 unittest.expect(o.imageLink, unittest.equals('foo'));
469 unittest.expect(o.itemGroupId, unittest.equals('foo')); 471 unittest.expect(o.itemGroupId, unittest.equals('foo'));
470 unittest.expect(o.mpn, unittest.equals('foo')); 472 unittest.expect(o.mpn, unittest.equals('foo'));
471 unittest.expect(o.offerId, unittest.equals('foo')); 473 unittest.expect(o.offerId, unittest.equals('foo'));
472 checkPrice(o.price); 474 checkPrice(o.price);
473 unittest.expect(o.shownImage, unittest.equals('foo')); 475 unittest.expect(o.shownImage, unittest.equals('foo'));
474 unittest.expect(o.targetCountry, unittest.equals('foo')); 476 unittest.expect(o.targetCountry, unittest.equals('foo'));
475 unittest.expect(o.title, unittest.equals('foo')); 477 unittest.expect(o.title, unittest.equals('foo'));
476 checkUnnamed1498(o.variantAttributes); 478 checkUnnamed1508(o.variantAttributes);
477 } 479 }
478 buildCounterOrderLineItemProduct--; 480 buildCounterOrderLineItemProduct--;
479 } 481 }
480 482
481 core.int buildCounterOrderLineItemProductVariantAttribute = 0; 483 core.int buildCounterOrderLineItemProductVariantAttribute = 0;
482 buildOrderLineItemProductVariantAttribute() { 484 buildOrderLineItemProductVariantAttribute() {
483 var o = new api.OrderLineItemProductVariantAttribute(); 485 var o = new api.OrderLineItemProductVariantAttribute();
484 buildCounterOrderLineItemProductVariantAttribute++; 486 buildCounterOrderLineItemProductVariantAttribute++;
485 if (buildCounterOrderLineItemProductVariantAttribute < 3) { 487 if (buildCounterOrderLineItemProductVariantAttribute < 3) {
486 o.dimension = "foo"; 488 o.dimension = "foo";
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 checkOrderAddress(o.billingAddress); 594 checkOrderAddress(o.billingAddress);
593 unittest.expect(o.expirationMonth, unittest.equals(42)); 595 unittest.expect(o.expirationMonth, unittest.equals(42));
594 unittest.expect(o.expirationYear, unittest.equals(42)); 596 unittest.expect(o.expirationYear, unittest.equals(42));
595 unittest.expect(o.lastFourDigits, unittest.equals('foo')); 597 unittest.expect(o.lastFourDigits, unittest.equals('foo'));
596 unittest.expect(o.phoneNumber, unittest.equals('foo')); 598 unittest.expect(o.phoneNumber, unittest.equals('foo'));
597 unittest.expect(o.type, unittest.equals('foo')); 599 unittest.expect(o.type, unittest.equals('foo'));
598 } 600 }
599 buildCounterOrderPaymentMethod--; 601 buildCounterOrderPaymentMethod--;
600 } 602 }
601 603
602 buildUnnamed1499() { 604 buildUnnamed1509() {
603 var o = new core.List<api.OrderPromotionBenefit>(); 605 var o = new core.List<api.OrderPromotionBenefit>();
604 o.add(buildOrderPromotionBenefit()); 606 o.add(buildOrderPromotionBenefit());
605 o.add(buildOrderPromotionBenefit()); 607 o.add(buildOrderPromotionBenefit());
606 return o; 608 return o;
607 } 609 }
608 610
609 checkUnnamed1499(core.List<api.OrderPromotionBenefit> o) { 611 checkUnnamed1509(core.List<api.OrderPromotionBenefit> o) {
610 unittest.expect(o, unittest.hasLength(2)); 612 unittest.expect(o, unittest.hasLength(2));
611 checkOrderPromotionBenefit(o[0]); 613 checkOrderPromotionBenefit(o[0]);
612 checkOrderPromotionBenefit(o[1]); 614 checkOrderPromotionBenefit(o[1]);
613 } 615 }
614 616
615 core.int buildCounterOrderPromotion = 0; 617 core.int buildCounterOrderPromotion = 0;
616 buildOrderPromotion() { 618 buildOrderPromotion() {
617 var o = new api.OrderPromotion(); 619 var o = new api.OrderPromotion();
618 buildCounterOrderPromotion++; 620 buildCounterOrderPromotion++;
619 if (buildCounterOrderPromotion < 3) { 621 if (buildCounterOrderPromotion < 3) {
620 o.benefits = buildUnnamed1499(); 622 o.benefits = buildUnnamed1509();
621 o.effectiveDates = "foo"; 623 o.effectiveDates = "foo";
622 o.genericRedemptionCode = "foo"; 624 o.genericRedemptionCode = "foo";
623 o.id = "foo"; 625 o.id = "foo";
624 o.longTitle = "foo"; 626 o.longTitle = "foo";
625 o.productApplicability = "foo"; 627 o.productApplicability = "foo";
626 o.redemptionChannel = "foo"; 628 o.redemptionChannel = "foo";
627 } 629 }
628 buildCounterOrderPromotion--; 630 buildCounterOrderPromotion--;
629 return o; 631 return o;
630 } 632 }
631 633
632 checkOrderPromotion(api.OrderPromotion o) { 634 checkOrderPromotion(api.OrderPromotion o) {
633 buildCounterOrderPromotion++; 635 buildCounterOrderPromotion++;
634 if (buildCounterOrderPromotion < 3) { 636 if (buildCounterOrderPromotion < 3) {
635 checkUnnamed1499(o.benefits); 637 checkUnnamed1509(o.benefits);
636 unittest.expect(o.effectiveDates, unittest.equals('foo')); 638 unittest.expect(o.effectiveDates, unittest.equals('foo'));
637 unittest.expect(o.genericRedemptionCode, unittest.equals('foo')); 639 unittest.expect(o.genericRedemptionCode, unittest.equals('foo'));
638 unittest.expect(o.id, unittest.equals('foo')); 640 unittest.expect(o.id, unittest.equals('foo'));
639 unittest.expect(o.longTitle, unittest.equals('foo')); 641 unittest.expect(o.longTitle, unittest.equals('foo'));
640 unittest.expect(o.productApplicability, unittest.equals('foo')); 642 unittest.expect(o.productApplicability, unittest.equals('foo'));
641 unittest.expect(o.redemptionChannel, unittest.equals('foo')); 643 unittest.expect(o.redemptionChannel, unittest.equals('foo'));
642 } 644 }
643 buildCounterOrderPromotion--; 645 buildCounterOrderPromotion--;
644 } 646 }
645 647
646 buildUnnamed1500() { 648 buildUnnamed1510() {
647 var o = new core.List<core.String>(); 649 var o = new core.List<core.String>();
648 o.add("foo"); 650 o.add("foo");
649 o.add("foo"); 651 o.add("foo");
650 return o; 652 return o;
651 } 653 }
652 654
653 checkUnnamed1500(core.List<core.String> o) { 655 checkUnnamed1510(core.List<core.String> o) {
654 unittest.expect(o, unittest.hasLength(2)); 656 unittest.expect(o, unittest.hasLength(2));
655 unittest.expect(o[0], unittest.equals('foo')); 657 unittest.expect(o[0], unittest.equals('foo'));
656 unittest.expect(o[1], unittest.equals('foo')); 658 unittest.expect(o[1], unittest.equals('foo'));
657 } 659 }
658 660
659 core.int buildCounterOrderPromotionBenefit = 0; 661 core.int buildCounterOrderPromotionBenefit = 0;
660 buildOrderPromotionBenefit() { 662 buildOrderPromotionBenefit() {
661 var o = new api.OrderPromotionBenefit(); 663 var o = new api.OrderPromotionBenefit();
662 buildCounterOrderPromotionBenefit++; 664 buildCounterOrderPromotionBenefit++;
663 if (buildCounterOrderPromotionBenefit < 3) { 665 if (buildCounterOrderPromotionBenefit < 3) {
664 o.discount = buildPrice(); 666 o.discount = buildPrice();
665 o.offerIds = buildUnnamed1500(); 667 o.offerIds = buildUnnamed1510();
666 o.subType = "foo"; 668 o.subType = "foo";
667 o.taxImpact = buildPrice(); 669 o.taxImpact = buildPrice();
668 o.type = "foo"; 670 o.type = "foo";
669 } 671 }
670 buildCounterOrderPromotionBenefit--; 672 buildCounterOrderPromotionBenefit--;
671 return o; 673 return o;
672 } 674 }
673 675
674 checkOrderPromotionBenefit(api.OrderPromotionBenefit o) { 676 checkOrderPromotionBenefit(api.OrderPromotionBenefit o) {
675 buildCounterOrderPromotionBenefit++; 677 buildCounterOrderPromotionBenefit++;
676 if (buildCounterOrderPromotionBenefit < 3) { 678 if (buildCounterOrderPromotionBenefit < 3) {
677 checkPrice(o.discount); 679 checkPrice(o.discount);
678 checkUnnamed1500(o.offerIds); 680 checkUnnamed1510(o.offerIds);
679 unittest.expect(o.subType, unittest.equals('foo')); 681 unittest.expect(o.subType, unittest.equals('foo'));
680 checkPrice(o.taxImpact); 682 checkPrice(o.taxImpact);
681 unittest.expect(o.type, unittest.equals('foo')); 683 unittest.expect(o.type, unittest.equals('foo'));
682 } 684 }
683 buildCounterOrderPromotionBenefit--; 685 buildCounterOrderPromotionBenefit--;
684 } 686 }
685 687
686 core.int buildCounterOrderRefund = 0; 688 core.int buildCounterOrderRefund = 0;
687 buildOrderRefund() { 689 buildOrderRefund() {
688 var o = new api.OrderRefund(); 690 var o = new api.OrderRefund();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 if (buildCounterOrderReturn < 3) { 732 if (buildCounterOrderReturn < 3) {
731 unittest.expect(o.actor, unittest.equals('foo')); 733 unittest.expect(o.actor, unittest.equals('foo'));
732 unittest.expect(o.creationDate, unittest.equals('foo')); 734 unittest.expect(o.creationDate, unittest.equals('foo'));
733 unittest.expect(o.quantity, unittest.equals(42)); 735 unittest.expect(o.quantity, unittest.equals(42));
734 unittest.expect(o.reason, unittest.equals('foo')); 736 unittest.expect(o.reason, unittest.equals('foo'));
735 unittest.expect(o.reasonText, unittest.equals('foo')); 737 unittest.expect(o.reasonText, unittest.equals('foo'));
736 } 738 }
737 buildCounterOrderReturn--; 739 buildCounterOrderReturn--;
738 } 740 }
739 741
740 buildUnnamed1501() { 742 buildUnnamed1511() {
741 var o = new core.List<api.OrderShipmentLineItemShipment>(); 743 var o = new core.List<api.OrderShipmentLineItemShipment>();
742 o.add(buildOrderShipmentLineItemShipment()); 744 o.add(buildOrderShipmentLineItemShipment());
743 o.add(buildOrderShipmentLineItemShipment()); 745 o.add(buildOrderShipmentLineItemShipment());
744 return o; 746 return o;
745 } 747 }
746 748
747 checkUnnamed1501(core.List<api.OrderShipmentLineItemShipment> o) { 749 checkUnnamed1511(core.List<api.OrderShipmentLineItemShipment> o) {
748 unittest.expect(o, unittest.hasLength(2)); 750 unittest.expect(o, unittest.hasLength(2));
749 checkOrderShipmentLineItemShipment(o[0]); 751 checkOrderShipmentLineItemShipment(o[0]);
750 checkOrderShipmentLineItemShipment(o[1]); 752 checkOrderShipmentLineItemShipment(o[1]);
751 } 753 }
752 754
753 core.int buildCounterOrderShipment = 0; 755 core.int buildCounterOrderShipment = 0;
754 buildOrderShipment() { 756 buildOrderShipment() {
755 var o = new api.OrderShipment(); 757 var o = new api.OrderShipment();
756 buildCounterOrderShipment++; 758 buildCounterOrderShipment++;
757 if (buildCounterOrderShipment < 3) { 759 if (buildCounterOrderShipment < 3) {
758 o.carrier = "foo"; 760 o.carrier = "foo";
759 o.creationDate = "foo"; 761 o.creationDate = "foo";
760 o.deliveryDate = "foo"; 762 o.deliveryDate = "foo";
761 o.id = "foo"; 763 o.id = "foo";
762 o.lineItems = buildUnnamed1501(); 764 o.lineItems = buildUnnamed1511();
763 o.status = "foo"; 765 o.status = "foo";
764 o.trackingId = "foo"; 766 o.trackingId = "foo";
765 } 767 }
766 buildCounterOrderShipment--; 768 buildCounterOrderShipment--;
767 return o; 769 return o;
768 } 770 }
769 771
770 checkOrderShipment(api.OrderShipment o) { 772 checkOrderShipment(api.OrderShipment o) {
771 buildCounterOrderShipment++; 773 buildCounterOrderShipment++;
772 if (buildCounterOrderShipment < 3) { 774 if (buildCounterOrderShipment < 3) {
773 unittest.expect(o.carrier, unittest.equals('foo')); 775 unittest.expect(o.carrier, unittest.equals('foo'));
774 unittest.expect(o.creationDate, unittest.equals('foo')); 776 unittest.expect(o.creationDate, unittest.equals('foo'));
775 unittest.expect(o.deliveryDate, unittest.equals('foo')); 777 unittest.expect(o.deliveryDate, unittest.equals('foo'));
776 unittest.expect(o.id, unittest.equals('foo')); 778 unittest.expect(o.id, unittest.equals('foo'));
777 checkUnnamed1501(o.lineItems); 779 checkUnnamed1511(o.lineItems);
778 unittest.expect(o.status, unittest.equals('foo')); 780 unittest.expect(o.status, unittest.equals('foo'));
779 unittest.expect(o.trackingId, unittest.equals('foo')); 781 unittest.expect(o.trackingId, unittest.equals('foo'));
780 } 782 }
781 buildCounterOrderShipment--; 783 buildCounterOrderShipment--;
782 } 784 }
783 785
784 core.int buildCounterOrderShipmentLineItemShipment = 0; 786 core.int buildCounterOrderShipmentLineItemShipment = 0;
785 buildOrderShipmentLineItemShipment() { 787 buildOrderShipmentLineItemShipment() {
786 var o = new api.OrderShipmentLineItemShipment(); 788 var o = new api.OrderShipmentLineItemShipment();
787 buildCounterOrderShipmentLineItemShipment++; 789 buildCounterOrderShipmentLineItemShipment++;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 992
991 checkOrdersCreateTestOrderResponse(api.OrdersCreateTestOrderResponse o) { 993 checkOrdersCreateTestOrderResponse(api.OrdersCreateTestOrderResponse o) {
992 buildCounterOrdersCreateTestOrderResponse++; 994 buildCounterOrdersCreateTestOrderResponse++;
993 if (buildCounterOrdersCreateTestOrderResponse < 3) { 995 if (buildCounterOrdersCreateTestOrderResponse < 3) {
994 unittest.expect(o.kind, unittest.equals('foo')); 996 unittest.expect(o.kind, unittest.equals('foo'));
995 unittest.expect(o.orderId, unittest.equals('foo')); 997 unittest.expect(o.orderId, unittest.equals('foo'));
996 } 998 }
997 buildCounterOrdersCreateTestOrderResponse--; 999 buildCounterOrdersCreateTestOrderResponse--;
998 } 1000 }
999 1001
1000 buildUnnamed1502() { 1002 buildUnnamed1512() {
1001 var o = new core.List<api.OrdersCustomBatchRequestEntry>(); 1003 var o = new core.List<api.OrdersCustomBatchRequestEntry>();
1002 o.add(buildOrdersCustomBatchRequestEntry()); 1004 o.add(buildOrdersCustomBatchRequestEntry());
1003 o.add(buildOrdersCustomBatchRequestEntry()); 1005 o.add(buildOrdersCustomBatchRequestEntry());
1004 return o; 1006 return o;
1005 } 1007 }
1006 1008
1007 checkUnnamed1502(core.List<api.OrdersCustomBatchRequestEntry> o) { 1009 checkUnnamed1512(core.List<api.OrdersCustomBatchRequestEntry> o) {
1008 unittest.expect(o, unittest.hasLength(2)); 1010 unittest.expect(o, unittest.hasLength(2));
1009 checkOrdersCustomBatchRequestEntry(o[0]); 1011 checkOrdersCustomBatchRequestEntry(o[0]);
1010 checkOrdersCustomBatchRequestEntry(o[1]); 1012 checkOrdersCustomBatchRequestEntry(o[1]);
1011 } 1013 }
1012 1014
1013 core.int buildCounterOrdersCustomBatchRequest = 0; 1015 core.int buildCounterOrdersCustomBatchRequest = 0;
1014 buildOrdersCustomBatchRequest() { 1016 buildOrdersCustomBatchRequest() {
1015 var o = new api.OrdersCustomBatchRequest(); 1017 var o = new api.OrdersCustomBatchRequest();
1016 buildCounterOrdersCustomBatchRequest++; 1018 buildCounterOrdersCustomBatchRequest++;
1017 if (buildCounterOrdersCustomBatchRequest < 3) { 1019 if (buildCounterOrdersCustomBatchRequest < 3) {
1018 o.entries = buildUnnamed1502(); 1020 o.entries = buildUnnamed1512();
1019 } 1021 }
1020 buildCounterOrdersCustomBatchRequest--; 1022 buildCounterOrdersCustomBatchRequest--;
1021 return o; 1023 return o;
1022 } 1024 }
1023 1025
1024 checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) { 1026 checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) {
1025 buildCounterOrdersCustomBatchRequest++; 1027 buildCounterOrdersCustomBatchRequest++;
1026 if (buildCounterOrdersCustomBatchRequest < 3) { 1028 if (buildCounterOrdersCustomBatchRequest < 3) {
1027 checkUnnamed1502(o.entries); 1029 checkUnnamed1512(o.entries);
1028 } 1030 }
1029 buildCounterOrdersCustomBatchRequest--; 1031 buildCounterOrdersCustomBatchRequest--;
1030 } 1032 }
1031 1033
1032 core.int buildCounterOrdersCustomBatchRequestEntry = 0; 1034 core.int buildCounterOrdersCustomBatchRequestEntry = 0;
1033 buildOrdersCustomBatchRequestEntry() { 1035 buildOrdersCustomBatchRequestEntry() {
1034 var o = new api.OrdersCustomBatchRequestEntry(); 1036 var o = new api.OrdersCustomBatchRequestEntry();
1035 buildCounterOrdersCustomBatchRequestEntry++; 1037 buildCounterOrdersCustomBatchRequestEntry++;
1036 if (buildCounterOrdersCustomBatchRequestEntry < 3) { 1038 if (buildCounterOrdersCustomBatchRequestEntry < 3) {
1037 o.batchId = 42; 1039 o.batchId = 42;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 buildCounterOrdersCustomBatchRequestEntryReturnLineItem++; 1161 buildCounterOrdersCustomBatchRequestEntryReturnLineItem++;
1160 if (buildCounterOrdersCustomBatchRequestEntryReturnLineItem < 3) { 1162 if (buildCounterOrdersCustomBatchRequestEntryReturnLineItem < 3) {
1161 unittest.expect(o.lineItemId, unittest.equals('foo')); 1163 unittest.expect(o.lineItemId, unittest.equals('foo'));
1162 unittest.expect(o.quantity, unittest.equals(42)); 1164 unittest.expect(o.quantity, unittest.equals(42));
1163 unittest.expect(o.reason, unittest.equals('foo')); 1165 unittest.expect(o.reason, unittest.equals('foo'));
1164 unittest.expect(o.reasonText, unittest.equals('foo')); 1166 unittest.expect(o.reasonText, unittest.equals('foo'));
1165 } 1167 }
1166 buildCounterOrdersCustomBatchRequestEntryReturnLineItem--; 1168 buildCounterOrdersCustomBatchRequestEntryReturnLineItem--;
1167 } 1169 }
1168 1170
1169 buildUnnamed1503() { 1171 buildUnnamed1513() {
1170 var o = new core.List<api.OrderShipmentLineItemShipment>(); 1172 var o = new core.List<api.OrderShipmentLineItemShipment>();
1171 o.add(buildOrderShipmentLineItemShipment()); 1173 o.add(buildOrderShipmentLineItemShipment());
1172 o.add(buildOrderShipmentLineItemShipment()); 1174 o.add(buildOrderShipmentLineItemShipment());
1173 return o; 1175 return o;
1174 } 1176 }
1175 1177
1176 checkUnnamed1503(core.List<api.OrderShipmentLineItemShipment> o) { 1178 checkUnnamed1513(core.List<api.OrderShipmentLineItemShipment> o) {
1177 unittest.expect(o, unittest.hasLength(2)); 1179 unittest.expect(o, unittest.hasLength(2));
1178 checkOrderShipmentLineItemShipment(o[0]); 1180 checkOrderShipmentLineItemShipment(o[0]);
1179 checkOrderShipmentLineItemShipment(o[1]); 1181 checkOrderShipmentLineItemShipment(o[1]);
1180 } 1182 }
1181 1183
1182 core.int buildCounterOrdersCustomBatchRequestEntryShipLineItems = 0; 1184 core.int buildCounterOrdersCustomBatchRequestEntryShipLineItems = 0;
1183 buildOrdersCustomBatchRequestEntryShipLineItems() { 1185 buildOrdersCustomBatchRequestEntryShipLineItems() {
1184 var o = new api.OrdersCustomBatchRequestEntryShipLineItems(); 1186 var o = new api.OrdersCustomBatchRequestEntryShipLineItems();
1185 buildCounterOrdersCustomBatchRequestEntryShipLineItems++; 1187 buildCounterOrdersCustomBatchRequestEntryShipLineItems++;
1186 if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { 1188 if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) {
1187 o.carrier = "foo"; 1189 o.carrier = "foo";
1188 o.lineItems = buildUnnamed1503(); 1190 o.lineItems = buildUnnamed1513();
1189 o.shipmentId = "foo"; 1191 o.shipmentId = "foo";
1190 o.trackingId = "foo"; 1192 o.trackingId = "foo";
1191 } 1193 }
1192 buildCounterOrdersCustomBatchRequestEntryShipLineItems--; 1194 buildCounterOrdersCustomBatchRequestEntryShipLineItems--;
1193 return o; 1195 return o;
1194 } 1196 }
1195 1197
1196 checkOrdersCustomBatchRequestEntryShipLineItems(api.OrdersCustomBatchRequestEntr yShipLineItems o) { 1198 checkOrdersCustomBatchRequestEntryShipLineItems(api.OrdersCustomBatchRequestEntr yShipLineItems o) {
1197 buildCounterOrdersCustomBatchRequestEntryShipLineItems++; 1199 buildCounterOrdersCustomBatchRequestEntryShipLineItems++;
1198 if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { 1200 if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) {
1199 unittest.expect(o.carrier, unittest.equals('foo')); 1201 unittest.expect(o.carrier, unittest.equals('foo'));
1200 checkUnnamed1503(o.lineItems); 1202 checkUnnamed1513(o.lineItems);
1201 unittest.expect(o.shipmentId, unittest.equals('foo')); 1203 unittest.expect(o.shipmentId, unittest.equals('foo'));
1202 unittest.expect(o.trackingId, unittest.equals('foo')); 1204 unittest.expect(o.trackingId, unittest.equals('foo'));
1203 } 1205 }
1204 buildCounterOrdersCustomBatchRequestEntryShipLineItems--; 1206 buildCounterOrdersCustomBatchRequestEntryShipLineItems--;
1205 } 1207 }
1206 1208
1207 core.int buildCounterOrdersCustomBatchRequestEntryUpdateShipment = 0; 1209 core.int buildCounterOrdersCustomBatchRequestEntryUpdateShipment = 0;
1208 buildOrdersCustomBatchRequestEntryUpdateShipment() { 1210 buildOrdersCustomBatchRequestEntryUpdateShipment() {
1209 var o = new api.OrdersCustomBatchRequestEntryUpdateShipment(); 1211 var o = new api.OrdersCustomBatchRequestEntryUpdateShipment();
1210 buildCounterOrdersCustomBatchRequestEntryUpdateShipment++; 1212 buildCounterOrdersCustomBatchRequestEntryUpdateShipment++;
(...skipping 11 matching lines...) Expand all
1222 buildCounterOrdersCustomBatchRequestEntryUpdateShipment++; 1224 buildCounterOrdersCustomBatchRequestEntryUpdateShipment++;
1223 if (buildCounterOrdersCustomBatchRequestEntryUpdateShipment < 3) { 1225 if (buildCounterOrdersCustomBatchRequestEntryUpdateShipment < 3) {
1224 unittest.expect(o.carrier, unittest.equals('foo')); 1226 unittest.expect(o.carrier, unittest.equals('foo'));
1225 unittest.expect(o.shipmentId, unittest.equals('foo')); 1227 unittest.expect(o.shipmentId, unittest.equals('foo'));
1226 unittest.expect(o.status, unittest.equals('foo')); 1228 unittest.expect(o.status, unittest.equals('foo'));
1227 unittest.expect(o.trackingId, unittest.equals('foo')); 1229 unittest.expect(o.trackingId, unittest.equals('foo'));
1228 } 1230 }
1229 buildCounterOrdersCustomBatchRequestEntryUpdateShipment--; 1231 buildCounterOrdersCustomBatchRequestEntryUpdateShipment--;
1230 } 1232 }
1231 1233
1232 buildUnnamed1504() { 1234 buildUnnamed1514() {
1233 var o = new core.List<api.OrdersCustomBatchResponseEntry>(); 1235 var o = new core.List<api.OrdersCustomBatchResponseEntry>();
1234 o.add(buildOrdersCustomBatchResponseEntry()); 1236 o.add(buildOrdersCustomBatchResponseEntry());
1235 o.add(buildOrdersCustomBatchResponseEntry()); 1237 o.add(buildOrdersCustomBatchResponseEntry());
1236 return o; 1238 return o;
1237 } 1239 }
1238 1240
1239 checkUnnamed1504(core.List<api.OrdersCustomBatchResponseEntry> o) { 1241 checkUnnamed1514(core.List<api.OrdersCustomBatchResponseEntry> o) {
1240 unittest.expect(o, unittest.hasLength(2)); 1242 unittest.expect(o, unittest.hasLength(2));
1241 checkOrdersCustomBatchResponseEntry(o[0]); 1243 checkOrdersCustomBatchResponseEntry(o[0]);
1242 checkOrdersCustomBatchResponseEntry(o[1]); 1244 checkOrdersCustomBatchResponseEntry(o[1]);
1243 } 1245 }
1244 1246
1245 core.int buildCounterOrdersCustomBatchResponse = 0; 1247 core.int buildCounterOrdersCustomBatchResponse = 0;
1246 buildOrdersCustomBatchResponse() { 1248 buildOrdersCustomBatchResponse() {
1247 var o = new api.OrdersCustomBatchResponse(); 1249 var o = new api.OrdersCustomBatchResponse();
1248 buildCounterOrdersCustomBatchResponse++; 1250 buildCounterOrdersCustomBatchResponse++;
1249 if (buildCounterOrdersCustomBatchResponse < 3) { 1251 if (buildCounterOrdersCustomBatchResponse < 3) {
1250 o.entries = buildUnnamed1504(); 1252 o.entries = buildUnnamed1514();
1251 o.kind = "foo"; 1253 o.kind = "foo";
1252 } 1254 }
1253 buildCounterOrdersCustomBatchResponse--; 1255 buildCounterOrdersCustomBatchResponse--;
1254 return o; 1256 return o;
1255 } 1257 }
1256 1258
1257 checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) { 1259 checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) {
1258 buildCounterOrdersCustomBatchResponse++; 1260 buildCounterOrdersCustomBatchResponse++;
1259 if (buildCounterOrdersCustomBatchResponse < 3) { 1261 if (buildCounterOrdersCustomBatchResponse < 3) {
1260 checkUnnamed1504(o.entries); 1262 checkUnnamed1514(o.entries);
1261 unittest.expect(o.kind, unittest.equals('foo')); 1263 unittest.expect(o.kind, unittest.equals('foo'));
1262 } 1264 }
1263 buildCounterOrdersCustomBatchResponse--; 1265 buildCounterOrdersCustomBatchResponse--;
1264 } 1266 }
1265 1267
1266 core.int buildCounterOrdersCustomBatchResponseEntry = 0; 1268 core.int buildCounterOrdersCustomBatchResponseEntry = 0;
1267 buildOrdersCustomBatchResponseEntry() { 1269 buildOrdersCustomBatchResponseEntry() {
1268 var o = new api.OrdersCustomBatchResponseEntry(); 1270 var o = new api.OrdersCustomBatchResponseEntry();
1269 buildCounterOrdersCustomBatchResponseEntry++; 1271 buildCounterOrdersCustomBatchResponseEntry++;
1270 if (buildCounterOrdersCustomBatchResponseEntry < 3) { 1272 if (buildCounterOrdersCustomBatchResponseEntry < 3) {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 1327
1326 checkOrdersGetTestOrderTemplateResponse(api.OrdersGetTestOrderTemplateResponse o ) { 1328 checkOrdersGetTestOrderTemplateResponse(api.OrdersGetTestOrderTemplateResponse o ) {
1327 buildCounterOrdersGetTestOrderTemplateResponse++; 1329 buildCounterOrdersGetTestOrderTemplateResponse++;
1328 if (buildCounterOrdersGetTestOrderTemplateResponse < 3) { 1330 if (buildCounterOrdersGetTestOrderTemplateResponse < 3) {
1329 unittest.expect(o.kind, unittest.equals('foo')); 1331 unittest.expect(o.kind, unittest.equals('foo'));
1330 checkTestOrder(o.template); 1332 checkTestOrder(o.template);
1331 } 1333 }
1332 buildCounterOrdersGetTestOrderTemplateResponse--; 1334 buildCounterOrdersGetTestOrderTemplateResponse--;
1333 } 1335 }
1334 1336
1335 buildUnnamed1505() { 1337 buildUnnamed1515() {
1336 var o = new core.List<api.Order>(); 1338 var o = new core.List<api.Order>();
1337 o.add(buildOrder()); 1339 o.add(buildOrder());
1338 o.add(buildOrder()); 1340 o.add(buildOrder());
1339 return o; 1341 return o;
1340 } 1342 }
1341 1343
1342 checkUnnamed1505(core.List<api.Order> o) { 1344 checkUnnamed1515(core.List<api.Order> o) {
1343 unittest.expect(o, unittest.hasLength(2)); 1345 unittest.expect(o, unittest.hasLength(2));
1344 checkOrder(o[0]); 1346 checkOrder(o[0]);
1345 checkOrder(o[1]); 1347 checkOrder(o[1]);
1346 } 1348 }
1347 1349
1348 core.int buildCounterOrdersListResponse = 0; 1350 core.int buildCounterOrdersListResponse = 0;
1349 buildOrdersListResponse() { 1351 buildOrdersListResponse() {
1350 var o = new api.OrdersListResponse(); 1352 var o = new api.OrdersListResponse();
1351 buildCounterOrdersListResponse++; 1353 buildCounterOrdersListResponse++;
1352 if (buildCounterOrdersListResponse < 3) { 1354 if (buildCounterOrdersListResponse < 3) {
1353 o.kind = "foo"; 1355 o.kind = "foo";
1354 o.nextPageToken = "foo"; 1356 o.nextPageToken = "foo";
1355 o.resources = buildUnnamed1505(); 1357 o.resources = buildUnnamed1515();
1356 } 1358 }
1357 buildCounterOrdersListResponse--; 1359 buildCounterOrdersListResponse--;
1358 return o; 1360 return o;
1359 } 1361 }
1360 1362
1361 checkOrdersListResponse(api.OrdersListResponse o) { 1363 checkOrdersListResponse(api.OrdersListResponse o) {
1362 buildCounterOrdersListResponse++; 1364 buildCounterOrdersListResponse++;
1363 if (buildCounterOrdersListResponse < 3) { 1365 if (buildCounterOrdersListResponse < 3) {
1364 unittest.expect(o.kind, unittest.equals('foo')); 1366 unittest.expect(o.kind, unittest.equals('foo'));
1365 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1367 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1366 checkUnnamed1505(o.resources); 1368 checkUnnamed1515(o.resources);
1367 } 1369 }
1368 buildCounterOrdersListResponse--; 1370 buildCounterOrdersListResponse--;
1369 } 1371 }
1370 1372
1371 core.int buildCounterOrdersRefundRequest = 0; 1373 core.int buildCounterOrdersRefundRequest = 0;
1372 buildOrdersRefundRequest() { 1374 buildOrdersRefundRequest() {
1373 var o = new api.OrdersRefundRequest(); 1375 var o = new api.OrdersRefundRequest();
1374 buildCounterOrdersRefundRequest++; 1376 buildCounterOrdersRefundRequest++;
1375 if (buildCounterOrdersRefundRequest < 3) { 1377 if (buildCounterOrdersRefundRequest < 3) {
1376 o.amount = buildPrice(); 1378 o.amount = buildPrice();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 1457
1456 checkOrdersReturnLineItemResponse(api.OrdersReturnLineItemResponse o) { 1458 checkOrdersReturnLineItemResponse(api.OrdersReturnLineItemResponse o) {
1457 buildCounterOrdersReturnLineItemResponse++; 1459 buildCounterOrdersReturnLineItemResponse++;
1458 if (buildCounterOrdersReturnLineItemResponse < 3) { 1460 if (buildCounterOrdersReturnLineItemResponse < 3) {
1459 unittest.expect(o.executionStatus, unittest.equals('foo')); 1461 unittest.expect(o.executionStatus, unittest.equals('foo'));
1460 unittest.expect(o.kind, unittest.equals('foo')); 1462 unittest.expect(o.kind, unittest.equals('foo'));
1461 } 1463 }
1462 buildCounterOrdersReturnLineItemResponse--; 1464 buildCounterOrdersReturnLineItemResponse--;
1463 } 1465 }
1464 1466
1465 buildUnnamed1506() { 1467 buildUnnamed1516() {
1466 var o = new core.List<api.OrderShipmentLineItemShipment>(); 1468 var o = new core.List<api.OrderShipmentLineItemShipment>();
1467 o.add(buildOrderShipmentLineItemShipment()); 1469 o.add(buildOrderShipmentLineItemShipment());
1468 o.add(buildOrderShipmentLineItemShipment()); 1470 o.add(buildOrderShipmentLineItemShipment());
1469 return o; 1471 return o;
1470 } 1472 }
1471 1473
1472 checkUnnamed1506(core.List<api.OrderShipmentLineItemShipment> o) { 1474 checkUnnamed1516(core.List<api.OrderShipmentLineItemShipment> o) {
1473 unittest.expect(o, unittest.hasLength(2)); 1475 unittest.expect(o, unittest.hasLength(2));
1474 checkOrderShipmentLineItemShipment(o[0]); 1476 checkOrderShipmentLineItemShipment(o[0]);
1475 checkOrderShipmentLineItemShipment(o[1]); 1477 checkOrderShipmentLineItemShipment(o[1]);
1476 } 1478 }
1477 1479
1478 core.int buildCounterOrdersShipLineItemsRequest = 0; 1480 core.int buildCounterOrdersShipLineItemsRequest = 0;
1479 buildOrdersShipLineItemsRequest() { 1481 buildOrdersShipLineItemsRequest() {
1480 var o = new api.OrdersShipLineItemsRequest(); 1482 var o = new api.OrdersShipLineItemsRequest();
1481 buildCounterOrdersShipLineItemsRequest++; 1483 buildCounterOrdersShipLineItemsRequest++;
1482 if (buildCounterOrdersShipLineItemsRequest < 3) { 1484 if (buildCounterOrdersShipLineItemsRequest < 3) {
1483 o.carrier = "foo"; 1485 o.carrier = "foo";
1484 o.lineItems = buildUnnamed1506(); 1486 o.lineItems = buildUnnamed1516();
1485 o.operationId = "foo"; 1487 o.operationId = "foo";
1486 o.shipmentId = "foo"; 1488 o.shipmentId = "foo";
1487 o.trackingId = "foo"; 1489 o.trackingId = "foo";
1488 } 1490 }
1489 buildCounterOrdersShipLineItemsRequest--; 1491 buildCounterOrdersShipLineItemsRequest--;
1490 return o; 1492 return o;
1491 } 1493 }
1492 1494
1493 checkOrdersShipLineItemsRequest(api.OrdersShipLineItemsRequest o) { 1495 checkOrdersShipLineItemsRequest(api.OrdersShipLineItemsRequest o) {
1494 buildCounterOrdersShipLineItemsRequest++; 1496 buildCounterOrdersShipLineItemsRequest++;
1495 if (buildCounterOrdersShipLineItemsRequest < 3) { 1497 if (buildCounterOrdersShipLineItemsRequest < 3) {
1496 unittest.expect(o.carrier, unittest.equals('foo')); 1498 unittest.expect(o.carrier, unittest.equals('foo'));
1497 checkUnnamed1506(o.lineItems); 1499 checkUnnamed1516(o.lineItems);
1498 unittest.expect(o.operationId, unittest.equals('foo')); 1500 unittest.expect(o.operationId, unittest.equals('foo'));
1499 unittest.expect(o.shipmentId, unittest.equals('foo')); 1501 unittest.expect(o.shipmentId, unittest.equals('foo'));
1500 unittest.expect(o.trackingId, unittest.equals('foo')); 1502 unittest.expect(o.trackingId, unittest.equals('foo'));
1501 } 1503 }
1502 buildCounterOrdersShipLineItemsRequest--; 1504 buildCounterOrdersShipLineItemsRequest--;
1503 } 1505 }
1504 1506
1505 core.int buildCounterOrdersShipLineItemsResponse = 0; 1507 core.int buildCounterOrdersShipLineItemsResponse = 0;
1506 buildOrdersShipLineItemsResponse() { 1508 buildOrdersShipLineItemsResponse() {
1507 var o = new api.OrdersShipLineItemsResponse(); 1509 var o = new api.OrdersShipLineItemsResponse();
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1627 1629
1628 checkPrice(api.Price o) { 1630 checkPrice(api.Price o) {
1629 buildCounterPrice++; 1631 buildCounterPrice++;
1630 if (buildCounterPrice < 3) { 1632 if (buildCounterPrice < 3) {
1631 unittest.expect(o.currency, unittest.equals('foo')); 1633 unittest.expect(o.currency, unittest.equals('foo'));
1632 unittest.expect(o.value, unittest.equals('foo')); 1634 unittest.expect(o.value, unittest.equals('foo'));
1633 } 1635 }
1634 buildCounterPrice--; 1636 buildCounterPrice--;
1635 } 1637 }
1636 1638
1637 buildUnnamed1507() { 1639 buildUnnamed1517() {
1638 var o = new core.List<api.TestOrderLineItem>(); 1640 var o = new core.List<api.TestOrderLineItem>();
1639 o.add(buildTestOrderLineItem()); 1641 o.add(buildTestOrderLineItem());
1640 o.add(buildTestOrderLineItem()); 1642 o.add(buildTestOrderLineItem());
1641 return o; 1643 return o;
1642 } 1644 }
1643 1645
1644 checkUnnamed1507(core.List<api.TestOrderLineItem> o) { 1646 checkUnnamed1517(core.List<api.TestOrderLineItem> o) {
1645 unittest.expect(o, unittest.hasLength(2)); 1647 unittest.expect(o, unittest.hasLength(2));
1646 checkTestOrderLineItem(o[0]); 1648 checkTestOrderLineItem(o[0]);
1647 checkTestOrderLineItem(o[1]); 1649 checkTestOrderLineItem(o[1]);
1648 } 1650 }
1649 1651
1650 buildUnnamed1508() { 1652 buildUnnamed1518() {
1651 var o = new core.List<api.OrderPromotion>(); 1653 var o = new core.List<api.OrderPromotion>();
1652 o.add(buildOrderPromotion()); 1654 o.add(buildOrderPromotion());
1653 o.add(buildOrderPromotion()); 1655 o.add(buildOrderPromotion());
1654 return o; 1656 return o;
1655 } 1657 }
1656 1658
1657 checkUnnamed1508(core.List<api.OrderPromotion> o) { 1659 checkUnnamed1518(core.List<api.OrderPromotion> o) {
1658 unittest.expect(o, unittest.hasLength(2)); 1660 unittest.expect(o, unittest.hasLength(2));
1659 checkOrderPromotion(o[0]); 1661 checkOrderPromotion(o[0]);
1660 checkOrderPromotion(o[1]); 1662 checkOrderPromotion(o[1]);
1661 } 1663 }
1662 1664
1663 core.int buildCounterTestOrder = 0; 1665 core.int buildCounterTestOrder = 0;
1664 buildTestOrder() { 1666 buildTestOrder() {
1665 var o = new api.TestOrder(); 1667 var o = new api.TestOrder();
1666 buildCounterTestOrder++; 1668 buildCounterTestOrder++;
1667 if (buildCounterTestOrder < 3) { 1669 if (buildCounterTestOrder < 3) {
1668 o.customer = buildTestOrderCustomer(); 1670 o.customer = buildTestOrderCustomer();
1669 o.kind = "foo"; 1671 o.kind = "foo";
1670 o.lineItems = buildUnnamed1507(); 1672 o.lineItems = buildUnnamed1517();
1671 o.paymentMethod = buildTestOrderPaymentMethod(); 1673 o.paymentMethod = buildTestOrderPaymentMethod();
1672 o.predefinedDeliveryAddress = "foo"; 1674 o.predefinedDeliveryAddress = "foo";
1673 o.promotions = buildUnnamed1508(); 1675 o.promotions = buildUnnamed1518();
1674 o.shippingCost = buildPrice(); 1676 o.shippingCost = buildPrice();
1675 o.shippingCostTax = buildPrice(); 1677 o.shippingCostTax = buildPrice();
1676 o.shippingOption = "foo"; 1678 o.shippingOption = "foo";
1677 } 1679 }
1678 buildCounterTestOrder--; 1680 buildCounterTestOrder--;
1679 return o; 1681 return o;
1680 } 1682 }
1681 1683
1682 checkTestOrder(api.TestOrder o) { 1684 checkTestOrder(api.TestOrder o) {
1683 buildCounterTestOrder++; 1685 buildCounterTestOrder++;
1684 if (buildCounterTestOrder < 3) { 1686 if (buildCounterTestOrder < 3) {
1685 checkTestOrderCustomer(o.customer); 1687 checkTestOrderCustomer(o.customer);
1686 unittest.expect(o.kind, unittest.equals('foo')); 1688 unittest.expect(o.kind, unittest.equals('foo'));
1687 checkUnnamed1507(o.lineItems); 1689 checkUnnamed1517(o.lineItems);
1688 checkTestOrderPaymentMethod(o.paymentMethod); 1690 checkTestOrderPaymentMethod(o.paymentMethod);
1689 unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo')); 1691 unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo'));
1690 checkUnnamed1508(o.promotions); 1692 checkUnnamed1518(o.promotions);
1691 checkPrice(o.shippingCost); 1693 checkPrice(o.shippingCost);
1692 checkPrice(o.shippingCostTax); 1694 checkPrice(o.shippingCostTax);
1693 unittest.expect(o.shippingOption, unittest.equals('foo')); 1695 unittest.expect(o.shippingOption, unittest.equals('foo'));
1694 } 1696 }
1695 buildCounterTestOrder--; 1697 buildCounterTestOrder--;
1696 } 1698 }
1697 1699
1698 core.int buildCounterTestOrderCustomer = 0; 1700 core.int buildCounterTestOrderCustomer = 0;
1699 buildTestOrderCustomer() { 1701 buildTestOrderCustomer() {
1700 var o = new api.TestOrderCustomer(); 1702 var o = new api.TestOrderCustomer();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1738 if (buildCounterTestOrderLineItem < 3) { 1740 if (buildCounterTestOrderLineItem < 3) {
1739 checkTestOrderLineItemProduct(o.product); 1741 checkTestOrderLineItemProduct(o.product);
1740 unittest.expect(o.quantityOrdered, unittest.equals(42)); 1742 unittest.expect(o.quantityOrdered, unittest.equals(42));
1741 checkOrderLineItemReturnInfo(o.returnInfo); 1743 checkOrderLineItemReturnInfo(o.returnInfo);
1742 checkOrderLineItemShippingDetails(o.shippingDetails); 1744 checkOrderLineItemShippingDetails(o.shippingDetails);
1743 checkPrice(o.unitTax); 1745 checkPrice(o.unitTax);
1744 } 1746 }
1745 buildCounterTestOrderLineItem--; 1747 buildCounterTestOrderLineItem--;
1746 } 1748 }
1747 1749
1748 buildUnnamed1509() { 1750 buildUnnamed1519() {
1749 var o = new core.List<api.OrderLineItemProductVariantAttribute>(); 1751 var o = new core.List<api.OrderLineItemProductVariantAttribute>();
1750 o.add(buildOrderLineItemProductVariantAttribute()); 1752 o.add(buildOrderLineItemProductVariantAttribute());
1751 o.add(buildOrderLineItemProductVariantAttribute()); 1753 o.add(buildOrderLineItemProductVariantAttribute());
1752 return o; 1754 return o;
1753 } 1755 }
1754 1756
1755 checkUnnamed1509(core.List<api.OrderLineItemProductVariantAttribute> o) { 1757 checkUnnamed1519(core.List<api.OrderLineItemProductVariantAttribute> o) {
1756 unittest.expect(o, unittest.hasLength(2)); 1758 unittest.expect(o, unittest.hasLength(2));
1757 checkOrderLineItemProductVariantAttribute(o[0]); 1759 checkOrderLineItemProductVariantAttribute(o[0]);
1758 checkOrderLineItemProductVariantAttribute(o[1]); 1760 checkOrderLineItemProductVariantAttribute(o[1]);
1759 } 1761 }
1760 1762
1761 core.int buildCounterTestOrderLineItemProduct = 0; 1763 core.int buildCounterTestOrderLineItemProduct = 0;
1762 buildTestOrderLineItemProduct() { 1764 buildTestOrderLineItemProduct() {
1763 var o = new api.TestOrderLineItemProduct(); 1765 var o = new api.TestOrderLineItemProduct();
1764 buildCounterTestOrderLineItemProduct++; 1766 buildCounterTestOrderLineItemProduct++;
1765 if (buildCounterTestOrderLineItemProduct < 3) { 1767 if (buildCounterTestOrderLineItemProduct < 3) {
1766 o.brand = "foo"; 1768 o.brand = "foo";
1767 o.channel = "foo"; 1769 o.channel = "foo";
1768 o.condition = "foo"; 1770 o.condition = "foo";
1769 o.contentLanguage = "foo"; 1771 o.contentLanguage = "foo";
1770 o.gtin = "foo"; 1772 o.gtin = "foo";
1771 o.imageLink = "foo"; 1773 o.imageLink = "foo";
1772 o.itemGroupId = "foo"; 1774 o.itemGroupId = "foo";
1773 o.mpn = "foo"; 1775 o.mpn = "foo";
1774 o.offerId = "foo"; 1776 o.offerId = "foo";
1775 o.price = buildPrice(); 1777 o.price = buildPrice();
1776 o.targetCountry = "foo"; 1778 o.targetCountry = "foo";
1777 o.title = "foo"; 1779 o.title = "foo";
1778 o.variantAttributes = buildUnnamed1509(); 1780 o.variantAttributes = buildUnnamed1519();
1779 } 1781 }
1780 buildCounterTestOrderLineItemProduct--; 1782 buildCounterTestOrderLineItemProduct--;
1781 return o; 1783 return o;
1782 } 1784 }
1783 1785
1784 checkTestOrderLineItemProduct(api.TestOrderLineItemProduct o) { 1786 checkTestOrderLineItemProduct(api.TestOrderLineItemProduct o) {
1785 buildCounterTestOrderLineItemProduct++; 1787 buildCounterTestOrderLineItemProduct++;
1786 if (buildCounterTestOrderLineItemProduct < 3) { 1788 if (buildCounterTestOrderLineItemProduct < 3) {
1787 unittest.expect(o.brand, unittest.equals('foo')); 1789 unittest.expect(o.brand, unittest.equals('foo'));
1788 unittest.expect(o.channel, unittest.equals('foo')); 1790 unittest.expect(o.channel, unittest.equals('foo'));
1789 unittest.expect(o.condition, unittest.equals('foo')); 1791 unittest.expect(o.condition, unittest.equals('foo'));
1790 unittest.expect(o.contentLanguage, unittest.equals('foo')); 1792 unittest.expect(o.contentLanguage, unittest.equals('foo'));
1791 unittest.expect(o.gtin, unittest.equals('foo')); 1793 unittest.expect(o.gtin, unittest.equals('foo'));
1792 unittest.expect(o.imageLink, unittest.equals('foo')); 1794 unittest.expect(o.imageLink, unittest.equals('foo'));
1793 unittest.expect(o.itemGroupId, unittest.equals('foo')); 1795 unittest.expect(o.itemGroupId, unittest.equals('foo'));
1794 unittest.expect(o.mpn, unittest.equals('foo')); 1796 unittest.expect(o.mpn, unittest.equals('foo'));
1795 unittest.expect(o.offerId, unittest.equals('foo')); 1797 unittest.expect(o.offerId, unittest.equals('foo'));
1796 checkPrice(o.price); 1798 checkPrice(o.price);
1797 unittest.expect(o.targetCountry, unittest.equals('foo')); 1799 unittest.expect(o.targetCountry, unittest.equals('foo'));
1798 unittest.expect(o.title, unittest.equals('foo')); 1800 unittest.expect(o.title, unittest.equals('foo'));
1799 checkUnnamed1509(o.variantAttributes); 1801 checkUnnamed1519(o.variantAttributes);
1800 } 1802 }
1801 buildCounterTestOrderLineItemProduct--; 1803 buildCounterTestOrderLineItemProduct--;
1802 } 1804 }
1803 1805
1804 core.int buildCounterTestOrderPaymentMethod = 0; 1806 core.int buildCounterTestOrderPaymentMethod = 0;
1805 buildTestOrderPaymentMethod() { 1807 buildTestOrderPaymentMethod() {
1806 var o = new api.TestOrderPaymentMethod(); 1808 var o = new api.TestOrderPaymentMethod();
1807 buildCounterTestOrderPaymentMethod++; 1809 buildCounterTestOrderPaymentMethod++;
1808 if (buildCounterTestOrderPaymentMethod < 3) { 1810 if (buildCounterTestOrderPaymentMethod < 3) {
1809 o.expirationMonth = 42; 1811 o.expirationMonth = 42;
(...skipping 11 matching lines...) Expand all
1821 if (buildCounterTestOrderPaymentMethod < 3) { 1823 if (buildCounterTestOrderPaymentMethod < 3) {
1822 unittest.expect(o.expirationMonth, unittest.equals(42)); 1824 unittest.expect(o.expirationMonth, unittest.equals(42));
1823 unittest.expect(o.expirationYear, unittest.equals(42)); 1825 unittest.expect(o.expirationYear, unittest.equals(42));
1824 unittest.expect(o.lastFourDigits, unittest.equals('foo')); 1826 unittest.expect(o.lastFourDigits, unittest.equals('foo'));
1825 unittest.expect(o.predefinedBillingAddress, unittest.equals('foo')); 1827 unittest.expect(o.predefinedBillingAddress, unittest.equals('foo'));
1826 unittest.expect(o.type, unittest.equals('foo')); 1828 unittest.expect(o.type, unittest.equals('foo'));
1827 } 1829 }
1828 buildCounterTestOrderPaymentMethod--; 1830 buildCounterTestOrderPaymentMethod--;
1829 } 1831 }
1830 1832
1831 buildUnnamed1510() { 1833 buildUnnamed1520() {
1832 var o = new core.List<core.String>(); 1834 var o = new core.List<core.String>();
1833 o.add("foo"); 1835 o.add("foo");
1834 o.add("foo"); 1836 o.add("foo");
1835 return o; 1837 return o;
1836 } 1838 }
1837 1839
1838 checkUnnamed1510(core.List<core.String> o) { 1840 checkUnnamed1520(core.List<core.String> o) {
1839 unittest.expect(o, unittest.hasLength(2)); 1841 unittest.expect(o, unittest.hasLength(2));
1840 unittest.expect(o[0], unittest.equals('foo')); 1842 unittest.expect(o[0], unittest.equals('foo'));
1841 unittest.expect(o[1], unittest.equals('foo')); 1843 unittest.expect(o[1], unittest.equals('foo'));
1842 } 1844 }
1843 1845
1844 1846
1845 main() { 1847 main() {
1846 unittest.group("obj-schema-Error", () { 1848 unittest.group("obj-schema-Error", () {
1847 unittest.test("to-json--from-json", () { 1849 unittest.test("to-json--from-json", () {
1848 var o = buildError(); 1850 var o = buildError();
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
2778 2780
2779 var mock = new HttpServerMock(); 2781 var mock = new HttpServerMock();
2780 api.OrdersResourceApi res = new api.ContentApi(mock).orders; 2782 api.OrdersResourceApi res = new api.ContentApi(mock).orders;
2781 var arg_merchantId = "foo"; 2783 var arg_merchantId = "foo";
2782 var arg_acknowledged = true; 2784 var arg_acknowledged = true;
2783 var arg_maxResults = 42; 2785 var arg_maxResults = 42;
2784 var arg_orderBy = "foo"; 2786 var arg_orderBy = "foo";
2785 var arg_pageToken = "foo"; 2787 var arg_pageToken = "foo";
2786 var arg_placedDateEnd = "foo"; 2788 var arg_placedDateEnd = "foo";
2787 var arg_placedDateStart = "foo"; 2789 var arg_placedDateStart = "foo";
2788 var arg_statuses = buildUnnamed1510(); 2790 var arg_statuses = buildUnnamed1520();
2789 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2791 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2790 var path = (req.url).path; 2792 var path = (req.url).path;
2791 var pathOffset = 0; 2793 var pathOffset = 0;
2792 var index; 2794 var index;
2793 var subPart; 2795 var subPart;
2794 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2796 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2795 pathOffset += 1; 2797 pathOffset += 1;
2796 2798
2797 var query = (req.url).query; 2799 var query = (req.url).query;
2798 var queryOffset = 0; 2800 var queryOffset = 0;
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
3063 res.updateshipment(arg_request, arg_merchantId, arg_orderId).then(unittest .expectAsync(((api.OrdersUpdateShipmentResponse response) { 3065 res.updateshipment(arg_request, arg_merchantId, arg_orderId).then(unittest .expectAsync(((api.OrdersUpdateShipmentResponse response) {
3064 checkOrdersUpdateShipmentResponse(response); 3066 checkOrdersUpdateShipmentResponse(response);
3065 }))); 3067 })));
3066 }); 3068 });
3067 3069
3068 }); 3070 });
3069 3071
3070 3072
3071 } 3073 }
3072 3074
OLDNEW
« no previous file with comments | « generated/googleapis/test/content/v2_test.dart ('k') | generated/googleapis/test/customsearch/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698