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
@@ -1,229 +1,229 @@
|
|
1
|
-
=begin
|
2
|
-
#CyberSource Merged Spec
|
3
|
-
|
4
|
-
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
-
|
6
|
-
OpenAPI spec version: 0.0.1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.38
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'date'
|
13
|
-
|
14
|
-
module CyberSource
|
15
|
-
class UpdateOrderRequest
|
16
|
-
attr_accessor :client_reference_information
|
17
|
-
|
18
|
-
attr_accessor :order_information
|
19
|
-
|
20
|
-
attr_accessor :merchant_information
|
21
|
-
|
22
|
-
attr_accessor :payment_information
|
23
|
-
|
24
|
-
attr_accessor :processing_information
|
25
|
-
|
26
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
-
def self.attribute_map
|
28
|
-
{
|
29
|
-
:'client_reference_information' => :'clientReferenceInformation',
|
30
|
-
:'order_information' => :'orderInformation',
|
31
|
-
:'merchant_information' => :'merchantInformation',
|
32
|
-
:'payment_information' => :'paymentInformation',
|
33
|
-
:'processing_information' => :'processingInformation'
|
34
|
-
}
|
35
|
-
end
|
36
|
-
|
37
|
-
# Attribute mapping from JSON key to ruby-style variable name.
|
38
|
-
def self.json_map
|
39
|
-
{
|
40
|
-
:'client_reference_information' => :'client_reference_information',
|
41
|
-
:'order_information' => :'order_information',
|
42
|
-
:'merchant_information' => :'merchant_information',
|
43
|
-
:'payment_information' => :'payment_information',
|
44
|
-
:'processing_information' => :'processing_information'
|
45
|
-
}
|
46
|
-
end
|
47
|
-
|
48
|
-
# Attribute type mapping.
|
49
|
-
def self.swagger_types
|
50
|
-
{
|
51
|
-
:'client_reference_information' => :'Ptsv2intentsClientReferenceInformation',
|
52
|
-
:'order_information' => :'Ptsv2intentsidOrderInformation',
|
53
|
-
:'merchant_information' => :'Ptsv2intentsidMerchantInformation',
|
54
|
-
:'payment_information' => :'
|
55
|
-
:'processing_information' => :'Ptsv2intentsidProcessingInformation'
|
56
|
-
}
|
57
|
-
end
|
58
|
-
|
59
|
-
# Initializes the object
|
60
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
-
def initialize(attributes = {})
|
62
|
-
return unless attributes.is_a?(Hash)
|
63
|
-
|
64
|
-
# convert string to symbol for hash key
|
65
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
66
|
-
|
67
|
-
if attributes.has_key?(:'clientReferenceInformation')
|
68
|
-
self.client_reference_information = attributes[:'clientReferenceInformation']
|
69
|
-
end
|
70
|
-
|
71
|
-
if attributes.has_key?(:'orderInformation')
|
72
|
-
self.order_information = attributes[:'orderInformation']
|
73
|
-
end
|
74
|
-
|
75
|
-
if attributes.has_key?(:'merchantInformation')
|
76
|
-
self.merchant_information = attributes[:'merchantInformation']
|
77
|
-
end
|
78
|
-
|
79
|
-
if attributes.has_key?(:'paymentInformation')
|
80
|
-
self.payment_information = attributes[:'paymentInformation']
|
81
|
-
end
|
82
|
-
|
83
|
-
if attributes.has_key?(:'processingInformation')
|
84
|
-
self.processing_information = attributes[:'processingInformation']
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
89
|
-
# @return Array for valid properties with the reasons
|
90
|
-
def list_invalid_properties
|
91
|
-
invalid_properties = Array.new
|
92
|
-
invalid_properties
|
93
|
-
end
|
94
|
-
|
95
|
-
# Check to see if the all the properties in the model are valid
|
96
|
-
# @return true if the model is valid
|
97
|
-
def valid?
|
98
|
-
true
|
99
|
-
end
|
100
|
-
|
101
|
-
# Checks equality by comparing each attribute.
|
102
|
-
# @param [Object] Object to be compared
|
103
|
-
def ==(o)
|
104
|
-
return true if self.equal?(o)
|
105
|
-
self.class == o.class &&
|
106
|
-
client_reference_information == o.client_reference_information &&
|
107
|
-
order_information == o.order_information &&
|
108
|
-
merchant_information == o.merchant_information &&
|
109
|
-
payment_information == o.payment_information &&
|
110
|
-
processing_information == o.processing_information
|
111
|
-
end
|
112
|
-
|
113
|
-
# @see the `==` method
|
114
|
-
# @param [Object] Object to be compared
|
115
|
-
def eql?(o)
|
116
|
-
self == o
|
117
|
-
end
|
118
|
-
|
119
|
-
# Calculates hash code according to all attributes.
|
120
|
-
# @return [Fixnum] Hash code
|
121
|
-
def hash
|
122
|
-
[client_reference_information, order_information, merchant_information, payment_information, processing_information].hash
|
123
|
-
end
|
124
|
-
|
125
|
-
# Builds the object from hash
|
126
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
127
|
-
# @return [Object] Returns the model itself
|
128
|
-
def build_from_hash(attributes)
|
129
|
-
return nil unless attributes.is_a?(Hash)
|
130
|
-
self.class.swagger_types.each_pair do |key, type|
|
131
|
-
if type =~ /\AArray<(.*)>/i
|
132
|
-
# check to ensure the input is an array given that the the attribute
|
133
|
-
# is documented as an array but the input is not
|
134
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
135
|
-
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
136
|
-
end
|
137
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
138
|
-
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
139
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
140
|
-
end
|
141
|
-
|
142
|
-
self
|
143
|
-
end
|
144
|
-
|
145
|
-
# Deserializes the data based on type
|
146
|
-
# @param string type Data type
|
147
|
-
# @param string value Value to be deserialized
|
148
|
-
# @return [Object] Deserialized data
|
149
|
-
def _deserialize(type, value)
|
150
|
-
case type.to_sym
|
151
|
-
when :DateTime
|
152
|
-
DateTime.parse(value)
|
153
|
-
when :Date
|
154
|
-
Date.parse(value)
|
155
|
-
when :String
|
156
|
-
value.to_s
|
157
|
-
when :Integer
|
158
|
-
value.to_i
|
159
|
-
when :Float
|
160
|
-
value.to_f
|
161
|
-
when :BOOLEAN
|
162
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
163
|
-
true
|
164
|
-
else
|
165
|
-
false
|
166
|
-
end
|
167
|
-
when :Object
|
168
|
-
# generic object (usually a Hash), return directly
|
169
|
-
value
|
170
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
171
|
-
inner_type = Regexp.last_match[:inner_type]
|
172
|
-
value.map { |v| _deserialize(inner_type, v) }
|
173
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
174
|
-
k_type = Regexp.last_match[:k_type]
|
175
|
-
v_type = Regexp.last_match[:v_type]
|
176
|
-
{}.tap do |hash|
|
177
|
-
value.each do |k, v|
|
178
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
179
|
-
end
|
180
|
-
end
|
181
|
-
else # model
|
182
|
-
temp_model = CyberSource.const_get(type).new
|
183
|
-
temp_model.build_from_hash(value)
|
184
|
-
end
|
185
|
-
end
|
186
|
-
|
187
|
-
# Returns the string representation of the object
|
188
|
-
# @return [String] String presentation of the object
|
189
|
-
def to_s
|
190
|
-
to_hash.to_s
|
191
|
-
end
|
192
|
-
|
193
|
-
# to_body is an alias to to_hash (backward compatibility)
|
194
|
-
# @return [Hash] Returns the object in the form of hash
|
195
|
-
def to_body
|
196
|
-
to_hash
|
197
|
-
end
|
198
|
-
|
199
|
-
# Returns the object in the form of hash
|
200
|
-
# @return [Hash] Returns the object in the form of hash
|
201
|
-
def to_hash
|
202
|
-
hash = {}
|
203
|
-
self.class.attribute_map.each_pair do |attr, param|
|
204
|
-
value = self.send(attr)
|
205
|
-
next if value.nil?
|
206
|
-
hash[param] = _to_hash(value)
|
207
|
-
end
|
208
|
-
hash
|
209
|
-
end
|
210
|
-
|
211
|
-
# Outputs non-array value in the form of hash
|
212
|
-
# For object, use to_hash. Otherwise, just return the value
|
213
|
-
# @param [Object] value Any valid value
|
214
|
-
# @return [Hash] Returns the value in the form of hash
|
215
|
-
def _to_hash(value)
|
216
|
-
if value.is_a?(Array)
|
217
|
-
value.compact.map { |v| _to_hash(v) }
|
218
|
-
elsif value.is_a?(Hash)
|
219
|
-
{}.tap do |hash|
|
220
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
221
|
-
end
|
222
|
-
elsif value.respond_to? :to_hash
|
223
|
-
value.to_hash
|
224
|
-
else
|
225
|
-
value
|
226
|
-
end
|
227
|
-
end
|
228
|
-
end
|
229
|
-
end
|
1
|
+
=begin
|
2
|
+
#CyberSource Merged Spec
|
3
|
+
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.38
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module CyberSource
|
15
|
+
class UpdateOrderRequest
|
16
|
+
attr_accessor :client_reference_information
|
17
|
+
|
18
|
+
attr_accessor :order_information
|
19
|
+
|
20
|
+
attr_accessor :merchant_information
|
21
|
+
|
22
|
+
attr_accessor :payment_information
|
23
|
+
|
24
|
+
attr_accessor :processing_information
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'client_reference_information' => :'clientReferenceInformation',
|
30
|
+
:'order_information' => :'orderInformation',
|
31
|
+
:'merchant_information' => :'merchantInformation',
|
32
|
+
:'payment_information' => :'paymentInformation',
|
33
|
+
:'processing_information' => :'processingInformation'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
38
|
+
def self.json_map
|
39
|
+
{
|
40
|
+
:'client_reference_information' => :'client_reference_information',
|
41
|
+
:'order_information' => :'order_information',
|
42
|
+
:'merchant_information' => :'merchant_information',
|
43
|
+
:'payment_information' => :'payment_information',
|
44
|
+
:'processing_information' => :'processing_information'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Attribute type mapping.
|
49
|
+
def self.swagger_types
|
50
|
+
{
|
51
|
+
:'client_reference_information' => :'Ptsv2intentsClientReferenceInformation',
|
52
|
+
:'order_information' => :'Ptsv2intentsidOrderInformation',
|
53
|
+
:'merchant_information' => :'Ptsv2intentsidMerchantInformation',
|
54
|
+
:'payment_information' => :'Ptsv2intentsidPaymentInformation',
|
55
|
+
:'processing_information' => :'Ptsv2intentsidProcessingInformation'
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# Initializes the object
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
+
def initialize(attributes = {})
|
62
|
+
return unless attributes.is_a?(Hash)
|
63
|
+
|
64
|
+
# convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
66
|
+
|
67
|
+
if attributes.has_key?(:'clientReferenceInformation')
|
68
|
+
self.client_reference_information = attributes[:'clientReferenceInformation']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'orderInformation')
|
72
|
+
self.order_information = attributes[:'orderInformation']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'merchantInformation')
|
76
|
+
self.merchant_information = attributes[:'merchantInformation']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.has_key?(:'paymentInformation')
|
80
|
+
self.payment_information = attributes[:'paymentInformation']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.has_key?(:'processingInformation')
|
84
|
+
self.processing_information = attributes[:'processingInformation']
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
89
|
+
# @return Array for valid properties with the reasons
|
90
|
+
def list_invalid_properties
|
91
|
+
invalid_properties = Array.new
|
92
|
+
invalid_properties
|
93
|
+
end
|
94
|
+
|
95
|
+
# Check to see if the all the properties in the model are valid
|
96
|
+
# @return true if the model is valid
|
97
|
+
def valid?
|
98
|
+
true
|
99
|
+
end
|
100
|
+
|
101
|
+
# Checks equality by comparing each attribute.
|
102
|
+
# @param [Object] Object to be compared
|
103
|
+
def ==(o)
|
104
|
+
return true if self.equal?(o)
|
105
|
+
self.class == o.class &&
|
106
|
+
client_reference_information == o.client_reference_information &&
|
107
|
+
order_information == o.order_information &&
|
108
|
+
merchant_information == o.merchant_information &&
|
109
|
+
payment_information == o.payment_information &&
|
110
|
+
processing_information == o.processing_information
|
111
|
+
end
|
112
|
+
|
113
|
+
# @see the `==` method
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def eql?(o)
|
116
|
+
self == o
|
117
|
+
end
|
118
|
+
|
119
|
+
# Calculates hash code according to all attributes.
|
120
|
+
# @return [Fixnum] Hash code
|
121
|
+
def hash
|
122
|
+
[client_reference_information, order_information, merchant_information, payment_information, processing_information].hash
|
123
|
+
end
|
124
|
+
|
125
|
+
# Builds the object from hash
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
127
|
+
# @return [Object] Returns the model itself
|
128
|
+
def build_from_hash(attributes)
|
129
|
+
return nil unless attributes.is_a?(Hash)
|
130
|
+
self.class.swagger_types.each_pair do |key, type|
|
131
|
+
if type =~ /\AArray<(.*)>/i
|
132
|
+
# check to ensure the input is an array given that the the attribute
|
133
|
+
# is documented as an array but the input is not
|
134
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
135
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
136
|
+
end
|
137
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
138
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
139
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
140
|
+
end
|
141
|
+
|
142
|
+
self
|
143
|
+
end
|
144
|
+
|
145
|
+
# Deserializes the data based on type
|
146
|
+
# @param string type Data type
|
147
|
+
# @param string value Value to be deserialized
|
148
|
+
# @return [Object] Deserialized data
|
149
|
+
def _deserialize(type, value)
|
150
|
+
case type.to_sym
|
151
|
+
when :DateTime
|
152
|
+
DateTime.parse(value)
|
153
|
+
when :Date
|
154
|
+
Date.parse(value)
|
155
|
+
when :String
|
156
|
+
value.to_s
|
157
|
+
when :Integer
|
158
|
+
value.to_i
|
159
|
+
when :Float
|
160
|
+
value.to_f
|
161
|
+
when :BOOLEAN
|
162
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
163
|
+
true
|
164
|
+
else
|
165
|
+
false
|
166
|
+
end
|
167
|
+
when :Object
|
168
|
+
# generic object (usually a Hash), return directly
|
169
|
+
value
|
170
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
171
|
+
inner_type = Regexp.last_match[:inner_type]
|
172
|
+
value.map { |v| _deserialize(inner_type, v) }
|
173
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
174
|
+
k_type = Regexp.last_match[:k_type]
|
175
|
+
v_type = Regexp.last_match[:v_type]
|
176
|
+
{}.tap do |hash|
|
177
|
+
value.each do |k, v|
|
178
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
else # model
|
182
|
+
temp_model = CyberSource.const_get(type).new
|
183
|
+
temp_model.build_from_hash(value)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
# Returns the string representation of the object
|
188
|
+
# @return [String] String presentation of the object
|
189
|
+
def to_s
|
190
|
+
to_hash.to_s
|
191
|
+
end
|
192
|
+
|
193
|
+
# to_body is an alias to to_hash (backward compatibility)
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
195
|
+
def to_body
|
196
|
+
to_hash
|
197
|
+
end
|
198
|
+
|
199
|
+
# Returns the object in the form of hash
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
201
|
+
def to_hash
|
202
|
+
hash = {}
|
203
|
+
self.class.attribute_map.each_pair do |attr, param|
|
204
|
+
value = self.send(attr)
|
205
|
+
next if value.nil?
|
206
|
+
hash[param] = _to_hash(value)
|
207
|
+
end
|
208
|
+
hash
|
209
|
+
end
|
210
|
+
|
211
|
+
# Outputs non-array value in the form of hash
|
212
|
+
# For object, use to_hash. Otherwise, just return the value
|
213
|
+
# @param [Object] value Any valid value
|
214
|
+
# @return [Hash] Returns the value in the form of hash
|
215
|
+
def _to_hash(value)
|
216
|
+
if value.is_a?(Array)
|
217
|
+
value.compact.map { |v| _to_hash(v) }
|
218
|
+
elsif value.is_a?(Hash)
|
219
|
+
{}.tap do |hash|
|
220
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
221
|
+
end
|
222
|
+
elsif value.respond_to? :to_hash
|
223
|
+
value.to_hash
|
224
|
+
else
|
225
|
+
value
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
@@ -31,6 +31,9 @@ module CyberSource
|
|
31
31
|
# Configure Unified Checkout to display the list of accepted card networks beneath the payment button Possible values: - True - False
|
32
32
|
attr_accessor :show_accepted_network_icons
|
33
33
|
|
34
|
+
# Configure Unified Checkout to display the final confirmation screen when using Click to Pay.<br> Where 'BillingType'= NONE and 'requestShipping'= FALSE and the customer is using an existing Click to Pay card as their chosen payment method, a final confirmation screen can be removed allowing the customer to check out as soon as they have selected their payment method from within their Click to Pay card tray. Possible values: - True - False
|
35
|
+
attr_accessor :show_confirmation_step
|
36
|
+
|
34
37
|
# Configure Unified Checkout to display the \"Save card for future use\" checkbox.<br> Configurable check box that will show in a Manual card entry flow to allow a Cardholder to give consent to store their manually entered credential with the Merchant that they are paying.<br> Applicable when manually entering the details and not enrolling in Click to Pay. Possible values: - True - False<br><br> **Use Cases:** **Offer consumers option to save their card in Unified Checkout:** - Include the captureMandate.requestSaveCard field in the capture context request and set it to true. - When set to true, this will show a checkbox with the message 'Save card for future use' in Unified Checkout. - When selected this provides a response in both the Transient Token and Get Credentials API response.<br><br> **Do not offer consumers the option to save their card in Unified Checkout:** - Include the captureMandate.requestSaveCard field in the capture context request and set it to false OR omit the field from the capture context request. - When set to false, the save card option is not shown to consumers when manually entering card details.
|
35
38
|
attr_accessor :request_save_card
|
36
39
|
|
@@ -49,6 +52,7 @@ module CyberSource
|
|
49
52
|
:'request_shipping' => :'requestShipping',
|
50
53
|
:'ship_to_countries' => :'shipToCountries',
|
51
54
|
:'show_accepted_network_icons' => :'showAcceptedNetworkIcons',
|
55
|
+
:'show_confirmation_step' => :'showConfirmationStep',
|
52
56
|
:'request_save_card' => :'requestSaveCard',
|
53
57
|
:'combo_card' => :'comboCard',
|
54
58
|
:'cpf' => :'CPF'
|
@@ -64,6 +68,7 @@ module CyberSource
|
|
64
68
|
:'request_shipping' => :'request_shipping',
|
65
69
|
:'ship_to_countries' => :'ship_to_countries',
|
66
70
|
:'show_accepted_network_icons' => :'show_accepted_network_icons',
|
71
|
+
:'show_confirmation_step' => :'show_confirmation_step',
|
67
72
|
:'request_save_card' => :'request_save_card',
|
68
73
|
:'combo_card' => :'combo_card',
|
69
74
|
:'cpf' => :'cpf'
|
@@ -79,6 +84,7 @@ module CyberSource
|
|
79
84
|
:'request_shipping' => :'BOOLEAN',
|
80
85
|
:'ship_to_countries' => :'Array<String>',
|
81
86
|
:'show_accepted_network_icons' => :'BOOLEAN',
|
87
|
+
:'show_confirmation_step' => :'BOOLEAN',
|
82
88
|
:'request_save_card' => :'BOOLEAN',
|
83
89
|
:'combo_card' => :'BOOLEAN',
|
84
90
|
:'cpf' => :'BOOLEAN'
|
@@ -119,6 +125,10 @@ module CyberSource
|
|
119
125
|
self.show_accepted_network_icons = attributes[:'showAcceptedNetworkIcons']
|
120
126
|
end
|
121
127
|
|
128
|
+
if attributes.has_key?(:'showConfirmationStep')
|
129
|
+
self.show_confirmation_step = attributes[:'showConfirmationStep']
|
130
|
+
end
|
131
|
+
|
122
132
|
if attributes.has_key?(:'requestSaveCard')
|
123
133
|
self.request_save_card = attributes[:'requestSaveCard']
|
124
134
|
end
|
@@ -162,6 +172,7 @@ module CyberSource
|
|
162
172
|
request_shipping == o.request_shipping &&
|
163
173
|
ship_to_countries == o.ship_to_countries &&
|
164
174
|
show_accepted_network_icons == o.show_accepted_network_icons &&
|
175
|
+
show_confirmation_step == o.show_confirmation_step &&
|
165
176
|
request_save_card == o.request_save_card &&
|
166
177
|
combo_card == o.combo_card &&
|
167
178
|
cpf == o.cpf
|
@@ -176,7 +187,7 @@ module CyberSource
|
|
176
187
|
# Calculates hash code according to all attributes.
|
177
188
|
# @return [Fixnum] Hash code
|
178
189
|
def hash
|
179
|
-
[billing_type, request_email, request_phone, request_shipping, ship_to_countries, show_accepted_network_icons, request_save_card, combo_card, cpf].hash
|
190
|
+
[billing_type, request_email, request_phone, request_shipping, ship_to_countries, show_accepted_network_icons, show_confirmation_step, request_save_card, combo_card, cpf].hash
|
180
191
|
end
|
181
192
|
|
182
193
|
# Builds the object from hash
|
@@ -14,17 +14,21 @@ require 'date'
|
|
14
14
|
module CyberSource
|
15
15
|
# The completeMandate object is designed to provide instructions for orchestrating payment services. Unified Checkout is capable of orchestrating a number of services on your behalf.<br><br> By providing this field in the capture context Unified Checkout will initiate services on your behalf from the browser, simplifying your integration.
|
16
16
|
class Upv1capturecontextsCompleteMandate
|
17
|
-
# This field is used to indicate how a payment should be processed. Possible values: - AUTH: Use this value when you want to authorize a payment without capturing it immediately. Payment types that initiate an immediate transfer of funds are
|
17
|
+
# This field is used to indicate how a payment should be processed. Possible values: - AUTH: Use this value when you want to authorize a payment within Unified Checkout without capturing it immediately. Payment types that initiate an immediate transfer of funds are NOT allowed. If a capture context request includes a payment type incompatible with this mode, a 400 error will be returned. A merchant would need to perform their own capture via API where applicable.<br><br> - CAPTURE: Use this value when you want to perform a sale within Unified Checkout and capture the payment immediately during the transaction. Note: Some payment types may return a PENDING status, requiring an additional status check call to determine the final outcome of the payment.<br><br> - PREFER_AUTH: Use this value to offer multiple alternative payment options during the Unified Checkout experience. This option authorizes the payment without immediate capture, where available. It will perform a \"CAPTURE\" where an \"AUTH\" is not allowed by the payment type. Transactions can be AUTHORIZED, CAPTURED, or PENDING. If an \"AUTH\" is performed, a merchant would need to perform their own capture via API where applicable.
|
18
18
|
attr_accessor :type
|
19
19
|
|
20
|
-
# Configure Unified Checkout to determine whether Decision Manager is invoked during service orchestration. Possible values: - True - False<br><br> Setting this value to True indicates that device fingerprinting will be executed to add additional information for risk service Setting this value to False indicates that you do not wish to run device fingerprinting and skip decision manager services.
|
20
|
+
# Configure Unified Checkout to determine whether Decision Manager is invoked during service orchestration. Possible values: - True - False<br><br> Setting this value to True indicates that device fingerprinting will be executed to add additional information for risk service Setting this value to False (or not provided) indicates that you do not wish to run device fingerprinting and skip decision manager services.
|
21
21
|
attr_accessor :decision_manager
|
22
22
|
|
23
|
+
# Configure Unified Checkout to determine whether Consumer Authentication is invoked during service orchestration. Possible values: - True - False<br><br> Setting this value to True will attempt to perform authentication using the Payer Authentication Service. Setting this value to False (or not provided) indicates that you do not wish to perform authentication using the Payer Authentication Service.
|
24
|
+
attr_accessor :consumer_authentication
|
25
|
+
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'type' => :'type',
|
27
|
-
:'decision_manager' => :'decisionManager'
|
30
|
+
:'decision_manager' => :'decisionManager',
|
31
|
+
:'consumer_authentication' => :'consumerAuthentication'
|
28
32
|
}
|
29
33
|
end
|
30
34
|
|
@@ -32,7 +36,8 @@ module CyberSource
|
|
32
36
|
def self.json_map
|
33
37
|
{
|
34
38
|
:'type' => :'type',
|
35
|
-
:'decision_manager' => :'decision_manager'
|
39
|
+
:'decision_manager' => :'decision_manager',
|
40
|
+
:'consumer_authentication' => :'consumer_authentication'
|
36
41
|
}
|
37
42
|
end
|
38
43
|
|
@@ -40,7 +45,8 @@ module CyberSource
|
|
40
45
|
def self.swagger_types
|
41
46
|
{
|
42
47
|
:'type' => :'String',
|
43
|
-
:'decision_manager' => :'BOOLEAN'
|
48
|
+
:'decision_manager' => :'BOOLEAN',
|
49
|
+
:'consumer_authentication' => :'BOOLEAN'
|
44
50
|
}
|
45
51
|
end
|
46
52
|
|
@@ -59,6 +65,10 @@ module CyberSource
|
|
59
65
|
if attributes.has_key?(:'decisionManager')
|
60
66
|
self.decision_manager = attributes[:'decisionManager']
|
61
67
|
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'consumerAuthentication')
|
70
|
+
self.consumer_authentication = attributes[:'consumerAuthentication']
|
71
|
+
end
|
62
72
|
end
|
63
73
|
|
64
74
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -86,7 +96,8 @@ module CyberSource
|
|
86
96
|
return true if self.equal?(o)
|
87
97
|
self.class == o.class &&
|
88
98
|
type == o.type &&
|
89
|
-
decision_manager == o.decision_manager
|
99
|
+
decision_manager == o.decision_manager &&
|
100
|
+
consumer_authentication == o.consumer_authentication
|
90
101
|
end
|
91
102
|
|
92
103
|
# @see the `==` method
|
@@ -98,7 +109,7 @@ module CyberSource
|
|
98
109
|
# Calculates hash code according to all attributes.
|
99
110
|
# @return [Fixnum] Hash code
|
100
111
|
def hash
|
101
|
-
[type, decision_manager].hash
|
112
|
+
[type, decision_manager, consumer_authentication].hash
|
102
113
|
end
|
103
114
|
|
104
115
|
# Builds the object from hash
|