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 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 if (message != null) { | 868 if (message != null) { |
869 _json["message"] = message; | 869 _json["message"] = message; |
870 } | 870 } |
871 return _json; | 871 return _json; |
872 } | 872 } |
873 } | 873 } |
874 | 874 |
875 class Order { | 875 class Order { |
876 /** Whether the order was acknowledged. */ | 876 /** Whether the order was acknowledged. */ |
877 core.bool acknowledged; | 877 core.bool acknowledged; |
| 878 /** The channel type of the order: "purchaseOnGoogle" or "googleExpress". */ |
| 879 core.String channelType; |
878 /** The details of the customer who placed the order. */ | 880 /** The details of the customer who placed the order. */ |
879 OrderCustomer customer; | 881 OrderCustomer customer; |
880 /** The details for the delivery. */ | 882 /** The details for the delivery. */ |
881 OrderDeliveryDetails deliveryDetails; | 883 OrderDeliveryDetails deliveryDetails; |
882 /** The REST id of the order. Globally unique. */ | 884 /** The REST id of the order. Globally unique. */ |
883 core.String id; | 885 core.String id; |
884 /** | 886 /** |
885 * Identifies what kind of resource this is. Value: the fixed string | 887 * Identifies what kind of resource this is. Value: the fixed string |
886 * "content#order". | 888 * "content#order". |
887 */ | 889 */ |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 core.String shippingOption; | 922 core.String shippingOption; |
921 /** The status of the order. */ | 923 /** The status of the order. */ |
922 core.String status; | 924 core.String status; |
923 | 925 |
924 Order(); | 926 Order(); |
925 | 927 |
926 Order.fromJson(core.Map _json) { | 928 Order.fromJson(core.Map _json) { |
927 if (_json.containsKey("acknowledged")) { | 929 if (_json.containsKey("acknowledged")) { |
928 acknowledged = _json["acknowledged"]; | 930 acknowledged = _json["acknowledged"]; |
929 } | 931 } |
| 932 if (_json.containsKey("channelType")) { |
| 933 channelType = _json["channelType"]; |
| 934 } |
930 if (_json.containsKey("customer")) { | 935 if (_json.containsKey("customer")) { |
931 customer = new OrderCustomer.fromJson(_json["customer"]); | 936 customer = new OrderCustomer.fromJson(_json["customer"]); |
932 } | 937 } |
933 if (_json.containsKey("deliveryDetails")) { | 938 if (_json.containsKey("deliveryDetails")) { |
934 deliveryDetails = new OrderDeliveryDetails.fromJson(_json["deliveryDetails
"]); | 939 deliveryDetails = new OrderDeliveryDetails.fromJson(_json["deliveryDetails
"]); |
935 } | 940 } |
936 if (_json.containsKey("id")) { | 941 if (_json.containsKey("id")) { |
937 id = _json["id"]; | 942 id = _json["id"]; |
938 } | 943 } |
939 if (_json.containsKey("kind")) { | 944 if (_json.containsKey("kind")) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 if (_json.containsKey("status")) { | 986 if (_json.containsKey("status")) { |
982 status = _json["status"]; | 987 status = _json["status"]; |
983 } | 988 } |
984 } | 989 } |
985 | 990 |
986 core.Map toJson() { | 991 core.Map toJson() { |
987 var _json = new core.Map(); | 992 var _json = new core.Map(); |
988 if (acknowledged != null) { | 993 if (acknowledged != null) { |
989 _json["acknowledged"] = acknowledged; | 994 _json["acknowledged"] = acknowledged; |
990 } | 995 } |
| 996 if (channelType != null) { |
| 997 _json["channelType"] = channelType; |
| 998 } |
991 if (customer != null) { | 999 if (customer != null) { |
992 _json["customer"] = (customer).toJson(); | 1000 _json["customer"] = (customer).toJson(); |
993 } | 1001 } |
994 if (deliveryDetails != null) { | 1002 if (deliveryDetails != null) { |
995 _json["deliveryDetails"] = (deliveryDetails).toJson(); | 1003 _json["deliveryDetails"] = (deliveryDetails).toJson(); |
996 } | 1004 } |
997 if (id != null) { | 1005 if (id != null) { |
998 _json["id"] = id; | 1006 _json["id"] = id; |
999 } | 1007 } |
1000 if (kind != null) { | 1008 if (kind != null) { |
(...skipping 2786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3787 } | 3795 } |
3788 if (predefinedBillingAddress != null) { | 3796 if (predefinedBillingAddress != null) { |
3789 _json["predefinedBillingAddress"] = predefinedBillingAddress; | 3797 _json["predefinedBillingAddress"] = predefinedBillingAddress; |
3790 } | 3798 } |
3791 if (type != null) { | 3799 if (type != null) { |
3792 _json["type"] = type; | 3800 _json["type"] = type; |
3793 } | 3801 } |
3794 return _json; | 3802 return _json; |
3795 } | 3803 } |
3796 } | 3804 } |
OLD | NEW |