| OLD | NEW |
| 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 Loading... |
| 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 buildUnnamed1459() { | 77 buildUnnamed1760() { |
| 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 checkUnnamed1459(core.List<api.Error> o) { | 84 checkUnnamed1760(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 = buildUnnamed1459(); | 96 o.errors = buildUnnamed1760(); |
| 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 checkUnnamed1459(o.errors); | 107 checkUnnamed1760(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 buildUnnamed1460() { | 113 buildUnnamed1761() { |
| 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 checkUnnamed1460(core.List<api.OrderLineItem> o) { | 120 checkUnnamed1761(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 buildUnnamed1461() { | 126 buildUnnamed1762() { |
| 127 var o = new core.List<api.OrderPromotion>(); |
| 128 o.add(buildOrderPromotion()); |
| 129 o.add(buildOrderPromotion()); |
| 130 return o; |
| 131 } |
| 132 |
| 133 checkUnnamed1762(core.List<api.OrderPromotion> o) { |
| 134 unittest.expect(o, unittest.hasLength(2)); |
| 135 checkOrderPromotion(o[0]); |
| 136 checkOrderPromotion(o[1]); |
| 137 } |
| 138 |
| 139 buildUnnamed1763() { |
| 127 var o = new core.List<api.OrderRefund>(); | 140 var o = new core.List<api.OrderRefund>(); |
| 128 o.add(buildOrderRefund()); | 141 o.add(buildOrderRefund()); |
| 129 o.add(buildOrderRefund()); | 142 o.add(buildOrderRefund()); |
| 130 return o; | 143 return o; |
| 131 } | 144 } |
| 132 | 145 |
| 133 checkUnnamed1461(core.List<api.OrderRefund> o) { | 146 checkUnnamed1763(core.List<api.OrderRefund> o) { |
| 134 unittest.expect(o, unittest.hasLength(2)); | 147 unittest.expect(o, unittest.hasLength(2)); |
| 135 checkOrderRefund(o[0]); | 148 checkOrderRefund(o[0]); |
| 136 checkOrderRefund(o[1]); | 149 checkOrderRefund(o[1]); |
| 137 } | 150 } |
| 138 | 151 |
| 139 buildUnnamed1462() { | 152 buildUnnamed1764() { |
| 140 var o = new core.List<api.OrderShipment>(); | 153 var o = new core.List<api.OrderShipment>(); |
| 141 o.add(buildOrderShipment()); | 154 o.add(buildOrderShipment()); |
| 142 o.add(buildOrderShipment()); | 155 o.add(buildOrderShipment()); |
| 143 return o; | 156 return o; |
| 144 } | 157 } |
| 145 | 158 |
| 146 checkUnnamed1462(core.List<api.OrderShipment> o) { | 159 checkUnnamed1764(core.List<api.OrderShipment> o) { |
| 147 unittest.expect(o, unittest.hasLength(2)); | 160 unittest.expect(o, unittest.hasLength(2)); |
| 148 checkOrderShipment(o[0]); | 161 checkOrderShipment(o[0]); |
| 149 checkOrderShipment(o[1]); | 162 checkOrderShipment(o[1]); |
| 150 } | 163 } |
| 151 | 164 |
| 152 core.int buildCounterOrder = 0; | 165 core.int buildCounterOrder = 0; |
| 153 buildOrder() { | 166 buildOrder() { |
| 154 var o = new api.Order(); | 167 var o = new api.Order(); |
| 155 buildCounterOrder++; | 168 buildCounterOrder++; |
| 156 if (buildCounterOrder < 3) { | 169 if (buildCounterOrder < 3) { |
| 157 o.acknowledged = true; | 170 o.acknowledged = true; |
| 158 o.customer = buildOrderCustomer(); | 171 o.customer = buildOrderCustomer(); |
| 159 o.deliveryDetails = buildOrderDeliveryDetails(); | 172 o.deliveryDetails = buildOrderDeliveryDetails(); |
| 160 o.id = "foo"; | 173 o.id = "foo"; |
| 161 o.kind = "foo"; | 174 o.kind = "foo"; |
| 162 o.lineItems = buildUnnamed1460(); | 175 o.lineItems = buildUnnamed1761(); |
| 163 o.merchantId = "foo"; | 176 o.merchantId = "foo"; |
| 164 o.merchantOrderId = "foo"; | 177 o.merchantOrderId = "foo"; |
| 165 o.netAmount = buildPrice(); | 178 o.netAmount = buildPrice(); |
| 166 o.paymentMethod = buildOrderPaymentMethod(); | 179 o.paymentMethod = buildOrderPaymentMethod(); |
| 167 o.paymentStatus = "foo"; | 180 o.paymentStatus = "foo"; |
| 168 o.placedDate = "foo"; | 181 o.placedDate = "foo"; |
| 169 o.refunds = buildUnnamed1461(); | 182 o.promotions = buildUnnamed1762(); |
| 170 o.shipments = buildUnnamed1462(); | 183 o.refunds = buildUnnamed1763(); |
| 184 o.shipments = buildUnnamed1764(); |
| 171 o.shippingCost = buildPrice(); | 185 o.shippingCost = buildPrice(); |
| 172 o.shippingCostTax = buildPrice(); | 186 o.shippingCostTax = buildPrice(); |
| 173 o.shippingOption = "foo"; | 187 o.shippingOption = "foo"; |
| 174 o.status = "foo"; | 188 o.status = "foo"; |
| 175 } | 189 } |
| 176 buildCounterOrder--; | 190 buildCounterOrder--; |
| 177 return o; | 191 return o; |
| 178 } | 192 } |
| 179 | 193 |
| 180 checkOrder(api.Order o) { | 194 checkOrder(api.Order o) { |
| 181 buildCounterOrder++; | 195 buildCounterOrder++; |
| 182 if (buildCounterOrder < 3) { | 196 if (buildCounterOrder < 3) { |
| 183 unittest.expect(o.acknowledged, unittest.isTrue); | 197 unittest.expect(o.acknowledged, unittest.isTrue); |
| 184 checkOrderCustomer(o.customer); | 198 checkOrderCustomer(o.customer); |
| 185 checkOrderDeliveryDetails(o.deliveryDetails); | 199 checkOrderDeliveryDetails(o.deliveryDetails); |
| 186 unittest.expect(o.id, unittest.equals('foo')); | 200 unittest.expect(o.id, unittest.equals('foo')); |
| 187 unittest.expect(o.kind, unittest.equals('foo')); | 201 unittest.expect(o.kind, unittest.equals('foo')); |
| 188 checkUnnamed1460(o.lineItems); | 202 checkUnnamed1761(o.lineItems); |
| 189 unittest.expect(o.merchantId, unittest.equals('foo')); | 203 unittest.expect(o.merchantId, unittest.equals('foo')); |
| 190 unittest.expect(o.merchantOrderId, unittest.equals('foo')); | 204 unittest.expect(o.merchantOrderId, unittest.equals('foo')); |
| 191 checkPrice(o.netAmount); | 205 checkPrice(o.netAmount); |
| 192 checkOrderPaymentMethod(o.paymentMethod); | 206 checkOrderPaymentMethod(o.paymentMethod); |
| 193 unittest.expect(o.paymentStatus, unittest.equals('foo')); | 207 unittest.expect(o.paymentStatus, unittest.equals('foo')); |
| 194 unittest.expect(o.placedDate, unittest.equals('foo')); | 208 unittest.expect(o.placedDate, unittest.equals('foo')); |
| 195 checkUnnamed1461(o.refunds); | 209 checkUnnamed1762(o.promotions); |
| 196 checkUnnamed1462(o.shipments); | 210 checkUnnamed1763(o.refunds); |
| 211 checkUnnamed1764(o.shipments); |
| 197 checkPrice(o.shippingCost); | 212 checkPrice(o.shippingCost); |
| 198 checkPrice(o.shippingCostTax); | 213 checkPrice(o.shippingCostTax); |
| 199 unittest.expect(o.shippingOption, unittest.equals('foo')); | 214 unittest.expect(o.shippingOption, unittest.equals('foo')); |
| 200 unittest.expect(o.status, unittest.equals('foo')); | 215 unittest.expect(o.status, unittest.equals('foo')); |
| 201 } | 216 } |
| 202 buildCounterOrder--; | 217 buildCounterOrder--; |
| 203 } | 218 } |
| 204 | 219 |
| 205 buildUnnamed1463() { | 220 buildUnnamed1765() { |
| 206 var o = new core.List<core.String>(); | 221 var o = new core.List<core.String>(); |
| 207 o.add("foo"); | 222 o.add("foo"); |
| 208 o.add("foo"); | 223 o.add("foo"); |
| 209 return o; | 224 return o; |
| 210 } | 225 } |
| 211 | 226 |
| 212 checkUnnamed1463(core.List<core.String> o) { | 227 checkUnnamed1765(core.List<core.String> o) { |
| 213 unittest.expect(o, unittest.hasLength(2)); | 228 unittest.expect(o, unittest.hasLength(2)); |
| 214 unittest.expect(o[0], unittest.equals('foo')); | 229 unittest.expect(o[0], unittest.equals('foo')); |
| 215 unittest.expect(o[1], unittest.equals('foo')); | 230 unittest.expect(o[1], unittest.equals('foo')); |
| 216 } | 231 } |
| 217 | 232 |
| 218 buildUnnamed1464() { | 233 buildUnnamed1766() { |
| 219 var o = new core.List<core.String>(); | 234 var o = new core.List<core.String>(); |
| 220 o.add("foo"); | 235 o.add("foo"); |
| 221 o.add("foo"); | 236 o.add("foo"); |
| 222 return o; | 237 return o; |
| 223 } | 238 } |
| 224 | 239 |
| 225 checkUnnamed1464(core.List<core.String> o) { | 240 checkUnnamed1766(core.List<core.String> o) { |
| 226 unittest.expect(o, unittest.hasLength(2)); | 241 unittest.expect(o, unittest.hasLength(2)); |
| 227 unittest.expect(o[0], unittest.equals('foo')); | 242 unittest.expect(o[0], unittest.equals('foo')); |
| 228 unittest.expect(o[1], unittest.equals('foo')); | 243 unittest.expect(o[1], unittest.equals('foo')); |
| 229 } | 244 } |
| 230 | 245 |
| 231 core.int buildCounterOrderAddress = 0; | 246 core.int buildCounterOrderAddress = 0; |
| 232 buildOrderAddress() { | 247 buildOrderAddress() { |
| 233 var o = new api.OrderAddress(); | 248 var o = new api.OrderAddress(); |
| 234 buildCounterOrderAddress++; | 249 buildCounterOrderAddress++; |
| 235 if (buildCounterOrderAddress < 3) { | 250 if (buildCounterOrderAddress < 3) { |
| 236 o.country = "foo"; | 251 o.country = "foo"; |
| 237 o.fullAddress = buildUnnamed1463(); | 252 o.fullAddress = buildUnnamed1765(); |
| 238 o.isPostOfficeBox = true; | 253 o.isPostOfficeBox = true; |
| 239 o.locality = "foo"; | 254 o.locality = "foo"; |
| 240 o.postalCode = "foo"; | 255 o.postalCode = "foo"; |
| 241 o.recipientName = "foo"; | 256 o.recipientName = "foo"; |
| 242 o.region = "foo"; | 257 o.region = "foo"; |
| 243 o.streetAddress = buildUnnamed1464(); | 258 o.streetAddress = buildUnnamed1766(); |
| 244 } | 259 } |
| 245 buildCounterOrderAddress--; | 260 buildCounterOrderAddress--; |
| 246 return o; | 261 return o; |
| 247 } | 262 } |
| 248 | 263 |
| 249 checkOrderAddress(api.OrderAddress o) { | 264 checkOrderAddress(api.OrderAddress o) { |
| 250 buildCounterOrderAddress++; | 265 buildCounterOrderAddress++; |
| 251 if (buildCounterOrderAddress < 3) { | 266 if (buildCounterOrderAddress < 3) { |
| 252 unittest.expect(o.country, unittest.equals('foo')); | 267 unittest.expect(o.country, unittest.equals('foo')); |
| 253 checkUnnamed1463(o.fullAddress); | 268 checkUnnamed1765(o.fullAddress); |
| 254 unittest.expect(o.isPostOfficeBox, unittest.isTrue); | 269 unittest.expect(o.isPostOfficeBox, unittest.isTrue); |
| 255 unittest.expect(o.locality, unittest.equals('foo')); | 270 unittest.expect(o.locality, unittest.equals('foo')); |
| 256 unittest.expect(o.postalCode, unittest.equals('foo')); | 271 unittest.expect(o.postalCode, unittest.equals('foo')); |
| 257 unittest.expect(o.recipientName, unittest.equals('foo')); | 272 unittest.expect(o.recipientName, unittest.equals('foo')); |
| 258 unittest.expect(o.region, unittest.equals('foo')); | 273 unittest.expect(o.region, unittest.equals('foo')); |
| 259 checkUnnamed1464(o.streetAddress); | 274 checkUnnamed1766(o.streetAddress); |
| 260 } | 275 } |
| 261 buildCounterOrderAddress--; | 276 buildCounterOrderAddress--; |
| 262 } | 277 } |
| 263 | 278 |
| 264 core.int buildCounterOrderCancellation = 0; | 279 core.int buildCounterOrderCancellation = 0; |
| 265 buildOrderCancellation() { | 280 buildOrderCancellation() { |
| 266 var o = new api.OrderCancellation(); | 281 var o = new api.OrderCancellation(); |
| 267 buildCounterOrderCancellation++; | 282 buildCounterOrderCancellation++; |
| 268 if (buildCounterOrderCancellation < 3) { | 283 if (buildCounterOrderCancellation < 3) { |
| 269 o.actor = "foo"; | 284 o.actor = "foo"; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 | 340 |
| 326 checkOrderDeliveryDetails(api.OrderDeliveryDetails o) { | 341 checkOrderDeliveryDetails(api.OrderDeliveryDetails o) { |
| 327 buildCounterOrderDeliveryDetails++; | 342 buildCounterOrderDeliveryDetails++; |
| 328 if (buildCounterOrderDeliveryDetails < 3) { | 343 if (buildCounterOrderDeliveryDetails < 3) { |
| 329 checkOrderAddress(o.address); | 344 checkOrderAddress(o.address); |
| 330 unittest.expect(o.phoneNumber, unittest.equals('foo')); | 345 unittest.expect(o.phoneNumber, unittest.equals('foo')); |
| 331 } | 346 } |
| 332 buildCounterOrderDeliveryDetails--; | 347 buildCounterOrderDeliveryDetails--; |
| 333 } | 348 } |
| 334 | 349 |
| 335 buildUnnamed1465() { | 350 buildUnnamed1767() { |
| 336 var o = new core.List<api.OrderCancellation>(); | 351 var o = new core.List<api.OrderCancellation>(); |
| 337 o.add(buildOrderCancellation()); | 352 o.add(buildOrderCancellation()); |
| 338 o.add(buildOrderCancellation()); | 353 o.add(buildOrderCancellation()); |
| 339 return o; | 354 return o; |
| 340 } | 355 } |
| 341 | 356 |
| 342 checkUnnamed1465(core.List<api.OrderCancellation> o) { | 357 checkUnnamed1767(core.List<api.OrderCancellation> o) { |
| 343 unittest.expect(o, unittest.hasLength(2)); | 358 unittest.expect(o, unittest.hasLength(2)); |
| 344 checkOrderCancellation(o[0]); | 359 checkOrderCancellation(o[0]); |
| 345 checkOrderCancellation(o[1]); | 360 checkOrderCancellation(o[1]); |
| 346 } | 361 } |
| 347 | 362 |
| 348 buildUnnamed1466() { | 363 buildUnnamed1768() { |
| 349 var o = new core.List<api.OrderReturn>(); | 364 var o = new core.List<api.OrderReturn>(); |
| 350 o.add(buildOrderReturn()); | 365 o.add(buildOrderReturn()); |
| 351 o.add(buildOrderReturn()); | 366 o.add(buildOrderReturn()); |
| 352 return o; | 367 return o; |
| 353 } | 368 } |
| 354 | 369 |
| 355 checkUnnamed1466(core.List<api.OrderReturn> o) { | 370 checkUnnamed1768(core.List<api.OrderReturn> o) { |
| 356 unittest.expect(o, unittest.hasLength(2)); | 371 unittest.expect(o, unittest.hasLength(2)); |
| 357 checkOrderReturn(o[0]); | 372 checkOrderReturn(o[0]); |
| 358 checkOrderReturn(o[1]); | 373 checkOrderReturn(o[1]); |
| 359 } | 374 } |
| 360 | 375 |
| 361 core.int buildCounterOrderLineItem = 0; | 376 core.int buildCounterOrderLineItem = 0; |
| 362 buildOrderLineItem() { | 377 buildOrderLineItem() { |
| 363 var o = new api.OrderLineItem(); | 378 var o = new api.OrderLineItem(); |
| 364 buildCounterOrderLineItem++; | 379 buildCounterOrderLineItem++; |
| 365 if (buildCounterOrderLineItem < 3) { | 380 if (buildCounterOrderLineItem < 3) { |
| 366 o.cancellations = buildUnnamed1465(); | 381 o.cancellations = buildUnnamed1767(); |
| 367 o.id = "foo"; | 382 o.id = "foo"; |
| 368 o.price = buildPrice(); | 383 o.price = buildPrice(); |
| 369 o.product = buildOrderLineItemProduct(); | 384 o.product = buildOrderLineItemProduct(); |
| 370 o.quantityCanceled = 42; | 385 o.quantityCanceled = 42; |
| 371 o.quantityDelivered = 42; | 386 o.quantityDelivered = 42; |
| 372 o.quantityOrdered = 42; | 387 o.quantityOrdered = 42; |
| 373 o.quantityPending = 42; | 388 o.quantityPending = 42; |
| 374 o.quantityReturned = 42; | 389 o.quantityReturned = 42; |
| 375 o.quantityShipped = 42; | 390 o.quantityShipped = 42; |
| 376 o.returnInfo = buildOrderLineItemReturnInfo(); | 391 o.returnInfo = buildOrderLineItemReturnInfo(); |
| 377 o.returns = buildUnnamed1466(); | 392 o.returns = buildUnnamed1768(); |
| 378 o.shippingDetails = buildOrderLineItemShippingDetails(); | 393 o.shippingDetails = buildOrderLineItemShippingDetails(); |
| 379 o.tax = buildPrice(); | 394 o.tax = buildPrice(); |
| 380 } | 395 } |
| 381 buildCounterOrderLineItem--; | 396 buildCounterOrderLineItem--; |
| 382 return o; | 397 return o; |
| 383 } | 398 } |
| 384 | 399 |
| 385 checkOrderLineItem(api.OrderLineItem o) { | 400 checkOrderLineItem(api.OrderLineItem o) { |
| 386 buildCounterOrderLineItem++; | 401 buildCounterOrderLineItem++; |
| 387 if (buildCounterOrderLineItem < 3) { | 402 if (buildCounterOrderLineItem < 3) { |
| 388 checkUnnamed1465(o.cancellations); | 403 checkUnnamed1767(o.cancellations); |
| 389 unittest.expect(o.id, unittest.equals('foo')); | 404 unittest.expect(o.id, unittest.equals('foo')); |
| 390 checkPrice(o.price); | 405 checkPrice(o.price); |
| 391 checkOrderLineItemProduct(o.product); | 406 checkOrderLineItemProduct(o.product); |
| 392 unittest.expect(o.quantityCanceled, unittest.equals(42)); | 407 unittest.expect(o.quantityCanceled, unittest.equals(42)); |
| 393 unittest.expect(o.quantityDelivered, unittest.equals(42)); | 408 unittest.expect(o.quantityDelivered, unittest.equals(42)); |
| 394 unittest.expect(o.quantityOrdered, unittest.equals(42)); | 409 unittest.expect(o.quantityOrdered, unittest.equals(42)); |
| 395 unittest.expect(o.quantityPending, unittest.equals(42)); | 410 unittest.expect(o.quantityPending, unittest.equals(42)); |
| 396 unittest.expect(o.quantityReturned, unittest.equals(42)); | 411 unittest.expect(o.quantityReturned, unittest.equals(42)); |
| 397 unittest.expect(o.quantityShipped, unittest.equals(42)); | 412 unittest.expect(o.quantityShipped, unittest.equals(42)); |
| 398 checkOrderLineItemReturnInfo(o.returnInfo); | 413 checkOrderLineItemReturnInfo(o.returnInfo); |
| 399 checkUnnamed1466(o.returns); | 414 checkUnnamed1768(o.returns); |
| 400 checkOrderLineItemShippingDetails(o.shippingDetails); | 415 checkOrderLineItemShippingDetails(o.shippingDetails); |
| 401 checkPrice(o.tax); | 416 checkPrice(o.tax); |
| 402 } | 417 } |
| 403 buildCounterOrderLineItem--; | 418 buildCounterOrderLineItem--; |
| 404 } | 419 } |
| 405 | 420 |
| 406 buildUnnamed1467() { | 421 buildUnnamed1769() { |
| 407 var o = new core.List<api.OrderLineItemProductVariantAttribute>(); | 422 var o = new core.List<api.OrderLineItemProductVariantAttribute>(); |
| 408 o.add(buildOrderLineItemProductVariantAttribute()); | 423 o.add(buildOrderLineItemProductVariantAttribute()); |
| 409 o.add(buildOrderLineItemProductVariantAttribute()); | 424 o.add(buildOrderLineItemProductVariantAttribute()); |
| 410 return o; | 425 return o; |
| 411 } | 426 } |
| 412 | 427 |
| 413 checkUnnamed1467(core.List<api.OrderLineItemProductVariantAttribute> o) { | 428 checkUnnamed1769(core.List<api.OrderLineItemProductVariantAttribute> o) { |
| 414 unittest.expect(o, unittest.hasLength(2)); | 429 unittest.expect(o, unittest.hasLength(2)); |
| 415 checkOrderLineItemProductVariantAttribute(o[0]); | 430 checkOrderLineItemProductVariantAttribute(o[0]); |
| 416 checkOrderLineItemProductVariantAttribute(o[1]); | 431 checkOrderLineItemProductVariantAttribute(o[1]); |
| 417 } | 432 } |
| 418 | 433 |
| 419 core.int buildCounterOrderLineItemProduct = 0; | 434 core.int buildCounterOrderLineItemProduct = 0; |
| 420 buildOrderLineItemProduct() { | 435 buildOrderLineItemProduct() { |
| 421 var o = new api.OrderLineItemProduct(); | 436 var o = new api.OrderLineItemProduct(); |
| 422 buildCounterOrderLineItemProduct++; | 437 buildCounterOrderLineItemProduct++; |
| 423 if (buildCounterOrderLineItemProduct < 3) { | 438 if (buildCounterOrderLineItemProduct < 3) { |
| 424 o.brand = "foo"; | 439 o.brand = "foo"; |
| 425 o.channel = "foo"; | 440 o.channel = "foo"; |
| 426 o.condition = "foo"; | 441 o.condition = "foo"; |
| 427 o.contentLanguage = "foo"; | 442 o.contentLanguage = "foo"; |
| 428 o.gtin = "foo"; | 443 o.gtin = "foo"; |
| 429 o.id = "foo"; | 444 o.id = "foo"; |
| 430 o.imageLink = "foo"; | 445 o.imageLink = "foo"; |
| 431 o.itemGroupId = "foo"; | 446 o.itemGroupId = "foo"; |
| 432 o.mpn = "foo"; | 447 o.mpn = "foo"; |
| 433 o.offerId = "foo"; | 448 o.offerId = "foo"; |
| 434 o.price = buildPrice(); | 449 o.price = buildPrice(); |
| 435 o.shownImage = "foo"; | 450 o.shownImage = "foo"; |
| 436 o.targetCountry = "foo"; | 451 o.targetCountry = "foo"; |
| 437 o.title = "foo"; | 452 o.title = "foo"; |
| 438 o.variantAttributes = buildUnnamed1467(); | 453 o.variantAttributes = buildUnnamed1769(); |
| 439 } | 454 } |
| 440 buildCounterOrderLineItemProduct--; | 455 buildCounterOrderLineItemProduct--; |
| 441 return o; | 456 return o; |
| 442 } | 457 } |
| 443 | 458 |
| 444 checkOrderLineItemProduct(api.OrderLineItemProduct o) { | 459 checkOrderLineItemProduct(api.OrderLineItemProduct o) { |
| 445 buildCounterOrderLineItemProduct++; | 460 buildCounterOrderLineItemProduct++; |
| 446 if (buildCounterOrderLineItemProduct < 3) { | 461 if (buildCounterOrderLineItemProduct < 3) { |
| 447 unittest.expect(o.brand, unittest.equals('foo')); | 462 unittest.expect(o.brand, unittest.equals('foo')); |
| 448 unittest.expect(o.channel, unittest.equals('foo')); | 463 unittest.expect(o.channel, unittest.equals('foo')); |
| 449 unittest.expect(o.condition, unittest.equals('foo')); | 464 unittest.expect(o.condition, unittest.equals('foo')); |
| 450 unittest.expect(o.contentLanguage, unittest.equals('foo')); | 465 unittest.expect(o.contentLanguage, unittest.equals('foo')); |
| 451 unittest.expect(o.gtin, unittest.equals('foo')); | 466 unittest.expect(o.gtin, unittest.equals('foo')); |
| 452 unittest.expect(o.id, unittest.equals('foo')); | 467 unittest.expect(o.id, unittest.equals('foo')); |
| 453 unittest.expect(o.imageLink, unittest.equals('foo')); | 468 unittest.expect(o.imageLink, unittest.equals('foo')); |
| 454 unittest.expect(o.itemGroupId, unittest.equals('foo')); | 469 unittest.expect(o.itemGroupId, unittest.equals('foo')); |
| 455 unittest.expect(o.mpn, unittest.equals('foo')); | 470 unittest.expect(o.mpn, unittest.equals('foo')); |
| 456 unittest.expect(o.offerId, unittest.equals('foo')); | 471 unittest.expect(o.offerId, unittest.equals('foo')); |
| 457 checkPrice(o.price); | 472 checkPrice(o.price); |
| 458 unittest.expect(o.shownImage, unittest.equals('foo')); | 473 unittest.expect(o.shownImage, unittest.equals('foo')); |
| 459 unittest.expect(o.targetCountry, unittest.equals('foo')); | 474 unittest.expect(o.targetCountry, unittest.equals('foo')); |
| 460 unittest.expect(o.title, unittest.equals('foo')); | 475 unittest.expect(o.title, unittest.equals('foo')); |
| 461 checkUnnamed1467(o.variantAttributes); | 476 checkUnnamed1769(o.variantAttributes); |
| 462 } | 477 } |
| 463 buildCounterOrderLineItemProduct--; | 478 buildCounterOrderLineItemProduct--; |
| 464 } | 479 } |
| 465 | 480 |
| 466 core.int buildCounterOrderLineItemProductVariantAttribute = 0; | 481 core.int buildCounterOrderLineItemProductVariantAttribute = 0; |
| 467 buildOrderLineItemProductVariantAttribute() { | 482 buildOrderLineItemProductVariantAttribute() { |
| 468 var o = new api.OrderLineItemProductVariantAttribute(); | 483 var o = new api.OrderLineItemProductVariantAttribute(); |
| 469 buildCounterOrderLineItemProductVariantAttribute++; | 484 buildCounterOrderLineItemProductVariantAttribute++; |
| 470 if (buildCounterOrderLineItemProductVariantAttribute < 3) { | 485 if (buildCounterOrderLineItemProductVariantAttribute < 3) { |
| 471 o.dimension = "foo"; | 486 o.dimension = "foo"; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 checkOrderAddress(o.billingAddress); | 592 checkOrderAddress(o.billingAddress); |
| 578 unittest.expect(o.expirationMonth, unittest.equals(42)); | 593 unittest.expect(o.expirationMonth, unittest.equals(42)); |
| 579 unittest.expect(o.expirationYear, unittest.equals(42)); | 594 unittest.expect(o.expirationYear, unittest.equals(42)); |
| 580 unittest.expect(o.lastFourDigits, unittest.equals('foo')); | 595 unittest.expect(o.lastFourDigits, unittest.equals('foo')); |
| 581 unittest.expect(o.phoneNumber, unittest.equals('foo')); | 596 unittest.expect(o.phoneNumber, unittest.equals('foo')); |
| 582 unittest.expect(o.type, unittest.equals('foo')); | 597 unittest.expect(o.type, unittest.equals('foo')); |
| 583 } | 598 } |
| 584 buildCounterOrderPaymentMethod--; | 599 buildCounterOrderPaymentMethod--; |
| 585 } | 600 } |
| 586 | 601 |
| 602 buildUnnamed1770() { |
| 603 var o = new core.List<api.OrderPromotionBenefit>(); |
| 604 o.add(buildOrderPromotionBenefit()); |
| 605 o.add(buildOrderPromotionBenefit()); |
| 606 return o; |
| 607 } |
| 608 |
| 609 checkUnnamed1770(core.List<api.OrderPromotionBenefit> o) { |
| 610 unittest.expect(o, unittest.hasLength(2)); |
| 611 checkOrderPromotionBenefit(o[0]); |
| 612 checkOrderPromotionBenefit(o[1]); |
| 613 } |
| 614 |
| 615 core.int buildCounterOrderPromotion = 0; |
| 616 buildOrderPromotion() { |
| 617 var o = new api.OrderPromotion(); |
| 618 buildCounterOrderPromotion++; |
| 619 if (buildCounterOrderPromotion < 3) { |
| 620 o.benefits = buildUnnamed1770(); |
| 621 o.effectiveDates = "foo"; |
| 622 o.genericRedemptionCode = "foo"; |
| 623 o.id = "foo"; |
| 624 o.longTitle = "foo"; |
| 625 o.productApplicability = "foo"; |
| 626 o.redemptionChannel = "foo"; |
| 627 } |
| 628 buildCounterOrderPromotion--; |
| 629 return o; |
| 630 } |
| 631 |
| 632 checkOrderPromotion(api.OrderPromotion o) { |
| 633 buildCounterOrderPromotion++; |
| 634 if (buildCounterOrderPromotion < 3) { |
| 635 checkUnnamed1770(o.benefits); |
| 636 unittest.expect(o.effectiveDates, unittest.equals('foo')); |
| 637 unittest.expect(o.genericRedemptionCode, unittest.equals('foo')); |
| 638 unittest.expect(o.id, unittest.equals('foo')); |
| 639 unittest.expect(o.longTitle, unittest.equals('foo')); |
| 640 unittest.expect(o.productApplicability, unittest.equals('foo')); |
| 641 unittest.expect(o.redemptionChannel, unittest.equals('foo')); |
| 642 } |
| 643 buildCounterOrderPromotion--; |
| 644 } |
| 645 |
| 646 buildUnnamed1771() { |
| 647 var o = new core.List<core.String>(); |
| 648 o.add("foo"); |
| 649 o.add("foo"); |
| 650 return o; |
| 651 } |
| 652 |
| 653 checkUnnamed1771(core.List<core.String> o) { |
| 654 unittest.expect(o, unittest.hasLength(2)); |
| 655 unittest.expect(o[0], unittest.equals('foo')); |
| 656 unittest.expect(o[1], unittest.equals('foo')); |
| 657 } |
| 658 |
| 659 core.int buildCounterOrderPromotionBenefit = 0; |
| 660 buildOrderPromotionBenefit() { |
| 661 var o = new api.OrderPromotionBenefit(); |
| 662 buildCounterOrderPromotionBenefit++; |
| 663 if (buildCounterOrderPromotionBenefit < 3) { |
| 664 o.discount = buildPrice(); |
| 665 o.offerIds = buildUnnamed1771(); |
| 666 o.subType = "foo"; |
| 667 o.taxImpact = buildPrice(); |
| 668 o.type = "foo"; |
| 669 } |
| 670 buildCounterOrderPromotionBenefit--; |
| 671 return o; |
| 672 } |
| 673 |
| 674 checkOrderPromotionBenefit(api.OrderPromotionBenefit o) { |
| 675 buildCounterOrderPromotionBenefit++; |
| 676 if (buildCounterOrderPromotionBenefit < 3) { |
| 677 checkPrice(o.discount); |
| 678 checkUnnamed1771(o.offerIds); |
| 679 unittest.expect(o.subType, unittest.equals('foo')); |
| 680 checkPrice(o.taxImpact); |
| 681 unittest.expect(o.type, unittest.equals('foo')); |
| 682 } |
| 683 buildCounterOrderPromotionBenefit--; |
| 684 } |
| 685 |
| 587 core.int buildCounterOrderRefund = 0; | 686 core.int buildCounterOrderRefund = 0; |
| 588 buildOrderRefund() { | 687 buildOrderRefund() { |
| 589 var o = new api.OrderRefund(); | 688 var o = new api.OrderRefund(); |
| 590 buildCounterOrderRefund++; | 689 buildCounterOrderRefund++; |
| 591 if (buildCounterOrderRefund < 3) { | 690 if (buildCounterOrderRefund < 3) { |
| 592 o.actor = "foo"; | 691 o.actor = "foo"; |
| 593 o.amount = buildPrice(); | 692 o.amount = buildPrice(); |
| 594 o.creationDate = "foo"; | 693 o.creationDate = "foo"; |
| 595 o.reason = "foo"; | 694 o.reason = "foo"; |
| 596 o.reasonText = "foo"; | 695 o.reasonText = "foo"; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 if (buildCounterOrderReturn < 3) { | 730 if (buildCounterOrderReturn < 3) { |
| 632 unittest.expect(o.actor, unittest.equals('foo')); | 731 unittest.expect(o.actor, unittest.equals('foo')); |
| 633 unittest.expect(o.creationDate, unittest.equals('foo')); | 732 unittest.expect(o.creationDate, unittest.equals('foo')); |
| 634 unittest.expect(o.quantity, unittest.equals(42)); | 733 unittest.expect(o.quantity, unittest.equals(42)); |
| 635 unittest.expect(o.reason, unittest.equals('foo')); | 734 unittest.expect(o.reason, unittest.equals('foo')); |
| 636 unittest.expect(o.reasonText, unittest.equals('foo')); | 735 unittest.expect(o.reasonText, unittest.equals('foo')); |
| 637 } | 736 } |
| 638 buildCounterOrderReturn--; | 737 buildCounterOrderReturn--; |
| 639 } | 738 } |
| 640 | 739 |
| 641 buildUnnamed1468() { | 740 buildUnnamed1772() { |
| 642 var o = new core.List<api.OrderShipmentLineItemShipment>(); | 741 var o = new core.List<api.OrderShipmentLineItemShipment>(); |
| 643 o.add(buildOrderShipmentLineItemShipment()); | 742 o.add(buildOrderShipmentLineItemShipment()); |
| 644 o.add(buildOrderShipmentLineItemShipment()); | 743 o.add(buildOrderShipmentLineItemShipment()); |
| 645 return o; | 744 return o; |
| 646 } | 745 } |
| 647 | 746 |
| 648 checkUnnamed1468(core.List<api.OrderShipmentLineItemShipment> o) { | 747 checkUnnamed1772(core.List<api.OrderShipmentLineItemShipment> o) { |
| 649 unittest.expect(o, unittest.hasLength(2)); | 748 unittest.expect(o, unittest.hasLength(2)); |
| 650 checkOrderShipmentLineItemShipment(o[0]); | 749 checkOrderShipmentLineItemShipment(o[0]); |
| 651 checkOrderShipmentLineItemShipment(o[1]); | 750 checkOrderShipmentLineItemShipment(o[1]); |
| 652 } | 751 } |
| 653 | 752 |
| 654 core.int buildCounterOrderShipment = 0; | 753 core.int buildCounterOrderShipment = 0; |
| 655 buildOrderShipment() { | 754 buildOrderShipment() { |
| 656 var o = new api.OrderShipment(); | 755 var o = new api.OrderShipment(); |
| 657 buildCounterOrderShipment++; | 756 buildCounterOrderShipment++; |
| 658 if (buildCounterOrderShipment < 3) { | 757 if (buildCounterOrderShipment < 3) { |
| 659 o.carrier = "foo"; | 758 o.carrier = "foo"; |
| 660 o.creationDate = "foo"; | 759 o.creationDate = "foo"; |
| 661 o.deliveryDate = "foo"; | 760 o.deliveryDate = "foo"; |
| 662 o.id = "foo"; | 761 o.id = "foo"; |
| 663 o.lineItems = buildUnnamed1468(); | 762 o.lineItems = buildUnnamed1772(); |
| 664 o.status = "foo"; | 763 o.status = "foo"; |
| 665 o.trackingId = "foo"; | 764 o.trackingId = "foo"; |
| 666 } | 765 } |
| 667 buildCounterOrderShipment--; | 766 buildCounterOrderShipment--; |
| 668 return o; | 767 return o; |
| 669 } | 768 } |
| 670 | 769 |
| 671 checkOrderShipment(api.OrderShipment o) { | 770 checkOrderShipment(api.OrderShipment o) { |
| 672 buildCounterOrderShipment++; | 771 buildCounterOrderShipment++; |
| 673 if (buildCounterOrderShipment < 3) { | 772 if (buildCounterOrderShipment < 3) { |
| 674 unittest.expect(o.carrier, unittest.equals('foo')); | 773 unittest.expect(o.carrier, unittest.equals('foo')); |
| 675 unittest.expect(o.creationDate, unittest.equals('foo')); | 774 unittest.expect(o.creationDate, unittest.equals('foo')); |
| 676 unittest.expect(o.deliveryDate, unittest.equals('foo')); | 775 unittest.expect(o.deliveryDate, unittest.equals('foo')); |
| 677 unittest.expect(o.id, unittest.equals('foo')); | 776 unittest.expect(o.id, unittest.equals('foo')); |
| 678 checkUnnamed1468(o.lineItems); | 777 checkUnnamed1772(o.lineItems); |
| 679 unittest.expect(o.status, unittest.equals('foo')); | 778 unittest.expect(o.status, unittest.equals('foo')); |
| 680 unittest.expect(o.trackingId, unittest.equals('foo')); | 779 unittest.expect(o.trackingId, unittest.equals('foo')); |
| 681 } | 780 } |
| 682 buildCounterOrderShipment--; | 781 buildCounterOrderShipment--; |
| 683 } | 782 } |
| 684 | 783 |
| 685 core.int buildCounterOrderShipmentLineItemShipment = 0; | 784 core.int buildCounterOrderShipmentLineItemShipment = 0; |
| 686 buildOrderShipmentLineItemShipment() { | 785 buildOrderShipmentLineItemShipment() { |
| 687 var o = new api.OrderShipmentLineItemShipment(); | 786 var o = new api.OrderShipmentLineItemShipment(); |
| 688 buildCounterOrderShipmentLineItemShipment++; | 787 buildCounterOrderShipmentLineItemShipment++; |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 | 990 |
| 892 checkOrdersCreateTestOrderResponse(api.OrdersCreateTestOrderResponse o) { | 991 checkOrdersCreateTestOrderResponse(api.OrdersCreateTestOrderResponse o) { |
| 893 buildCounterOrdersCreateTestOrderResponse++; | 992 buildCounterOrdersCreateTestOrderResponse++; |
| 894 if (buildCounterOrdersCreateTestOrderResponse < 3) { | 993 if (buildCounterOrdersCreateTestOrderResponse < 3) { |
| 895 unittest.expect(o.kind, unittest.equals('foo')); | 994 unittest.expect(o.kind, unittest.equals('foo')); |
| 896 unittest.expect(o.orderId, unittest.equals('foo')); | 995 unittest.expect(o.orderId, unittest.equals('foo')); |
| 897 } | 996 } |
| 898 buildCounterOrdersCreateTestOrderResponse--; | 997 buildCounterOrdersCreateTestOrderResponse--; |
| 899 } | 998 } |
| 900 | 999 |
| 901 buildUnnamed1469() { | 1000 buildUnnamed1773() { |
| 902 var o = new core.List<api.OrdersCustomBatchRequestEntry>(); | 1001 var o = new core.List<api.OrdersCustomBatchRequestEntry>(); |
| 903 o.add(buildOrdersCustomBatchRequestEntry()); | 1002 o.add(buildOrdersCustomBatchRequestEntry()); |
| 904 o.add(buildOrdersCustomBatchRequestEntry()); | 1003 o.add(buildOrdersCustomBatchRequestEntry()); |
| 905 return o; | 1004 return o; |
| 906 } | 1005 } |
| 907 | 1006 |
| 908 checkUnnamed1469(core.List<api.OrdersCustomBatchRequestEntry> o) { | 1007 checkUnnamed1773(core.List<api.OrdersCustomBatchRequestEntry> o) { |
| 909 unittest.expect(o, unittest.hasLength(2)); | 1008 unittest.expect(o, unittest.hasLength(2)); |
| 910 checkOrdersCustomBatchRequestEntry(o[0]); | 1009 checkOrdersCustomBatchRequestEntry(o[0]); |
| 911 checkOrdersCustomBatchRequestEntry(o[1]); | 1010 checkOrdersCustomBatchRequestEntry(o[1]); |
| 912 } | 1011 } |
| 913 | 1012 |
| 914 core.int buildCounterOrdersCustomBatchRequest = 0; | 1013 core.int buildCounterOrdersCustomBatchRequest = 0; |
| 915 buildOrdersCustomBatchRequest() { | 1014 buildOrdersCustomBatchRequest() { |
| 916 var o = new api.OrdersCustomBatchRequest(); | 1015 var o = new api.OrdersCustomBatchRequest(); |
| 917 buildCounterOrdersCustomBatchRequest++; | 1016 buildCounterOrdersCustomBatchRequest++; |
| 918 if (buildCounterOrdersCustomBatchRequest < 3) { | 1017 if (buildCounterOrdersCustomBatchRequest < 3) { |
| 919 o.entries = buildUnnamed1469(); | 1018 o.entries = buildUnnamed1773(); |
| 920 } | 1019 } |
| 921 buildCounterOrdersCustomBatchRequest--; | 1020 buildCounterOrdersCustomBatchRequest--; |
| 922 return o; | 1021 return o; |
| 923 } | 1022 } |
| 924 | 1023 |
| 925 checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) { | 1024 checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) { |
| 926 buildCounterOrdersCustomBatchRequest++; | 1025 buildCounterOrdersCustomBatchRequest++; |
| 927 if (buildCounterOrdersCustomBatchRequest < 3) { | 1026 if (buildCounterOrdersCustomBatchRequest < 3) { |
| 928 checkUnnamed1469(o.entries); | 1027 checkUnnamed1773(o.entries); |
| 929 } | 1028 } |
| 930 buildCounterOrdersCustomBatchRequest--; | 1029 buildCounterOrdersCustomBatchRequest--; |
| 931 } | 1030 } |
| 932 | 1031 |
| 933 core.int buildCounterOrdersCustomBatchRequestEntry = 0; | 1032 core.int buildCounterOrdersCustomBatchRequestEntry = 0; |
| 934 buildOrdersCustomBatchRequestEntry() { | 1033 buildOrdersCustomBatchRequestEntry() { |
| 935 var o = new api.OrdersCustomBatchRequestEntry(); | 1034 var o = new api.OrdersCustomBatchRequestEntry(); |
| 936 buildCounterOrdersCustomBatchRequestEntry++; | 1035 buildCounterOrdersCustomBatchRequestEntry++; |
| 937 if (buildCounterOrdersCustomBatchRequestEntry < 3) { | 1036 if (buildCounterOrdersCustomBatchRequestEntry < 3) { |
| 938 o.batchId = 42; | 1037 o.batchId = 42; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 buildCounterOrdersCustomBatchRequestEntryReturnLineItem++; | 1159 buildCounterOrdersCustomBatchRequestEntryReturnLineItem++; |
| 1061 if (buildCounterOrdersCustomBatchRequestEntryReturnLineItem < 3) { | 1160 if (buildCounterOrdersCustomBatchRequestEntryReturnLineItem < 3) { |
| 1062 unittest.expect(o.lineItemId, unittest.equals('foo')); | 1161 unittest.expect(o.lineItemId, unittest.equals('foo')); |
| 1063 unittest.expect(o.quantity, unittest.equals(42)); | 1162 unittest.expect(o.quantity, unittest.equals(42)); |
| 1064 unittest.expect(o.reason, unittest.equals('foo')); | 1163 unittest.expect(o.reason, unittest.equals('foo')); |
| 1065 unittest.expect(o.reasonText, unittest.equals('foo')); | 1164 unittest.expect(o.reasonText, unittest.equals('foo')); |
| 1066 } | 1165 } |
| 1067 buildCounterOrdersCustomBatchRequestEntryReturnLineItem--; | 1166 buildCounterOrdersCustomBatchRequestEntryReturnLineItem--; |
| 1068 } | 1167 } |
| 1069 | 1168 |
| 1070 buildUnnamed1470() { | 1169 buildUnnamed1774() { |
| 1071 var o = new core.List<api.OrderShipmentLineItemShipment>(); | 1170 var o = new core.List<api.OrderShipmentLineItemShipment>(); |
| 1072 o.add(buildOrderShipmentLineItemShipment()); | 1171 o.add(buildOrderShipmentLineItemShipment()); |
| 1073 o.add(buildOrderShipmentLineItemShipment()); | 1172 o.add(buildOrderShipmentLineItemShipment()); |
| 1074 return o; | 1173 return o; |
| 1075 } | 1174 } |
| 1076 | 1175 |
| 1077 checkUnnamed1470(core.List<api.OrderShipmentLineItemShipment> o) { | 1176 checkUnnamed1774(core.List<api.OrderShipmentLineItemShipment> o) { |
| 1078 unittest.expect(o, unittest.hasLength(2)); | 1177 unittest.expect(o, unittest.hasLength(2)); |
| 1079 checkOrderShipmentLineItemShipment(o[0]); | 1178 checkOrderShipmentLineItemShipment(o[0]); |
| 1080 checkOrderShipmentLineItemShipment(o[1]); | 1179 checkOrderShipmentLineItemShipment(o[1]); |
| 1081 } | 1180 } |
| 1082 | 1181 |
| 1083 core.int buildCounterOrdersCustomBatchRequestEntryShipLineItems = 0; | 1182 core.int buildCounterOrdersCustomBatchRequestEntryShipLineItems = 0; |
| 1084 buildOrdersCustomBatchRequestEntryShipLineItems() { | 1183 buildOrdersCustomBatchRequestEntryShipLineItems() { |
| 1085 var o = new api.OrdersCustomBatchRequestEntryShipLineItems(); | 1184 var o = new api.OrdersCustomBatchRequestEntryShipLineItems(); |
| 1086 buildCounterOrdersCustomBatchRequestEntryShipLineItems++; | 1185 buildCounterOrdersCustomBatchRequestEntryShipLineItems++; |
| 1087 if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { | 1186 if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { |
| 1088 o.carrier = "foo"; | 1187 o.carrier = "foo"; |
| 1089 o.lineItems = buildUnnamed1470(); | 1188 o.lineItems = buildUnnamed1774(); |
| 1090 o.shipmentId = "foo"; | 1189 o.shipmentId = "foo"; |
| 1091 o.trackingId = "foo"; | 1190 o.trackingId = "foo"; |
| 1092 } | 1191 } |
| 1093 buildCounterOrdersCustomBatchRequestEntryShipLineItems--; | 1192 buildCounterOrdersCustomBatchRequestEntryShipLineItems--; |
| 1094 return o; | 1193 return o; |
| 1095 } | 1194 } |
| 1096 | 1195 |
| 1097 checkOrdersCustomBatchRequestEntryShipLineItems(api.OrdersCustomBatchRequestEntr
yShipLineItems o) { | 1196 checkOrdersCustomBatchRequestEntryShipLineItems(api.OrdersCustomBatchRequestEntr
yShipLineItems o) { |
| 1098 buildCounterOrdersCustomBatchRequestEntryShipLineItems++; | 1197 buildCounterOrdersCustomBatchRequestEntryShipLineItems++; |
| 1099 if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { | 1198 if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { |
| 1100 unittest.expect(o.carrier, unittest.equals('foo')); | 1199 unittest.expect(o.carrier, unittest.equals('foo')); |
| 1101 checkUnnamed1470(o.lineItems); | 1200 checkUnnamed1774(o.lineItems); |
| 1102 unittest.expect(o.shipmentId, unittest.equals('foo')); | 1201 unittest.expect(o.shipmentId, unittest.equals('foo')); |
| 1103 unittest.expect(o.trackingId, unittest.equals('foo')); | 1202 unittest.expect(o.trackingId, unittest.equals('foo')); |
| 1104 } | 1203 } |
| 1105 buildCounterOrdersCustomBatchRequestEntryShipLineItems--; | 1204 buildCounterOrdersCustomBatchRequestEntryShipLineItems--; |
| 1106 } | 1205 } |
| 1107 | 1206 |
| 1108 core.int buildCounterOrdersCustomBatchRequestEntryUpdateShipment = 0; | 1207 core.int buildCounterOrdersCustomBatchRequestEntryUpdateShipment = 0; |
| 1109 buildOrdersCustomBatchRequestEntryUpdateShipment() { | 1208 buildOrdersCustomBatchRequestEntryUpdateShipment() { |
| 1110 var o = new api.OrdersCustomBatchRequestEntryUpdateShipment(); | 1209 var o = new api.OrdersCustomBatchRequestEntryUpdateShipment(); |
| 1111 buildCounterOrdersCustomBatchRequestEntryUpdateShipment++; | 1210 buildCounterOrdersCustomBatchRequestEntryUpdateShipment++; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1123 buildCounterOrdersCustomBatchRequestEntryUpdateShipment++; | 1222 buildCounterOrdersCustomBatchRequestEntryUpdateShipment++; |
| 1124 if (buildCounterOrdersCustomBatchRequestEntryUpdateShipment < 3) { | 1223 if (buildCounterOrdersCustomBatchRequestEntryUpdateShipment < 3) { |
| 1125 unittest.expect(o.carrier, unittest.equals('foo')); | 1224 unittest.expect(o.carrier, unittest.equals('foo')); |
| 1126 unittest.expect(o.shipmentId, unittest.equals('foo')); | 1225 unittest.expect(o.shipmentId, unittest.equals('foo')); |
| 1127 unittest.expect(o.status, unittest.equals('foo')); | 1226 unittest.expect(o.status, unittest.equals('foo')); |
| 1128 unittest.expect(o.trackingId, unittest.equals('foo')); | 1227 unittest.expect(o.trackingId, unittest.equals('foo')); |
| 1129 } | 1228 } |
| 1130 buildCounterOrdersCustomBatchRequestEntryUpdateShipment--; | 1229 buildCounterOrdersCustomBatchRequestEntryUpdateShipment--; |
| 1131 } | 1230 } |
| 1132 | 1231 |
| 1133 buildUnnamed1471() { | 1232 buildUnnamed1775() { |
| 1134 var o = new core.List<api.OrdersCustomBatchResponseEntry>(); | 1233 var o = new core.List<api.OrdersCustomBatchResponseEntry>(); |
| 1135 o.add(buildOrdersCustomBatchResponseEntry()); | 1234 o.add(buildOrdersCustomBatchResponseEntry()); |
| 1136 o.add(buildOrdersCustomBatchResponseEntry()); | 1235 o.add(buildOrdersCustomBatchResponseEntry()); |
| 1137 return o; | 1236 return o; |
| 1138 } | 1237 } |
| 1139 | 1238 |
| 1140 checkUnnamed1471(core.List<api.OrdersCustomBatchResponseEntry> o) { | 1239 checkUnnamed1775(core.List<api.OrdersCustomBatchResponseEntry> o) { |
| 1141 unittest.expect(o, unittest.hasLength(2)); | 1240 unittest.expect(o, unittest.hasLength(2)); |
| 1142 checkOrdersCustomBatchResponseEntry(o[0]); | 1241 checkOrdersCustomBatchResponseEntry(o[0]); |
| 1143 checkOrdersCustomBatchResponseEntry(o[1]); | 1242 checkOrdersCustomBatchResponseEntry(o[1]); |
| 1144 } | 1243 } |
| 1145 | 1244 |
| 1146 core.int buildCounterOrdersCustomBatchResponse = 0; | 1245 core.int buildCounterOrdersCustomBatchResponse = 0; |
| 1147 buildOrdersCustomBatchResponse() { | 1246 buildOrdersCustomBatchResponse() { |
| 1148 var o = new api.OrdersCustomBatchResponse(); | 1247 var o = new api.OrdersCustomBatchResponse(); |
| 1149 buildCounterOrdersCustomBatchResponse++; | 1248 buildCounterOrdersCustomBatchResponse++; |
| 1150 if (buildCounterOrdersCustomBatchResponse < 3) { | 1249 if (buildCounterOrdersCustomBatchResponse < 3) { |
| 1151 o.entries = buildUnnamed1471(); | 1250 o.entries = buildUnnamed1775(); |
| 1152 o.kind = "foo"; | 1251 o.kind = "foo"; |
| 1153 } | 1252 } |
| 1154 buildCounterOrdersCustomBatchResponse--; | 1253 buildCounterOrdersCustomBatchResponse--; |
| 1155 return o; | 1254 return o; |
| 1156 } | 1255 } |
| 1157 | 1256 |
| 1158 checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) { | 1257 checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) { |
| 1159 buildCounterOrdersCustomBatchResponse++; | 1258 buildCounterOrdersCustomBatchResponse++; |
| 1160 if (buildCounterOrdersCustomBatchResponse < 3) { | 1259 if (buildCounterOrdersCustomBatchResponse < 3) { |
| 1161 checkUnnamed1471(o.entries); | 1260 checkUnnamed1775(o.entries); |
| 1162 unittest.expect(o.kind, unittest.equals('foo')); | 1261 unittest.expect(o.kind, unittest.equals('foo')); |
| 1163 } | 1262 } |
| 1164 buildCounterOrdersCustomBatchResponse--; | 1263 buildCounterOrdersCustomBatchResponse--; |
| 1165 } | 1264 } |
| 1166 | 1265 |
| 1167 core.int buildCounterOrdersCustomBatchResponseEntry = 0; | 1266 core.int buildCounterOrdersCustomBatchResponseEntry = 0; |
| 1168 buildOrdersCustomBatchResponseEntry() { | 1267 buildOrdersCustomBatchResponseEntry() { |
| 1169 var o = new api.OrdersCustomBatchResponseEntry(); | 1268 var o = new api.OrdersCustomBatchResponseEntry(); |
| 1170 buildCounterOrdersCustomBatchResponseEntry++; | 1269 buildCounterOrdersCustomBatchResponseEntry++; |
| 1171 if (buildCounterOrdersCustomBatchResponseEntry < 3) { | 1270 if (buildCounterOrdersCustomBatchResponseEntry < 3) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1226 | 1325 |
| 1227 checkOrdersGetTestOrderTemplateResponse(api.OrdersGetTestOrderTemplateResponse o
) { | 1326 checkOrdersGetTestOrderTemplateResponse(api.OrdersGetTestOrderTemplateResponse o
) { |
| 1228 buildCounterOrdersGetTestOrderTemplateResponse++; | 1327 buildCounterOrdersGetTestOrderTemplateResponse++; |
| 1229 if (buildCounterOrdersGetTestOrderTemplateResponse < 3) { | 1328 if (buildCounterOrdersGetTestOrderTemplateResponse < 3) { |
| 1230 unittest.expect(o.kind, unittest.equals('foo')); | 1329 unittest.expect(o.kind, unittest.equals('foo')); |
| 1231 checkTestOrder(o.template); | 1330 checkTestOrder(o.template); |
| 1232 } | 1331 } |
| 1233 buildCounterOrdersGetTestOrderTemplateResponse--; | 1332 buildCounterOrdersGetTestOrderTemplateResponse--; |
| 1234 } | 1333 } |
| 1235 | 1334 |
| 1236 buildUnnamed1472() { | 1335 buildUnnamed1776() { |
| 1237 var o = new core.List<api.Order>(); | 1336 var o = new core.List<api.Order>(); |
| 1238 o.add(buildOrder()); | 1337 o.add(buildOrder()); |
| 1239 o.add(buildOrder()); | 1338 o.add(buildOrder()); |
| 1240 return o; | 1339 return o; |
| 1241 } | 1340 } |
| 1242 | 1341 |
| 1243 checkUnnamed1472(core.List<api.Order> o) { | 1342 checkUnnamed1776(core.List<api.Order> o) { |
| 1244 unittest.expect(o, unittest.hasLength(2)); | 1343 unittest.expect(o, unittest.hasLength(2)); |
| 1245 checkOrder(o[0]); | 1344 checkOrder(o[0]); |
| 1246 checkOrder(o[1]); | 1345 checkOrder(o[1]); |
| 1247 } | 1346 } |
| 1248 | 1347 |
| 1249 core.int buildCounterOrdersListResponse = 0; | 1348 core.int buildCounterOrdersListResponse = 0; |
| 1250 buildOrdersListResponse() { | 1349 buildOrdersListResponse() { |
| 1251 var o = new api.OrdersListResponse(); | 1350 var o = new api.OrdersListResponse(); |
| 1252 buildCounterOrdersListResponse++; | 1351 buildCounterOrdersListResponse++; |
| 1253 if (buildCounterOrdersListResponse < 3) { | 1352 if (buildCounterOrdersListResponse < 3) { |
| 1254 o.kind = "foo"; | 1353 o.kind = "foo"; |
| 1255 o.nextPageToken = "foo"; | 1354 o.nextPageToken = "foo"; |
| 1256 o.resources = buildUnnamed1472(); | 1355 o.resources = buildUnnamed1776(); |
| 1257 } | 1356 } |
| 1258 buildCounterOrdersListResponse--; | 1357 buildCounterOrdersListResponse--; |
| 1259 return o; | 1358 return o; |
| 1260 } | 1359 } |
| 1261 | 1360 |
| 1262 checkOrdersListResponse(api.OrdersListResponse o) { | 1361 checkOrdersListResponse(api.OrdersListResponse o) { |
| 1263 buildCounterOrdersListResponse++; | 1362 buildCounterOrdersListResponse++; |
| 1264 if (buildCounterOrdersListResponse < 3) { | 1363 if (buildCounterOrdersListResponse < 3) { |
| 1265 unittest.expect(o.kind, unittest.equals('foo')); | 1364 unittest.expect(o.kind, unittest.equals('foo')); |
| 1266 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1365 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1267 checkUnnamed1472(o.resources); | 1366 checkUnnamed1776(o.resources); |
| 1268 } | 1367 } |
| 1269 buildCounterOrdersListResponse--; | 1368 buildCounterOrdersListResponse--; |
| 1270 } | 1369 } |
| 1271 | 1370 |
| 1272 core.int buildCounterOrdersRefundRequest = 0; | 1371 core.int buildCounterOrdersRefundRequest = 0; |
| 1273 buildOrdersRefundRequest() { | 1372 buildOrdersRefundRequest() { |
| 1274 var o = new api.OrdersRefundRequest(); | 1373 var o = new api.OrdersRefundRequest(); |
| 1275 buildCounterOrdersRefundRequest++; | 1374 buildCounterOrdersRefundRequest++; |
| 1276 if (buildCounterOrdersRefundRequest < 3) { | 1375 if (buildCounterOrdersRefundRequest < 3) { |
| 1277 o.amount = buildPrice(); | 1376 o.amount = buildPrice(); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1356 | 1455 |
| 1357 checkOrdersReturnLineItemResponse(api.OrdersReturnLineItemResponse o) { | 1456 checkOrdersReturnLineItemResponse(api.OrdersReturnLineItemResponse o) { |
| 1358 buildCounterOrdersReturnLineItemResponse++; | 1457 buildCounterOrdersReturnLineItemResponse++; |
| 1359 if (buildCounterOrdersReturnLineItemResponse < 3) { | 1458 if (buildCounterOrdersReturnLineItemResponse < 3) { |
| 1360 unittest.expect(o.executionStatus, unittest.equals('foo')); | 1459 unittest.expect(o.executionStatus, unittest.equals('foo')); |
| 1361 unittest.expect(o.kind, unittest.equals('foo')); | 1460 unittest.expect(o.kind, unittest.equals('foo')); |
| 1362 } | 1461 } |
| 1363 buildCounterOrdersReturnLineItemResponse--; | 1462 buildCounterOrdersReturnLineItemResponse--; |
| 1364 } | 1463 } |
| 1365 | 1464 |
| 1366 buildUnnamed1473() { | 1465 buildUnnamed1777() { |
| 1367 var o = new core.List<api.OrderShipmentLineItemShipment>(); | 1466 var o = new core.List<api.OrderShipmentLineItemShipment>(); |
| 1368 o.add(buildOrderShipmentLineItemShipment()); | 1467 o.add(buildOrderShipmentLineItemShipment()); |
| 1369 o.add(buildOrderShipmentLineItemShipment()); | 1468 o.add(buildOrderShipmentLineItemShipment()); |
| 1370 return o; | 1469 return o; |
| 1371 } | 1470 } |
| 1372 | 1471 |
| 1373 checkUnnamed1473(core.List<api.OrderShipmentLineItemShipment> o) { | 1472 checkUnnamed1777(core.List<api.OrderShipmentLineItemShipment> o) { |
| 1374 unittest.expect(o, unittest.hasLength(2)); | 1473 unittest.expect(o, unittest.hasLength(2)); |
| 1375 checkOrderShipmentLineItemShipment(o[0]); | 1474 checkOrderShipmentLineItemShipment(o[0]); |
| 1376 checkOrderShipmentLineItemShipment(o[1]); | 1475 checkOrderShipmentLineItemShipment(o[1]); |
| 1377 } | 1476 } |
| 1378 | 1477 |
| 1379 core.int buildCounterOrdersShipLineItemsRequest = 0; | 1478 core.int buildCounterOrdersShipLineItemsRequest = 0; |
| 1380 buildOrdersShipLineItemsRequest() { | 1479 buildOrdersShipLineItemsRequest() { |
| 1381 var o = new api.OrdersShipLineItemsRequest(); | 1480 var o = new api.OrdersShipLineItemsRequest(); |
| 1382 buildCounterOrdersShipLineItemsRequest++; | 1481 buildCounterOrdersShipLineItemsRequest++; |
| 1383 if (buildCounterOrdersShipLineItemsRequest < 3) { | 1482 if (buildCounterOrdersShipLineItemsRequest < 3) { |
| 1384 o.carrier = "foo"; | 1483 o.carrier = "foo"; |
| 1385 o.lineItems = buildUnnamed1473(); | 1484 o.lineItems = buildUnnamed1777(); |
| 1386 o.operationId = "foo"; | 1485 o.operationId = "foo"; |
| 1387 o.shipmentId = "foo"; | 1486 o.shipmentId = "foo"; |
| 1388 o.trackingId = "foo"; | 1487 o.trackingId = "foo"; |
| 1389 } | 1488 } |
| 1390 buildCounterOrdersShipLineItemsRequest--; | 1489 buildCounterOrdersShipLineItemsRequest--; |
| 1391 return o; | 1490 return o; |
| 1392 } | 1491 } |
| 1393 | 1492 |
| 1394 checkOrdersShipLineItemsRequest(api.OrdersShipLineItemsRequest o) { | 1493 checkOrdersShipLineItemsRequest(api.OrdersShipLineItemsRequest o) { |
| 1395 buildCounterOrdersShipLineItemsRequest++; | 1494 buildCounterOrdersShipLineItemsRequest++; |
| 1396 if (buildCounterOrdersShipLineItemsRequest < 3) { | 1495 if (buildCounterOrdersShipLineItemsRequest < 3) { |
| 1397 unittest.expect(o.carrier, unittest.equals('foo')); | 1496 unittest.expect(o.carrier, unittest.equals('foo')); |
| 1398 checkUnnamed1473(o.lineItems); | 1497 checkUnnamed1777(o.lineItems); |
| 1399 unittest.expect(o.operationId, unittest.equals('foo')); | 1498 unittest.expect(o.operationId, unittest.equals('foo')); |
| 1400 unittest.expect(o.shipmentId, unittest.equals('foo')); | 1499 unittest.expect(o.shipmentId, unittest.equals('foo')); |
| 1401 unittest.expect(o.trackingId, unittest.equals('foo')); | 1500 unittest.expect(o.trackingId, unittest.equals('foo')); |
| 1402 } | 1501 } |
| 1403 buildCounterOrdersShipLineItemsRequest--; | 1502 buildCounterOrdersShipLineItemsRequest--; |
| 1404 } | 1503 } |
| 1405 | 1504 |
| 1406 core.int buildCounterOrdersShipLineItemsResponse = 0; | 1505 core.int buildCounterOrdersShipLineItemsResponse = 0; |
| 1407 buildOrdersShipLineItemsResponse() { | 1506 buildOrdersShipLineItemsResponse() { |
| 1408 var o = new api.OrdersShipLineItemsResponse(); | 1507 var o = new api.OrdersShipLineItemsResponse(); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1528 | 1627 |
| 1529 checkPrice(api.Price o) { | 1628 checkPrice(api.Price o) { |
| 1530 buildCounterPrice++; | 1629 buildCounterPrice++; |
| 1531 if (buildCounterPrice < 3) { | 1630 if (buildCounterPrice < 3) { |
| 1532 unittest.expect(o.currency, unittest.equals('foo')); | 1631 unittest.expect(o.currency, unittest.equals('foo')); |
| 1533 unittest.expect(o.value, unittest.equals('foo')); | 1632 unittest.expect(o.value, unittest.equals('foo')); |
| 1534 } | 1633 } |
| 1535 buildCounterPrice--; | 1634 buildCounterPrice--; |
| 1536 } | 1635 } |
| 1537 | 1636 |
| 1538 buildUnnamed1474() { | 1637 buildUnnamed1778() { |
| 1539 var o = new core.List<api.TestOrderLineItem>(); | 1638 var o = new core.List<api.TestOrderLineItem>(); |
| 1540 o.add(buildTestOrderLineItem()); | 1639 o.add(buildTestOrderLineItem()); |
| 1541 o.add(buildTestOrderLineItem()); | 1640 o.add(buildTestOrderLineItem()); |
| 1542 return o; | 1641 return o; |
| 1543 } | 1642 } |
| 1544 | 1643 |
| 1545 checkUnnamed1474(core.List<api.TestOrderLineItem> o) { | 1644 checkUnnamed1778(core.List<api.TestOrderLineItem> o) { |
| 1546 unittest.expect(o, unittest.hasLength(2)); | 1645 unittest.expect(o, unittest.hasLength(2)); |
| 1547 checkTestOrderLineItem(o[0]); | 1646 checkTestOrderLineItem(o[0]); |
| 1548 checkTestOrderLineItem(o[1]); | 1647 checkTestOrderLineItem(o[1]); |
| 1549 } | 1648 } |
| 1550 | 1649 |
| 1650 buildUnnamed1779() { |
| 1651 var o = new core.List<api.OrderPromotion>(); |
| 1652 o.add(buildOrderPromotion()); |
| 1653 o.add(buildOrderPromotion()); |
| 1654 return o; |
| 1655 } |
| 1656 |
| 1657 checkUnnamed1779(core.List<api.OrderPromotion> o) { |
| 1658 unittest.expect(o, unittest.hasLength(2)); |
| 1659 checkOrderPromotion(o[0]); |
| 1660 checkOrderPromotion(o[1]); |
| 1661 } |
| 1662 |
| 1551 core.int buildCounterTestOrder = 0; | 1663 core.int buildCounterTestOrder = 0; |
| 1552 buildTestOrder() { | 1664 buildTestOrder() { |
| 1553 var o = new api.TestOrder(); | 1665 var o = new api.TestOrder(); |
| 1554 buildCounterTestOrder++; | 1666 buildCounterTestOrder++; |
| 1555 if (buildCounterTestOrder < 3) { | 1667 if (buildCounterTestOrder < 3) { |
| 1556 o.customer = buildTestOrderCustomer(); | 1668 o.customer = buildTestOrderCustomer(); |
| 1557 o.kind = "foo"; | 1669 o.kind = "foo"; |
| 1558 o.lineItems = buildUnnamed1474(); | 1670 o.lineItems = buildUnnamed1778(); |
| 1559 o.paymentMethod = buildTestOrderPaymentMethod(); | 1671 o.paymentMethod = buildTestOrderPaymentMethod(); |
| 1560 o.predefinedDeliveryAddress = "foo"; | 1672 o.predefinedDeliveryAddress = "foo"; |
| 1673 o.promotions = buildUnnamed1779(); |
| 1561 o.shippingCost = buildPrice(); | 1674 o.shippingCost = buildPrice(); |
| 1562 o.shippingCostTax = buildPrice(); | 1675 o.shippingCostTax = buildPrice(); |
| 1563 o.shippingOption = "foo"; | 1676 o.shippingOption = "foo"; |
| 1564 } | 1677 } |
| 1565 buildCounterTestOrder--; | 1678 buildCounterTestOrder--; |
| 1566 return o; | 1679 return o; |
| 1567 } | 1680 } |
| 1568 | 1681 |
| 1569 checkTestOrder(api.TestOrder o) { | 1682 checkTestOrder(api.TestOrder o) { |
| 1570 buildCounterTestOrder++; | 1683 buildCounterTestOrder++; |
| 1571 if (buildCounterTestOrder < 3) { | 1684 if (buildCounterTestOrder < 3) { |
| 1572 checkTestOrderCustomer(o.customer); | 1685 checkTestOrderCustomer(o.customer); |
| 1573 unittest.expect(o.kind, unittest.equals('foo')); | 1686 unittest.expect(o.kind, unittest.equals('foo')); |
| 1574 checkUnnamed1474(o.lineItems); | 1687 checkUnnamed1778(o.lineItems); |
| 1575 checkTestOrderPaymentMethod(o.paymentMethod); | 1688 checkTestOrderPaymentMethod(o.paymentMethod); |
| 1576 unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo')); | 1689 unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo')); |
| 1690 checkUnnamed1779(o.promotions); |
| 1577 checkPrice(o.shippingCost); | 1691 checkPrice(o.shippingCost); |
| 1578 checkPrice(o.shippingCostTax); | 1692 checkPrice(o.shippingCostTax); |
| 1579 unittest.expect(o.shippingOption, unittest.equals('foo')); | 1693 unittest.expect(o.shippingOption, unittest.equals('foo')); |
| 1580 } | 1694 } |
| 1581 buildCounterTestOrder--; | 1695 buildCounterTestOrder--; |
| 1582 } | 1696 } |
| 1583 | 1697 |
| 1584 core.int buildCounterTestOrderCustomer = 0; | 1698 core.int buildCounterTestOrderCustomer = 0; |
| 1585 buildTestOrderCustomer() { | 1699 buildTestOrderCustomer() { |
| 1586 var o = new api.TestOrderCustomer(); | 1700 var o = new api.TestOrderCustomer(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1624 if (buildCounterTestOrderLineItem < 3) { | 1738 if (buildCounterTestOrderLineItem < 3) { |
| 1625 checkTestOrderLineItemProduct(o.product); | 1739 checkTestOrderLineItemProduct(o.product); |
| 1626 unittest.expect(o.quantityOrdered, unittest.equals(42)); | 1740 unittest.expect(o.quantityOrdered, unittest.equals(42)); |
| 1627 checkOrderLineItemReturnInfo(o.returnInfo); | 1741 checkOrderLineItemReturnInfo(o.returnInfo); |
| 1628 checkOrderLineItemShippingDetails(o.shippingDetails); | 1742 checkOrderLineItemShippingDetails(o.shippingDetails); |
| 1629 checkPrice(o.unitTax); | 1743 checkPrice(o.unitTax); |
| 1630 } | 1744 } |
| 1631 buildCounterTestOrderLineItem--; | 1745 buildCounterTestOrderLineItem--; |
| 1632 } | 1746 } |
| 1633 | 1747 |
| 1634 buildUnnamed1475() { | 1748 buildUnnamed1780() { |
| 1635 var o = new core.List<api.OrderLineItemProductVariantAttribute>(); | 1749 var o = new core.List<api.OrderLineItemProductVariantAttribute>(); |
| 1636 o.add(buildOrderLineItemProductVariantAttribute()); | 1750 o.add(buildOrderLineItemProductVariantAttribute()); |
| 1637 o.add(buildOrderLineItemProductVariantAttribute()); | 1751 o.add(buildOrderLineItemProductVariantAttribute()); |
| 1638 return o; | 1752 return o; |
| 1639 } | 1753 } |
| 1640 | 1754 |
| 1641 checkUnnamed1475(core.List<api.OrderLineItemProductVariantAttribute> o) { | 1755 checkUnnamed1780(core.List<api.OrderLineItemProductVariantAttribute> o) { |
| 1642 unittest.expect(o, unittest.hasLength(2)); | 1756 unittest.expect(o, unittest.hasLength(2)); |
| 1643 checkOrderLineItemProductVariantAttribute(o[0]); | 1757 checkOrderLineItemProductVariantAttribute(o[0]); |
| 1644 checkOrderLineItemProductVariantAttribute(o[1]); | 1758 checkOrderLineItemProductVariantAttribute(o[1]); |
| 1645 } | 1759 } |
| 1646 | 1760 |
| 1647 core.int buildCounterTestOrderLineItemProduct = 0; | 1761 core.int buildCounterTestOrderLineItemProduct = 0; |
| 1648 buildTestOrderLineItemProduct() { | 1762 buildTestOrderLineItemProduct() { |
| 1649 var o = new api.TestOrderLineItemProduct(); | 1763 var o = new api.TestOrderLineItemProduct(); |
| 1650 buildCounterTestOrderLineItemProduct++; | 1764 buildCounterTestOrderLineItemProduct++; |
| 1651 if (buildCounterTestOrderLineItemProduct < 3) { | 1765 if (buildCounterTestOrderLineItemProduct < 3) { |
| 1652 o.brand = "foo"; | 1766 o.brand = "foo"; |
| 1653 o.channel = "foo"; | 1767 o.channel = "foo"; |
| 1654 o.condition = "foo"; | 1768 o.condition = "foo"; |
| 1655 o.contentLanguage = "foo"; | 1769 o.contentLanguage = "foo"; |
| 1656 o.gtin = "foo"; | 1770 o.gtin = "foo"; |
| 1657 o.imageLink = "foo"; | 1771 o.imageLink = "foo"; |
| 1658 o.itemGroupId = "foo"; | 1772 o.itemGroupId = "foo"; |
| 1659 o.mpn = "foo"; | 1773 o.mpn = "foo"; |
| 1660 o.offerId = "foo"; | 1774 o.offerId = "foo"; |
| 1661 o.price = buildPrice(); | 1775 o.price = buildPrice(); |
| 1662 o.targetCountry = "foo"; | 1776 o.targetCountry = "foo"; |
| 1663 o.title = "foo"; | 1777 o.title = "foo"; |
| 1664 o.variantAttributes = buildUnnamed1475(); | 1778 o.variantAttributes = buildUnnamed1780(); |
| 1665 } | 1779 } |
| 1666 buildCounterTestOrderLineItemProduct--; | 1780 buildCounterTestOrderLineItemProduct--; |
| 1667 return o; | 1781 return o; |
| 1668 } | 1782 } |
| 1669 | 1783 |
| 1670 checkTestOrderLineItemProduct(api.TestOrderLineItemProduct o) { | 1784 checkTestOrderLineItemProduct(api.TestOrderLineItemProduct o) { |
| 1671 buildCounterTestOrderLineItemProduct++; | 1785 buildCounterTestOrderLineItemProduct++; |
| 1672 if (buildCounterTestOrderLineItemProduct < 3) { | 1786 if (buildCounterTestOrderLineItemProduct < 3) { |
| 1673 unittest.expect(o.brand, unittest.equals('foo')); | 1787 unittest.expect(o.brand, unittest.equals('foo')); |
| 1674 unittest.expect(o.channel, unittest.equals('foo')); | 1788 unittest.expect(o.channel, unittest.equals('foo')); |
| 1675 unittest.expect(o.condition, unittest.equals('foo')); | 1789 unittest.expect(o.condition, unittest.equals('foo')); |
| 1676 unittest.expect(o.contentLanguage, unittest.equals('foo')); | 1790 unittest.expect(o.contentLanguage, unittest.equals('foo')); |
| 1677 unittest.expect(o.gtin, unittest.equals('foo')); | 1791 unittest.expect(o.gtin, unittest.equals('foo')); |
| 1678 unittest.expect(o.imageLink, unittest.equals('foo')); | 1792 unittest.expect(o.imageLink, unittest.equals('foo')); |
| 1679 unittest.expect(o.itemGroupId, unittest.equals('foo')); | 1793 unittest.expect(o.itemGroupId, unittest.equals('foo')); |
| 1680 unittest.expect(o.mpn, unittest.equals('foo')); | 1794 unittest.expect(o.mpn, unittest.equals('foo')); |
| 1681 unittest.expect(o.offerId, unittest.equals('foo')); | 1795 unittest.expect(o.offerId, unittest.equals('foo')); |
| 1682 checkPrice(o.price); | 1796 checkPrice(o.price); |
| 1683 unittest.expect(o.targetCountry, unittest.equals('foo')); | 1797 unittest.expect(o.targetCountry, unittest.equals('foo')); |
| 1684 unittest.expect(o.title, unittest.equals('foo')); | 1798 unittest.expect(o.title, unittest.equals('foo')); |
| 1685 checkUnnamed1475(o.variantAttributes); | 1799 checkUnnamed1780(o.variantAttributes); |
| 1686 } | 1800 } |
| 1687 buildCounterTestOrderLineItemProduct--; | 1801 buildCounterTestOrderLineItemProduct--; |
| 1688 } | 1802 } |
| 1689 | 1803 |
| 1690 core.int buildCounterTestOrderPaymentMethod = 0; | 1804 core.int buildCounterTestOrderPaymentMethod = 0; |
| 1691 buildTestOrderPaymentMethod() { | 1805 buildTestOrderPaymentMethod() { |
| 1692 var o = new api.TestOrderPaymentMethod(); | 1806 var o = new api.TestOrderPaymentMethod(); |
| 1693 buildCounterTestOrderPaymentMethod++; | 1807 buildCounterTestOrderPaymentMethod++; |
| 1694 if (buildCounterTestOrderPaymentMethod < 3) { | 1808 if (buildCounterTestOrderPaymentMethod < 3) { |
| 1695 o.expirationMonth = 42; | 1809 o.expirationMonth = 42; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1707 if (buildCounterTestOrderPaymentMethod < 3) { | 1821 if (buildCounterTestOrderPaymentMethod < 3) { |
| 1708 unittest.expect(o.expirationMonth, unittest.equals(42)); | 1822 unittest.expect(o.expirationMonth, unittest.equals(42)); |
| 1709 unittest.expect(o.expirationYear, unittest.equals(42)); | 1823 unittest.expect(o.expirationYear, unittest.equals(42)); |
| 1710 unittest.expect(o.lastFourDigits, unittest.equals('foo')); | 1824 unittest.expect(o.lastFourDigits, unittest.equals('foo')); |
| 1711 unittest.expect(o.predefinedBillingAddress, unittest.equals('foo')); | 1825 unittest.expect(o.predefinedBillingAddress, unittest.equals('foo')); |
| 1712 unittest.expect(o.type, unittest.equals('foo')); | 1826 unittest.expect(o.type, unittest.equals('foo')); |
| 1713 } | 1827 } |
| 1714 buildCounterTestOrderPaymentMethod--; | 1828 buildCounterTestOrderPaymentMethod--; |
| 1715 } | 1829 } |
| 1716 | 1830 |
| 1717 buildUnnamed1476() { | 1831 buildUnnamed1781() { |
| 1718 var o = new core.List<core.String>(); | 1832 var o = new core.List<core.String>(); |
| 1719 o.add("foo"); | 1833 o.add("foo"); |
| 1720 o.add("foo"); | 1834 o.add("foo"); |
| 1721 return o; | 1835 return o; |
| 1722 } | 1836 } |
| 1723 | 1837 |
| 1724 checkUnnamed1476(core.List<core.String> o) { | 1838 checkUnnamed1781(core.List<core.String> o) { |
| 1725 unittest.expect(o, unittest.hasLength(2)); | 1839 unittest.expect(o, unittest.hasLength(2)); |
| 1726 unittest.expect(o[0], unittest.equals('foo')); | 1840 unittest.expect(o[0], unittest.equals('foo')); |
| 1727 unittest.expect(o[1], unittest.equals('foo')); | 1841 unittest.expect(o[1], unittest.equals('foo')); |
| 1728 } | 1842 } |
| 1729 | 1843 |
| 1730 | 1844 |
| 1731 main() { | 1845 main() { |
| 1732 unittest.group("obj-schema-Error", () { | 1846 unittest.group("obj-schema-Error", () { |
| 1733 unittest.test("to-json--from-json", () { | 1847 unittest.test("to-json--from-json", () { |
| 1734 var o = buildError(); | 1848 var o = buildError(); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1848 | 1962 |
| 1849 unittest.group("obj-schema-OrderPaymentMethod", () { | 1963 unittest.group("obj-schema-OrderPaymentMethod", () { |
| 1850 unittest.test("to-json--from-json", () { | 1964 unittest.test("to-json--from-json", () { |
| 1851 var o = buildOrderPaymentMethod(); | 1965 var o = buildOrderPaymentMethod(); |
| 1852 var od = new api.OrderPaymentMethod.fromJson(o.toJson()); | 1966 var od = new api.OrderPaymentMethod.fromJson(o.toJson()); |
| 1853 checkOrderPaymentMethod(od); | 1967 checkOrderPaymentMethod(od); |
| 1854 }); | 1968 }); |
| 1855 }); | 1969 }); |
| 1856 | 1970 |
| 1857 | 1971 |
| 1972 unittest.group("obj-schema-OrderPromotion", () { |
| 1973 unittest.test("to-json--from-json", () { |
| 1974 var o = buildOrderPromotion(); |
| 1975 var od = new api.OrderPromotion.fromJson(o.toJson()); |
| 1976 checkOrderPromotion(od); |
| 1977 }); |
| 1978 }); |
| 1979 |
| 1980 |
| 1981 unittest.group("obj-schema-OrderPromotionBenefit", () { |
| 1982 unittest.test("to-json--from-json", () { |
| 1983 var o = buildOrderPromotionBenefit(); |
| 1984 var od = new api.OrderPromotionBenefit.fromJson(o.toJson()); |
| 1985 checkOrderPromotionBenefit(od); |
| 1986 }); |
| 1987 }); |
| 1988 |
| 1989 |
| 1858 unittest.group("obj-schema-OrderRefund", () { | 1990 unittest.group("obj-schema-OrderRefund", () { |
| 1859 unittest.test("to-json--from-json", () { | 1991 unittest.test("to-json--from-json", () { |
| 1860 var o = buildOrderRefund(); | 1992 var o = buildOrderRefund(); |
| 1861 var od = new api.OrderRefund.fromJson(o.toJson()); | 1993 var od = new api.OrderRefund.fromJson(o.toJson()); |
| 1862 checkOrderRefund(od); | 1994 checkOrderRefund(od); |
| 1863 }); | 1995 }); |
| 1864 }); | 1996 }); |
| 1865 | 1997 |
| 1866 | 1998 |
| 1867 unittest.group("obj-schema-OrderReturn", () { | 1999 unittest.group("obj-schema-OrderReturn", () { |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2646 | 2778 |
| 2647 var mock = new HttpServerMock(); | 2779 var mock = new HttpServerMock(); |
| 2648 api.OrdersResourceApi res = new api.ContentApi(mock).orders; | 2780 api.OrdersResourceApi res = new api.ContentApi(mock).orders; |
| 2649 var arg_merchantId = "foo"; | 2781 var arg_merchantId = "foo"; |
| 2650 var arg_acknowledged = true; | 2782 var arg_acknowledged = true; |
| 2651 var arg_maxResults = 42; | 2783 var arg_maxResults = 42; |
| 2652 var arg_orderBy = "foo"; | 2784 var arg_orderBy = "foo"; |
| 2653 var arg_pageToken = "foo"; | 2785 var arg_pageToken = "foo"; |
| 2654 var arg_placedDateEnd = "foo"; | 2786 var arg_placedDateEnd = "foo"; |
| 2655 var arg_placedDateStart = "foo"; | 2787 var arg_placedDateStart = "foo"; |
| 2656 var arg_statuses = buildUnnamed1476(); | 2788 var arg_statuses = buildUnnamed1781(); |
| 2657 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2789 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2658 var path = (req.url).path; | 2790 var path = (req.url).path; |
| 2659 var pathOffset = 0; | 2791 var pathOffset = 0; |
| 2660 var index; | 2792 var index; |
| 2661 var subPart; | 2793 var subPart; |
| 2662 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2794 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2663 pathOffset += 1; | 2795 pathOffset += 1; |
| 2664 | 2796 |
| 2665 var query = (req.url).query; | 2797 var query = (req.url).query; |
| 2666 var queryOffset = 0; | 2798 var queryOffset = 0; |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2931 res.updateshipment(arg_request, arg_merchantId, arg_orderId).then(unittest
.expectAsync(((api.OrdersUpdateShipmentResponse response) { | 3063 res.updateshipment(arg_request, arg_merchantId, arg_orderId).then(unittest
.expectAsync(((api.OrdersUpdateShipmentResponse response) { |
| 2932 checkOrdersUpdateShipmentResponse(response); | 3064 checkOrdersUpdateShipmentResponse(response); |
| 2933 }))); | 3065 }))); |
| 2934 }); | 3066 }); |
| 2935 | 3067 |
| 2936 }); | 3068 }); |
| 2937 | 3069 |
| 2938 | 3070 |
| 2939 } | 3071 } |
| 2940 | 3072 |
| OLD | NEW |