cybersource_rest_client 0.0.73 → 0.0.75
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/AuthenticationSDK/core/MerchantConfig.rb +2 -1
- data/lib/cybersource_rest_client/api/batches_api.rb +9 -9
- data/lib/cybersource_rest_client/api/bin_lookup_api.rb +5 -5
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +3 -3
- data/lib/cybersource_rest_client/api/device_de_association_api.rb +168 -0
- data/lib/cybersource_rest_client/api/device_search_api.rb +78 -5
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
- data/lib/cybersource_rest_client/api/payment_tokens_api.rb +96 -0
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +5 -2
- data/lib/cybersource_rest_client/models/create_order_request.rb +269 -229
- data/lib/cybersource_rest_client/models/de_association_request_body.rb +190 -0
- data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +1 -1
- data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +2 -2
- data/lib/cybersource_rest_client/models/get_subscription_response.rb +15 -5
- data/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_200_10.rb +292 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_9_records.rb → inline_response_200_10_records.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_9_response_record.rb → inline_response_200_10_response_record.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_9_response_record_additional_updates.rb → inline_response_200_10_response_record_additional_updates.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_9_source_record.rb → inline_response_200_10_source_record.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +253 -253
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +55 -10
- data/lib/cybersource_rest_client/models/inline_response_200_5_devices.rb +357 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +10 -55
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +33 -37
- data/lib/cybersource_rest_client/models/{inline_response_200_6_devices.rb → inline_response_200_7_devices.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_6_payment_processor_to_terminal_map.rb → inline_response_200_7_payment_processor_to_terminal_map.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_8.rb +47 -86
- data/lib/cybersource_rest_client/models/{inline_response_200_7__embedded.rb → inline_response_200_8__embedded.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_7__embedded__links.rb → inline_response_200_8__embedded__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_7__embedded__links_reports.rb → inline_response_200_8__embedded__links_reports.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_7__embedded_batches.rb → inline_response_200_8__embedded_batches.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_7__embedded_totals.rb → inline_response_200_8__embedded_totals.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_8__links.rb +16 -17
- data/lib/cybersource_rest_client/models/inline_response_200_9.rb +47 -49
- data/lib/cybersource_rest_client/models/inline_response_200_9__links.rb +201 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_8__links_report.rb → inline_response_200_9__links_report.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_8_billing.rb → inline_response_200_9_billing.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201.rb +227 -218
- data/lib/cybersource_rest_client/models/inline_response_201_1.rb +218 -248
- data/lib/cybersource_rest_client/models/inline_response_201_2.rb +248 -281
- data/lib/cybersource_rest_client/models/{inline_response_201_1_payout_information.rb → inline_response_201_2_payout_information.rb} +216 -216
- data/lib/cybersource_rest_client/models/{inline_response_201_1_payout_information_pull_funds.rb → inline_response_201_2_payout_information_pull_funds.rb} +213 -213
- data/lib/cybersource_rest_client/models/{inline_response_201_1_payout_information_push_funds.rb → inline_response_201_2_payout_information_push_funds.rb} +417 -417
- data/lib/cybersource_rest_client/models/inline_response_201_3.rb +281 -222
- data/lib/cybersource_rest_client/models/{inline_response_201_2_integration_information.rb → inline_response_201_3_integration_information.rb} +192 -192
- data/lib/cybersource_rest_client/models/{inline_response_201_2_integration_information_tenant_configurations.rb → inline_response_201_3_integration_information_tenant_configurations.rb} +253 -253
- data/lib/cybersource_rest_client/models/{inline_response_201_2_organization_information.rb → inline_response_201_3_organization_information.rb} +217 -217
- data/lib/cybersource_rest_client/models/{inline_response_201_2_product_information_setups.rb → inline_response_201_3_product_information_setups.rb} +214 -214
- data/lib/cybersource_rest_client/models/{inline_response_201_2_registration_information.rb → inline_response_201_3_registration_information.rb} +222 -222
- data/lib/cybersource_rest_client/models/{inline_response_201_2_setups.rb → inline_response_201_3_setups.rb} +219 -219
- data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_commerce_solutions.rb → inline_response_201_3_setups_commerce_solutions.rb} +209 -209
- data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments.rb → inline_response_201_3_setups_payments.rb} +369 -369
- data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_alternative_payment_methods.rb → inline_response_201_3_setups_payments_alternative_payment_methods.rb} +221 -221
- data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_alternative_payment_methods_configuration_status.rb → inline_response_201_3_setups_payments_alternative_payment_methods_configuration_status.rb} +200 -200
- data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_card_processing.rb → inline_response_201_3_setups_payments_card_processing.rb} +199 -199
- data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_card_processing_configuration_status.rb → inline_response_201_3_setups_payments_card_processing_configuration_status.rb} +255 -255
- data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_card_processing_subscription_status.rb → inline_response_201_3_setups_payments_card_processing_subscription_status.rb} +234 -234
- data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_digital_payments.rb → inline_response_201_3_setups_payments_digital_payments.rb} +189 -189
- data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_risk.rb → inline_response_201_3_setups_risk.rb} +199 -199
- data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_value_added_services.rb → inline_response_201_3_setups_value_added_services.rb} +209 -209
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +222 -312
- data/lib/cybersource_rest_client/models/{inline_response_201_3_key_information.rb → inline_response_201_4_key_information.rb} +300 -300
- data/lib/cybersource_rest_client/models/{inline_response_201_3_key_information_error_information.rb → inline_response_201_4_key_information_error_information.rb} +202 -202
- data/lib/cybersource_rest_client/models/{inline_response_201_3_key_information_error_information_details.rb → inline_response_201_4_key_information_error_information_details.rb} +201 -201
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +312 -277
- data/lib/cybersource_rest_client/models/inline_response_201_6.rb +277 -202
- data/lib/cybersource_rest_client/models/{inline_response_201_5_payloads.rb → inline_response_201_6_payloads.rb} +189 -189
- data/lib/cybersource_rest_client/models/{inline_response_201_5_payloads_test_payload.rb → inline_response_201_6_payloads_test_payload.rb} +190 -190
- data/lib/cybersource_rest_client/models/inline_response_201_7.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_201_order_information.rb +189 -0
- data/lib/cybersource_rest_client/models/inline_response_201_order_information_ship_to.rb +315 -0
- data/lib/cybersource_rest_client/models/inline_response_201_payment_information.rb +199 -0
- data/lib/cybersource_rest_client/models/inline_response_201_payment_information_e_wallet.rb +196 -0
- data/lib/cybersource_rest_client/models/inline_response_201_payment_information_tokenized_payment_method.rb +213 -0
- data/lib/cybersource_rest_client/models/payments_products.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout.rb +199 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information.rb +189 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations.rb +189 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features.rb +189 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features_paze.rb +213 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information.rb +225 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features.rb +189 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout.rb +190 -0
- data/lib/cybersource_rest_client/models/post_device_search_request.rb +223 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +609 -609
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +269 -269
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +364 -354
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_payment_method.rb +213 -0
- data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get400_response.rb +252 -0
- data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get502_response.rb +240 -0
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +258 -258
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +275 -275
- data/lib/cybersource_rest_client/models/ptsv2intents_event_information.rb +212 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_ship_to.rb +354 -332
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information.rb +220 -189
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_e_wallet.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_tokenized_payment_method.rb +241 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb +351 -219
- data/lib/cybersource_rest_client/models/ptsv2intents_recipient_information.rb +245 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_sender_information.rb +277 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_sender_information_account.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_travel_information.rb +211 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_travel_information_agency.rb +245 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_7__links.rb → ptsv2intentsid_payment_information.rb} +189 -200
- data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_amount_details.rb +417 -400
- data/lib/cybersource_rest_client/models/ptsv2paymentreferences_payment_information_card.rb +275 -275
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +433 -416
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +668 -651
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +716 -699
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +356 -346
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +445 -445
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +377 -377
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_payment_method.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +604 -604
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +377 -377
- data/lib/cybersource_rest_client/models/ptsv2paymenttokens_payment_information.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2paymenttokens_processing_information.rb +192 -0
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +258 -258
- data/lib/cybersource_rest_client/models/request.rb +199 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -241
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +258 -258
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +351 -351
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +268 -268
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +299 -299
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +259 -259
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +259 -259
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +16 -5
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +224 -224
- data/lib/cybersource_rest_client/models/tms_bin_lookup_issuer_information.rb +264 -264
- data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card.rb +277 -277
- data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card_brands.rb +213 -213
- data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features.rb +430 -430
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +201 -201
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +365 -365
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +12 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +218 -218
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +245 -234
- data/lib/cybersource_rest_client/models/update_order_request.rb +229 -229
- data/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb +12 -1
- data/lib/cybersource_rest_client/models/upv1capturecontexts_complete_mandate.rb +18 -7
- data/lib/cybersource_rest_client.rb +75 -39
- metadata +77 -41
- data/lib/cybersource_rest_client/api/device_de_association_v3_api.rb +0 -96
@@ -15,42 +15,28 @@ module CyberSource
|
|
15
15
|
class InlineResponse2008
|
16
16
|
attr_accessor :_links
|
17
17
|
|
18
|
-
|
19
|
-
attr_accessor :batch_id
|
18
|
+
attr_accessor :object
|
20
19
|
|
21
|
-
|
22
|
-
attr_accessor :batch_created_date
|
20
|
+
attr_accessor :offset
|
23
21
|
|
24
|
-
|
25
|
-
attr_accessor :batch_source
|
22
|
+
attr_accessor :limit
|
26
23
|
|
27
|
-
|
28
|
-
attr_accessor :merchant_reference
|
24
|
+
attr_accessor :count
|
29
25
|
|
30
|
-
attr_accessor :
|
26
|
+
attr_accessor :total
|
31
27
|
|
32
|
-
|
33
|
-
attr_accessor :status
|
34
|
-
|
35
|
-
attr_accessor :totals
|
36
|
-
|
37
|
-
attr_accessor :billing
|
38
|
-
|
39
|
-
attr_accessor :description
|
28
|
+
attr_accessor :_embedded
|
40
29
|
|
41
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
31
|
def self.attribute_map
|
43
32
|
{
|
44
33
|
:'_links' => :'_links',
|
45
|
-
:'
|
46
|
-
:'
|
47
|
-
:'
|
48
|
-
:'
|
49
|
-
:'
|
50
|
-
:'
|
51
|
-
:'totals' => :'totals',
|
52
|
-
:'billing' => :'billing',
|
53
|
-
:'description' => :'description'
|
34
|
+
:'object' => :'object',
|
35
|
+
:'offset' => :'offset',
|
36
|
+
:'limit' => :'limit',
|
37
|
+
:'count' => :'count',
|
38
|
+
:'total' => :'total',
|
39
|
+
:'_embedded' => :'_embedded'
|
54
40
|
}
|
55
41
|
end
|
56
42
|
|
@@ -58,31 +44,25 @@ module CyberSource
|
|
58
44
|
def self.json_map
|
59
45
|
{
|
60
46
|
:'_links' => :'_links',
|
61
|
-
:'
|
62
|
-
:'
|
63
|
-
:'
|
64
|
-
:'
|
65
|
-
:'
|
66
|
-
:'
|
67
|
-
:'totals' => :'totals',
|
68
|
-
:'billing' => :'billing',
|
69
|
-
:'description' => :'description'
|
47
|
+
:'object' => :'object',
|
48
|
+
:'offset' => :'offset',
|
49
|
+
:'limit' => :'limit',
|
50
|
+
:'count' => :'count',
|
51
|
+
:'total' => :'total',
|
52
|
+
:'_embedded' => :'_embedded'
|
70
53
|
}
|
71
54
|
end
|
72
55
|
|
73
56
|
# Attribute type mapping.
|
74
57
|
def self.swagger_types
|
75
58
|
{
|
76
|
-
:'_links' => :'InlineResponse2008Links',
|
77
|
-
:'
|
78
|
-
:'
|
79
|
-
:'
|
80
|
-
:'
|
81
|
-
:'
|
82
|
-
:'
|
83
|
-
:'totals' => :'InlineResponse2007EmbeddedTotals',
|
84
|
-
:'billing' => :'InlineResponse2008Billing',
|
85
|
-
:'description' => :'String'
|
59
|
+
:'_links' => :'Array<InlineResponse2008Links>',
|
60
|
+
:'object' => :'String',
|
61
|
+
:'offset' => :'Integer',
|
62
|
+
:'limit' => :'Integer',
|
63
|
+
:'count' => :'Integer',
|
64
|
+
:'total' => :'Integer',
|
65
|
+
:'_embedded' => :'InlineResponse2008Embedded'
|
86
66
|
}
|
87
67
|
end
|
88
68
|
|
@@ -95,43 +75,33 @@ module CyberSource
|
|
95
75
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
96
76
|
|
97
77
|
if attributes.has_key?(:'_links')
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
if attributes.has_key?(:'batchId')
|
102
|
-
self.batch_id = attributes[:'batchId']
|
103
|
-
end
|
104
|
-
|
105
|
-
if attributes.has_key?(:'batchCreatedDate')
|
106
|
-
self.batch_created_date = attributes[:'batchCreatedDate']
|
107
|
-
end
|
108
|
-
|
109
|
-
if attributes.has_key?(:'batchSource')
|
110
|
-
self.batch_source = attributes[:'batchSource']
|
78
|
+
if (value = attributes[:'_links']).is_a?(Array)
|
79
|
+
self._links = value
|
80
|
+
end
|
111
81
|
end
|
112
82
|
|
113
|
-
if attributes.has_key?(:'
|
114
|
-
self.
|
83
|
+
if attributes.has_key?(:'object')
|
84
|
+
self.object = attributes[:'object']
|
115
85
|
end
|
116
86
|
|
117
|
-
if attributes.has_key?(:'
|
118
|
-
self.
|
87
|
+
if attributes.has_key?(:'offset')
|
88
|
+
self.offset = attributes[:'offset']
|
119
89
|
end
|
120
90
|
|
121
|
-
if attributes.has_key?(:'
|
122
|
-
self.
|
91
|
+
if attributes.has_key?(:'limit')
|
92
|
+
self.limit = attributes[:'limit']
|
123
93
|
end
|
124
94
|
|
125
|
-
if attributes.has_key?(:'
|
126
|
-
self.
|
95
|
+
if attributes.has_key?(:'count')
|
96
|
+
self.count = attributes[:'count']
|
127
97
|
end
|
128
98
|
|
129
|
-
if attributes.has_key?(:'
|
130
|
-
self.
|
99
|
+
if attributes.has_key?(:'total')
|
100
|
+
self.total = attributes[:'total']
|
131
101
|
end
|
132
102
|
|
133
|
-
if attributes.has_key?(:'
|
134
|
-
self.
|
103
|
+
if attributes.has_key?(:'_embedded')
|
104
|
+
self._embedded = attributes[:'_embedded']
|
135
105
|
end
|
136
106
|
end
|
137
107
|
|
@@ -148,27 +118,18 @@ module CyberSource
|
|
148
118
|
true
|
149
119
|
end
|
150
120
|
|
151
|
-
# Custom attribute writer method with validation
|
152
|
-
# @param [Object] merchant_reference Value to be assigned
|
153
|
-
def merchant_reference=(merchant_reference)
|
154
|
-
@merchant_reference = merchant_reference
|
155
|
-
end
|
156
|
-
|
157
121
|
# Checks equality by comparing each attribute.
|
158
122
|
# @param [Object] Object to be compared
|
159
123
|
def ==(o)
|
160
124
|
return true if self.equal?(o)
|
161
125
|
self.class == o.class &&
|
162
126
|
_links == o._links &&
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
totals == o.totals &&
|
170
|
-
billing == o.billing &&
|
171
|
-
description == o.description
|
127
|
+
object == o.object &&
|
128
|
+
offset == o.offset &&
|
129
|
+
limit == o.limit &&
|
130
|
+
count == o.count &&
|
131
|
+
total == o.total &&
|
132
|
+
_embedded == o._embedded
|
172
133
|
end
|
173
134
|
|
174
135
|
# @see the `==` method
|
@@ -180,7 +141,7 @@ module CyberSource
|
|
180
141
|
# Calculates hash code according to all attributes.
|
181
142
|
# @return [Fixnum] Hash code
|
182
143
|
def hash
|
183
|
-
[_links,
|
144
|
+
[_links, object, offset, limit, count, total, _embedded].hash
|
184
145
|
end
|
185
146
|
|
186
147
|
# Builds the object from hash
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
|
|
12
12
|
require 'date'
|
13
13
|
|
14
14
|
module CyberSource
|
15
|
-
class
|
15
|
+
class InlineResponse2008Embedded
|
16
16
|
attr_accessor :batches
|
17
17
|
|
18
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -32,7 +32,7 @@ module CyberSource
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.swagger_types
|
34
34
|
{
|
35
|
-
:'batches' => :'Array<
|
35
|
+
:'batches' => :'Array<InlineResponse2008EmbeddedBatches>'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
|
|
12
12
|
require 'date'
|
13
13
|
|
14
14
|
module CyberSource
|
15
|
-
class
|
15
|
+
class InlineResponse2008EmbeddedLinks
|
16
16
|
attr_accessor :reports
|
17
17
|
|
18
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -32,7 +32,7 @@ module CyberSource
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.swagger_types
|
34
34
|
{
|
35
|
-
:'reports' => :'Array<
|
35
|
+
:'reports' => :'Array<InlineResponse2008EmbeddedLinksReports>'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -13,7 +13,7 @@ require 'date'
|
|
13
13
|
|
14
14
|
module CyberSource
|
15
15
|
# Retrieve the generated report of a batch when available.
|
16
|
-
class
|
16
|
+
class InlineResponse2008EmbeddedLinksReports
|
17
17
|
attr_accessor :href
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
|
|
12
12
|
require 'date'
|
13
13
|
|
14
14
|
module CyberSource
|
15
|
-
class
|
15
|
+
class InlineResponse2008EmbeddedBatches
|
16
16
|
attr_accessor :_links
|
17
17
|
|
18
18
|
# Unique identification number assigned to the submitted request.
|
@@ -76,7 +76,7 @@ module CyberSource
|
|
76
76
|
# Attribute type mapping.
|
77
77
|
def self.swagger_types
|
78
78
|
{
|
79
|
-
:'_links' => :'
|
79
|
+
:'_links' => :'InlineResponse2008EmbeddedLinks',
|
80
80
|
:'batch_id' => :'String',
|
81
81
|
:'batch_created_date' => :'String',
|
82
82
|
:'batch_modified_date' => :'String',
|
@@ -85,7 +85,7 @@ module CyberSource
|
|
85
85
|
:'merchant_reference' => :'String',
|
86
86
|
:'batch_ca_endpoints' => :'Array<String>',
|
87
87
|
:'status' => :'String',
|
88
|
-
:'totals' => :'
|
88
|
+
:'totals' => :'InlineResponse2008EmbeddedTotals'
|
89
89
|
}
|
90
90
|
end
|
91
91
|
|
@@ -13,31 +13,32 @@ require 'date'
|
|
13
13
|
|
14
14
|
module CyberSource
|
15
15
|
class InlineResponse2008Links
|
16
|
-
|
16
|
+
# Valid Values: * self * first * last * prev * next
|
17
|
+
attr_accessor :rel
|
17
18
|
|
18
|
-
attr_accessor :
|
19
|
+
attr_accessor :href
|
19
20
|
|
20
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
22
|
def self.attribute_map
|
22
23
|
{
|
23
|
-
:'
|
24
|
-
:'
|
24
|
+
:'rel' => :'rel',
|
25
|
+
:'href' => :'href'
|
25
26
|
}
|
26
27
|
end
|
27
28
|
|
28
29
|
# Attribute mapping from JSON key to ruby-style variable name.
|
29
30
|
def self.json_map
|
30
31
|
{
|
31
|
-
:'
|
32
|
-
:'
|
32
|
+
:'rel' => :'rel',
|
33
|
+
:'href' => :'href'
|
33
34
|
}
|
34
35
|
end
|
35
36
|
|
36
37
|
# Attribute type mapping.
|
37
38
|
def self.swagger_types
|
38
39
|
{
|
39
|
-
:'
|
40
|
-
:'
|
40
|
+
:'rel' => :'String',
|
41
|
+
:'href' => :'String'
|
41
42
|
}
|
42
43
|
end
|
43
44
|
|
@@ -49,14 +50,12 @@ module CyberSource
|
|
49
50
|
# convert string to symbol for hash key
|
50
51
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
51
52
|
|
52
|
-
if attributes.has_key?(:'
|
53
|
-
self.
|
53
|
+
if attributes.has_key?(:'rel')
|
54
|
+
self.rel = attributes[:'rel']
|
54
55
|
end
|
55
56
|
|
56
|
-
if attributes.has_key?(:'
|
57
|
-
|
58
|
-
self.report = value
|
59
|
-
end
|
57
|
+
if attributes.has_key?(:'href')
|
58
|
+
self.href = attributes[:'href']
|
60
59
|
end
|
61
60
|
end
|
62
61
|
|
@@ -78,8 +77,8 @@ module CyberSource
|
|
78
77
|
def ==(o)
|
79
78
|
return true if self.equal?(o)
|
80
79
|
self.class == o.class &&
|
81
|
-
|
82
|
-
|
80
|
+
rel == o.rel &&
|
81
|
+
href == o.href
|
83
82
|
end
|
84
83
|
|
85
84
|
# @see the `==` method
|
@@ -91,7 +90,7 @@ module CyberSource
|
|
91
90
|
# Calculates hash code according to all attributes.
|
92
91
|
# @return [Fixnum] Hash code
|
93
92
|
def hash
|
94
|
-
[
|
93
|
+
[rel, href].hash
|
95
94
|
end
|
96
95
|
|
97
96
|
# Builds the object from hash
|
@@ -13,76 +13,76 @@ require 'date'
|
|
13
13
|
|
14
14
|
module CyberSource
|
15
15
|
class InlineResponse2009
|
16
|
-
attr_accessor :
|
17
|
-
|
18
|
-
# ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ
|
19
|
-
attr_accessor :report_created_date
|
16
|
+
attr_accessor :_links
|
20
17
|
|
21
18
|
# Unique identification number assigned to the submitted request.
|
22
19
|
attr_accessor :batch_id
|
23
20
|
|
24
|
-
# Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE
|
25
|
-
attr_accessor :batch_source
|
26
|
-
|
27
|
-
attr_accessor :batch_ca_endpoints
|
28
|
-
|
29
21
|
# ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ
|
30
22
|
attr_accessor :batch_created_date
|
31
23
|
|
24
|
+
# Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE
|
25
|
+
attr_accessor :batch_source
|
26
|
+
|
32
27
|
# Reference used by merchant to identify batch.
|
33
28
|
attr_accessor :merchant_reference
|
34
29
|
|
30
|
+
attr_accessor :batch_ca_endpoints
|
31
|
+
|
32
|
+
# Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETED
|
33
|
+
attr_accessor :status
|
34
|
+
|
35
35
|
attr_accessor :totals
|
36
36
|
|
37
37
|
attr_accessor :billing
|
38
38
|
|
39
|
-
attr_accessor :
|
39
|
+
attr_accessor :description
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'
|
45
|
-
:'report_created_date' => :'reportCreatedDate',
|
44
|
+
:'_links' => :'_links',
|
46
45
|
:'batch_id' => :'batchId',
|
47
|
-
:'batch_source' => :'batchSource',
|
48
|
-
:'batch_ca_endpoints' => :'batchCaEndpoints',
|
49
46
|
:'batch_created_date' => :'batchCreatedDate',
|
47
|
+
:'batch_source' => :'batchSource',
|
50
48
|
:'merchant_reference' => :'merchantReference',
|
49
|
+
:'batch_ca_endpoints' => :'batchCaEndpoints',
|
50
|
+
:'status' => :'status',
|
51
51
|
:'totals' => :'totals',
|
52
52
|
:'billing' => :'billing',
|
53
|
-
:'
|
53
|
+
:'description' => :'description'
|
54
54
|
}
|
55
55
|
end
|
56
56
|
|
57
57
|
# Attribute mapping from JSON key to ruby-style variable name.
|
58
58
|
def self.json_map
|
59
59
|
{
|
60
|
-
:'
|
61
|
-
:'report_created_date' => :'report_created_date',
|
60
|
+
:'_links' => :'_links',
|
62
61
|
:'batch_id' => :'batch_id',
|
63
|
-
:'batch_source' => :'batch_source',
|
64
|
-
:'batch_ca_endpoints' => :'batch_ca_endpoints',
|
65
62
|
:'batch_created_date' => :'batch_created_date',
|
63
|
+
:'batch_source' => :'batch_source',
|
66
64
|
:'merchant_reference' => :'merchant_reference',
|
65
|
+
:'batch_ca_endpoints' => :'batch_ca_endpoints',
|
66
|
+
:'status' => :'status',
|
67
67
|
:'totals' => :'totals',
|
68
68
|
:'billing' => :'billing',
|
69
|
-
:'
|
69
|
+
:'description' => :'description'
|
70
70
|
}
|
71
71
|
end
|
72
72
|
|
73
73
|
# Attribute type mapping.
|
74
74
|
def self.swagger_types
|
75
75
|
{
|
76
|
-
:'
|
77
|
-
:'report_created_date' => :'String',
|
76
|
+
:'_links' => :'InlineResponse2009Links',
|
78
77
|
:'batch_id' => :'String',
|
79
|
-
:'batch_source' => :'String',
|
80
|
-
:'batch_ca_endpoints' => :'String',
|
81
78
|
:'batch_created_date' => :'String',
|
79
|
+
:'batch_source' => :'String',
|
82
80
|
:'merchant_reference' => :'String',
|
83
|
-
:'
|
84
|
-
:'
|
85
|
-
:'
|
81
|
+
:'batch_ca_endpoints' => :'String',
|
82
|
+
:'status' => :'String',
|
83
|
+
:'totals' => :'InlineResponse2008EmbeddedTotals',
|
84
|
+
:'billing' => :'InlineResponse2009Billing',
|
85
|
+
:'description' => :'String'
|
86
86
|
}
|
87
87
|
end
|
88
88
|
|
@@ -94,32 +94,32 @@ module CyberSource
|
|
94
94
|
# convert string to symbol for hash key
|
95
95
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
96
96
|
|
97
|
-
if attributes.has_key?(:'
|
98
|
-
self.
|
99
|
-
end
|
100
|
-
|
101
|
-
if attributes.has_key?(:'reportCreatedDate')
|
102
|
-
self.report_created_date = attributes[:'reportCreatedDate']
|
97
|
+
if attributes.has_key?(:'_links')
|
98
|
+
self._links = attributes[:'_links']
|
103
99
|
end
|
104
100
|
|
105
101
|
if attributes.has_key?(:'batchId')
|
106
102
|
self.batch_id = attributes[:'batchId']
|
107
103
|
end
|
108
104
|
|
105
|
+
if attributes.has_key?(:'batchCreatedDate')
|
106
|
+
self.batch_created_date = attributes[:'batchCreatedDate']
|
107
|
+
end
|
108
|
+
|
109
109
|
if attributes.has_key?(:'batchSource')
|
110
110
|
self.batch_source = attributes[:'batchSource']
|
111
111
|
end
|
112
112
|
|
113
|
-
if attributes.has_key?(:'
|
114
|
-
self.
|
113
|
+
if attributes.has_key?(:'merchantReference')
|
114
|
+
self.merchant_reference = attributes[:'merchantReference']
|
115
115
|
end
|
116
116
|
|
117
|
-
if attributes.has_key?(:'
|
118
|
-
self.
|
117
|
+
if attributes.has_key?(:'batchCaEndpoints')
|
118
|
+
self.batch_ca_endpoints = attributes[:'batchCaEndpoints']
|
119
119
|
end
|
120
120
|
|
121
|
-
if attributes.has_key?(:'
|
122
|
-
self.
|
121
|
+
if attributes.has_key?(:'status')
|
122
|
+
self.status = attributes[:'status']
|
123
123
|
end
|
124
124
|
|
125
125
|
if attributes.has_key?(:'totals')
|
@@ -130,10 +130,8 @@ module CyberSource
|
|
130
130
|
self.billing = attributes[:'billing']
|
131
131
|
end
|
132
132
|
|
133
|
-
if attributes.has_key?(:'
|
134
|
-
|
135
|
-
self.records = value
|
136
|
-
end
|
133
|
+
if attributes.has_key?(:'description')
|
134
|
+
self.description = attributes[:'description']
|
137
135
|
end
|
138
136
|
end
|
139
137
|
|
@@ -161,16 +159,16 @@ module CyberSource
|
|
161
159
|
def ==(o)
|
162
160
|
return true if self.equal?(o)
|
163
161
|
self.class == o.class &&
|
164
|
-
|
165
|
-
report_created_date == o.report_created_date &&
|
162
|
+
_links == o._links &&
|
166
163
|
batch_id == o.batch_id &&
|
167
|
-
batch_source == o.batch_source &&
|
168
|
-
batch_ca_endpoints == o.batch_ca_endpoints &&
|
169
164
|
batch_created_date == o.batch_created_date &&
|
165
|
+
batch_source == o.batch_source &&
|
170
166
|
merchant_reference == o.merchant_reference &&
|
167
|
+
batch_ca_endpoints == o.batch_ca_endpoints &&
|
168
|
+
status == o.status &&
|
171
169
|
totals == o.totals &&
|
172
170
|
billing == o.billing &&
|
173
|
-
|
171
|
+
description == o.description
|
174
172
|
end
|
175
173
|
|
176
174
|
# @see the `==` method
|
@@ -182,7 +180,7 @@ module CyberSource
|
|
182
180
|
# Calculates hash code according to all attributes.
|
183
181
|
# @return [Fixnum] Hash code
|
184
182
|
def hash
|
185
|
-
[
|
183
|
+
[_links, batch_id, batch_created_date, batch_source, merchant_reference, batch_ca_endpoints, status, totals, billing, description].hash
|
186
184
|
end
|
187
185
|
|
188
186
|
# Builds the object from hash
|