OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.content.v2sandbox; | 3 library googleapis.content.v2sandbox; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 21 matching lines...) Expand all Loading... |
32 } | 32 } |
33 | 33 |
34 | 34 |
35 class OrdersResourceApi { | 35 class OrdersResourceApi { |
36 final commons.ApiRequester _requester; | 36 final commons.ApiRequester _requester; |
37 | 37 |
38 OrdersResourceApi(commons.ApiRequester client) : | 38 OrdersResourceApi(commons.ApiRequester client) : |
39 _requester = client; | 39 _requester = client; |
40 | 40 |
41 /** | 41 /** |
42 * Marks an order as acknowledged. | 42 * Marks an order as acknowledged. This method can only be called for |
| 43 * non-multi-client accounts. |
43 * | 44 * |
44 * [request] - The metadata request object. | 45 * [request] - The metadata request object. |
45 * | 46 * |
46 * Request parameters: | 47 * Request parameters: |
47 * | 48 * |
48 * [merchantId] - The ID of the managing account. | 49 * [merchantId] - The ID of the managing account. |
49 * | 50 * |
50 * [orderId] - The ID of the order. | 51 * [orderId] - The ID of the order. |
51 * | 52 * |
52 * Completes with a [OrdersAcknowledgeResponse]. | 53 * Completes with a [OrdersAcknowledgeResponse]. |
(...skipping 29 matching lines...) Expand all Loading... |
82 body: _body, | 83 body: _body, |
83 queryParams: _queryParams, | 84 queryParams: _queryParams, |
84 uploadOptions: _uploadOptions, | 85 uploadOptions: _uploadOptions, |
85 uploadMedia: _uploadMedia, | 86 uploadMedia: _uploadMedia, |
86 downloadOptions: _downloadOptions); | 87 downloadOptions: _downloadOptions); |
87 return _response.then((data) => new OrdersAcknowledgeResponse.fromJson(data)
); | 88 return _response.then((data) => new OrdersAcknowledgeResponse.fromJson(data)
); |
88 } | 89 } |
89 | 90 |
90 /** | 91 /** |
91 * Sandbox only. Moves a test order from state "inProgress" to state | 92 * Sandbox only. Moves a test order from state "inProgress" to state |
92 * "pendingShipment". | 93 * "pendingShipment". This method can only be called for non-multi-client |
| 94 * accounts. |
93 * | 95 * |
94 * Request parameters: | 96 * Request parameters: |
95 * | 97 * |
96 * [merchantId] - The ID of the managing account. | 98 * [merchantId] - The ID of the managing account. |
97 * | 99 * |
98 * [orderId] - The ID of the test order to modify. | 100 * [orderId] - The ID of the test order to modify. |
99 * | 101 * |
100 * Completes with a [OrdersAdvanceTestOrderResponse]. | 102 * Completes with a [OrdersAdvanceTestOrderResponse]. |
101 * | 103 * |
102 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 104 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 23 matching lines...) Expand all Loading... |
126 "POST", | 128 "POST", |
127 body: _body, | 129 body: _body, |
128 queryParams: _queryParams, | 130 queryParams: _queryParams, |
129 uploadOptions: _uploadOptions, | 131 uploadOptions: _uploadOptions, |
130 uploadMedia: _uploadMedia, | 132 uploadMedia: _uploadMedia, |
131 downloadOptions: _downloadOptions); | 133 downloadOptions: _downloadOptions); |
132 return _response.then((data) => new OrdersAdvanceTestOrderResponse.fromJson(
data)); | 134 return _response.then((data) => new OrdersAdvanceTestOrderResponse.fromJson(
data)); |
133 } | 135 } |
134 | 136 |
135 /** | 137 /** |
136 * Cancels all line items in an order. | 138 * Cancels all line items in an order. This method can only be called for |
| 139 * non-multi-client accounts. |
137 * | 140 * |
138 * [request] - The metadata request object. | 141 * [request] - The metadata request object. |
139 * | 142 * |
140 * Request parameters: | 143 * Request parameters: |
141 * | 144 * |
142 * [merchantId] - The ID of the managing account. | 145 * [merchantId] - The ID of the managing account. |
143 * | 146 * |
144 * [orderId] - The ID of the order to cancel. | 147 * [orderId] - The ID of the order to cancel. |
145 * | 148 * |
146 * Completes with a [OrdersCancelResponse]. | 149 * Completes with a [OrdersCancelResponse]. |
(...skipping 28 matching lines...) Expand all Loading... |
175 "POST", | 178 "POST", |
176 body: _body, | 179 body: _body, |
177 queryParams: _queryParams, | 180 queryParams: _queryParams, |
178 uploadOptions: _uploadOptions, | 181 uploadOptions: _uploadOptions, |
179 uploadMedia: _uploadMedia, | 182 uploadMedia: _uploadMedia, |
180 downloadOptions: _downloadOptions); | 183 downloadOptions: _downloadOptions); |
181 return _response.then((data) => new OrdersCancelResponse.fromJson(data)); | 184 return _response.then((data) => new OrdersCancelResponse.fromJson(data)); |
182 } | 185 } |
183 | 186 |
184 /** | 187 /** |
185 * Cancels a line item. | 188 * Cancels a line item. This method can only be called for non-multi-client |
| 189 * accounts. |
186 * | 190 * |
187 * [request] - The metadata request object. | 191 * [request] - The metadata request object. |
188 * | 192 * |
189 * Request parameters: | 193 * Request parameters: |
190 * | 194 * |
191 * [merchantId] - The ID of the managing account. | 195 * [merchantId] - The ID of the managing account. |
192 * | 196 * |
193 * [orderId] - The ID of the order. | 197 * [orderId] - The ID of the order. |
194 * | 198 * |
195 * Completes with a [OrdersCancelLineItemResponse]. | 199 * Completes with a [OrdersCancelLineItemResponse]. |
(...skipping 28 matching lines...) Expand all Loading... |
224 "POST", | 228 "POST", |
225 body: _body, | 229 body: _body, |
226 queryParams: _queryParams, | 230 queryParams: _queryParams, |
227 uploadOptions: _uploadOptions, | 231 uploadOptions: _uploadOptions, |
228 uploadMedia: _uploadMedia, | 232 uploadMedia: _uploadMedia, |
229 downloadOptions: _downloadOptions); | 233 downloadOptions: _downloadOptions); |
230 return _response.then((data) => new OrdersCancelLineItemResponse.fromJson(da
ta)); | 234 return _response.then((data) => new OrdersCancelLineItemResponse.fromJson(da
ta)); |
231 } | 235 } |
232 | 236 |
233 /** | 237 /** |
234 * Sandbox only. Creates a test order. | 238 * Sandbox only. Creates a test order. This method can only be called for |
| 239 * non-multi-client accounts. |
235 * | 240 * |
236 * [request] - The metadata request object. | 241 * [request] - The metadata request object. |
237 * | 242 * |
238 * Request parameters: | 243 * Request parameters: |
239 * | 244 * |
240 * [merchantId] - The ID of the managing account. | 245 * [merchantId] - The ID of the managing account. |
241 * | 246 * |
242 * Completes with a [OrdersCreateTestOrderResponse]. | 247 * Completes with a [OrdersCreateTestOrderResponse]. |
243 * | 248 * |
244 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 249 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 23 matching lines...) Expand all Loading... |
268 "POST", | 273 "POST", |
269 body: _body, | 274 body: _body, |
270 queryParams: _queryParams, | 275 queryParams: _queryParams, |
271 uploadOptions: _uploadOptions, | 276 uploadOptions: _uploadOptions, |
272 uploadMedia: _uploadMedia, | 277 uploadMedia: _uploadMedia, |
273 downloadOptions: _downloadOptions); | 278 downloadOptions: _downloadOptions); |
274 return _response.then((data) => new OrdersCreateTestOrderResponse.fromJson(d
ata)); | 279 return _response.then((data) => new OrdersCreateTestOrderResponse.fromJson(d
ata)); |
275 } | 280 } |
276 | 281 |
277 /** | 282 /** |
278 * Retrieves or modifies multiple orders in a single request. | 283 * Retrieves or modifies multiple orders in a single request. This method can |
| 284 * only be called for non-multi-client accounts. |
279 * | 285 * |
280 * [request] - The metadata request object. | 286 * [request] - The metadata request object. |
281 * | 287 * |
282 * Request parameters: | 288 * Request parameters: |
283 * | 289 * |
284 * Completes with a [OrdersCustomBatchResponse]. | 290 * Completes with a [OrdersCustomBatchResponse]. |
285 * | 291 * |
286 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 292 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
287 * error. | 293 * error. |
288 * | 294 * |
(...skipping 18 matching lines...) Expand all Loading... |
307 "POST", | 313 "POST", |
308 body: _body, | 314 body: _body, |
309 queryParams: _queryParams, | 315 queryParams: _queryParams, |
310 uploadOptions: _uploadOptions, | 316 uploadOptions: _uploadOptions, |
311 uploadMedia: _uploadMedia, | 317 uploadMedia: _uploadMedia, |
312 downloadOptions: _downloadOptions); | 318 downloadOptions: _downloadOptions); |
313 return _response.then((data) => new OrdersCustomBatchResponse.fromJson(data)
); | 319 return _response.then((data) => new OrdersCustomBatchResponse.fromJson(data)
); |
314 } | 320 } |
315 | 321 |
316 /** | 322 /** |
317 * Retrieves an order from your Merchant Center account. | 323 * Retrieves an order from your Merchant Center account. This method can only |
| 324 * be called for non-multi-client accounts. |
318 * | 325 * |
319 * Request parameters: | 326 * Request parameters: |
320 * | 327 * |
321 * [merchantId] - The ID of the managing account. | 328 * [merchantId] - The ID of the managing account. |
322 * | 329 * |
323 * [orderId] - The ID of the order. | 330 * [orderId] - The ID of the order. |
324 * | 331 * |
325 * Completes with a [Order]. | 332 * Completes with a [Order]. |
326 * | 333 * |
327 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 334 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 23 matching lines...) Expand all Loading... |
351 "GET", | 358 "GET", |
352 body: _body, | 359 body: _body, |
353 queryParams: _queryParams, | 360 queryParams: _queryParams, |
354 uploadOptions: _uploadOptions, | 361 uploadOptions: _uploadOptions, |
355 uploadMedia: _uploadMedia, | 362 uploadMedia: _uploadMedia, |
356 downloadOptions: _downloadOptions); | 363 downloadOptions: _downloadOptions); |
357 return _response.then((data) => new Order.fromJson(data)); | 364 return _response.then((data) => new Order.fromJson(data)); |
358 } | 365 } |
359 | 366 |
360 /** | 367 /** |
361 * Retrieves an order using merchant order id. | 368 * Retrieves an order using merchant order id. This method can only be called |
| 369 * for non-multi-client accounts. |
362 * | 370 * |
363 * Request parameters: | 371 * Request parameters: |
364 * | 372 * |
365 * [merchantId] - The ID of the managing account. | 373 * [merchantId] - The ID of the managing account. |
366 * | 374 * |
367 * [merchantOrderId] - The merchant order id to be looked for. | 375 * [merchantOrderId] - The merchant order id to be looked for. |
368 * | 376 * |
369 * Completes with a [OrdersGetByMerchantOrderIdResponse]. | 377 * Completes with a [OrdersGetByMerchantOrderIdResponse]. |
370 * | 378 * |
371 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 379 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 24 matching lines...) Expand all Loading... |
396 body: _body, | 404 body: _body, |
397 queryParams: _queryParams, | 405 queryParams: _queryParams, |
398 uploadOptions: _uploadOptions, | 406 uploadOptions: _uploadOptions, |
399 uploadMedia: _uploadMedia, | 407 uploadMedia: _uploadMedia, |
400 downloadOptions: _downloadOptions); | 408 downloadOptions: _downloadOptions); |
401 return _response.then((data) => new OrdersGetByMerchantOrderIdResponse.fromJ
son(data)); | 409 return _response.then((data) => new OrdersGetByMerchantOrderIdResponse.fromJ
son(data)); |
402 } | 410 } |
403 | 411 |
404 /** | 412 /** |
405 * Sandbox only. Retrieves an order template that can be used to quickly | 413 * Sandbox only. Retrieves an order template that can be used to quickly |
406 * create a new order in sandbox. | 414 * create a new order in sandbox. This method can only be called for |
| 415 * non-multi-client accounts. |
407 * | 416 * |
408 * Request parameters: | 417 * Request parameters: |
409 * | 418 * |
410 * [merchantId] - The ID of the managing account. | 419 * [merchantId] - The ID of the managing account. |
411 * | 420 * |
412 * [templateName] - The name of the template to retrieve. | 421 * [templateName] - The name of the template to retrieve. |
413 * Possible string values are: | 422 * Possible string values are: |
414 * - "template1" | 423 * - "template1" |
415 * - "template1a" | 424 * - "template1a" |
416 * - "template1b" | 425 * - "template1b" |
(...skipping 28 matching lines...) Expand all Loading... |
445 "GET", | 454 "GET", |
446 body: _body, | 455 body: _body, |
447 queryParams: _queryParams, | 456 queryParams: _queryParams, |
448 uploadOptions: _uploadOptions, | 457 uploadOptions: _uploadOptions, |
449 uploadMedia: _uploadMedia, | 458 uploadMedia: _uploadMedia, |
450 downloadOptions: _downloadOptions); | 459 downloadOptions: _downloadOptions); |
451 return _response.then((data) => new OrdersGetTestOrderTemplateResponse.fromJ
son(data)); | 460 return _response.then((data) => new OrdersGetTestOrderTemplateResponse.fromJ
son(data)); |
452 } | 461 } |
453 | 462 |
454 /** | 463 /** |
455 * Lists the orders in your Merchant Center account. | 464 * Lists the orders in your Merchant Center account. This method can only be |
| 465 * called for non-multi-client accounts. |
456 * | 466 * |
457 * Request parameters: | 467 * Request parameters: |
458 * | 468 * |
459 * [merchantId] - The ID of the managing account. | 469 * [merchantId] - The ID of the managing account. |
460 * | 470 * |
461 * [acknowledged] - Obtains orders that match the acknowledgement status. When | 471 * [acknowledged] - Obtains orders that match the acknowledgement status. When |
462 * set to true, obtains orders that have been acknowledged. When false, | 472 * set to true, obtains orders that have been acknowledged. When false, |
463 * obtains orders that have not been acknowledged. | 473 * obtains orders that have not been acknowledged. |
464 * We recommend using this filter set to false, in conjunction with the | 474 * We recommend using this filter set to false, in conjunction with the |
465 * acknowledge call, such that only un-acknowledged orders are returned. | 475 * acknowledge call, such that only un-acknowledged orders are returned. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 "GET", | 551 "GET", |
542 body: _body, | 552 body: _body, |
543 queryParams: _queryParams, | 553 queryParams: _queryParams, |
544 uploadOptions: _uploadOptions, | 554 uploadOptions: _uploadOptions, |
545 uploadMedia: _uploadMedia, | 555 uploadMedia: _uploadMedia, |
546 downloadOptions: _downloadOptions); | 556 downloadOptions: _downloadOptions); |
547 return _response.then((data) => new OrdersListResponse.fromJson(data)); | 557 return _response.then((data) => new OrdersListResponse.fromJson(data)); |
548 } | 558 } |
549 | 559 |
550 /** | 560 /** |
551 * Refund a portion of the order, up to the full amount paid. | 561 * Refund a portion of the order, up to the full amount paid. This method can |
| 562 * only be called for non-multi-client accounts. |
552 * | 563 * |
553 * [request] - The metadata request object. | 564 * [request] - The metadata request object. |
554 * | 565 * |
555 * Request parameters: | 566 * Request parameters: |
556 * | 567 * |
557 * [merchantId] - The ID of the managing account. | 568 * [merchantId] - The ID of the managing account. |
558 * | 569 * |
559 * [orderId] - The ID of the order to refund. | 570 * [orderId] - The ID of the order to refund. |
560 * | 571 * |
561 * Completes with a [OrdersRefundResponse]. | 572 * Completes with a [OrdersRefundResponse]. |
(...skipping 28 matching lines...) Expand all Loading... |
590 "POST", | 601 "POST", |
591 body: _body, | 602 body: _body, |
592 queryParams: _queryParams, | 603 queryParams: _queryParams, |
593 uploadOptions: _uploadOptions, | 604 uploadOptions: _uploadOptions, |
594 uploadMedia: _uploadMedia, | 605 uploadMedia: _uploadMedia, |
595 downloadOptions: _downloadOptions); | 606 downloadOptions: _downloadOptions); |
596 return _response.then((data) => new OrdersRefundResponse.fromJson(data)); | 607 return _response.then((data) => new OrdersRefundResponse.fromJson(data)); |
597 } | 608 } |
598 | 609 |
599 /** | 610 /** |
600 * Returns a line item. | 611 * Returns a line item. This method can only be called for non-multi-client |
| 612 * accounts. |
601 * | 613 * |
602 * [request] - The metadata request object. | 614 * [request] - The metadata request object. |
603 * | 615 * |
604 * Request parameters: | 616 * Request parameters: |
605 * | 617 * |
606 * [merchantId] - The ID of the managing account. | 618 * [merchantId] - The ID of the managing account. |
607 * | 619 * |
608 * [orderId] - The ID of the order. | 620 * [orderId] - The ID of the order. |
609 * | 621 * |
610 * Completes with a [OrdersReturnLineItemResponse]. | 622 * Completes with a [OrdersReturnLineItemResponse]. |
(...skipping 28 matching lines...) Expand all Loading... |
639 "POST", | 651 "POST", |
640 body: _body, | 652 body: _body, |
641 queryParams: _queryParams, | 653 queryParams: _queryParams, |
642 uploadOptions: _uploadOptions, | 654 uploadOptions: _uploadOptions, |
643 uploadMedia: _uploadMedia, | 655 uploadMedia: _uploadMedia, |
644 downloadOptions: _downloadOptions); | 656 downloadOptions: _downloadOptions); |
645 return _response.then((data) => new OrdersReturnLineItemResponse.fromJson(da
ta)); | 657 return _response.then((data) => new OrdersReturnLineItemResponse.fromJson(da
ta)); |
646 } | 658 } |
647 | 659 |
648 /** | 660 /** |
649 * Marks line item(s) as shipped. | 661 * Marks line item(s) as shipped. This method can only be called for |
| 662 * non-multi-client accounts. |
650 * | 663 * |
651 * [request] - The metadata request object. | 664 * [request] - The metadata request object. |
652 * | 665 * |
653 * Request parameters: | 666 * Request parameters: |
654 * | 667 * |
655 * [merchantId] - The ID of the managing account. | 668 * [merchantId] - The ID of the managing account. |
656 * | 669 * |
657 * [orderId] - The ID of the order. | 670 * [orderId] - The ID of the order. |
658 * | 671 * |
659 * Completes with a [OrdersShipLineItemsResponse]. | 672 * Completes with a [OrdersShipLineItemsResponse]. |
(...skipping 28 matching lines...) Expand all Loading... |
688 "POST", | 701 "POST", |
689 body: _body, | 702 body: _body, |
690 queryParams: _queryParams, | 703 queryParams: _queryParams, |
691 uploadOptions: _uploadOptions, | 704 uploadOptions: _uploadOptions, |
692 uploadMedia: _uploadMedia, | 705 uploadMedia: _uploadMedia, |
693 downloadOptions: _downloadOptions); | 706 downloadOptions: _downloadOptions); |
694 return _response.then((data) => new OrdersShipLineItemsResponse.fromJson(dat
a)); | 707 return _response.then((data) => new OrdersShipLineItemsResponse.fromJson(dat
a)); |
695 } | 708 } |
696 | 709 |
697 /** | 710 /** |
698 * Updates the merchant order ID for a given order. | 711 * Updates the merchant order ID for a given order. This method can only be |
| 712 * called for non-multi-client accounts. |
699 * | 713 * |
700 * [request] - The metadata request object. | 714 * [request] - The metadata request object. |
701 * | 715 * |
702 * Request parameters: | 716 * Request parameters: |
703 * | 717 * |
704 * [merchantId] - The ID of the managing account. | 718 * [merchantId] - The ID of the managing account. |
705 * | 719 * |
706 * [orderId] - The ID of the order. | 720 * [orderId] - The ID of the order. |
707 * | 721 * |
708 * Completes with a [OrdersUpdateMerchantOrderIdResponse]. | 722 * Completes with a [OrdersUpdateMerchantOrderIdResponse]. |
(...skipping 28 matching lines...) Expand all Loading... |
737 "POST", | 751 "POST", |
738 body: _body, | 752 body: _body, |
739 queryParams: _queryParams, | 753 queryParams: _queryParams, |
740 uploadOptions: _uploadOptions, | 754 uploadOptions: _uploadOptions, |
741 uploadMedia: _uploadMedia, | 755 uploadMedia: _uploadMedia, |
742 downloadOptions: _downloadOptions); | 756 downloadOptions: _downloadOptions); |
743 return _response.then((data) => new OrdersUpdateMerchantOrderIdResponse.from
Json(data)); | 757 return _response.then((data) => new OrdersUpdateMerchantOrderIdResponse.from
Json(data)); |
744 } | 758 } |
745 | 759 |
746 /** | 760 /** |
747 * Updates a shipment's status, carrier, and/or tracking ID. | 761 * Updates a shipment's status, carrier, and/or tracking ID. This method can |
| 762 * only be called for non-multi-client accounts. |
748 * | 763 * |
749 * [request] - The metadata request object. | 764 * [request] - The metadata request object. |
750 * | 765 * |
751 * Request parameters: | 766 * Request parameters: |
752 * | 767 * |
753 * [merchantId] - The ID of the managing account. | 768 * [merchantId] - The ID of the managing account. |
754 * | 769 * |
755 * [orderId] - The ID of the order. | 770 * [orderId] - The ID of the order. |
756 * | 771 * |
757 * Completes with a [OrdersUpdateShipmentResponse]. | 772 * Completes with a [OrdersUpdateShipmentResponse]. |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1198 } | 1213 } |
1199 } | 1214 } |
1200 | 1215 |
1201 class OrderCustomer { | 1216 class OrderCustomer { |
1202 /** Email address of the customer. */ | 1217 /** Email address of the customer. */ |
1203 core.String email; | 1218 core.String email; |
1204 /** | 1219 /** |
1205 * If set, this indicates the user explicitly chose to opt in or out of | 1220 * If set, this indicates the user explicitly chose to opt in or out of |
1206 * providing marketing rights to the merchant. If unset, this indicates the | 1221 * providing marketing rights to the merchant. If unset, this indicates the |
1207 * user has already made this choice in a previous purchase, and was thus not | 1222 * user has already made this choice in a previous purchase, and was thus not |
1208 * shown the marketing right opt in/out checkbox during the Purchases on | 1223 * shown the marketing right opt in/out checkbox during the checkout flow. |
1209 * Google checkout flow. | |
1210 */ | 1224 */ |
1211 core.bool explicitMarketingPreference; | 1225 core.bool explicitMarketingPreference; |
1212 /** Full name of the customer. */ | 1226 /** Full name of the customer. */ |
1213 core.String fullName; | 1227 core.String fullName; |
1214 | 1228 |
1215 OrderCustomer(); | 1229 OrderCustomer(); |
1216 | 1230 |
1217 OrderCustomer.fromJson(core.Map _json) { | 1231 OrderCustomer.fromJson(core.Map _json) { |
1218 if (_json.containsKey("email")) { | 1232 if (_json.containsKey("email")) { |
1219 email = _json["email"]; | 1233 email = _json["email"]; |
(...skipping 2314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3534 } | 3548 } |
3535 } | 3549 } |
3536 | 3550 |
3537 class TestOrderCustomer { | 3551 class TestOrderCustomer { |
3538 /** Email address of the customer. */ | 3552 /** Email address of the customer. */ |
3539 core.String email; | 3553 core.String email; |
3540 /** | 3554 /** |
3541 * If set, this indicates the user explicitly chose to opt in or out of | 3555 * If set, this indicates the user explicitly chose to opt in or out of |
3542 * providing marketing rights to the merchant. If unset, this indicates the | 3556 * providing marketing rights to the merchant. If unset, this indicates the |
3543 * user has already made this choice in a previous purchase, and was thus not | 3557 * user has already made this choice in a previous purchase, and was thus not |
3544 * shown the marketing right opt in/out checkbox during the Purchases on | 3558 * shown the marketing right opt in/out checkbox during the checkout flow. |
3545 * Google checkout flow. Optional. | 3559 * Optional. |
3546 */ | 3560 */ |
3547 core.bool explicitMarketingPreference; | 3561 core.bool explicitMarketingPreference; |
3548 /** Full name of the customer. */ | 3562 /** Full name of the customer. */ |
3549 core.String fullName; | 3563 core.String fullName; |
3550 | 3564 |
3551 TestOrderCustomer(); | 3565 TestOrderCustomer(); |
3552 | 3566 |
3553 TestOrderCustomer.fromJson(core.Map _json) { | 3567 TestOrderCustomer.fromJson(core.Map _json) { |
3554 if (_json.containsKey("email")) { | 3568 if (_json.containsKey("email")) { |
3555 email = _json["email"]; | 3569 email = _json["email"]; |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3795 } | 3809 } |
3796 if (predefinedBillingAddress != null) { | 3810 if (predefinedBillingAddress != null) { |
3797 _json["predefinedBillingAddress"] = predefinedBillingAddress; | 3811 _json["predefinedBillingAddress"] = predefinedBillingAddress; |
3798 } | 3812 } |
3799 if (type != null) { | 3813 if (type != null) { |
3800 _json["type"] = type; | 3814 _json["type"] = type; |
3801 } | 3815 } |
3802 return _json; | 3816 return _json; |
3803 } | 3817 } |
3804 } | 3818 } |
OLD | NEW |