| 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 buildUnnamed1252() { | 77 buildUnnamed1264() { |
| 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 checkUnnamed1252(core.List<api.Error> o) { | 84 checkUnnamed1264(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 = buildUnnamed1252(); | 96 o.errors = buildUnnamed1264(); |
| 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 checkUnnamed1252(o.errors); | 107 checkUnnamed1264(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 buildUnnamed1253() { | 113 buildUnnamed1265() { |
| 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 checkUnnamed1253(core.List<api.OrderLineItem> o) { | 120 checkUnnamed1265(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 buildUnnamed1254() { | 126 buildUnnamed1266() { |
| 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 checkUnnamed1254(core.List<api.OrderPromotion> o) { | 133 checkUnnamed1266(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 buildUnnamed1255() { | 139 buildUnnamed1267() { |
| 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 checkUnnamed1255(core.List<api.OrderRefund> o) { | 146 checkUnnamed1267(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 buildUnnamed1256() { | 152 buildUnnamed1268() { |
| 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 checkUnnamed1256(core.List<api.OrderShipment> o) { | 159 checkUnnamed1268(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.channelType = "foo"; |
| 172 o.customer = buildOrderCustomer(); | 172 o.customer = buildOrderCustomer(); |
| 173 o.deliveryDetails = buildOrderDeliveryDetails(); | 173 o.deliveryDetails = buildOrderDeliveryDetails(); |
| 174 o.id = "foo"; | 174 o.id = "foo"; |
| 175 o.kind = "foo"; | 175 o.kind = "foo"; |
| 176 o.lineItems = buildUnnamed1253(); | 176 o.lineItems = buildUnnamed1265(); |
| 177 o.merchantId = "foo"; | 177 o.merchantId = "foo"; |
| 178 o.merchantOrderId = "foo"; | 178 o.merchantOrderId = "foo"; |
| 179 o.netAmount = buildPrice(); | 179 o.netAmount = buildPrice(); |
| 180 o.paymentMethod = buildOrderPaymentMethod(); | 180 o.paymentMethod = buildOrderPaymentMethod(); |
| 181 o.paymentStatus = "foo"; | 181 o.paymentStatus = "foo"; |
| 182 o.placedDate = "foo"; | 182 o.placedDate = "foo"; |
| 183 o.promotions = buildUnnamed1254(); | 183 o.promotions = buildUnnamed1266(); |
| 184 o.refunds = buildUnnamed1255(); | 184 o.refunds = buildUnnamed1267(); |
| 185 o.shipments = buildUnnamed1256(); | 185 o.shipments = buildUnnamed1268(); |
| 186 o.shippingCost = buildPrice(); | 186 o.shippingCost = buildPrice(); |
| 187 o.shippingCostTax = buildPrice(); | 187 o.shippingCostTax = buildPrice(); |
| 188 o.shippingOption = "foo"; | 188 o.shippingOption = "foo"; |
| 189 o.status = "foo"; | 189 o.status = "foo"; |
| 190 } | 190 } |
| 191 buildCounterOrder--; | 191 buildCounterOrder--; |
| 192 return o; | 192 return o; |
| 193 } | 193 } |
| 194 | 194 |
| 195 checkOrder(api.Order o) { | 195 checkOrder(api.Order o) { |
| 196 buildCounterOrder++; | 196 buildCounterOrder++; |
| 197 if (buildCounterOrder < 3) { | 197 if (buildCounterOrder < 3) { |
| 198 unittest.expect(o.acknowledged, unittest.isTrue); | 198 unittest.expect(o.acknowledged, unittest.isTrue); |
| 199 unittest.expect(o.channelType, unittest.equals('foo')); | 199 unittest.expect(o.channelType, unittest.equals('foo')); |
| 200 checkOrderCustomer(o.customer); | 200 checkOrderCustomer(o.customer); |
| 201 checkOrderDeliveryDetails(o.deliveryDetails); | 201 checkOrderDeliveryDetails(o.deliveryDetails); |
| 202 unittest.expect(o.id, unittest.equals('foo')); | 202 unittest.expect(o.id, unittest.equals('foo')); |
| 203 unittest.expect(o.kind, unittest.equals('foo')); | 203 unittest.expect(o.kind, unittest.equals('foo')); |
| 204 checkUnnamed1253(o.lineItems); | 204 checkUnnamed1265(o.lineItems); |
| 205 unittest.expect(o.merchantId, unittest.equals('foo')); | 205 unittest.expect(o.merchantId, unittest.equals('foo')); |
| 206 unittest.expect(o.merchantOrderId, unittest.equals('foo')); | 206 unittest.expect(o.merchantOrderId, unittest.equals('foo')); |
| 207 checkPrice(o.netAmount); | 207 checkPrice(o.netAmount); |
| 208 checkOrderPaymentMethod(o.paymentMethod); | 208 checkOrderPaymentMethod(o.paymentMethod); |
| 209 unittest.expect(o.paymentStatus, unittest.equals('foo')); | 209 unittest.expect(o.paymentStatus, unittest.equals('foo')); |
| 210 unittest.expect(o.placedDate, unittest.equals('foo')); | 210 unittest.expect(o.placedDate, unittest.equals('foo')); |
| 211 checkUnnamed1254(o.promotions); | 211 checkUnnamed1266(o.promotions); |
| 212 checkUnnamed1255(o.refunds); | 212 checkUnnamed1267(o.refunds); |
| 213 checkUnnamed1256(o.shipments); | 213 checkUnnamed1268(o.shipments); |
| 214 checkPrice(o.shippingCost); | 214 checkPrice(o.shippingCost); |
| 215 checkPrice(o.shippingCostTax); | 215 checkPrice(o.shippingCostTax); |
| 216 unittest.expect(o.shippingOption, unittest.equals('foo')); | 216 unittest.expect(o.shippingOption, unittest.equals('foo')); |
| 217 unittest.expect(o.status, unittest.equals('foo')); | 217 unittest.expect(o.status, unittest.equals('foo')); |
| 218 } | 218 } |
| 219 buildCounterOrder--; | 219 buildCounterOrder--; |
| 220 } | 220 } |
| 221 | 221 |
| 222 buildUnnamed1257() { | 222 buildUnnamed1269() { |
| 223 var o = new core.List<core.String>(); | 223 var o = new core.List<core.String>(); |
| 224 o.add("foo"); | 224 o.add("foo"); |
| 225 o.add("foo"); | 225 o.add("foo"); |
| 226 return o; | 226 return o; |
| 227 } | 227 } |
| 228 | 228 |
| 229 checkUnnamed1257(core.List<core.String> o) { | 229 checkUnnamed1269(core.List<core.String> o) { |
| 230 unittest.expect(o, unittest.hasLength(2)); | 230 unittest.expect(o, unittest.hasLength(2)); |
| 231 unittest.expect(o[0], unittest.equals('foo')); | 231 unittest.expect(o[0], unittest.equals('foo')); |
| 232 unittest.expect(o[1], unittest.equals('foo')); | 232 unittest.expect(o[1], unittest.equals('foo')); |
| 233 } | 233 } |
| 234 | 234 |
| 235 buildUnnamed1258() { | 235 buildUnnamed1270() { |
| 236 var o = new core.List<core.String>(); | 236 var o = new core.List<core.String>(); |
| 237 o.add("foo"); | 237 o.add("foo"); |
| 238 o.add("foo"); | 238 o.add("foo"); |
| 239 return o; | 239 return o; |
| 240 } | 240 } |
| 241 | 241 |
| 242 checkUnnamed1258(core.List<core.String> o) { | 242 checkUnnamed1270(core.List<core.String> o) { |
| 243 unittest.expect(o, unittest.hasLength(2)); | 243 unittest.expect(o, unittest.hasLength(2)); |
| 244 unittest.expect(o[0], unittest.equals('foo')); | 244 unittest.expect(o[0], unittest.equals('foo')); |
| 245 unittest.expect(o[1], unittest.equals('foo')); | 245 unittest.expect(o[1], unittest.equals('foo')); |
| 246 } | 246 } |
| 247 | 247 |
| 248 core.int buildCounterOrderAddress = 0; | 248 core.int buildCounterOrderAddress = 0; |
| 249 buildOrderAddress() { | 249 buildOrderAddress() { |
| 250 var o = new api.OrderAddress(); | 250 var o = new api.OrderAddress(); |
| 251 buildCounterOrderAddress++; | 251 buildCounterOrderAddress++; |
| 252 if (buildCounterOrderAddress < 3) { | 252 if (buildCounterOrderAddress < 3) { |
| 253 o.country = "foo"; | 253 o.country = "foo"; |
| 254 o.fullAddress = buildUnnamed1257(); | 254 o.fullAddress = buildUnnamed1269(); |
| 255 o.isPostOfficeBox = true; | 255 o.isPostOfficeBox = true; |
| 256 o.locality = "foo"; | 256 o.locality = "foo"; |
| 257 o.postalCode = "foo"; | 257 o.postalCode = "foo"; |
| 258 o.recipientName = "foo"; | 258 o.recipientName = "foo"; |
| 259 o.region = "foo"; | 259 o.region = "foo"; |
| 260 o.streetAddress = buildUnnamed1258(); | 260 o.streetAddress = buildUnnamed1270(); |
| 261 } | 261 } |
| 262 buildCounterOrderAddress--; | 262 buildCounterOrderAddress--; |
| 263 return o; | 263 return o; |
| 264 } | 264 } |
| 265 | 265 |
| 266 checkOrderAddress(api.OrderAddress o) { | 266 checkOrderAddress(api.OrderAddress o) { |
| 267 buildCounterOrderAddress++; | 267 buildCounterOrderAddress++; |
| 268 if (buildCounterOrderAddress < 3) { | 268 if (buildCounterOrderAddress < 3) { |
| 269 unittest.expect(o.country, unittest.equals('foo')); | 269 unittest.expect(o.country, unittest.equals('foo')); |
| 270 checkUnnamed1257(o.fullAddress); | 270 checkUnnamed1269(o.fullAddress); |
| 271 unittest.expect(o.isPostOfficeBox, unittest.isTrue); | 271 unittest.expect(o.isPostOfficeBox, unittest.isTrue); |
| 272 unittest.expect(o.locality, unittest.equals('foo')); | 272 unittest.expect(o.locality, unittest.equals('foo')); |
| 273 unittest.expect(o.postalCode, unittest.equals('foo')); | 273 unittest.expect(o.postalCode, unittest.equals('foo')); |
| 274 unittest.expect(o.recipientName, unittest.equals('foo')); | 274 unittest.expect(o.recipientName, unittest.equals('foo')); |
| 275 unittest.expect(o.region, unittest.equals('foo')); | 275 unittest.expect(o.region, unittest.equals('foo')); |
| 276 checkUnnamed1258(o.streetAddress); | 276 checkUnnamed1270(o.streetAddress); |
| 277 } | 277 } |
| 278 buildCounterOrderAddress--; | 278 buildCounterOrderAddress--; |
| 279 } | 279 } |
| 280 | 280 |
| 281 core.int buildCounterOrderCancellation = 0; | 281 core.int buildCounterOrderCancellation = 0; |
| 282 buildOrderCancellation() { | 282 buildOrderCancellation() { |
| 283 var o = new api.OrderCancellation(); | 283 var o = new api.OrderCancellation(); |
| 284 buildCounterOrderCancellation++; | 284 buildCounterOrderCancellation++; |
| 285 if (buildCounterOrderCancellation < 3) { | 285 if (buildCounterOrderCancellation < 3) { |
| 286 o.actor = "foo"; | 286 o.actor = "foo"; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 | 342 |
| 343 checkOrderDeliveryDetails(api.OrderDeliveryDetails o) { | 343 checkOrderDeliveryDetails(api.OrderDeliveryDetails o) { |
| 344 buildCounterOrderDeliveryDetails++; | 344 buildCounterOrderDeliveryDetails++; |
| 345 if (buildCounterOrderDeliveryDetails < 3) { | 345 if (buildCounterOrderDeliveryDetails < 3) { |
| 346 checkOrderAddress(o.address); | 346 checkOrderAddress(o.address); |
| 347 unittest.expect(o.phoneNumber, unittest.equals('foo')); | 347 unittest.expect(o.phoneNumber, unittest.equals('foo')); |
| 348 } | 348 } |
| 349 buildCounterOrderDeliveryDetails--; | 349 buildCounterOrderDeliveryDetails--; |
| 350 } | 350 } |
| 351 | 351 |
| 352 buildUnnamed1259() { | 352 buildUnnamed1271() { |
| 353 var o = new core.List<api.OrderCancellation>(); | 353 var o = new core.List<api.OrderCancellation>(); |
| 354 o.add(buildOrderCancellation()); | 354 o.add(buildOrderCancellation()); |
| 355 o.add(buildOrderCancellation()); | 355 o.add(buildOrderCancellation()); |
| 356 return o; | 356 return o; |
| 357 } | 357 } |
| 358 | 358 |
| 359 checkUnnamed1259(core.List<api.OrderCancellation> o) { | 359 checkUnnamed1271(core.List<api.OrderCancellation> o) { |
| 360 unittest.expect(o, unittest.hasLength(2)); | 360 unittest.expect(o, unittest.hasLength(2)); |
| 361 checkOrderCancellation(o[0]); | 361 checkOrderCancellation(o[0]); |
| 362 checkOrderCancellation(o[1]); | 362 checkOrderCancellation(o[1]); |
| 363 } | 363 } |
| 364 | 364 |
| 365 buildUnnamed1260() { | 365 buildUnnamed1272() { |
| 366 var o = new core.List<api.OrderReturn>(); | 366 var o = new core.List<api.OrderReturn>(); |
| 367 o.add(buildOrderReturn()); | 367 o.add(buildOrderReturn()); |
| 368 o.add(buildOrderReturn()); | 368 o.add(buildOrderReturn()); |
| 369 return o; | 369 return o; |
| 370 } | 370 } |
| 371 | 371 |
| 372 checkUnnamed1260(core.List<api.OrderReturn> o) { | 372 checkUnnamed1272(core.List<api.OrderReturn> o) { |
| 373 unittest.expect(o, unittest.hasLength(2)); | 373 unittest.expect(o, unittest.hasLength(2)); |
| 374 checkOrderReturn(o[0]); | 374 checkOrderReturn(o[0]); |
| 375 checkOrderReturn(o[1]); | 375 checkOrderReturn(o[1]); |
| 376 } | 376 } |
| 377 | 377 |
| 378 core.int buildCounterOrderLineItem = 0; | 378 core.int buildCounterOrderLineItem = 0; |
| 379 buildOrderLineItem() { | 379 buildOrderLineItem() { |
| 380 var o = new api.OrderLineItem(); | 380 var o = new api.OrderLineItem(); |
| 381 buildCounterOrderLineItem++; | 381 buildCounterOrderLineItem++; |
| 382 if (buildCounterOrderLineItem < 3) { | 382 if (buildCounterOrderLineItem < 3) { |
| 383 o.cancellations = buildUnnamed1259(); | 383 o.cancellations = buildUnnamed1271(); |
| 384 o.id = "foo"; | 384 o.id = "foo"; |
| 385 o.price = buildPrice(); | 385 o.price = buildPrice(); |
| 386 o.product = buildOrderLineItemProduct(); | 386 o.product = buildOrderLineItemProduct(); |
| 387 o.quantityCanceled = 42; | 387 o.quantityCanceled = 42; |
| 388 o.quantityDelivered = 42; | 388 o.quantityDelivered = 42; |
| 389 o.quantityOrdered = 42; | 389 o.quantityOrdered = 42; |
| 390 o.quantityPending = 42; | 390 o.quantityPending = 42; |
| 391 o.quantityReturned = 42; | 391 o.quantityReturned = 42; |
| 392 o.quantityShipped = 42; | 392 o.quantityShipped = 42; |
| 393 o.returnInfo = buildOrderLineItemReturnInfo(); | 393 o.returnInfo = buildOrderLineItemReturnInfo(); |
| 394 o.returns = buildUnnamed1260(); | 394 o.returns = buildUnnamed1272(); |
| 395 o.shippingDetails = buildOrderLineItemShippingDetails(); | 395 o.shippingDetails = buildOrderLineItemShippingDetails(); |
| 396 o.tax = buildPrice(); | 396 o.tax = buildPrice(); |
| 397 } | 397 } |
| 398 buildCounterOrderLineItem--; | 398 buildCounterOrderLineItem--; |
| 399 return o; | 399 return o; |
| 400 } | 400 } |
| 401 | 401 |
| 402 checkOrderLineItem(api.OrderLineItem o) { | 402 checkOrderLineItem(api.OrderLineItem o) { |
| 403 buildCounterOrderLineItem++; | 403 buildCounterOrderLineItem++; |
| 404 if (buildCounterOrderLineItem < 3) { | 404 if (buildCounterOrderLineItem < 3) { |
| 405 checkUnnamed1259(o.cancellations); | 405 checkUnnamed1271(o.cancellations); |
| 406 unittest.expect(o.id, unittest.equals('foo')); | 406 unittest.expect(o.id, unittest.equals('foo')); |
| 407 checkPrice(o.price); | 407 checkPrice(o.price); |
| 408 checkOrderLineItemProduct(o.product); | 408 checkOrderLineItemProduct(o.product); |
| 409 unittest.expect(o.quantityCanceled, unittest.equals(42)); | 409 unittest.expect(o.quantityCanceled, unittest.equals(42)); |
| 410 unittest.expect(o.quantityDelivered, unittest.equals(42)); | 410 unittest.expect(o.quantityDelivered, unittest.equals(42)); |
| 411 unittest.expect(o.quantityOrdered, unittest.equals(42)); | 411 unittest.expect(o.quantityOrdered, unittest.equals(42)); |
| 412 unittest.expect(o.quantityPending, unittest.equals(42)); | 412 unittest.expect(o.quantityPending, unittest.equals(42)); |
| 413 unittest.expect(o.quantityReturned, unittest.equals(42)); | 413 unittest.expect(o.quantityReturned, unittest.equals(42)); |
| 414 unittest.expect(o.quantityShipped, unittest.equals(42)); | 414 unittest.expect(o.quantityShipped, unittest.equals(42)); |
| 415 checkOrderLineItemReturnInfo(o.returnInfo); | 415 checkOrderLineItemReturnInfo(o.returnInfo); |
| 416 checkUnnamed1260(o.returns); | 416 checkUnnamed1272(o.returns); |
| 417 checkOrderLineItemShippingDetails(o.shippingDetails); | 417 checkOrderLineItemShippingDetails(o.shippingDetails); |
| 418 checkPrice(o.tax); | 418 checkPrice(o.tax); |
| 419 } | 419 } |
| 420 buildCounterOrderLineItem--; | 420 buildCounterOrderLineItem--; |
| 421 } | 421 } |
| 422 | 422 |
| 423 buildUnnamed1261() { | 423 buildUnnamed1273() { |
| 424 var o = new core.List<api.OrderLineItemProductVariantAttribute>(); | 424 var o = new core.List<api.OrderLineItemProductVariantAttribute>(); |
| 425 o.add(buildOrderLineItemProductVariantAttribute()); | 425 o.add(buildOrderLineItemProductVariantAttribute()); |
| 426 o.add(buildOrderLineItemProductVariantAttribute()); | 426 o.add(buildOrderLineItemProductVariantAttribute()); |
| 427 return o; | 427 return o; |
| 428 } | 428 } |
| 429 | 429 |
| 430 checkUnnamed1261(core.List<api.OrderLineItemProductVariantAttribute> o) { | 430 checkUnnamed1273(core.List<api.OrderLineItemProductVariantAttribute> o) { |
| 431 unittest.expect(o, unittest.hasLength(2)); | 431 unittest.expect(o, unittest.hasLength(2)); |
| 432 checkOrderLineItemProductVariantAttribute(o[0]); | 432 checkOrderLineItemProductVariantAttribute(o[0]); |
| 433 checkOrderLineItemProductVariantAttribute(o[1]); | 433 checkOrderLineItemProductVariantAttribute(o[1]); |
| 434 } | 434 } |
| 435 | 435 |
| 436 core.int buildCounterOrderLineItemProduct = 0; | 436 core.int buildCounterOrderLineItemProduct = 0; |
| 437 buildOrderLineItemProduct() { | 437 buildOrderLineItemProduct() { |
| 438 var o = new api.OrderLineItemProduct(); | 438 var o = new api.OrderLineItemProduct(); |
| 439 buildCounterOrderLineItemProduct++; | 439 buildCounterOrderLineItemProduct++; |
| 440 if (buildCounterOrderLineItemProduct < 3) { | 440 if (buildCounterOrderLineItemProduct < 3) { |
| 441 o.brand = "foo"; | 441 o.brand = "foo"; |
| 442 o.channel = "foo"; | 442 o.channel = "foo"; |
| 443 o.condition = "foo"; | 443 o.condition = "foo"; |
| 444 o.contentLanguage = "foo"; | 444 o.contentLanguage = "foo"; |
| 445 o.gtin = "foo"; | 445 o.gtin = "foo"; |
| 446 o.id = "foo"; | 446 o.id = "foo"; |
| 447 o.imageLink = "foo"; | 447 o.imageLink = "foo"; |
| 448 o.itemGroupId = "foo"; | 448 o.itemGroupId = "foo"; |
| 449 o.mpn = "foo"; | 449 o.mpn = "foo"; |
| 450 o.offerId = "foo"; | 450 o.offerId = "foo"; |
| 451 o.price = buildPrice(); | 451 o.price = buildPrice(); |
| 452 o.shownImage = "foo"; | 452 o.shownImage = "foo"; |
| 453 o.targetCountry = "foo"; | 453 o.targetCountry = "foo"; |
| 454 o.title = "foo"; | 454 o.title = "foo"; |
| 455 o.variantAttributes = buildUnnamed1261(); | 455 o.variantAttributes = buildUnnamed1273(); |
| 456 } | 456 } |
| 457 buildCounterOrderLineItemProduct--; | 457 buildCounterOrderLineItemProduct--; |
| 458 return o; | 458 return o; |
| 459 } | 459 } |
| 460 | 460 |
| 461 checkOrderLineItemProduct(api.OrderLineItemProduct o) { | 461 checkOrderLineItemProduct(api.OrderLineItemProduct o) { |
| 462 buildCounterOrderLineItemProduct++; | 462 buildCounterOrderLineItemProduct++; |
| 463 if (buildCounterOrderLineItemProduct < 3) { | 463 if (buildCounterOrderLineItemProduct < 3) { |
| 464 unittest.expect(o.brand, unittest.equals('foo')); | 464 unittest.expect(o.brand, unittest.equals('foo')); |
| 465 unittest.expect(o.channel, unittest.equals('foo')); | 465 unittest.expect(o.channel, unittest.equals('foo')); |
| 466 unittest.expect(o.condition, unittest.equals('foo')); | 466 unittest.expect(o.condition, unittest.equals('foo')); |
| 467 unittest.expect(o.contentLanguage, unittest.equals('foo')); | 467 unittest.expect(o.contentLanguage, unittest.equals('foo')); |
| 468 unittest.expect(o.gtin, unittest.equals('foo')); | 468 unittest.expect(o.gtin, unittest.equals('foo')); |
| 469 unittest.expect(o.id, unittest.equals('foo')); | 469 unittest.expect(o.id, unittest.equals('foo')); |
| 470 unittest.expect(o.imageLink, unittest.equals('foo')); | 470 unittest.expect(o.imageLink, unittest.equals('foo')); |
| 471 unittest.expect(o.itemGroupId, unittest.equals('foo')); | 471 unittest.expect(o.itemGroupId, unittest.equals('foo')); |
| 472 unittest.expect(o.mpn, unittest.equals('foo')); | 472 unittest.expect(o.mpn, unittest.equals('foo')); |
| 473 unittest.expect(o.offerId, unittest.equals('foo')); | 473 unittest.expect(o.offerId, unittest.equals('foo')); |
| 474 checkPrice(o.price); | 474 checkPrice(o.price); |
| 475 unittest.expect(o.shownImage, unittest.equals('foo')); | 475 unittest.expect(o.shownImage, unittest.equals('foo')); |
| 476 unittest.expect(o.targetCountry, unittest.equals('foo')); | 476 unittest.expect(o.targetCountry, unittest.equals('foo')); |
| 477 unittest.expect(o.title, unittest.equals('foo')); | 477 unittest.expect(o.title, unittest.equals('foo')); |
| 478 checkUnnamed1261(o.variantAttributes); | 478 checkUnnamed1273(o.variantAttributes); |
| 479 } | 479 } |
| 480 buildCounterOrderLineItemProduct--; | 480 buildCounterOrderLineItemProduct--; |
| 481 } | 481 } |
| 482 | 482 |
| 483 core.int buildCounterOrderLineItemProductVariantAttribute = 0; | 483 core.int buildCounterOrderLineItemProductVariantAttribute = 0; |
| 484 buildOrderLineItemProductVariantAttribute() { | 484 buildOrderLineItemProductVariantAttribute() { |
| 485 var o = new api.OrderLineItemProductVariantAttribute(); | 485 var o = new api.OrderLineItemProductVariantAttribute(); |
| 486 buildCounterOrderLineItemProductVariantAttribute++; | 486 buildCounterOrderLineItemProductVariantAttribute++; |
| 487 if (buildCounterOrderLineItemProductVariantAttribute < 3) { | 487 if (buildCounterOrderLineItemProductVariantAttribute < 3) { |
| 488 o.dimension = "foo"; | 488 o.dimension = "foo"; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 checkOrderAddress(o.billingAddress); | 594 checkOrderAddress(o.billingAddress); |
| 595 unittest.expect(o.expirationMonth, unittest.equals(42)); | 595 unittest.expect(o.expirationMonth, unittest.equals(42)); |
| 596 unittest.expect(o.expirationYear, unittest.equals(42)); | 596 unittest.expect(o.expirationYear, unittest.equals(42)); |
| 597 unittest.expect(o.lastFourDigits, unittest.equals('foo')); | 597 unittest.expect(o.lastFourDigits, unittest.equals('foo')); |
| 598 unittest.expect(o.phoneNumber, unittest.equals('foo')); | 598 unittest.expect(o.phoneNumber, unittest.equals('foo')); |
| 599 unittest.expect(o.type, unittest.equals('foo')); | 599 unittest.expect(o.type, unittest.equals('foo')); |
| 600 } | 600 } |
| 601 buildCounterOrderPaymentMethod--; | 601 buildCounterOrderPaymentMethod--; |
| 602 } | 602 } |
| 603 | 603 |
| 604 buildUnnamed1262() { | 604 buildUnnamed1274() { |
| 605 var o = new core.List<api.OrderPromotionBenefit>(); | 605 var o = new core.List<api.OrderPromotionBenefit>(); |
| 606 o.add(buildOrderPromotionBenefit()); | 606 o.add(buildOrderPromotionBenefit()); |
| 607 o.add(buildOrderPromotionBenefit()); | 607 o.add(buildOrderPromotionBenefit()); |
| 608 return o; | 608 return o; |
| 609 } | 609 } |
| 610 | 610 |
| 611 checkUnnamed1262(core.List<api.OrderPromotionBenefit> o) { | 611 checkUnnamed1274(core.List<api.OrderPromotionBenefit> o) { |
| 612 unittest.expect(o, unittest.hasLength(2)); | 612 unittest.expect(o, unittest.hasLength(2)); |
| 613 checkOrderPromotionBenefit(o[0]); | 613 checkOrderPromotionBenefit(o[0]); |
| 614 checkOrderPromotionBenefit(o[1]); | 614 checkOrderPromotionBenefit(o[1]); |
| 615 } | 615 } |
| 616 | 616 |
| 617 core.int buildCounterOrderPromotion = 0; | 617 core.int buildCounterOrderPromotion = 0; |
| 618 buildOrderPromotion() { | 618 buildOrderPromotion() { |
| 619 var o = new api.OrderPromotion(); | 619 var o = new api.OrderPromotion(); |
| 620 buildCounterOrderPromotion++; | 620 buildCounterOrderPromotion++; |
| 621 if (buildCounterOrderPromotion < 3) { | 621 if (buildCounterOrderPromotion < 3) { |
| 622 o.benefits = buildUnnamed1262(); | 622 o.benefits = buildUnnamed1274(); |
| 623 o.effectiveDates = "foo"; | 623 o.effectiveDates = "foo"; |
| 624 o.genericRedemptionCode = "foo"; | 624 o.genericRedemptionCode = "foo"; |
| 625 o.id = "foo"; | 625 o.id = "foo"; |
| 626 o.longTitle = "foo"; | 626 o.longTitle = "foo"; |
| 627 o.productApplicability = "foo"; | 627 o.productApplicability = "foo"; |
| 628 o.redemptionChannel = "foo"; | 628 o.redemptionChannel = "foo"; |
| 629 } | 629 } |
| 630 buildCounterOrderPromotion--; | 630 buildCounterOrderPromotion--; |
| 631 return o; | 631 return o; |
| 632 } | 632 } |
| 633 | 633 |
| 634 checkOrderPromotion(api.OrderPromotion o) { | 634 checkOrderPromotion(api.OrderPromotion o) { |
| 635 buildCounterOrderPromotion++; | 635 buildCounterOrderPromotion++; |
| 636 if (buildCounterOrderPromotion < 3) { | 636 if (buildCounterOrderPromotion < 3) { |
| 637 checkUnnamed1262(o.benefits); | 637 checkUnnamed1274(o.benefits); |
| 638 unittest.expect(o.effectiveDates, unittest.equals('foo')); | 638 unittest.expect(o.effectiveDates, unittest.equals('foo')); |
| 639 unittest.expect(o.genericRedemptionCode, unittest.equals('foo')); | 639 unittest.expect(o.genericRedemptionCode, unittest.equals('foo')); |
| 640 unittest.expect(o.id, unittest.equals('foo')); | 640 unittest.expect(o.id, unittest.equals('foo')); |
| 641 unittest.expect(o.longTitle, unittest.equals('foo')); | 641 unittest.expect(o.longTitle, unittest.equals('foo')); |
| 642 unittest.expect(o.productApplicability, unittest.equals('foo')); | 642 unittest.expect(o.productApplicability, unittest.equals('foo')); |
| 643 unittest.expect(o.redemptionChannel, unittest.equals('foo')); | 643 unittest.expect(o.redemptionChannel, unittest.equals('foo')); |
| 644 } | 644 } |
| 645 buildCounterOrderPromotion--; | 645 buildCounterOrderPromotion--; |
| 646 } | 646 } |
| 647 | 647 |
| 648 buildUnnamed1263() { | 648 buildUnnamed1275() { |
| 649 var o = new core.List<core.String>(); | 649 var o = new core.List<core.String>(); |
| 650 o.add("foo"); | 650 o.add("foo"); |
| 651 o.add("foo"); | 651 o.add("foo"); |
| 652 return o; | 652 return o; |
| 653 } | 653 } |
| 654 | 654 |
| 655 checkUnnamed1263(core.List<core.String> o) { | 655 checkUnnamed1275(core.List<core.String> o) { |
| 656 unittest.expect(o, unittest.hasLength(2)); | 656 unittest.expect(o, unittest.hasLength(2)); |
| 657 unittest.expect(o[0], unittest.equals('foo')); | 657 unittest.expect(o[0], unittest.equals('foo')); |
| 658 unittest.expect(o[1], unittest.equals('foo')); | 658 unittest.expect(o[1], unittest.equals('foo')); |
| 659 } | 659 } |
| 660 | 660 |
| 661 core.int buildCounterOrderPromotionBenefit = 0; | 661 core.int buildCounterOrderPromotionBenefit = 0; |
| 662 buildOrderPromotionBenefit() { | 662 buildOrderPromotionBenefit() { |
| 663 var o = new api.OrderPromotionBenefit(); | 663 var o = new api.OrderPromotionBenefit(); |
| 664 buildCounterOrderPromotionBenefit++; | 664 buildCounterOrderPromotionBenefit++; |
| 665 if (buildCounterOrderPromotionBenefit < 3) { | 665 if (buildCounterOrderPromotionBenefit < 3) { |
| 666 o.discount = buildPrice(); | 666 o.discount = buildPrice(); |
| 667 o.offerIds = buildUnnamed1263(); | 667 o.offerIds = buildUnnamed1275(); |
| 668 o.subType = "foo"; | 668 o.subType = "foo"; |
| 669 o.taxImpact = buildPrice(); | 669 o.taxImpact = buildPrice(); |
| 670 o.type = "foo"; | 670 o.type = "foo"; |
| 671 } | 671 } |
| 672 buildCounterOrderPromotionBenefit--; | 672 buildCounterOrderPromotionBenefit--; |
| 673 return o; | 673 return o; |
| 674 } | 674 } |
| 675 | 675 |
| 676 checkOrderPromotionBenefit(api.OrderPromotionBenefit o) { | 676 checkOrderPromotionBenefit(api.OrderPromotionBenefit o) { |
| 677 buildCounterOrderPromotionBenefit++; | 677 buildCounterOrderPromotionBenefit++; |
| 678 if (buildCounterOrderPromotionBenefit < 3) { | 678 if (buildCounterOrderPromotionBenefit < 3) { |
| 679 checkPrice(o.discount); | 679 checkPrice(o.discount); |
| 680 checkUnnamed1263(o.offerIds); | 680 checkUnnamed1275(o.offerIds); |
| 681 unittest.expect(o.subType, unittest.equals('foo')); | 681 unittest.expect(o.subType, unittest.equals('foo')); |
| 682 checkPrice(o.taxImpact); | 682 checkPrice(o.taxImpact); |
| 683 unittest.expect(o.type, unittest.equals('foo')); | 683 unittest.expect(o.type, unittest.equals('foo')); |
| 684 } | 684 } |
| 685 buildCounterOrderPromotionBenefit--; | 685 buildCounterOrderPromotionBenefit--; |
| 686 } | 686 } |
| 687 | 687 |
| 688 core.int buildCounterOrderRefund = 0; | 688 core.int buildCounterOrderRefund = 0; |
| 689 buildOrderRefund() { | 689 buildOrderRefund() { |
| 690 var o = new api.OrderRefund(); | 690 var o = new api.OrderRefund(); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 if (buildCounterOrderReturn < 3) { | 732 if (buildCounterOrderReturn < 3) { |
| 733 unittest.expect(o.actor, unittest.equals('foo')); | 733 unittest.expect(o.actor, unittest.equals('foo')); |
| 734 unittest.expect(o.creationDate, unittest.equals('foo')); | 734 unittest.expect(o.creationDate, unittest.equals('foo')); |
| 735 unittest.expect(o.quantity, unittest.equals(42)); | 735 unittest.expect(o.quantity, unittest.equals(42)); |
| 736 unittest.expect(o.reason, unittest.equals('foo')); | 736 unittest.expect(o.reason, unittest.equals('foo')); |
| 737 unittest.expect(o.reasonText, unittest.equals('foo')); | 737 unittest.expect(o.reasonText, unittest.equals('foo')); |
| 738 } | 738 } |
| 739 buildCounterOrderReturn--; | 739 buildCounterOrderReturn--; |
| 740 } | 740 } |
| 741 | 741 |
| 742 buildUnnamed1264() { | 742 buildUnnamed1276() { |
| 743 var o = new core.List<api.OrderShipmentLineItemShipment>(); | 743 var o = new core.List<api.OrderShipmentLineItemShipment>(); |
| 744 o.add(buildOrderShipmentLineItemShipment()); | 744 o.add(buildOrderShipmentLineItemShipment()); |
| 745 o.add(buildOrderShipmentLineItemShipment()); | 745 o.add(buildOrderShipmentLineItemShipment()); |
| 746 return o; | 746 return o; |
| 747 } | 747 } |
| 748 | 748 |
| 749 checkUnnamed1264(core.List<api.OrderShipmentLineItemShipment> o) { | 749 checkUnnamed1276(core.List<api.OrderShipmentLineItemShipment> o) { |
| 750 unittest.expect(o, unittest.hasLength(2)); | 750 unittest.expect(o, unittest.hasLength(2)); |
| 751 checkOrderShipmentLineItemShipment(o[0]); | 751 checkOrderShipmentLineItemShipment(o[0]); |
| 752 checkOrderShipmentLineItemShipment(o[1]); | 752 checkOrderShipmentLineItemShipment(o[1]); |
| 753 } | 753 } |
| 754 | 754 |
| 755 core.int buildCounterOrderShipment = 0; | 755 core.int buildCounterOrderShipment = 0; |
| 756 buildOrderShipment() { | 756 buildOrderShipment() { |
| 757 var o = new api.OrderShipment(); | 757 var o = new api.OrderShipment(); |
| 758 buildCounterOrderShipment++; | 758 buildCounterOrderShipment++; |
| 759 if (buildCounterOrderShipment < 3) { | 759 if (buildCounterOrderShipment < 3) { |
| 760 o.carrier = "foo"; | 760 o.carrier = "foo"; |
| 761 o.creationDate = "foo"; | 761 o.creationDate = "foo"; |
| 762 o.deliveryDate = "foo"; | 762 o.deliveryDate = "foo"; |
| 763 o.id = "foo"; | 763 o.id = "foo"; |
| 764 o.lineItems = buildUnnamed1264(); | 764 o.lineItems = buildUnnamed1276(); |
| 765 o.status = "foo"; | 765 o.status = "foo"; |
| 766 o.trackingId = "foo"; | 766 o.trackingId = "foo"; |
| 767 } | 767 } |
| 768 buildCounterOrderShipment--; | 768 buildCounterOrderShipment--; |
| 769 return o; | 769 return o; |
| 770 } | 770 } |
| 771 | 771 |
| 772 checkOrderShipment(api.OrderShipment o) { | 772 checkOrderShipment(api.OrderShipment o) { |
| 773 buildCounterOrderShipment++; | 773 buildCounterOrderShipment++; |
| 774 if (buildCounterOrderShipment < 3) { | 774 if (buildCounterOrderShipment < 3) { |
| 775 unittest.expect(o.carrier, unittest.equals('foo')); | 775 unittest.expect(o.carrier, unittest.equals('foo')); |
| 776 unittest.expect(o.creationDate, unittest.equals('foo')); | 776 unittest.expect(o.creationDate, unittest.equals('foo')); |
| 777 unittest.expect(o.deliveryDate, unittest.equals('foo')); | 777 unittest.expect(o.deliveryDate, unittest.equals('foo')); |
| 778 unittest.expect(o.id, unittest.equals('foo')); | 778 unittest.expect(o.id, unittest.equals('foo')); |
| 779 checkUnnamed1264(o.lineItems); | 779 checkUnnamed1276(o.lineItems); |
| 780 unittest.expect(o.status, unittest.equals('foo')); | 780 unittest.expect(o.status, unittest.equals('foo')); |
| 781 unittest.expect(o.trackingId, unittest.equals('foo')); | 781 unittest.expect(o.trackingId, unittest.equals('foo')); |
| 782 } | 782 } |
| 783 buildCounterOrderShipment--; | 783 buildCounterOrderShipment--; |
| 784 } | 784 } |
| 785 | 785 |
| 786 core.int buildCounterOrderShipmentLineItemShipment = 0; | 786 core.int buildCounterOrderShipmentLineItemShipment = 0; |
| 787 buildOrderShipmentLineItemShipment() { | 787 buildOrderShipmentLineItemShipment() { |
| 788 var o = new api.OrderShipmentLineItemShipment(); | 788 var o = new api.OrderShipmentLineItemShipment(); |
| 789 buildCounterOrderShipmentLineItemShipment++; | 789 buildCounterOrderShipmentLineItemShipment++; |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 992 | 992 |
| 993 checkOrdersCreateTestOrderResponse(api.OrdersCreateTestOrderResponse o) { | 993 checkOrdersCreateTestOrderResponse(api.OrdersCreateTestOrderResponse o) { |
| 994 buildCounterOrdersCreateTestOrderResponse++; | 994 buildCounterOrdersCreateTestOrderResponse++; |
| 995 if (buildCounterOrdersCreateTestOrderResponse < 3) { | 995 if (buildCounterOrdersCreateTestOrderResponse < 3) { |
| 996 unittest.expect(o.kind, unittest.equals('foo')); | 996 unittest.expect(o.kind, unittest.equals('foo')); |
| 997 unittest.expect(o.orderId, unittest.equals('foo')); | 997 unittest.expect(o.orderId, unittest.equals('foo')); |
| 998 } | 998 } |
| 999 buildCounterOrdersCreateTestOrderResponse--; | 999 buildCounterOrdersCreateTestOrderResponse--; |
| 1000 } | 1000 } |
| 1001 | 1001 |
| 1002 buildUnnamed1265() { | 1002 buildUnnamed1277() { |
| 1003 var o = new core.List<api.OrdersCustomBatchRequestEntry>(); | 1003 var o = new core.List<api.OrdersCustomBatchRequestEntry>(); |
| 1004 o.add(buildOrdersCustomBatchRequestEntry()); | 1004 o.add(buildOrdersCustomBatchRequestEntry()); |
| 1005 o.add(buildOrdersCustomBatchRequestEntry()); | 1005 o.add(buildOrdersCustomBatchRequestEntry()); |
| 1006 return o; | 1006 return o; |
| 1007 } | 1007 } |
| 1008 | 1008 |
| 1009 checkUnnamed1265(core.List<api.OrdersCustomBatchRequestEntry> o) { | 1009 checkUnnamed1277(core.List<api.OrdersCustomBatchRequestEntry> o) { |
| 1010 unittest.expect(o, unittest.hasLength(2)); | 1010 unittest.expect(o, unittest.hasLength(2)); |
| 1011 checkOrdersCustomBatchRequestEntry(o[0]); | 1011 checkOrdersCustomBatchRequestEntry(o[0]); |
| 1012 checkOrdersCustomBatchRequestEntry(o[1]); | 1012 checkOrdersCustomBatchRequestEntry(o[1]); |
| 1013 } | 1013 } |
| 1014 | 1014 |
| 1015 core.int buildCounterOrdersCustomBatchRequest = 0; | 1015 core.int buildCounterOrdersCustomBatchRequest = 0; |
| 1016 buildOrdersCustomBatchRequest() { | 1016 buildOrdersCustomBatchRequest() { |
| 1017 var o = new api.OrdersCustomBatchRequest(); | 1017 var o = new api.OrdersCustomBatchRequest(); |
| 1018 buildCounterOrdersCustomBatchRequest++; | 1018 buildCounterOrdersCustomBatchRequest++; |
| 1019 if (buildCounterOrdersCustomBatchRequest < 3) { | 1019 if (buildCounterOrdersCustomBatchRequest < 3) { |
| 1020 o.entries = buildUnnamed1265(); | 1020 o.entries = buildUnnamed1277(); |
| 1021 } | 1021 } |
| 1022 buildCounterOrdersCustomBatchRequest--; | 1022 buildCounterOrdersCustomBatchRequest--; |
| 1023 return o; | 1023 return o; |
| 1024 } | 1024 } |
| 1025 | 1025 |
| 1026 checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) { | 1026 checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) { |
| 1027 buildCounterOrdersCustomBatchRequest++; | 1027 buildCounterOrdersCustomBatchRequest++; |
| 1028 if (buildCounterOrdersCustomBatchRequest < 3) { | 1028 if (buildCounterOrdersCustomBatchRequest < 3) { |
| 1029 checkUnnamed1265(o.entries); | 1029 checkUnnamed1277(o.entries); |
| 1030 } | 1030 } |
| 1031 buildCounterOrdersCustomBatchRequest--; | 1031 buildCounterOrdersCustomBatchRequest--; |
| 1032 } | 1032 } |
| 1033 | 1033 |
| 1034 core.int buildCounterOrdersCustomBatchRequestEntry = 0; | 1034 core.int buildCounterOrdersCustomBatchRequestEntry = 0; |
| 1035 buildOrdersCustomBatchRequestEntry() { | 1035 buildOrdersCustomBatchRequestEntry() { |
| 1036 var o = new api.OrdersCustomBatchRequestEntry(); | 1036 var o = new api.OrdersCustomBatchRequestEntry(); |
| 1037 buildCounterOrdersCustomBatchRequestEntry++; | 1037 buildCounterOrdersCustomBatchRequestEntry++; |
| 1038 if (buildCounterOrdersCustomBatchRequestEntry < 3) { | 1038 if (buildCounterOrdersCustomBatchRequestEntry < 3) { |
| 1039 o.batchId = 42; | 1039 o.batchId = 42; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1161 buildCounterOrdersCustomBatchRequestEntryReturnLineItem++; | 1161 buildCounterOrdersCustomBatchRequestEntryReturnLineItem++; |
| 1162 if (buildCounterOrdersCustomBatchRequestEntryReturnLineItem < 3) { | 1162 if (buildCounterOrdersCustomBatchRequestEntryReturnLineItem < 3) { |
| 1163 unittest.expect(o.lineItemId, unittest.equals('foo')); | 1163 unittest.expect(o.lineItemId, unittest.equals('foo')); |
| 1164 unittest.expect(o.quantity, unittest.equals(42)); | 1164 unittest.expect(o.quantity, unittest.equals(42)); |
| 1165 unittest.expect(o.reason, unittest.equals('foo')); | 1165 unittest.expect(o.reason, unittest.equals('foo')); |
| 1166 unittest.expect(o.reasonText, unittest.equals('foo')); | 1166 unittest.expect(o.reasonText, unittest.equals('foo')); |
| 1167 } | 1167 } |
| 1168 buildCounterOrdersCustomBatchRequestEntryReturnLineItem--; | 1168 buildCounterOrdersCustomBatchRequestEntryReturnLineItem--; |
| 1169 } | 1169 } |
| 1170 | 1170 |
| 1171 buildUnnamed1266() { | 1171 buildUnnamed1278() { |
| 1172 var o = new core.List<api.OrderShipmentLineItemShipment>(); | 1172 var o = new core.List<api.OrderShipmentLineItemShipment>(); |
| 1173 o.add(buildOrderShipmentLineItemShipment()); | 1173 o.add(buildOrderShipmentLineItemShipment()); |
| 1174 o.add(buildOrderShipmentLineItemShipment()); | 1174 o.add(buildOrderShipmentLineItemShipment()); |
| 1175 return o; | 1175 return o; |
| 1176 } | 1176 } |
| 1177 | 1177 |
| 1178 checkUnnamed1266(core.List<api.OrderShipmentLineItemShipment> o) { | 1178 checkUnnamed1278(core.List<api.OrderShipmentLineItemShipment> o) { |
| 1179 unittest.expect(o, unittest.hasLength(2)); | 1179 unittest.expect(o, unittest.hasLength(2)); |
| 1180 checkOrderShipmentLineItemShipment(o[0]); | 1180 checkOrderShipmentLineItemShipment(o[0]); |
| 1181 checkOrderShipmentLineItemShipment(o[1]); | 1181 checkOrderShipmentLineItemShipment(o[1]); |
| 1182 } | 1182 } |
| 1183 | 1183 |
| 1184 core.int buildCounterOrdersCustomBatchRequestEntryShipLineItems = 0; | 1184 core.int buildCounterOrdersCustomBatchRequestEntryShipLineItems = 0; |
| 1185 buildOrdersCustomBatchRequestEntryShipLineItems() { | 1185 buildOrdersCustomBatchRequestEntryShipLineItems() { |
| 1186 var o = new api.OrdersCustomBatchRequestEntryShipLineItems(); | 1186 var o = new api.OrdersCustomBatchRequestEntryShipLineItems(); |
| 1187 buildCounterOrdersCustomBatchRequestEntryShipLineItems++; | 1187 buildCounterOrdersCustomBatchRequestEntryShipLineItems++; |
| 1188 if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { | 1188 if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { |
| 1189 o.carrier = "foo"; | 1189 o.carrier = "foo"; |
| 1190 o.lineItems = buildUnnamed1266(); | 1190 o.lineItems = buildUnnamed1278(); |
| 1191 o.shipmentId = "foo"; | 1191 o.shipmentId = "foo"; |
| 1192 o.trackingId = "foo"; | 1192 o.trackingId = "foo"; |
| 1193 } | 1193 } |
| 1194 buildCounterOrdersCustomBatchRequestEntryShipLineItems--; | 1194 buildCounterOrdersCustomBatchRequestEntryShipLineItems--; |
| 1195 return o; | 1195 return o; |
| 1196 } | 1196 } |
| 1197 | 1197 |
| 1198 checkOrdersCustomBatchRequestEntryShipLineItems(api.OrdersCustomBatchRequestEntr
yShipLineItems o) { | 1198 checkOrdersCustomBatchRequestEntryShipLineItems(api.OrdersCustomBatchRequestEntr
yShipLineItems o) { |
| 1199 buildCounterOrdersCustomBatchRequestEntryShipLineItems++; | 1199 buildCounterOrdersCustomBatchRequestEntryShipLineItems++; |
| 1200 if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { | 1200 if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { |
| 1201 unittest.expect(o.carrier, unittest.equals('foo')); | 1201 unittest.expect(o.carrier, unittest.equals('foo')); |
| 1202 checkUnnamed1266(o.lineItems); | 1202 checkUnnamed1278(o.lineItems); |
| 1203 unittest.expect(o.shipmentId, unittest.equals('foo')); | 1203 unittest.expect(o.shipmentId, unittest.equals('foo')); |
| 1204 unittest.expect(o.trackingId, unittest.equals('foo')); | 1204 unittest.expect(o.trackingId, unittest.equals('foo')); |
| 1205 } | 1205 } |
| 1206 buildCounterOrdersCustomBatchRequestEntryShipLineItems--; | 1206 buildCounterOrdersCustomBatchRequestEntryShipLineItems--; |
| 1207 } | 1207 } |
| 1208 | 1208 |
| 1209 core.int buildCounterOrdersCustomBatchRequestEntryUpdateShipment = 0; | 1209 core.int buildCounterOrdersCustomBatchRequestEntryUpdateShipment = 0; |
| 1210 buildOrdersCustomBatchRequestEntryUpdateShipment() { | 1210 buildOrdersCustomBatchRequestEntryUpdateShipment() { |
| 1211 var o = new api.OrdersCustomBatchRequestEntryUpdateShipment(); | 1211 var o = new api.OrdersCustomBatchRequestEntryUpdateShipment(); |
| 1212 buildCounterOrdersCustomBatchRequestEntryUpdateShipment++; | 1212 buildCounterOrdersCustomBatchRequestEntryUpdateShipment++; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1224 buildCounterOrdersCustomBatchRequestEntryUpdateShipment++; | 1224 buildCounterOrdersCustomBatchRequestEntryUpdateShipment++; |
| 1225 if (buildCounterOrdersCustomBatchRequestEntryUpdateShipment < 3) { | 1225 if (buildCounterOrdersCustomBatchRequestEntryUpdateShipment < 3) { |
| 1226 unittest.expect(o.carrier, unittest.equals('foo')); | 1226 unittest.expect(o.carrier, unittest.equals('foo')); |
| 1227 unittest.expect(o.shipmentId, unittest.equals('foo')); | 1227 unittest.expect(o.shipmentId, unittest.equals('foo')); |
| 1228 unittest.expect(o.status, unittest.equals('foo')); | 1228 unittest.expect(o.status, unittest.equals('foo')); |
| 1229 unittest.expect(o.trackingId, unittest.equals('foo')); | 1229 unittest.expect(o.trackingId, unittest.equals('foo')); |
| 1230 } | 1230 } |
| 1231 buildCounterOrdersCustomBatchRequestEntryUpdateShipment--; | 1231 buildCounterOrdersCustomBatchRequestEntryUpdateShipment--; |
| 1232 } | 1232 } |
| 1233 | 1233 |
| 1234 buildUnnamed1267() { | 1234 buildUnnamed1279() { |
| 1235 var o = new core.List<api.OrdersCustomBatchResponseEntry>(); | 1235 var o = new core.List<api.OrdersCustomBatchResponseEntry>(); |
| 1236 o.add(buildOrdersCustomBatchResponseEntry()); | 1236 o.add(buildOrdersCustomBatchResponseEntry()); |
| 1237 o.add(buildOrdersCustomBatchResponseEntry()); | 1237 o.add(buildOrdersCustomBatchResponseEntry()); |
| 1238 return o; | 1238 return o; |
| 1239 } | 1239 } |
| 1240 | 1240 |
| 1241 checkUnnamed1267(core.List<api.OrdersCustomBatchResponseEntry> o) { | 1241 checkUnnamed1279(core.List<api.OrdersCustomBatchResponseEntry> o) { |
| 1242 unittest.expect(o, unittest.hasLength(2)); | 1242 unittest.expect(o, unittest.hasLength(2)); |
| 1243 checkOrdersCustomBatchResponseEntry(o[0]); | 1243 checkOrdersCustomBatchResponseEntry(o[0]); |
| 1244 checkOrdersCustomBatchResponseEntry(o[1]); | 1244 checkOrdersCustomBatchResponseEntry(o[1]); |
| 1245 } | 1245 } |
| 1246 | 1246 |
| 1247 core.int buildCounterOrdersCustomBatchResponse = 0; | 1247 core.int buildCounterOrdersCustomBatchResponse = 0; |
| 1248 buildOrdersCustomBatchResponse() { | 1248 buildOrdersCustomBatchResponse() { |
| 1249 var o = new api.OrdersCustomBatchResponse(); | 1249 var o = new api.OrdersCustomBatchResponse(); |
| 1250 buildCounterOrdersCustomBatchResponse++; | 1250 buildCounterOrdersCustomBatchResponse++; |
| 1251 if (buildCounterOrdersCustomBatchResponse < 3) { | 1251 if (buildCounterOrdersCustomBatchResponse < 3) { |
| 1252 o.entries = buildUnnamed1267(); | 1252 o.entries = buildUnnamed1279(); |
| 1253 o.kind = "foo"; | 1253 o.kind = "foo"; |
| 1254 } | 1254 } |
| 1255 buildCounterOrdersCustomBatchResponse--; | 1255 buildCounterOrdersCustomBatchResponse--; |
| 1256 return o; | 1256 return o; |
| 1257 } | 1257 } |
| 1258 | 1258 |
| 1259 checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) { | 1259 checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) { |
| 1260 buildCounterOrdersCustomBatchResponse++; | 1260 buildCounterOrdersCustomBatchResponse++; |
| 1261 if (buildCounterOrdersCustomBatchResponse < 3) { | 1261 if (buildCounterOrdersCustomBatchResponse < 3) { |
| 1262 checkUnnamed1267(o.entries); | 1262 checkUnnamed1279(o.entries); |
| 1263 unittest.expect(o.kind, unittest.equals('foo')); | 1263 unittest.expect(o.kind, unittest.equals('foo')); |
| 1264 } | 1264 } |
| 1265 buildCounterOrdersCustomBatchResponse--; | 1265 buildCounterOrdersCustomBatchResponse--; |
| 1266 } | 1266 } |
| 1267 | 1267 |
| 1268 core.int buildCounterOrdersCustomBatchResponseEntry = 0; | 1268 core.int buildCounterOrdersCustomBatchResponseEntry = 0; |
| 1269 buildOrdersCustomBatchResponseEntry() { | 1269 buildOrdersCustomBatchResponseEntry() { |
| 1270 var o = new api.OrdersCustomBatchResponseEntry(); | 1270 var o = new api.OrdersCustomBatchResponseEntry(); |
| 1271 buildCounterOrdersCustomBatchResponseEntry++; | 1271 buildCounterOrdersCustomBatchResponseEntry++; |
| 1272 if (buildCounterOrdersCustomBatchResponseEntry < 3) { | 1272 if (buildCounterOrdersCustomBatchResponseEntry < 3) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1327 | 1327 |
| 1328 checkOrdersGetTestOrderTemplateResponse(api.OrdersGetTestOrderTemplateResponse o
) { | 1328 checkOrdersGetTestOrderTemplateResponse(api.OrdersGetTestOrderTemplateResponse o
) { |
| 1329 buildCounterOrdersGetTestOrderTemplateResponse++; | 1329 buildCounterOrdersGetTestOrderTemplateResponse++; |
| 1330 if (buildCounterOrdersGetTestOrderTemplateResponse < 3) { | 1330 if (buildCounterOrdersGetTestOrderTemplateResponse < 3) { |
| 1331 unittest.expect(o.kind, unittest.equals('foo')); | 1331 unittest.expect(o.kind, unittest.equals('foo')); |
| 1332 checkTestOrder(o.template); | 1332 checkTestOrder(o.template); |
| 1333 } | 1333 } |
| 1334 buildCounterOrdersGetTestOrderTemplateResponse--; | 1334 buildCounterOrdersGetTestOrderTemplateResponse--; |
| 1335 } | 1335 } |
| 1336 | 1336 |
| 1337 buildUnnamed1268() { | 1337 buildUnnamed1280() { |
| 1338 var o = new core.List<api.Order>(); | 1338 var o = new core.List<api.Order>(); |
| 1339 o.add(buildOrder()); | 1339 o.add(buildOrder()); |
| 1340 o.add(buildOrder()); | 1340 o.add(buildOrder()); |
| 1341 return o; | 1341 return o; |
| 1342 } | 1342 } |
| 1343 | 1343 |
| 1344 checkUnnamed1268(core.List<api.Order> o) { | 1344 checkUnnamed1280(core.List<api.Order> o) { |
| 1345 unittest.expect(o, unittest.hasLength(2)); | 1345 unittest.expect(o, unittest.hasLength(2)); |
| 1346 checkOrder(o[0]); | 1346 checkOrder(o[0]); |
| 1347 checkOrder(o[1]); | 1347 checkOrder(o[1]); |
| 1348 } | 1348 } |
| 1349 | 1349 |
| 1350 core.int buildCounterOrdersListResponse = 0; | 1350 core.int buildCounterOrdersListResponse = 0; |
| 1351 buildOrdersListResponse() { | 1351 buildOrdersListResponse() { |
| 1352 var o = new api.OrdersListResponse(); | 1352 var o = new api.OrdersListResponse(); |
| 1353 buildCounterOrdersListResponse++; | 1353 buildCounterOrdersListResponse++; |
| 1354 if (buildCounterOrdersListResponse < 3) { | 1354 if (buildCounterOrdersListResponse < 3) { |
| 1355 o.kind = "foo"; | 1355 o.kind = "foo"; |
| 1356 o.nextPageToken = "foo"; | 1356 o.nextPageToken = "foo"; |
| 1357 o.resources = buildUnnamed1268(); | 1357 o.resources = buildUnnamed1280(); |
| 1358 } | 1358 } |
| 1359 buildCounterOrdersListResponse--; | 1359 buildCounterOrdersListResponse--; |
| 1360 return o; | 1360 return o; |
| 1361 } | 1361 } |
| 1362 | 1362 |
| 1363 checkOrdersListResponse(api.OrdersListResponse o) { | 1363 checkOrdersListResponse(api.OrdersListResponse o) { |
| 1364 buildCounterOrdersListResponse++; | 1364 buildCounterOrdersListResponse++; |
| 1365 if (buildCounterOrdersListResponse < 3) { | 1365 if (buildCounterOrdersListResponse < 3) { |
| 1366 unittest.expect(o.kind, unittest.equals('foo')); | 1366 unittest.expect(o.kind, unittest.equals('foo')); |
| 1367 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1367 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1368 checkUnnamed1268(o.resources); | 1368 checkUnnamed1280(o.resources); |
| 1369 } | 1369 } |
| 1370 buildCounterOrdersListResponse--; | 1370 buildCounterOrdersListResponse--; |
| 1371 } | 1371 } |
| 1372 | 1372 |
| 1373 core.int buildCounterOrdersRefundRequest = 0; | 1373 core.int buildCounterOrdersRefundRequest = 0; |
| 1374 buildOrdersRefundRequest() { | 1374 buildOrdersRefundRequest() { |
| 1375 var o = new api.OrdersRefundRequest(); | 1375 var o = new api.OrdersRefundRequest(); |
| 1376 buildCounterOrdersRefundRequest++; | 1376 buildCounterOrdersRefundRequest++; |
| 1377 if (buildCounterOrdersRefundRequest < 3) { | 1377 if (buildCounterOrdersRefundRequest < 3) { |
| 1378 o.amount = buildPrice(); | 1378 o.amount = buildPrice(); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1457 | 1457 |
| 1458 checkOrdersReturnLineItemResponse(api.OrdersReturnLineItemResponse o) { | 1458 checkOrdersReturnLineItemResponse(api.OrdersReturnLineItemResponse o) { |
| 1459 buildCounterOrdersReturnLineItemResponse++; | 1459 buildCounterOrdersReturnLineItemResponse++; |
| 1460 if (buildCounterOrdersReturnLineItemResponse < 3) { | 1460 if (buildCounterOrdersReturnLineItemResponse < 3) { |
| 1461 unittest.expect(o.executionStatus, unittest.equals('foo')); | 1461 unittest.expect(o.executionStatus, unittest.equals('foo')); |
| 1462 unittest.expect(o.kind, unittest.equals('foo')); | 1462 unittest.expect(o.kind, unittest.equals('foo')); |
| 1463 } | 1463 } |
| 1464 buildCounterOrdersReturnLineItemResponse--; | 1464 buildCounterOrdersReturnLineItemResponse--; |
| 1465 } | 1465 } |
| 1466 | 1466 |
| 1467 buildUnnamed1269() { | 1467 buildUnnamed1281() { |
| 1468 var o = new core.List<api.OrderShipmentLineItemShipment>(); | 1468 var o = new core.List<api.OrderShipmentLineItemShipment>(); |
| 1469 o.add(buildOrderShipmentLineItemShipment()); | 1469 o.add(buildOrderShipmentLineItemShipment()); |
| 1470 o.add(buildOrderShipmentLineItemShipment()); | 1470 o.add(buildOrderShipmentLineItemShipment()); |
| 1471 return o; | 1471 return o; |
| 1472 } | 1472 } |
| 1473 | 1473 |
| 1474 checkUnnamed1269(core.List<api.OrderShipmentLineItemShipment> o) { | 1474 checkUnnamed1281(core.List<api.OrderShipmentLineItemShipment> o) { |
| 1475 unittest.expect(o, unittest.hasLength(2)); | 1475 unittest.expect(o, unittest.hasLength(2)); |
| 1476 checkOrderShipmentLineItemShipment(o[0]); | 1476 checkOrderShipmentLineItemShipment(o[0]); |
| 1477 checkOrderShipmentLineItemShipment(o[1]); | 1477 checkOrderShipmentLineItemShipment(o[1]); |
| 1478 } | 1478 } |
| 1479 | 1479 |
| 1480 core.int buildCounterOrdersShipLineItemsRequest = 0; | 1480 core.int buildCounterOrdersShipLineItemsRequest = 0; |
| 1481 buildOrdersShipLineItemsRequest() { | 1481 buildOrdersShipLineItemsRequest() { |
| 1482 var o = new api.OrdersShipLineItemsRequest(); | 1482 var o = new api.OrdersShipLineItemsRequest(); |
| 1483 buildCounterOrdersShipLineItemsRequest++; | 1483 buildCounterOrdersShipLineItemsRequest++; |
| 1484 if (buildCounterOrdersShipLineItemsRequest < 3) { | 1484 if (buildCounterOrdersShipLineItemsRequest < 3) { |
| 1485 o.carrier = "foo"; | 1485 o.carrier = "foo"; |
| 1486 o.lineItems = buildUnnamed1269(); | 1486 o.lineItems = buildUnnamed1281(); |
| 1487 o.operationId = "foo"; | 1487 o.operationId = "foo"; |
| 1488 o.shipmentId = "foo"; | 1488 o.shipmentId = "foo"; |
| 1489 o.trackingId = "foo"; | 1489 o.trackingId = "foo"; |
| 1490 } | 1490 } |
| 1491 buildCounterOrdersShipLineItemsRequest--; | 1491 buildCounterOrdersShipLineItemsRequest--; |
| 1492 return o; | 1492 return o; |
| 1493 } | 1493 } |
| 1494 | 1494 |
| 1495 checkOrdersShipLineItemsRequest(api.OrdersShipLineItemsRequest o) { | 1495 checkOrdersShipLineItemsRequest(api.OrdersShipLineItemsRequest o) { |
| 1496 buildCounterOrdersShipLineItemsRequest++; | 1496 buildCounterOrdersShipLineItemsRequest++; |
| 1497 if (buildCounterOrdersShipLineItemsRequest < 3) { | 1497 if (buildCounterOrdersShipLineItemsRequest < 3) { |
| 1498 unittest.expect(o.carrier, unittest.equals('foo')); | 1498 unittest.expect(o.carrier, unittest.equals('foo')); |
| 1499 checkUnnamed1269(o.lineItems); | 1499 checkUnnamed1281(o.lineItems); |
| 1500 unittest.expect(o.operationId, unittest.equals('foo')); | 1500 unittest.expect(o.operationId, unittest.equals('foo')); |
| 1501 unittest.expect(o.shipmentId, unittest.equals('foo')); | 1501 unittest.expect(o.shipmentId, unittest.equals('foo')); |
| 1502 unittest.expect(o.trackingId, unittest.equals('foo')); | 1502 unittest.expect(o.trackingId, unittest.equals('foo')); |
| 1503 } | 1503 } |
| 1504 buildCounterOrdersShipLineItemsRequest--; | 1504 buildCounterOrdersShipLineItemsRequest--; |
| 1505 } | 1505 } |
| 1506 | 1506 |
| 1507 core.int buildCounterOrdersShipLineItemsResponse = 0; | 1507 core.int buildCounterOrdersShipLineItemsResponse = 0; |
| 1508 buildOrdersShipLineItemsResponse() { | 1508 buildOrdersShipLineItemsResponse() { |
| 1509 var o = new api.OrdersShipLineItemsResponse(); | 1509 var o = new api.OrdersShipLineItemsResponse(); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1629 | 1629 |
| 1630 checkPrice(api.Price o) { | 1630 checkPrice(api.Price o) { |
| 1631 buildCounterPrice++; | 1631 buildCounterPrice++; |
| 1632 if (buildCounterPrice < 3) { | 1632 if (buildCounterPrice < 3) { |
| 1633 unittest.expect(o.currency, unittest.equals('foo')); | 1633 unittest.expect(o.currency, unittest.equals('foo')); |
| 1634 unittest.expect(o.value, unittest.equals('foo')); | 1634 unittest.expect(o.value, unittest.equals('foo')); |
| 1635 } | 1635 } |
| 1636 buildCounterPrice--; | 1636 buildCounterPrice--; |
| 1637 } | 1637 } |
| 1638 | 1638 |
| 1639 buildUnnamed1270() { | 1639 buildUnnamed1282() { |
| 1640 var o = new core.List<api.TestOrderLineItem>(); | 1640 var o = new core.List<api.TestOrderLineItem>(); |
| 1641 o.add(buildTestOrderLineItem()); | 1641 o.add(buildTestOrderLineItem()); |
| 1642 o.add(buildTestOrderLineItem()); | 1642 o.add(buildTestOrderLineItem()); |
| 1643 return o; | 1643 return o; |
| 1644 } | 1644 } |
| 1645 | 1645 |
| 1646 checkUnnamed1270(core.List<api.TestOrderLineItem> o) { | 1646 checkUnnamed1282(core.List<api.TestOrderLineItem> o) { |
| 1647 unittest.expect(o, unittest.hasLength(2)); | 1647 unittest.expect(o, unittest.hasLength(2)); |
| 1648 checkTestOrderLineItem(o[0]); | 1648 checkTestOrderLineItem(o[0]); |
| 1649 checkTestOrderLineItem(o[1]); | 1649 checkTestOrderLineItem(o[1]); |
| 1650 } | 1650 } |
| 1651 | 1651 |
| 1652 buildUnnamed1271() { | 1652 buildUnnamed1283() { |
| 1653 var o = new core.List<api.OrderPromotion>(); | 1653 var o = new core.List<api.OrderPromotion>(); |
| 1654 o.add(buildOrderPromotion()); | 1654 o.add(buildOrderPromotion()); |
| 1655 o.add(buildOrderPromotion()); | 1655 o.add(buildOrderPromotion()); |
| 1656 return o; | 1656 return o; |
| 1657 } | 1657 } |
| 1658 | 1658 |
| 1659 checkUnnamed1271(core.List<api.OrderPromotion> o) { | 1659 checkUnnamed1283(core.List<api.OrderPromotion> o) { |
| 1660 unittest.expect(o, unittest.hasLength(2)); | 1660 unittest.expect(o, unittest.hasLength(2)); |
| 1661 checkOrderPromotion(o[0]); | 1661 checkOrderPromotion(o[0]); |
| 1662 checkOrderPromotion(o[1]); | 1662 checkOrderPromotion(o[1]); |
| 1663 } | 1663 } |
| 1664 | 1664 |
| 1665 core.int buildCounterTestOrder = 0; | 1665 core.int buildCounterTestOrder = 0; |
| 1666 buildTestOrder() { | 1666 buildTestOrder() { |
| 1667 var o = new api.TestOrder(); | 1667 var o = new api.TestOrder(); |
| 1668 buildCounterTestOrder++; | 1668 buildCounterTestOrder++; |
| 1669 if (buildCounterTestOrder < 3) { | 1669 if (buildCounterTestOrder < 3) { |
| 1670 o.customer = buildTestOrderCustomer(); | 1670 o.customer = buildTestOrderCustomer(); |
| 1671 o.kind = "foo"; | 1671 o.kind = "foo"; |
| 1672 o.lineItems = buildUnnamed1270(); | 1672 o.lineItems = buildUnnamed1282(); |
| 1673 o.paymentMethod = buildTestOrderPaymentMethod(); | 1673 o.paymentMethod = buildTestOrderPaymentMethod(); |
| 1674 o.predefinedDeliveryAddress = "foo"; | 1674 o.predefinedDeliveryAddress = "foo"; |
| 1675 o.promotions = buildUnnamed1271(); | 1675 o.promotions = buildUnnamed1283(); |
| 1676 o.shippingCost = buildPrice(); | 1676 o.shippingCost = buildPrice(); |
| 1677 o.shippingCostTax = buildPrice(); | 1677 o.shippingCostTax = buildPrice(); |
| 1678 o.shippingOption = "foo"; | 1678 o.shippingOption = "foo"; |
| 1679 } | 1679 } |
| 1680 buildCounterTestOrder--; | 1680 buildCounterTestOrder--; |
| 1681 return o; | 1681 return o; |
| 1682 } | 1682 } |
| 1683 | 1683 |
| 1684 checkTestOrder(api.TestOrder o) { | 1684 checkTestOrder(api.TestOrder o) { |
| 1685 buildCounterTestOrder++; | 1685 buildCounterTestOrder++; |
| 1686 if (buildCounterTestOrder < 3) { | 1686 if (buildCounterTestOrder < 3) { |
| 1687 checkTestOrderCustomer(o.customer); | 1687 checkTestOrderCustomer(o.customer); |
| 1688 unittest.expect(o.kind, unittest.equals('foo')); | 1688 unittest.expect(o.kind, unittest.equals('foo')); |
| 1689 checkUnnamed1270(o.lineItems); | 1689 checkUnnamed1282(o.lineItems); |
| 1690 checkTestOrderPaymentMethod(o.paymentMethod); | 1690 checkTestOrderPaymentMethod(o.paymentMethod); |
| 1691 unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo')); | 1691 unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo')); |
| 1692 checkUnnamed1271(o.promotions); | 1692 checkUnnamed1283(o.promotions); |
| 1693 checkPrice(o.shippingCost); | 1693 checkPrice(o.shippingCost); |
| 1694 checkPrice(o.shippingCostTax); | 1694 checkPrice(o.shippingCostTax); |
| 1695 unittest.expect(o.shippingOption, unittest.equals('foo')); | 1695 unittest.expect(o.shippingOption, unittest.equals('foo')); |
| 1696 } | 1696 } |
| 1697 buildCounterTestOrder--; | 1697 buildCounterTestOrder--; |
| 1698 } | 1698 } |
| 1699 | 1699 |
| 1700 core.int buildCounterTestOrderCustomer = 0; | 1700 core.int buildCounterTestOrderCustomer = 0; |
| 1701 buildTestOrderCustomer() { | 1701 buildTestOrderCustomer() { |
| 1702 var o = new api.TestOrderCustomer(); | 1702 var o = new api.TestOrderCustomer(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1740 if (buildCounterTestOrderLineItem < 3) { | 1740 if (buildCounterTestOrderLineItem < 3) { |
| 1741 checkTestOrderLineItemProduct(o.product); | 1741 checkTestOrderLineItemProduct(o.product); |
| 1742 unittest.expect(o.quantityOrdered, unittest.equals(42)); | 1742 unittest.expect(o.quantityOrdered, unittest.equals(42)); |
| 1743 checkOrderLineItemReturnInfo(o.returnInfo); | 1743 checkOrderLineItemReturnInfo(o.returnInfo); |
| 1744 checkOrderLineItemShippingDetails(o.shippingDetails); | 1744 checkOrderLineItemShippingDetails(o.shippingDetails); |
| 1745 checkPrice(o.unitTax); | 1745 checkPrice(o.unitTax); |
| 1746 } | 1746 } |
| 1747 buildCounterTestOrderLineItem--; | 1747 buildCounterTestOrderLineItem--; |
| 1748 } | 1748 } |
| 1749 | 1749 |
| 1750 buildUnnamed1272() { | 1750 buildUnnamed1284() { |
| 1751 var o = new core.List<api.OrderLineItemProductVariantAttribute>(); | 1751 var o = new core.List<api.OrderLineItemProductVariantAttribute>(); |
| 1752 o.add(buildOrderLineItemProductVariantAttribute()); | 1752 o.add(buildOrderLineItemProductVariantAttribute()); |
| 1753 o.add(buildOrderLineItemProductVariantAttribute()); | 1753 o.add(buildOrderLineItemProductVariantAttribute()); |
| 1754 return o; | 1754 return o; |
| 1755 } | 1755 } |
| 1756 | 1756 |
| 1757 checkUnnamed1272(core.List<api.OrderLineItemProductVariantAttribute> o) { | 1757 checkUnnamed1284(core.List<api.OrderLineItemProductVariantAttribute> o) { |
| 1758 unittest.expect(o, unittest.hasLength(2)); | 1758 unittest.expect(o, unittest.hasLength(2)); |
| 1759 checkOrderLineItemProductVariantAttribute(o[0]); | 1759 checkOrderLineItemProductVariantAttribute(o[0]); |
| 1760 checkOrderLineItemProductVariantAttribute(o[1]); | 1760 checkOrderLineItemProductVariantAttribute(o[1]); |
| 1761 } | 1761 } |
| 1762 | 1762 |
| 1763 core.int buildCounterTestOrderLineItemProduct = 0; | 1763 core.int buildCounterTestOrderLineItemProduct = 0; |
| 1764 buildTestOrderLineItemProduct() { | 1764 buildTestOrderLineItemProduct() { |
| 1765 var o = new api.TestOrderLineItemProduct(); | 1765 var o = new api.TestOrderLineItemProduct(); |
| 1766 buildCounterTestOrderLineItemProduct++; | 1766 buildCounterTestOrderLineItemProduct++; |
| 1767 if (buildCounterTestOrderLineItemProduct < 3) { | 1767 if (buildCounterTestOrderLineItemProduct < 3) { |
| 1768 o.brand = "foo"; | 1768 o.brand = "foo"; |
| 1769 o.channel = "foo"; | 1769 o.channel = "foo"; |
| 1770 o.condition = "foo"; | 1770 o.condition = "foo"; |
| 1771 o.contentLanguage = "foo"; | 1771 o.contentLanguage = "foo"; |
| 1772 o.gtin = "foo"; | 1772 o.gtin = "foo"; |
| 1773 o.imageLink = "foo"; | 1773 o.imageLink = "foo"; |
| 1774 o.itemGroupId = "foo"; | 1774 o.itemGroupId = "foo"; |
| 1775 o.mpn = "foo"; | 1775 o.mpn = "foo"; |
| 1776 o.offerId = "foo"; | 1776 o.offerId = "foo"; |
| 1777 o.price = buildPrice(); | 1777 o.price = buildPrice(); |
| 1778 o.targetCountry = "foo"; | 1778 o.targetCountry = "foo"; |
| 1779 o.title = "foo"; | 1779 o.title = "foo"; |
| 1780 o.variantAttributes = buildUnnamed1272(); | 1780 o.variantAttributes = buildUnnamed1284(); |
| 1781 } | 1781 } |
| 1782 buildCounterTestOrderLineItemProduct--; | 1782 buildCounterTestOrderLineItemProduct--; |
| 1783 return o; | 1783 return o; |
| 1784 } | 1784 } |
| 1785 | 1785 |
| 1786 checkTestOrderLineItemProduct(api.TestOrderLineItemProduct o) { | 1786 checkTestOrderLineItemProduct(api.TestOrderLineItemProduct o) { |
| 1787 buildCounterTestOrderLineItemProduct++; | 1787 buildCounterTestOrderLineItemProduct++; |
| 1788 if (buildCounterTestOrderLineItemProduct < 3) { | 1788 if (buildCounterTestOrderLineItemProduct < 3) { |
| 1789 unittest.expect(o.brand, unittest.equals('foo')); | 1789 unittest.expect(o.brand, unittest.equals('foo')); |
| 1790 unittest.expect(o.channel, unittest.equals('foo')); | 1790 unittest.expect(o.channel, unittest.equals('foo')); |
| 1791 unittest.expect(o.condition, unittest.equals('foo')); | 1791 unittest.expect(o.condition, unittest.equals('foo')); |
| 1792 unittest.expect(o.contentLanguage, unittest.equals('foo')); | 1792 unittest.expect(o.contentLanguage, unittest.equals('foo')); |
| 1793 unittest.expect(o.gtin, unittest.equals('foo')); | 1793 unittest.expect(o.gtin, unittest.equals('foo')); |
| 1794 unittest.expect(o.imageLink, unittest.equals('foo')); | 1794 unittest.expect(o.imageLink, unittest.equals('foo')); |
| 1795 unittest.expect(o.itemGroupId, unittest.equals('foo')); | 1795 unittest.expect(o.itemGroupId, unittest.equals('foo')); |
| 1796 unittest.expect(o.mpn, unittest.equals('foo')); | 1796 unittest.expect(o.mpn, unittest.equals('foo')); |
| 1797 unittest.expect(o.offerId, unittest.equals('foo')); | 1797 unittest.expect(o.offerId, unittest.equals('foo')); |
| 1798 checkPrice(o.price); | 1798 checkPrice(o.price); |
| 1799 unittest.expect(o.targetCountry, unittest.equals('foo')); | 1799 unittest.expect(o.targetCountry, unittest.equals('foo')); |
| 1800 unittest.expect(o.title, unittest.equals('foo')); | 1800 unittest.expect(o.title, unittest.equals('foo')); |
| 1801 checkUnnamed1272(o.variantAttributes); | 1801 checkUnnamed1284(o.variantAttributes); |
| 1802 } | 1802 } |
| 1803 buildCounterTestOrderLineItemProduct--; | 1803 buildCounterTestOrderLineItemProduct--; |
| 1804 } | 1804 } |
| 1805 | 1805 |
| 1806 core.int buildCounterTestOrderPaymentMethod = 0; | 1806 core.int buildCounterTestOrderPaymentMethod = 0; |
| 1807 buildTestOrderPaymentMethod() { | 1807 buildTestOrderPaymentMethod() { |
| 1808 var o = new api.TestOrderPaymentMethod(); | 1808 var o = new api.TestOrderPaymentMethod(); |
| 1809 buildCounterTestOrderPaymentMethod++; | 1809 buildCounterTestOrderPaymentMethod++; |
| 1810 if (buildCounterTestOrderPaymentMethod < 3) { | 1810 if (buildCounterTestOrderPaymentMethod < 3) { |
| 1811 o.expirationMonth = 42; | 1811 o.expirationMonth = 42; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1823 if (buildCounterTestOrderPaymentMethod < 3) { | 1823 if (buildCounterTestOrderPaymentMethod < 3) { |
| 1824 unittest.expect(o.expirationMonth, unittest.equals(42)); | 1824 unittest.expect(o.expirationMonth, unittest.equals(42)); |
| 1825 unittest.expect(o.expirationYear, unittest.equals(42)); | 1825 unittest.expect(o.expirationYear, unittest.equals(42)); |
| 1826 unittest.expect(o.lastFourDigits, unittest.equals('foo')); | 1826 unittest.expect(o.lastFourDigits, unittest.equals('foo')); |
| 1827 unittest.expect(o.predefinedBillingAddress, unittest.equals('foo')); | 1827 unittest.expect(o.predefinedBillingAddress, unittest.equals('foo')); |
| 1828 unittest.expect(o.type, unittest.equals('foo')); | 1828 unittest.expect(o.type, unittest.equals('foo')); |
| 1829 } | 1829 } |
| 1830 buildCounterTestOrderPaymentMethod--; | 1830 buildCounterTestOrderPaymentMethod--; |
| 1831 } | 1831 } |
| 1832 | 1832 |
| 1833 buildUnnamed1273() { | 1833 buildUnnamed1285() { |
| 1834 var o = new core.List<core.String>(); | 1834 var o = new core.List<core.String>(); |
| 1835 o.add("foo"); | 1835 o.add("foo"); |
| 1836 o.add("foo"); | 1836 o.add("foo"); |
| 1837 return o; | 1837 return o; |
| 1838 } | 1838 } |
| 1839 | 1839 |
| 1840 checkUnnamed1273(core.List<core.String> o) { | 1840 checkUnnamed1285(core.List<core.String> o) { |
| 1841 unittest.expect(o, unittest.hasLength(2)); | 1841 unittest.expect(o, unittest.hasLength(2)); |
| 1842 unittest.expect(o[0], unittest.equals('foo')); | 1842 unittest.expect(o[0], unittest.equals('foo')); |
| 1843 unittest.expect(o[1], unittest.equals('foo')); | 1843 unittest.expect(o[1], unittest.equals('foo')); |
| 1844 } | 1844 } |
| 1845 | 1845 |
| 1846 | 1846 |
| 1847 main() { | 1847 main() { |
| 1848 unittest.group("obj-schema-Error", () { | 1848 unittest.group("obj-schema-Error", () { |
| 1849 unittest.test("to-json--from-json", () { | 1849 unittest.test("to-json--from-json", () { |
| 1850 var o = buildError(); | 1850 var o = buildError(); |
| (...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2780 | 2780 |
| 2781 var mock = new HttpServerMock(); | 2781 var mock = new HttpServerMock(); |
| 2782 api.OrdersResourceApi res = new api.ContentApi(mock).orders; | 2782 api.OrdersResourceApi res = new api.ContentApi(mock).orders; |
| 2783 var arg_merchantId = "foo"; | 2783 var arg_merchantId = "foo"; |
| 2784 var arg_acknowledged = true; | 2784 var arg_acknowledged = true; |
| 2785 var arg_maxResults = 42; | 2785 var arg_maxResults = 42; |
| 2786 var arg_orderBy = "foo"; | 2786 var arg_orderBy = "foo"; |
| 2787 var arg_pageToken = "foo"; | 2787 var arg_pageToken = "foo"; |
| 2788 var arg_placedDateEnd = "foo"; | 2788 var arg_placedDateEnd = "foo"; |
| 2789 var arg_placedDateStart = "foo"; | 2789 var arg_placedDateStart = "foo"; |
| 2790 var arg_statuses = buildUnnamed1273(); | 2790 var arg_statuses = buildUnnamed1285(); |
| 2791 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2791 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2792 var path = (req.url).path; | 2792 var path = (req.url).path; |
| 2793 var pathOffset = 0; | 2793 var pathOffset = 0; |
| 2794 var index; | 2794 var index; |
| 2795 var subPart; | 2795 var subPart; |
| 2796 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2796 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2797 pathOffset += 1; | 2797 pathOffset += 1; |
| 2798 | 2798 |
| 2799 var query = (req.url).query; | 2799 var query = (req.url).query; |
| 2800 var queryOffset = 0; | 2800 var queryOffset = 0; |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3065 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) { |
| 3066 checkOrdersUpdateShipmentResponse(response); | 3066 checkOrdersUpdateShipmentResponse(response); |
| 3067 }))); | 3067 }))); |
| 3068 }); | 3068 }); |
| 3069 | 3069 |
| 3070 }); | 3070 }); |
| 3071 | 3071 |
| 3072 | 3072 |
| 3073 } | 3073 } |
| 3074 | 3074 |
| OLD | NEW |