cybersource_rest_client 0.0.87 → 0.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client/api/acp_checkout_api.rb +553 -0
- data/lib/cybersource_rest_client/api/agent_registration_api.rb +721 -0
- data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +0 -1
- data/lib/cybersource_rest_client/api/enrollment_api.rb +104 -0
- data/lib/cybersource_rest_client/api/{merchant_capabilities_api.rb → merchant_registration_api.rb} +47 -391
- data/lib/cybersource_rest_client/api/payment_events_api.rb +197 -0
- data/lib/cybersource_rest_client/api/product_feed_api.rb +365 -0
- data/lib/cybersource_rest_client/api/purchase_intent_api.rb +278 -0
- data/lib/cybersource_rest_client/api/ucp_checkout_api.rb +453 -0
- data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +1 -1
- data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +11 -11
- data/lib/cybersource_rest_client/models/agent_registration_response201.rb +13 -15
- data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +8 -8
- data/lib/cybersource_rest_client/models/agent_request.rb +9 -11
- data/lib/cybersource_rest_client/models/agent_update.rb +7 -9
- data/lib/cybersource_rest_client/models/auth_reversal_request.rb +1 -1
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations.rb +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant_products.rb → boarding_payouts_configurations_acquirer.rb} +33 -76
- data/lib/cybersource_rest_client/models/{inline_response_200_19_errors.rb → boarding_payouts_configurations_merchant_descriptor.rb} +25 -33
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations_processors.rb +581 -0
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_order_request.rb +11 -1
- data/lib/cybersource_rest_client/models/create_payment_request.rb +14 -1
- data/lib/cybersource_rest_client/models/create_session_req.rb +14 -1
- data/lib/cybersource_rest_client/models/create_session_request.rb +14 -1
- data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +4 -4
- data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +2 -2
- data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +6 -6
- data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +1 -1
- data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_200_17.rb +55 -0
- data/lib/cybersource_rest_client/models/inline_response_200_18.rb +40 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19.rb +30 -107
- data/lib/cybersource_rest_client/models/inline_response_200_19_processing.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19_syndication.rb +224 -0
- data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +80 -682
- data/lib/cybersource_rest_client/models/inline_response_201_12.rb +40 -0
- data/lib/cybersource_rest_client/models/inline_response_201_12_fulfillment_options.rb +30 -0
- data/lib/cybersource_rest_client/models/inline_response_201_12_totals.rb +15 -0
- data/lib/cybersource_rest_client/models/inline_response_201_6_setups_risk.rb +15 -5
- data/lib/cybersource_rest_client/models/inline_response_201_6_setups_value_added_services.rb +15 -5
- data/lib/cybersource_rest_client/models/{deactivate_merchant_key_response200.rb → inline_response_202_1.rb} +11 -16
- data/lib/cybersource_rest_client/models/key_request.rb +4 -4
- data/lib/cybersource_rest_client/models/key_request_1.rb +5 -5
- data/lib/cybersource_rest_client/models/key_update.rb +5 -5
- data/lib/cybersource_rest_client/models/key_update_1.rb +5 -5
- data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +2 -2
- data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +10 -10
- data/lib/cybersource_rest_client/models/merchant_registration_response201_api_integrations.rb +225 -0
- data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +1 -1
- data/lib/cybersource_rest_client/models/merchant_registration_response201_web_integrations.rb +225 -0
- data/lib/cybersource_rest_client/models/merchant_request.rb +7 -7
- data/lib/cybersource_rest_client/models/merchant_update.rb +7 -7
- data/lib/cybersource_rest_client/models/mit_reversal_request.rb +1 -1
- data/lib/cybersource_rest_client/models/mit_void_request.rb +15 -5
- data/lib/cybersource_rest_client/models/payments_configuration_setup.rb +11 -1
- data/lib/cybersource_rest_client/models/payments_products.rb +11 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +44 -1
- data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb → pts_v2_payments_post201_response_1_order_information_merchant_descriptor.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +101 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_ship_to.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information_emv.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information_emv.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_buyer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +154 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +16 -5
- data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information_merchant_descriptor.rb +207 -0
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information.rb → ptsv2payments_buyer.rb} +55 -31
- data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant.rb → ptsv2payments_order_history.rb} +42 -41
- data/lib/cybersource_rest_client/models/ptsv2payments_ship_to.rb +281 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information_emv.rb → ptsv2paymentsidrefunds_point_of_sale_information_emv.rb} +1 -1
- data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +3 -3
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +3 -3
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +3 -3
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +3 -3
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_limit_value.rb +3 -3
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_balance_before.rb +2 -2
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +3 -3
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +2 -2
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +3 -3
- data/lib/cybersource_rest_client/models/value_added_services_products.rb +15 -5
- data/lib/cybersource_rest_client/models/void_capture_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_credit_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_payment_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_refund_request.rb +15 -5
- data/lib/cybersource_rest_client.rb +25 -11
- metadata +27 -13
- data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +0 -2279
|
@@ -12,14 +12,17 @@ Swagger Codegen version: 2.4.38
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
|
-
#
|
|
15
|
+
# Product record as stored in the ACG catalog. Only the fields listed here are persisted — the full ingest payload (`ProductInput`) contains additional fields that are validated and forwarded to protocol backends but are not retained in the catalog store.
|
|
16
16
|
class InlineResponse20020Products
|
|
17
|
-
# The merchant SKU / `item_id` as stored in the ACG catalog. Equivalent to the `item_id` field submitted during feed ingestion.
|
|
18
|
-
attr_accessor :id
|
|
19
|
-
|
|
20
17
|
# Unique product identifier / SKU.
|
|
21
18
|
attr_accessor :item_id
|
|
22
19
|
|
|
20
|
+
# When `true`, product appears in AI agent discovery results.
|
|
21
|
+
attr_accessor :is_eligible_search
|
|
22
|
+
|
|
23
|
+
# When `true`, product can be added to a checkout session.
|
|
24
|
+
attr_accessor :is_eligible_checkout
|
|
25
|
+
|
|
23
26
|
# Product display name.
|
|
24
27
|
attr_accessor :title
|
|
25
28
|
|
|
@@ -32,68 +35,38 @@ module CyberSource
|
|
|
32
35
|
# URL to the primary product image.
|
|
33
36
|
attr_accessor :image_url
|
|
34
37
|
|
|
35
|
-
# Additional product image URLs.
|
|
36
|
-
attr_accessor :additional_image_urls
|
|
37
|
-
|
|
38
|
-
# URL to a product video.
|
|
39
|
-
attr_accessor :video_url
|
|
40
|
-
|
|
41
|
-
# URL to a 3D model asset.
|
|
42
|
-
attr_accessor :model_3d_url
|
|
43
|
-
|
|
44
38
|
# Product category hierarchy (e.g. `Electronics > Audio > Headphones`).
|
|
45
39
|
attr_accessor :product_category
|
|
46
40
|
|
|
47
41
|
# Product brand or manufacturer.
|
|
48
42
|
attr_accessor :brand
|
|
49
43
|
|
|
50
|
-
# Global Trade Item Number.
|
|
51
|
-
attr_accessor :gtin
|
|
52
|
-
|
|
53
|
-
# Manufacturer Part Number.
|
|
54
|
-
attr_accessor :mpn
|
|
55
|
-
|
|
56
|
-
# Product condition (e.g. new, used, refurbished).
|
|
57
|
-
attr_accessor :condition
|
|
58
|
-
|
|
59
44
|
# Primary material (relevant for apparel, furniture, etc.).
|
|
60
45
|
attr_accessor :material
|
|
61
46
|
|
|
62
47
|
# Product weight including unit.
|
|
63
48
|
attr_accessor :weight
|
|
64
49
|
|
|
65
|
-
#
|
|
66
|
-
attr_accessor :
|
|
67
|
-
|
|
68
|
-
# Product length. Pair with `dimensions_unit` for unit context.
|
|
69
|
-
attr_accessor :length
|
|
50
|
+
# Product price as a decimal number.
|
|
51
|
+
attr_accessor :price
|
|
70
52
|
|
|
71
|
-
#
|
|
72
|
-
attr_accessor :
|
|
53
|
+
# ISO 4217 currency code.
|
|
54
|
+
attr_accessor :currency
|
|
73
55
|
|
|
74
|
-
#
|
|
75
|
-
attr_accessor :
|
|
56
|
+
# Current stock status. Possible values: - in_stock - out_of_stock - preorder - pre_order - backorder - unknown
|
|
57
|
+
attr_accessor :availability
|
|
76
58
|
|
|
77
|
-
#
|
|
78
|
-
attr_accessor :
|
|
59
|
+
# Primary product color.
|
|
60
|
+
attr_accessor :color
|
|
79
61
|
|
|
80
|
-
#
|
|
81
|
-
attr_accessor :
|
|
62
|
+
# Target gender (e.g. \"male\", \"female\", \"unisex\").
|
|
63
|
+
attr_accessor :gender
|
|
82
64
|
|
|
83
65
|
# Target age group (e.g. \"adult\", \"kids\", \"infant\").
|
|
84
66
|
attr_accessor :age_group
|
|
85
67
|
|
|
86
|
-
#
|
|
87
|
-
attr_accessor :
|
|
88
|
-
|
|
89
|
-
# Product size (e.g. \"M\", \"42\", \"XL\"). Used for variant filtering.
|
|
90
|
-
attr_accessor :size
|
|
91
|
-
|
|
92
|
-
# Size standard used (e.g. \"US\", \"EU\", \"UK\").
|
|
93
|
-
attr_accessor :size_system
|
|
94
|
-
|
|
95
|
-
# Target gender (e.g. \"male\", \"female\", \"unisex\").
|
|
96
|
-
attr_accessor :gender
|
|
68
|
+
# Shipping cost string as provided by the merchant.
|
|
69
|
+
attr_accessor :shipping_price
|
|
97
70
|
|
|
98
71
|
# Product variant group identifier.
|
|
99
72
|
attr_accessor :group_id
|
|
@@ -101,124 +74,21 @@ module CyberSource
|
|
|
101
74
|
# Whether this listing has product variations (e.g. different sizes or colors).
|
|
102
75
|
attr_accessor :listing_has_variations
|
|
103
76
|
|
|
104
|
-
#
|
|
105
|
-
attr_accessor :item_group_title
|
|
106
|
-
|
|
107
|
-
# Merchant-assigned offer identifier.
|
|
108
|
-
attr_accessor :offer_id
|
|
109
|
-
|
|
110
|
-
attr_accessor :variant_dict
|
|
111
|
-
|
|
112
|
-
attr_accessor :custom_variant1_category
|
|
113
|
-
|
|
114
|
-
attr_accessor :custom_variant1_option
|
|
115
|
-
|
|
116
|
-
attr_accessor :custom_variant2_category
|
|
117
|
-
|
|
118
|
-
attr_accessor :custom_variant2_option
|
|
119
|
-
|
|
120
|
-
attr_accessor :custom_variant3_category
|
|
121
|
-
|
|
122
|
-
attr_accessor :custom_variant3_option
|
|
123
|
-
|
|
124
|
-
# Product price as a decimal number.
|
|
125
|
-
attr_accessor :price
|
|
126
|
-
|
|
127
|
-
# ISO 4217 currency code.
|
|
128
|
-
attr_accessor :currency
|
|
129
|
-
|
|
130
|
-
attr_accessor :sale_price
|
|
131
|
-
|
|
132
|
-
attr_accessor :sale_price_start_date
|
|
133
|
-
|
|
134
|
-
attr_accessor :sale_price_end_date
|
|
135
|
-
|
|
136
|
-
attr_accessor :unit_pricing_measure
|
|
137
|
-
|
|
138
|
-
attr_accessor :base_measure
|
|
139
|
-
|
|
140
|
-
attr_accessor :pricing_trend
|
|
141
|
-
|
|
142
|
-
attr_accessor :geo_price
|
|
143
|
-
|
|
144
|
-
attr_accessor :geo_availability
|
|
145
|
-
|
|
146
|
-
# Current stock status. Possible values: - in_stock - out_of_stock - preorder - backorder
|
|
147
|
-
attr_accessor :availability
|
|
148
|
-
|
|
149
|
-
attr_accessor :availability_date
|
|
150
|
-
|
|
151
|
-
attr_accessor :expiration_date
|
|
152
|
-
|
|
153
|
-
# Merchant or seller display name. Max 70 characters.
|
|
77
|
+
# Merchant or seller display name.
|
|
154
78
|
attr_accessor :seller_name
|
|
155
79
|
|
|
80
|
+
# URL to the seller's storefront.
|
|
156
81
|
attr_accessor :seller_url
|
|
157
82
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
attr_accessor :seller_privacy_policy
|
|
161
|
-
|
|
162
|
-
attr_accessor :seller_tos
|
|
163
|
-
|
|
164
|
-
attr_accessor :shipping_price
|
|
165
|
-
|
|
166
|
-
attr_accessor :delivery_estimate
|
|
167
|
-
|
|
168
|
-
attr_accessor :pickup_method
|
|
169
|
-
|
|
170
|
-
attr_accessor :pickup_sla
|
|
171
|
-
|
|
172
|
-
attr_accessor :is_digital
|
|
173
|
-
|
|
83
|
+
# Merchant return policy text.
|
|
174
84
|
attr_accessor :return_policy
|
|
175
85
|
|
|
176
|
-
attr_accessor :accepts_returns
|
|
177
|
-
|
|
178
|
-
attr_accessor :return_deadline_in_days
|
|
179
|
-
|
|
180
|
-
attr_accessor :accepts_exchanges
|
|
181
|
-
|
|
182
|
-
# When `true`, product appears in AI agent discovery results.
|
|
183
|
-
attr_accessor :is_eligible_search
|
|
184
|
-
|
|
185
|
-
# When `true`, product can be added to a checkout session.
|
|
186
|
-
attr_accessor :is_eligible_checkout
|
|
187
|
-
|
|
188
|
-
attr_accessor :popularity_score
|
|
189
|
-
|
|
190
|
-
attr_accessor :return_rate
|
|
191
|
-
|
|
192
|
-
attr_accessor :warning
|
|
193
|
-
|
|
194
|
-
attr_accessor :warning_url
|
|
195
|
-
|
|
196
|
-
attr_accessor :age_restriction
|
|
197
|
-
|
|
198
|
-
attr_accessor :review_count
|
|
199
|
-
|
|
200
|
-
attr_accessor :star_rating
|
|
201
|
-
|
|
202
|
-
attr_accessor :store_review_count
|
|
203
|
-
|
|
204
|
-
attr_accessor :store_star_rating
|
|
205
|
-
|
|
206
|
-
attr_accessor :related_product_id
|
|
207
|
-
|
|
208
|
-
attr_accessor :relationship_type
|
|
209
|
-
|
|
210
86
|
# Country codes where this product is available.
|
|
211
87
|
attr_accessor :target_countries
|
|
212
88
|
|
|
213
89
|
# ISO 3166-1 alpha-2 country code of the merchant's store.
|
|
214
90
|
attr_accessor :store_country
|
|
215
91
|
|
|
216
|
-
attr_accessor :q_and_a
|
|
217
|
-
|
|
218
|
-
attr_accessor :qand_a
|
|
219
|
-
|
|
220
|
-
attr_accessor :reviews
|
|
221
|
-
|
|
222
92
|
# ISO 8601 timestamp when this product was first ingested.
|
|
223
93
|
attr_accessor :created_at
|
|
224
94
|
|
|
@@ -228,180 +98,64 @@ module CyberSource
|
|
|
228
98
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
229
99
|
def self.attribute_map
|
|
230
100
|
{
|
|
231
|
-
:'id' => :'id',
|
|
232
101
|
:'item_id' => :'item_id',
|
|
102
|
+
:'is_eligible_search' => :'is_eligible_search',
|
|
103
|
+
:'is_eligible_checkout' => :'is_eligible_checkout',
|
|
233
104
|
:'title' => :'title',
|
|
234
105
|
:'description' => :'description',
|
|
235
106
|
:'url' => :'url',
|
|
236
107
|
:'image_url' => :'image_url',
|
|
237
|
-
:'additional_image_urls' => :'additional_image_urls',
|
|
238
|
-
:'video_url' => :'video_url',
|
|
239
|
-
:'model_3d_url' => :'model_3d_url',
|
|
240
108
|
:'product_category' => :'product_category',
|
|
241
109
|
:'brand' => :'brand',
|
|
242
|
-
:'gtin' => :'gtin',
|
|
243
|
-
:'mpn' => :'mpn',
|
|
244
|
-
:'condition' => :'condition',
|
|
245
110
|
:'material' => :'material',
|
|
246
111
|
:'weight' => :'weight',
|
|
247
|
-
:'
|
|
248
|
-
:'
|
|
249
|
-
:'
|
|
250
|
-
:'height' => :'height',
|
|
251
|
-
:'dimensions_unit' => :'dimensions_unit',
|
|
252
|
-
:'item_weight_unit' => :'item_weight_unit',
|
|
253
|
-
:'age_group' => :'age_group',
|
|
112
|
+
:'price' => :'price',
|
|
113
|
+
:'currency' => :'currency',
|
|
114
|
+
:'availability' => :'availability',
|
|
254
115
|
:'color' => :'color',
|
|
255
|
-
:'size' => :'size',
|
|
256
|
-
:'size_system' => :'size_system',
|
|
257
116
|
:'gender' => :'gender',
|
|
117
|
+
:'age_group' => :'age_group',
|
|
118
|
+
:'shipping_price' => :'shipping_price',
|
|
258
119
|
:'group_id' => :'group_id',
|
|
259
120
|
:'listing_has_variations' => :'listing_has_variations',
|
|
260
|
-
:'
|
|
261
|
-
:'offer_id' => :'offer_id',
|
|
262
|
-
:'variant_dict' => :'variant_dict',
|
|
263
|
-
:'custom_variant1_category' => :'custom_variant1_category',
|
|
264
|
-
:'custom_variant1_option' => :'custom_variant1_option',
|
|
265
|
-
:'custom_variant2_category' => :'custom_variant2_category',
|
|
266
|
-
:'custom_variant2_option' => :'custom_variant2_option',
|
|
267
|
-
:'custom_variant3_category' => :'custom_variant3_category',
|
|
268
|
-
:'custom_variant3_option' => :'custom_variant3_option',
|
|
269
|
-
:'price' => :'price',
|
|
270
|
-
:'currency' => :'currency',
|
|
271
|
-
:'sale_price' => :'sale_price',
|
|
272
|
-
:'sale_price_start_date' => :'sale_price_start_date',
|
|
273
|
-
:'sale_price_end_date' => :'sale_price_end_date',
|
|
274
|
-
:'unit_pricing_measure' => :'unit_pricing_measure',
|
|
275
|
-
:'base_measure' => :'base_measure',
|
|
276
|
-
:'pricing_trend' => :'pricing_trend',
|
|
277
|
-
:'geo_price' => :'geo_price',
|
|
278
|
-
:'geo_availability' => :'geo_availability',
|
|
279
|
-
:'availability' => :'availability',
|
|
280
|
-
:'availability_date' => :'availability_date',
|
|
281
|
-
:'expiration_date' => :'expiration_date',
|
|
282
|
-
:'seller_name' => :'seller_name',
|
|
121
|
+
:'seller_name' => :'sellerName',
|
|
283
122
|
:'seller_url' => :'seller_url',
|
|
284
|
-
:'marketplace_seller' => :'marketplace_seller',
|
|
285
|
-
:'seller_privacy_policy' => :'seller_privacy_policy',
|
|
286
|
-
:'seller_tos' => :'seller_tos',
|
|
287
|
-
:'shipping_price' => :'shipping_price',
|
|
288
|
-
:'delivery_estimate' => :'delivery_estimate',
|
|
289
|
-
:'pickup_method' => :'pickup_method',
|
|
290
|
-
:'pickup_sla' => :'pickup_sla',
|
|
291
|
-
:'is_digital' => :'is_digital',
|
|
292
123
|
:'return_policy' => :'return_policy',
|
|
293
|
-
:'accepts_returns' => :'accepts_returns',
|
|
294
|
-
:'return_deadline_in_days' => :'return_deadline_in_days',
|
|
295
|
-
:'accepts_exchanges' => :'accepts_exchanges',
|
|
296
|
-
:'is_eligible_search' => :'is_eligible_search',
|
|
297
|
-
:'is_eligible_checkout' => :'is_eligible_checkout',
|
|
298
|
-
:'popularity_score' => :'popularity_score',
|
|
299
|
-
:'return_rate' => :'return_rate',
|
|
300
|
-
:'warning' => :'warning',
|
|
301
|
-
:'warning_url' => :'warning_url',
|
|
302
|
-
:'age_restriction' => :'age_restriction',
|
|
303
|
-
:'review_count' => :'review_count',
|
|
304
|
-
:'star_rating' => :'star_rating',
|
|
305
|
-
:'store_review_count' => :'store_review_count',
|
|
306
|
-
:'store_star_rating' => :'store_star_rating',
|
|
307
|
-
:'related_product_id' => :'related_product_id',
|
|
308
|
-
:'relationship_type' => :'relationship_type',
|
|
309
124
|
:'target_countries' => :'target_countries',
|
|
310
125
|
:'store_country' => :'store_country',
|
|
311
|
-
:'
|
|
312
|
-
:'
|
|
313
|
-
:'reviews' => :'reviews',
|
|
314
|
-
:'created_at' => :'created_at',
|
|
315
|
-
:'updated_at' => :'updated_at'
|
|
126
|
+
:'created_at' => :'createdAt',
|
|
127
|
+
:'updated_at' => :'updatedAt'
|
|
316
128
|
}
|
|
317
129
|
end
|
|
318
130
|
|
|
319
131
|
# Attribute mapping from JSON key to ruby-style variable name.
|
|
320
132
|
def self.json_map
|
|
321
133
|
{
|
|
322
|
-
:'id' => :'id',
|
|
323
134
|
:'item_id' => :'item_id',
|
|
135
|
+
:'is_eligible_search' => :'is_eligible_search',
|
|
136
|
+
:'is_eligible_checkout' => :'is_eligible_checkout',
|
|
324
137
|
:'title' => :'title',
|
|
325
138
|
:'description' => :'description',
|
|
326
139
|
:'url' => :'url',
|
|
327
140
|
:'image_url' => :'image_url',
|
|
328
|
-
:'additional_image_urls' => :'additional_image_urls',
|
|
329
|
-
:'video_url' => :'video_url',
|
|
330
|
-
:'model_3d_url' => :'model_3d_url',
|
|
331
141
|
:'product_category' => :'product_category',
|
|
332
142
|
:'brand' => :'brand',
|
|
333
|
-
:'gtin' => :'gtin',
|
|
334
|
-
:'mpn' => :'mpn',
|
|
335
|
-
:'condition' => :'condition',
|
|
336
143
|
:'material' => :'material',
|
|
337
144
|
:'weight' => :'weight',
|
|
338
|
-
:'
|
|
339
|
-
:'
|
|
340
|
-
:'
|
|
341
|
-
:'height' => :'height',
|
|
342
|
-
:'dimensions_unit' => :'dimensions_unit',
|
|
343
|
-
:'item_weight_unit' => :'item_weight_unit',
|
|
344
|
-
:'age_group' => :'age_group',
|
|
145
|
+
:'price' => :'price',
|
|
146
|
+
:'currency' => :'currency',
|
|
147
|
+
:'availability' => :'availability',
|
|
345
148
|
:'color' => :'color',
|
|
346
|
-
:'size' => :'size',
|
|
347
|
-
:'size_system' => :'size_system',
|
|
348
149
|
:'gender' => :'gender',
|
|
150
|
+
:'age_group' => :'age_group',
|
|
151
|
+
:'shipping_price' => :'shipping_price',
|
|
349
152
|
:'group_id' => :'group_id',
|
|
350
153
|
:'listing_has_variations' => :'listing_has_variations',
|
|
351
|
-
:'item_group_title' => :'item_group_title',
|
|
352
|
-
:'offer_id' => :'offer_id',
|
|
353
|
-
:'variant_dict' => :'variant_dict',
|
|
354
|
-
:'custom_variant1_category' => :'custom_variant1_category',
|
|
355
|
-
:'custom_variant1_option' => :'custom_variant1_option',
|
|
356
|
-
:'custom_variant2_category' => :'custom_variant2_category',
|
|
357
|
-
:'custom_variant2_option' => :'custom_variant2_option',
|
|
358
|
-
:'custom_variant3_category' => :'custom_variant3_category',
|
|
359
|
-
:'custom_variant3_option' => :'custom_variant3_option',
|
|
360
|
-
:'price' => :'price',
|
|
361
|
-
:'currency' => :'currency',
|
|
362
|
-
:'sale_price' => :'sale_price',
|
|
363
|
-
:'sale_price_start_date' => :'sale_price_start_date',
|
|
364
|
-
:'sale_price_end_date' => :'sale_price_end_date',
|
|
365
|
-
:'unit_pricing_measure' => :'unit_pricing_measure',
|
|
366
|
-
:'base_measure' => :'base_measure',
|
|
367
|
-
:'pricing_trend' => :'pricing_trend',
|
|
368
|
-
:'geo_price' => :'geo_price',
|
|
369
|
-
:'geo_availability' => :'geo_availability',
|
|
370
|
-
:'availability' => :'availability',
|
|
371
|
-
:'availability_date' => :'availability_date',
|
|
372
|
-
:'expiration_date' => :'expiration_date',
|
|
373
154
|
:'seller_name' => :'seller_name',
|
|
374
155
|
:'seller_url' => :'seller_url',
|
|
375
|
-
:'marketplace_seller' => :'marketplace_seller',
|
|
376
|
-
:'seller_privacy_policy' => :'seller_privacy_policy',
|
|
377
|
-
:'seller_tos' => :'seller_tos',
|
|
378
|
-
:'shipping_price' => :'shipping_price',
|
|
379
|
-
:'delivery_estimate' => :'delivery_estimate',
|
|
380
|
-
:'pickup_method' => :'pickup_method',
|
|
381
|
-
:'pickup_sla' => :'pickup_sla',
|
|
382
|
-
:'is_digital' => :'is_digital',
|
|
383
156
|
:'return_policy' => :'return_policy',
|
|
384
|
-
:'accepts_returns' => :'accepts_returns',
|
|
385
|
-
:'return_deadline_in_days' => :'return_deadline_in_days',
|
|
386
|
-
:'accepts_exchanges' => :'accepts_exchanges',
|
|
387
|
-
:'is_eligible_search' => :'is_eligible_search',
|
|
388
|
-
:'is_eligible_checkout' => :'is_eligible_checkout',
|
|
389
|
-
:'popularity_score' => :'popularity_score',
|
|
390
|
-
:'return_rate' => :'return_rate',
|
|
391
|
-
:'warning' => :'warning',
|
|
392
|
-
:'warning_url' => :'warning_url',
|
|
393
|
-
:'age_restriction' => :'age_restriction',
|
|
394
|
-
:'review_count' => :'review_count',
|
|
395
|
-
:'star_rating' => :'star_rating',
|
|
396
|
-
:'store_review_count' => :'store_review_count',
|
|
397
|
-
:'store_star_rating' => :'store_star_rating',
|
|
398
|
-
:'related_product_id' => :'related_product_id',
|
|
399
|
-
:'relationship_type' => :'relationship_type',
|
|
400
157
|
:'target_countries' => :'target_countries',
|
|
401
158
|
:'store_country' => :'store_country',
|
|
402
|
-
:'q_and_a' => :'q_and_a',
|
|
403
|
-
:'qand_a' => :'qand_a',
|
|
404
|
-
:'reviews' => :'reviews',
|
|
405
159
|
:'created_at' => :'created_at',
|
|
406
160
|
:'updated_at' => :'updated_at'
|
|
407
161
|
}
|
|
@@ -410,89 +164,31 @@ module CyberSource
|
|
|
410
164
|
# Attribute type mapping.
|
|
411
165
|
def self.swagger_types
|
|
412
166
|
{
|
|
413
|
-
:'id' => :'String',
|
|
414
167
|
:'item_id' => :'String',
|
|
168
|
+
:'is_eligible_search' => :'BOOLEAN',
|
|
169
|
+
:'is_eligible_checkout' => :'BOOLEAN',
|
|
415
170
|
:'title' => :'String',
|
|
416
171
|
:'description' => :'String',
|
|
417
172
|
:'url' => :'String',
|
|
418
173
|
:'image_url' => :'String',
|
|
419
|
-
:'additional_image_urls' => :'String',
|
|
420
|
-
:'video_url' => :'String',
|
|
421
|
-
:'model_3d_url' => :'String',
|
|
422
174
|
:'product_category' => :'String',
|
|
423
175
|
:'brand' => :'String',
|
|
424
|
-
:'gtin' => :'String',
|
|
425
|
-
:'mpn' => :'String',
|
|
426
|
-
:'condition' => :'String',
|
|
427
176
|
:'material' => :'String',
|
|
428
177
|
:'weight' => :'String',
|
|
429
|
-
:'
|
|
430
|
-
:'
|
|
431
|
-
:'
|
|
432
|
-
:'height' => :'String',
|
|
433
|
-
:'dimensions_unit' => :'String',
|
|
434
|
-
:'item_weight_unit' => :'String',
|
|
435
|
-
:'age_group' => :'String',
|
|
178
|
+
:'price' => :'Float',
|
|
179
|
+
:'currency' => :'String',
|
|
180
|
+
:'availability' => :'String',
|
|
436
181
|
:'color' => :'String',
|
|
437
|
-
:'size' => :'String',
|
|
438
|
-
:'size_system' => :'String',
|
|
439
182
|
:'gender' => :'String',
|
|
183
|
+
:'age_group' => :'String',
|
|
184
|
+
:'shipping_price' => :'String',
|
|
440
185
|
:'group_id' => :'String',
|
|
441
186
|
:'listing_has_variations' => :'BOOLEAN',
|
|
442
|
-
:'item_group_title' => :'String',
|
|
443
|
-
:'offer_id' => :'String',
|
|
444
|
-
:'variant_dict' => :'Hash<String, String>',
|
|
445
|
-
:'custom_variant1_category' => :'String',
|
|
446
|
-
:'custom_variant1_option' => :'String',
|
|
447
|
-
:'custom_variant2_category' => :'String',
|
|
448
|
-
:'custom_variant2_option' => :'String',
|
|
449
|
-
:'custom_variant3_category' => :'String',
|
|
450
|
-
:'custom_variant3_option' => :'String',
|
|
451
|
-
:'price' => :'Float',
|
|
452
|
-
:'currency' => :'String',
|
|
453
|
-
:'sale_price' => :'Float',
|
|
454
|
-
:'sale_price_start_date' => :'Date',
|
|
455
|
-
:'sale_price_end_date' => :'Date',
|
|
456
|
-
:'unit_pricing_measure' => :'String',
|
|
457
|
-
:'base_measure' => :'String',
|
|
458
|
-
:'pricing_trend' => :'String',
|
|
459
|
-
:'geo_price' => :'String',
|
|
460
|
-
:'geo_availability' => :'String',
|
|
461
|
-
:'availability' => :'String',
|
|
462
|
-
:'availability_date' => :'Date',
|
|
463
|
-
:'expiration_date' => :'Date',
|
|
464
187
|
:'seller_name' => :'String',
|
|
465
188
|
:'seller_url' => :'String',
|
|
466
|
-
:'marketplace_seller' => :'String',
|
|
467
|
-
:'seller_privacy_policy' => :'String',
|
|
468
|
-
:'seller_tos' => :'String',
|
|
469
|
-
:'shipping_price' => :'String',
|
|
470
|
-
:'delivery_estimate' => :'Date',
|
|
471
|
-
:'pickup_method' => :'String',
|
|
472
|
-
:'pickup_sla' => :'String',
|
|
473
|
-
:'is_digital' => :'BOOLEAN',
|
|
474
189
|
:'return_policy' => :'String',
|
|
475
|
-
:'accepts_returns' => :'BOOLEAN',
|
|
476
|
-
:'return_deadline_in_days' => :'Integer',
|
|
477
|
-
:'accepts_exchanges' => :'BOOLEAN',
|
|
478
|
-
:'is_eligible_search' => :'BOOLEAN',
|
|
479
|
-
:'is_eligible_checkout' => :'BOOLEAN',
|
|
480
|
-
:'popularity_score' => :'Float',
|
|
481
|
-
:'return_rate' => :'String',
|
|
482
|
-
:'warning' => :'String',
|
|
483
|
-
:'warning_url' => :'String',
|
|
484
|
-
:'age_restriction' => :'Integer',
|
|
485
|
-
:'review_count' => :'Integer',
|
|
486
|
-
:'star_rating' => :'String',
|
|
487
|
-
:'store_review_count' => :'Integer',
|
|
488
|
-
:'store_star_rating' => :'String',
|
|
489
|
-
:'related_product_id' => :'String',
|
|
490
|
-
:'relationship_type' => :'String',
|
|
491
190
|
:'target_countries' => :'Array<String>',
|
|
492
191
|
:'store_country' => :'String',
|
|
493
|
-
:'q_and_a' => :'Array<Hash<String, Object>>',
|
|
494
|
-
:'qand_a' => :'Array<Hash<String, Object>>',
|
|
495
|
-
:'reviews' => :'Array<Hash<String, Object>>',
|
|
496
192
|
:'created_at' => :'DateTime',
|
|
497
193
|
:'updated_at' => :'DateTime'
|
|
498
194
|
}
|
|
@@ -506,14 +202,18 @@ module CyberSource
|
|
|
506
202
|
# convert string to symbol for hash key
|
|
507
203
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
508
204
|
|
|
509
|
-
if attributes.has_key?(:'id')
|
|
510
|
-
self.id = attributes[:'id']
|
|
511
|
-
end
|
|
512
|
-
|
|
513
205
|
if attributes.has_key?(:'item_id')
|
|
514
206
|
self.item_id = attributes[:'item_id']
|
|
515
207
|
end
|
|
516
208
|
|
|
209
|
+
if attributes.has_key?(:'is_eligible_search')
|
|
210
|
+
self.is_eligible_search = attributes[:'is_eligible_search']
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if attributes.has_key?(:'is_eligible_checkout')
|
|
214
|
+
self.is_eligible_checkout = attributes[:'is_eligible_checkout']
|
|
215
|
+
end
|
|
216
|
+
|
|
517
217
|
if attributes.has_key?(:'title')
|
|
518
218
|
self.title = attributes[:'title']
|
|
519
219
|
end
|
|
@@ -530,18 +230,6 @@ module CyberSource
|
|
|
530
230
|
self.image_url = attributes[:'image_url']
|
|
531
231
|
end
|
|
532
232
|
|
|
533
|
-
if attributes.has_key?(:'additional_image_urls')
|
|
534
|
-
self.additional_image_urls = attributes[:'additional_image_urls']
|
|
535
|
-
end
|
|
536
|
-
|
|
537
|
-
if attributes.has_key?(:'video_url')
|
|
538
|
-
self.video_url = attributes[:'video_url']
|
|
539
|
-
end
|
|
540
|
-
|
|
541
|
-
if attributes.has_key?(:'model_3d_url')
|
|
542
|
-
self.model_3d_url = attributes[:'model_3d_url']
|
|
543
|
-
end
|
|
544
|
-
|
|
545
233
|
if attributes.has_key?(:'product_category')
|
|
546
234
|
self.product_category = attributes[:'product_category']
|
|
547
235
|
end
|
|
@@ -550,18 +238,6 @@ module CyberSource
|
|
|
550
238
|
self.brand = attributes[:'brand']
|
|
551
239
|
end
|
|
552
240
|
|
|
553
|
-
if attributes.has_key?(:'gtin')
|
|
554
|
-
self.gtin = attributes[:'gtin']
|
|
555
|
-
end
|
|
556
|
-
|
|
557
|
-
if attributes.has_key?(:'mpn')
|
|
558
|
-
self.mpn = attributes[:'mpn']
|
|
559
|
-
end
|
|
560
|
-
|
|
561
|
-
if attributes.has_key?(:'condition')
|
|
562
|
-
self.condition = attributes[:'condition']
|
|
563
|
-
end
|
|
564
|
-
|
|
565
241
|
if attributes.has_key?(:'material')
|
|
566
242
|
self.material = attributes[:'material']
|
|
567
243
|
end
|
|
@@ -570,96 +246,6 @@ module CyberSource
|
|
|
570
246
|
self.weight = attributes[:'weight']
|
|
571
247
|
end
|
|
572
248
|
|
|
573
|
-
if attributes.has_key?(:'dimensions')
|
|
574
|
-
self.dimensions = attributes[:'dimensions']
|
|
575
|
-
end
|
|
576
|
-
|
|
577
|
-
if attributes.has_key?(:'length')
|
|
578
|
-
self.length = attributes[:'length']
|
|
579
|
-
end
|
|
580
|
-
|
|
581
|
-
if attributes.has_key?(:'width')
|
|
582
|
-
self.width = attributes[:'width']
|
|
583
|
-
end
|
|
584
|
-
|
|
585
|
-
if attributes.has_key?(:'height')
|
|
586
|
-
self.height = attributes[:'height']
|
|
587
|
-
end
|
|
588
|
-
|
|
589
|
-
if attributes.has_key?(:'dimensions_unit')
|
|
590
|
-
self.dimensions_unit = attributes[:'dimensions_unit']
|
|
591
|
-
end
|
|
592
|
-
|
|
593
|
-
if attributes.has_key?(:'item_weight_unit')
|
|
594
|
-
self.item_weight_unit = attributes[:'item_weight_unit']
|
|
595
|
-
end
|
|
596
|
-
|
|
597
|
-
if attributes.has_key?(:'age_group')
|
|
598
|
-
self.age_group = attributes[:'age_group']
|
|
599
|
-
end
|
|
600
|
-
|
|
601
|
-
if attributes.has_key?(:'color')
|
|
602
|
-
self.color = attributes[:'color']
|
|
603
|
-
end
|
|
604
|
-
|
|
605
|
-
if attributes.has_key?(:'size')
|
|
606
|
-
self.size = attributes[:'size']
|
|
607
|
-
end
|
|
608
|
-
|
|
609
|
-
if attributes.has_key?(:'size_system')
|
|
610
|
-
self.size_system = attributes[:'size_system']
|
|
611
|
-
end
|
|
612
|
-
|
|
613
|
-
if attributes.has_key?(:'gender')
|
|
614
|
-
self.gender = attributes[:'gender']
|
|
615
|
-
end
|
|
616
|
-
|
|
617
|
-
if attributes.has_key?(:'group_id')
|
|
618
|
-
self.group_id = attributes[:'group_id']
|
|
619
|
-
end
|
|
620
|
-
|
|
621
|
-
if attributes.has_key?(:'listing_has_variations')
|
|
622
|
-
self.listing_has_variations = attributes[:'listing_has_variations']
|
|
623
|
-
end
|
|
624
|
-
|
|
625
|
-
if attributes.has_key?(:'item_group_title')
|
|
626
|
-
self.item_group_title = attributes[:'item_group_title']
|
|
627
|
-
end
|
|
628
|
-
|
|
629
|
-
if attributes.has_key?(:'offer_id')
|
|
630
|
-
self.offer_id = attributes[:'offer_id']
|
|
631
|
-
end
|
|
632
|
-
|
|
633
|
-
if attributes.has_key?(:'variant_dict')
|
|
634
|
-
if (value = attributes[:'variant_dict']).is_a?(Hash)
|
|
635
|
-
self.variant_dict = value
|
|
636
|
-
end
|
|
637
|
-
end
|
|
638
|
-
|
|
639
|
-
if attributes.has_key?(:'custom_variant1_category')
|
|
640
|
-
self.custom_variant1_category = attributes[:'custom_variant1_category']
|
|
641
|
-
end
|
|
642
|
-
|
|
643
|
-
if attributes.has_key?(:'custom_variant1_option')
|
|
644
|
-
self.custom_variant1_option = attributes[:'custom_variant1_option']
|
|
645
|
-
end
|
|
646
|
-
|
|
647
|
-
if attributes.has_key?(:'custom_variant2_category')
|
|
648
|
-
self.custom_variant2_category = attributes[:'custom_variant2_category']
|
|
649
|
-
end
|
|
650
|
-
|
|
651
|
-
if attributes.has_key?(:'custom_variant2_option')
|
|
652
|
-
self.custom_variant2_option = attributes[:'custom_variant2_option']
|
|
653
|
-
end
|
|
654
|
-
|
|
655
|
-
if attributes.has_key?(:'custom_variant3_category')
|
|
656
|
-
self.custom_variant3_category = attributes[:'custom_variant3_category']
|
|
657
|
-
end
|
|
658
|
-
|
|
659
|
-
if attributes.has_key?(:'custom_variant3_option')
|
|
660
|
-
self.custom_variant3_option = attributes[:'custom_variant3_option']
|
|
661
|
-
end
|
|
662
|
-
|
|
663
249
|
if attributes.has_key?(:'price')
|
|
664
250
|
self.price = attributes[:'price']
|
|
665
251
|
end
|
|
@@ -668,158 +254,46 @@ module CyberSource
|
|
|
668
254
|
self.currency = attributes[:'currency']
|
|
669
255
|
end
|
|
670
256
|
|
|
671
|
-
if attributes.has_key?(:'sale_price')
|
|
672
|
-
self.sale_price = attributes[:'sale_price']
|
|
673
|
-
end
|
|
674
|
-
|
|
675
|
-
if attributes.has_key?(:'sale_price_start_date')
|
|
676
|
-
self.sale_price_start_date = attributes[:'sale_price_start_date']
|
|
677
|
-
end
|
|
678
|
-
|
|
679
|
-
if attributes.has_key?(:'sale_price_end_date')
|
|
680
|
-
self.sale_price_end_date = attributes[:'sale_price_end_date']
|
|
681
|
-
end
|
|
682
|
-
|
|
683
|
-
if attributes.has_key?(:'unit_pricing_measure')
|
|
684
|
-
self.unit_pricing_measure = attributes[:'unit_pricing_measure']
|
|
685
|
-
end
|
|
686
|
-
|
|
687
|
-
if attributes.has_key?(:'base_measure')
|
|
688
|
-
self.base_measure = attributes[:'base_measure']
|
|
689
|
-
end
|
|
690
|
-
|
|
691
|
-
if attributes.has_key?(:'pricing_trend')
|
|
692
|
-
self.pricing_trend = attributes[:'pricing_trend']
|
|
693
|
-
end
|
|
694
|
-
|
|
695
|
-
if attributes.has_key?(:'geo_price')
|
|
696
|
-
self.geo_price = attributes[:'geo_price']
|
|
697
|
-
end
|
|
698
|
-
|
|
699
|
-
if attributes.has_key?(:'geo_availability')
|
|
700
|
-
self.geo_availability = attributes[:'geo_availability']
|
|
701
|
-
end
|
|
702
|
-
|
|
703
257
|
if attributes.has_key?(:'availability')
|
|
704
258
|
self.availability = attributes[:'availability']
|
|
705
259
|
end
|
|
706
260
|
|
|
707
|
-
if attributes.has_key?(:'
|
|
708
|
-
self.
|
|
709
|
-
end
|
|
710
|
-
|
|
711
|
-
if attributes.has_key?(:'expiration_date')
|
|
712
|
-
self.expiration_date = attributes[:'expiration_date']
|
|
713
|
-
end
|
|
714
|
-
|
|
715
|
-
if attributes.has_key?(:'seller_name')
|
|
716
|
-
self.seller_name = attributes[:'seller_name']
|
|
717
|
-
end
|
|
718
|
-
|
|
719
|
-
if attributes.has_key?(:'seller_url')
|
|
720
|
-
self.seller_url = attributes[:'seller_url']
|
|
721
|
-
end
|
|
722
|
-
|
|
723
|
-
if attributes.has_key?(:'marketplace_seller')
|
|
724
|
-
self.marketplace_seller = attributes[:'marketplace_seller']
|
|
261
|
+
if attributes.has_key?(:'color')
|
|
262
|
+
self.color = attributes[:'color']
|
|
725
263
|
end
|
|
726
264
|
|
|
727
|
-
if attributes.has_key?(:'
|
|
728
|
-
self.
|
|
265
|
+
if attributes.has_key?(:'gender')
|
|
266
|
+
self.gender = attributes[:'gender']
|
|
729
267
|
end
|
|
730
268
|
|
|
731
|
-
if attributes.has_key?(:'
|
|
732
|
-
self.
|
|
269
|
+
if attributes.has_key?(:'age_group')
|
|
270
|
+
self.age_group = attributes[:'age_group']
|
|
733
271
|
end
|
|
734
272
|
|
|
735
273
|
if attributes.has_key?(:'shipping_price')
|
|
736
274
|
self.shipping_price = attributes[:'shipping_price']
|
|
737
275
|
end
|
|
738
276
|
|
|
739
|
-
if attributes.has_key?(:'
|
|
740
|
-
self.
|
|
277
|
+
if attributes.has_key?(:'group_id')
|
|
278
|
+
self.group_id = attributes[:'group_id']
|
|
741
279
|
end
|
|
742
280
|
|
|
743
|
-
if attributes.has_key?(:'
|
|
744
|
-
self.
|
|
281
|
+
if attributes.has_key?(:'listing_has_variations')
|
|
282
|
+
self.listing_has_variations = attributes[:'listing_has_variations']
|
|
745
283
|
end
|
|
746
284
|
|
|
747
|
-
if attributes.has_key?(:'
|
|
748
|
-
self.
|
|
285
|
+
if attributes.has_key?(:'sellerName')
|
|
286
|
+
self.seller_name = attributes[:'sellerName']
|
|
749
287
|
end
|
|
750
288
|
|
|
751
|
-
if attributes.has_key?(:'
|
|
752
|
-
self.
|
|
289
|
+
if attributes.has_key?(:'seller_url')
|
|
290
|
+
self.seller_url = attributes[:'seller_url']
|
|
753
291
|
end
|
|
754
292
|
|
|
755
293
|
if attributes.has_key?(:'return_policy')
|
|
756
294
|
self.return_policy = attributes[:'return_policy']
|
|
757
295
|
end
|
|
758
296
|
|
|
759
|
-
if attributes.has_key?(:'accepts_returns')
|
|
760
|
-
self.accepts_returns = attributes[:'accepts_returns']
|
|
761
|
-
end
|
|
762
|
-
|
|
763
|
-
if attributes.has_key?(:'return_deadline_in_days')
|
|
764
|
-
self.return_deadline_in_days = attributes[:'return_deadline_in_days']
|
|
765
|
-
end
|
|
766
|
-
|
|
767
|
-
if attributes.has_key?(:'accepts_exchanges')
|
|
768
|
-
self.accepts_exchanges = attributes[:'accepts_exchanges']
|
|
769
|
-
end
|
|
770
|
-
|
|
771
|
-
if attributes.has_key?(:'is_eligible_search')
|
|
772
|
-
self.is_eligible_search = attributes[:'is_eligible_search']
|
|
773
|
-
end
|
|
774
|
-
|
|
775
|
-
if attributes.has_key?(:'is_eligible_checkout')
|
|
776
|
-
self.is_eligible_checkout = attributes[:'is_eligible_checkout']
|
|
777
|
-
end
|
|
778
|
-
|
|
779
|
-
if attributes.has_key?(:'popularity_score')
|
|
780
|
-
self.popularity_score = attributes[:'popularity_score']
|
|
781
|
-
end
|
|
782
|
-
|
|
783
|
-
if attributes.has_key?(:'return_rate')
|
|
784
|
-
self.return_rate = attributes[:'return_rate']
|
|
785
|
-
end
|
|
786
|
-
|
|
787
|
-
if attributes.has_key?(:'warning')
|
|
788
|
-
self.warning = attributes[:'warning']
|
|
789
|
-
end
|
|
790
|
-
|
|
791
|
-
if attributes.has_key?(:'warning_url')
|
|
792
|
-
self.warning_url = attributes[:'warning_url']
|
|
793
|
-
end
|
|
794
|
-
|
|
795
|
-
if attributes.has_key?(:'age_restriction')
|
|
796
|
-
self.age_restriction = attributes[:'age_restriction']
|
|
797
|
-
end
|
|
798
|
-
|
|
799
|
-
if attributes.has_key?(:'review_count')
|
|
800
|
-
self.review_count = attributes[:'review_count']
|
|
801
|
-
end
|
|
802
|
-
|
|
803
|
-
if attributes.has_key?(:'star_rating')
|
|
804
|
-
self.star_rating = attributes[:'star_rating']
|
|
805
|
-
end
|
|
806
|
-
|
|
807
|
-
if attributes.has_key?(:'store_review_count')
|
|
808
|
-
self.store_review_count = attributes[:'store_review_count']
|
|
809
|
-
end
|
|
810
|
-
|
|
811
|
-
if attributes.has_key?(:'store_star_rating')
|
|
812
|
-
self.store_star_rating = attributes[:'store_star_rating']
|
|
813
|
-
end
|
|
814
|
-
|
|
815
|
-
if attributes.has_key?(:'related_product_id')
|
|
816
|
-
self.related_product_id = attributes[:'related_product_id']
|
|
817
|
-
end
|
|
818
|
-
|
|
819
|
-
if attributes.has_key?(:'relationship_type')
|
|
820
|
-
self.relationship_type = attributes[:'relationship_type']
|
|
821
|
-
end
|
|
822
|
-
|
|
823
297
|
if attributes.has_key?(:'target_countries')
|
|
824
298
|
if (value = attributes[:'target_countries']).is_a?(Array)
|
|
825
299
|
self.target_countries = value
|
|
@@ -830,30 +304,12 @@ module CyberSource
|
|
|
830
304
|
self.store_country = attributes[:'store_country']
|
|
831
305
|
end
|
|
832
306
|
|
|
833
|
-
if attributes.has_key?(:'
|
|
834
|
-
|
|
835
|
-
self.q_and_a = value
|
|
836
|
-
end
|
|
837
|
-
end
|
|
838
|
-
|
|
839
|
-
if attributes.has_key?(:'qandA')
|
|
840
|
-
if (value = attributes[:'qandA']).is_a?(Array)
|
|
841
|
-
self.qand_a = value
|
|
842
|
-
end
|
|
843
|
-
end
|
|
844
|
-
|
|
845
|
-
if attributes.has_key?(:'reviews')
|
|
846
|
-
if (value = attributes[:'reviews']).is_a?(Array)
|
|
847
|
-
self.reviews = value
|
|
848
|
-
end
|
|
849
|
-
end
|
|
850
|
-
|
|
851
|
-
if attributes.has_key?(:'created_at')
|
|
852
|
-
self.created_at = attributes[:'created_at']
|
|
307
|
+
if attributes.has_key?(:'createdAt')
|
|
308
|
+
self.created_at = attributes[:'createdAt']
|
|
853
309
|
end
|
|
854
310
|
|
|
855
|
-
if attributes.has_key?(:'
|
|
856
|
-
self.updated_at = attributes[:'
|
|
311
|
+
if attributes.has_key?(:'updatedAt')
|
|
312
|
+
self.updated_at = attributes[:'updatedAt']
|
|
857
313
|
end
|
|
858
314
|
end
|
|
859
315
|
|
|
@@ -875,89 +331,31 @@ module CyberSource
|
|
|
875
331
|
def ==(o)
|
|
876
332
|
return true if self.equal?(o)
|
|
877
333
|
self.class == o.class &&
|
|
878
|
-
id == o.id &&
|
|
879
334
|
item_id == o.item_id &&
|
|
335
|
+
is_eligible_search == o.is_eligible_search &&
|
|
336
|
+
is_eligible_checkout == o.is_eligible_checkout &&
|
|
880
337
|
title == o.title &&
|
|
881
338
|
description == o.description &&
|
|
882
339
|
url == o.url &&
|
|
883
340
|
image_url == o.image_url &&
|
|
884
|
-
additional_image_urls == o.additional_image_urls &&
|
|
885
|
-
video_url == o.video_url &&
|
|
886
|
-
model_3d_url == o.model_3d_url &&
|
|
887
341
|
product_category == o.product_category &&
|
|
888
342
|
brand == o.brand &&
|
|
889
|
-
gtin == o.gtin &&
|
|
890
|
-
mpn == o.mpn &&
|
|
891
|
-
condition == o.condition &&
|
|
892
343
|
material == o.material &&
|
|
893
344
|
weight == o.weight &&
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
height == o.height &&
|
|
898
|
-
dimensions_unit == o.dimensions_unit &&
|
|
899
|
-
item_weight_unit == o.item_weight_unit &&
|
|
900
|
-
age_group == o.age_group &&
|
|
345
|
+
price == o.price &&
|
|
346
|
+
currency == o.currency &&
|
|
347
|
+
availability == o.availability &&
|
|
901
348
|
color == o.color &&
|
|
902
|
-
size == o.size &&
|
|
903
|
-
size_system == o.size_system &&
|
|
904
349
|
gender == o.gender &&
|
|
350
|
+
age_group == o.age_group &&
|
|
351
|
+
shipping_price == o.shipping_price &&
|
|
905
352
|
group_id == o.group_id &&
|
|
906
353
|
listing_has_variations == o.listing_has_variations &&
|
|
907
|
-
item_group_title == o.item_group_title &&
|
|
908
|
-
offer_id == o.offer_id &&
|
|
909
|
-
variant_dict == o.variant_dict &&
|
|
910
|
-
custom_variant1_category == o.custom_variant1_category &&
|
|
911
|
-
custom_variant1_option == o.custom_variant1_option &&
|
|
912
|
-
custom_variant2_category == o.custom_variant2_category &&
|
|
913
|
-
custom_variant2_option == o.custom_variant2_option &&
|
|
914
|
-
custom_variant3_category == o.custom_variant3_category &&
|
|
915
|
-
custom_variant3_option == o.custom_variant3_option &&
|
|
916
|
-
price == o.price &&
|
|
917
|
-
currency == o.currency &&
|
|
918
|
-
sale_price == o.sale_price &&
|
|
919
|
-
sale_price_start_date == o.sale_price_start_date &&
|
|
920
|
-
sale_price_end_date == o.sale_price_end_date &&
|
|
921
|
-
unit_pricing_measure == o.unit_pricing_measure &&
|
|
922
|
-
base_measure == o.base_measure &&
|
|
923
|
-
pricing_trend == o.pricing_trend &&
|
|
924
|
-
geo_price == o.geo_price &&
|
|
925
|
-
geo_availability == o.geo_availability &&
|
|
926
|
-
availability == o.availability &&
|
|
927
|
-
availability_date == o.availability_date &&
|
|
928
|
-
expiration_date == o.expiration_date &&
|
|
929
354
|
seller_name == o.seller_name &&
|
|
930
355
|
seller_url == o.seller_url &&
|
|
931
|
-
marketplace_seller == o.marketplace_seller &&
|
|
932
|
-
seller_privacy_policy == o.seller_privacy_policy &&
|
|
933
|
-
seller_tos == o.seller_tos &&
|
|
934
|
-
shipping_price == o.shipping_price &&
|
|
935
|
-
delivery_estimate == o.delivery_estimate &&
|
|
936
|
-
pickup_method == o.pickup_method &&
|
|
937
|
-
pickup_sla == o.pickup_sla &&
|
|
938
|
-
is_digital == o.is_digital &&
|
|
939
356
|
return_policy == o.return_policy &&
|
|
940
|
-
accepts_returns == o.accepts_returns &&
|
|
941
|
-
return_deadline_in_days == o.return_deadline_in_days &&
|
|
942
|
-
accepts_exchanges == o.accepts_exchanges &&
|
|
943
|
-
is_eligible_search == o.is_eligible_search &&
|
|
944
|
-
is_eligible_checkout == o.is_eligible_checkout &&
|
|
945
|
-
popularity_score == o.popularity_score &&
|
|
946
|
-
return_rate == o.return_rate &&
|
|
947
|
-
warning == o.warning &&
|
|
948
|
-
warning_url == o.warning_url &&
|
|
949
|
-
age_restriction == o.age_restriction &&
|
|
950
|
-
review_count == o.review_count &&
|
|
951
|
-
star_rating == o.star_rating &&
|
|
952
|
-
store_review_count == o.store_review_count &&
|
|
953
|
-
store_star_rating == o.store_star_rating &&
|
|
954
|
-
related_product_id == o.related_product_id &&
|
|
955
|
-
relationship_type == o.relationship_type &&
|
|
956
357
|
target_countries == o.target_countries &&
|
|
957
358
|
store_country == o.store_country &&
|
|
958
|
-
q_and_a == o.q_and_a &&
|
|
959
|
-
qand_a == o.qand_a &&
|
|
960
|
-
reviews == o.reviews &&
|
|
961
359
|
created_at == o.created_at &&
|
|
962
360
|
updated_at == o.updated_at
|
|
963
361
|
end
|
|
@@ -971,7 +369,7 @@ module CyberSource
|
|
|
971
369
|
# Calculates hash code according to all attributes.
|
|
972
370
|
# @return [Fixnum] Hash code
|
|
973
371
|
def hash
|
|
974
|
-
[
|
|
372
|
+
[item_id, is_eligible_search, is_eligible_checkout, title, description, url, image_url, product_category, brand, material, weight, price, currency, availability, color, gender, age_group, shipping_price, group_id, listing_has_variations, seller_name, seller_url, return_policy, target_countries, store_country, created_at, updated_at].hash
|
|
975
373
|
end
|
|
976
374
|
|
|
977
375
|
# Builds the object from hash
|