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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/acp_checkout_api.rb +553 -0
  3. data/lib/cybersource_rest_client/api/agent_registration_api.rb +721 -0
  4. data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +0 -1
  5. data/lib/cybersource_rest_client/api/enrollment_api.rb +104 -0
  6. data/lib/cybersource_rest_client/api/{merchant_capabilities_api.rb → merchant_registration_api.rb} +47 -391
  7. data/lib/cybersource_rest_client/api/payment_events_api.rb +197 -0
  8. data/lib/cybersource_rest_client/api/product_feed_api.rb +365 -0
  9. data/lib/cybersource_rest_client/api/purchase_intent_api.rb +278 -0
  10. data/lib/cybersource_rest_client/api/ucp_checkout_api.rb +453 -0
  11. data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +1 -1
  12. data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +11 -11
  13. data/lib/cybersource_rest_client/models/agent_registration_response201.rb +13 -15
  14. data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +8 -8
  15. data/lib/cybersource_rest_client/models/agent_request.rb +9 -11
  16. data/lib/cybersource_rest_client/models/agent_update.rb +7 -9
  17. data/lib/cybersource_rest_client/models/auth_reversal_request.rb +1 -1
  18. data/lib/cybersource_rest_client/models/boarding_payouts_configurations.rb +1 -1
  19. data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant_products.rb → boarding_payouts_configurations_acquirer.rb} +33 -76
  20. data/lib/cybersource_rest_client/models/{inline_response_200_19_errors.rb → boarding_payouts_configurations_merchant_descriptor.rb} +25 -33
  21. data/lib/cybersource_rest_client/models/boarding_payouts_configurations_processors.rb +581 -0
  22. data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
  23. data/lib/cybersource_rest_client/models/create_order_request.rb +11 -1
  24. data/lib/cybersource_rest_client/models/create_payment_request.rb +14 -1
  25. data/lib/cybersource_rest_client/models/create_session_req.rb +14 -1
  26. data/lib/cybersource_rest_client/models/create_session_request.rb +14 -1
  27. data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +4 -4
  28. data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +2 -2
  29. data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +6 -6
  30. data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +1 -1
  31. data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +2 -2
  32. data/lib/cybersource_rest_client/models/inline_response_200_17.rb +55 -0
  33. data/lib/cybersource_rest_client/models/inline_response_200_18.rb +40 -0
  34. data/lib/cybersource_rest_client/models/inline_response_200_19.rb +30 -107
  35. data/lib/cybersource_rest_client/models/inline_response_200_19_processing.rb +213 -0
  36. data/lib/cybersource_rest_client/models/inline_response_200_19_syndication.rb +224 -0
  37. data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +80 -682
  38. data/lib/cybersource_rest_client/models/inline_response_201_12.rb +40 -0
  39. data/lib/cybersource_rest_client/models/inline_response_201_12_fulfillment_options.rb +30 -0
  40. data/lib/cybersource_rest_client/models/inline_response_201_12_totals.rb +15 -0
  41. data/lib/cybersource_rest_client/models/inline_response_201_6_setups_risk.rb +15 -5
  42. data/lib/cybersource_rest_client/models/inline_response_201_6_setups_value_added_services.rb +15 -5
  43. data/lib/cybersource_rest_client/models/{deactivate_merchant_key_response200.rb → inline_response_202_1.rb} +11 -16
  44. data/lib/cybersource_rest_client/models/key_request.rb +4 -4
  45. data/lib/cybersource_rest_client/models/key_request_1.rb +5 -5
  46. data/lib/cybersource_rest_client/models/key_update.rb +5 -5
  47. data/lib/cybersource_rest_client/models/key_update_1.rb +5 -5
  48. data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +2 -2
  49. data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +10 -10
  50. data/lib/cybersource_rest_client/models/merchant_registration_response201_api_integrations.rb +225 -0
  51. data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +1 -1
  52. data/lib/cybersource_rest_client/models/merchant_registration_response201_web_integrations.rb +225 -0
  53. data/lib/cybersource_rest_client/models/merchant_request.rb +7 -7
  54. data/lib/cybersource_rest_client/models/merchant_update.rb +7 -7
  55. data/lib/cybersource_rest_client/models/mit_reversal_request.rb +1 -1
  56. data/lib/cybersource_rest_client/models/mit_void_request.rb +15 -5
  57. data/lib/cybersource_rest_client/models/payments_configuration_setup.rb +11 -1
  58. data/lib/cybersource_rest_client/models/payments_products.rb +11 -1
  59. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +12 -1
  60. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +12 -1
  61. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +44 -1
  62. 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
  63. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +18 -1
  64. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +101 -5
  65. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_ship_to.rb +12 -1
  66. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +22 -5
  67. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -5
  68. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +22 -5
  69. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
  70. 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
  71. 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
  72. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +22 -5
  73. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +1 -1
  74. data/lib/cybersource_rest_client/models/ptsv2intents_buyer_information.rb +196 -0
  75. data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +18 -1
  76. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +154 -1
  77. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +16 -5
  78. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +1 -1
  79. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information_merchant_descriptor.rb +207 -0
  80. data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information.rb → ptsv2payments_buyer.rb} +55 -31
  81. data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant.rb → ptsv2payments_order_history.rb} +42 -41
  82. data/lib/cybersource_rest_client/models/ptsv2payments_ship_to.rb +281 -0
  83. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +1 -1
  84. data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information_emv.rb → ptsv2paymentsidrefunds_point_of_sale_information_emv.rb} +1 -1
  85. data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
  86. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
  87. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +1 -1
  88. data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +3 -3
  89. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +3 -3
  90. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +3 -3
  91. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +3 -3
  92. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_limit_value.rb +3 -3
  93. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_balance_before.rb +2 -2
  94. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +3 -3
  95. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +2 -2
  96. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +3 -3
  97. data/lib/cybersource_rest_client/models/value_added_services_products.rb +15 -5
  98. data/lib/cybersource_rest_client/models/void_capture_request.rb +15 -5
  99. data/lib/cybersource_rest_client/models/void_credit_request.rb +15 -5
  100. data/lib/cybersource_rest_client/models/void_payment_request.rb +15 -5
  101. data/lib/cybersource_rest_client/models/void_refund_request.rb +15 -5
  102. data/lib/cybersource_rest_client.rb +25 -11
  103. metadata +27 -13
  104. data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +0 -2279
@@ -0,0 +1,581 @@
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
+ # string [1 .. 40] characters The name of the Payouts processor.
16
+ class BoardingPayoutsConfigurationsProcessors
17
+ # Indicates if the payment route is enabled. Allows the acquirer to enable/disable processing based on the config setting but to retain the configuration profile.
18
+ attr_accessor :enabled
19
+
20
+ attr_accessor :acquirer
21
+
22
+ # List of supported [ISO 4217](https://developer.cybersource.com/docs/cybs/en-us/currency-codes/reference/all/na/currency-codes/currency-codes.html) alpha-3 currency codes.
23
+ attr_accessor :currencies
24
+
25
+ # List of [ISO 3166-1](https://developer.cybersource.com/docs/cybs/en-us/country-codes/reference/all/na/country-codes/country-codes.html) alpha-2 country codes
26
+ attr_accessor :countries
27
+
28
+ # A unique identifier value assigned by Visa for each merchant included in the identification program.
29
+ attr_accessor :merchant_id
30
+
31
+ # This field contains a code that identifies a terminal at the card acceptor location. This field is used in all messages related to a transaction. If sending transactions from a card not present environment, use the same value for all transactions.
32
+ attr_accessor :terminal_id
33
+
34
+ # Default: false Override Business Application Indicator and Merchant Category Code validations for payout transaction types.
35
+ attr_accessor :business_category_validation
36
+
37
+ # The supported Payouts transaction types for the processor.
38
+ attr_accessor :payouts_transaction_types
39
+
40
+ # This is a number that uniquely identifies the merchant for PPGS transactions.
41
+ attr_accessor :merchant_pseudo_aba_number
42
+
43
+ # List of transaction types eligible for BIN Lookup Payouts Eligibility Check. Supports \"PULL_FUNDS_TRANSFER\" and \"PUSH_FUNDS_TRANSFER\".
44
+ attr_accessor :bin_lookup_eligibility_check
45
+
46
+ # This field identifies the interchange fee program applicable to each financial transaction. Fee program indicator (FPI) values correspond to the fee descriptor and rate for each existing fee program. This field can be regarded as informational only in all authorization messages.
47
+ attr_accessor :fee_program_id
48
+
49
+ # The Authorization Characteristics Indicator (ACI) is a code used by the acquirer to request CPS qualification. If applicable, Visa changes the code to reflect the results of its CPS evaluation.
50
+ attr_accessor :cps_authorization_characteristics_id
51
+
52
+ # A client-supplied interchange amount.
53
+ attr_accessor :national_reimbursement_fee
54
+
55
+ # This flag enables the merchant to request for a particular settlement service to be used for settling the transaction. Note: The default value is VIP. This field is only relevant for specific countries where the acquirer has to select National Settlement in order to settle in the national net settlement service.change Possible values: - INTERNATIONAL_SETTLEMENT - VIP_TO_DECIDE - NATIONAL_SETTLEMENT
56
+ attr_accessor :settlement_service_id
57
+
58
+ # This U.S.-only field is optionally used by PIN Debit Gateway Service participants (merchants and acquirers) to specify the network access priority. VisaNet checks to determine if there are issuer routing preferences for a network specified by the sharing group code. If an issuer preference exists for one of the specified debit networks, VisaNet makes a routing selection based on issuer preference. If an preference exists for multiple specified debit networks, or if no issuer preference exists, VisaNet makes a selection based on acquirer routing priorities. Possible values: - ACCEL_EXCHANGE_E - CU24_C - INTERLINK_G - MAESTRO_8 - NYCE_Y - NYCE_F - PULSE_S - PULSE_L - PULSE_H - STAR_N - STAR_W - STAR_Z - STAR_Q - STAR_M - VISA_V
59
+ attr_accessor :sharing_group_code
60
+
61
+ # This field allows a merchant to send a flag that specifies whether the payment is for the purchase of cryptocurrency.
62
+ attr_accessor :allow_crypto_currency_purchase
63
+
64
+ # Merchant Verification Value (MVV) is used to identify merchants that participate in a variety of programs. The MVV is unique to the merchant.
65
+ attr_accessor :merchant_mvv
66
+
67
+ # This code identifies the level of security used in an electronic commerce transaction over an open network (for example, the Internet). Possible values: - INTERNET - RECURRING - RECURRING_INTERNET - VBV_FAILURE - VBV_ATTEMPTED - VBV - SPA_FAILURE - SPA_ATTEMPTED - SPA
68
+ attr_accessor :electronic_commerce_id
69
+
70
+ attr_accessor :merchant_descriptor
71
+
72
+ # Initiation channel of the transfer request. Possible values: - WEB - MOBILE - BANK - KIOSK
73
+ attr_accessor :operating_environment
74
+
75
+ # The IRD used for clearing the transaction on the Mastercard network.
76
+ attr_accessor :interchange_rate_designator
77
+
78
+ # Mastercard-assigned unique ID for registered partner. Mastercard Send Only.
79
+ attr_accessor :partner_identifier
80
+
81
+ # Attribute mapping from ruby-style variable name to JSON key.
82
+ def self.attribute_map
83
+ {
84
+ :'enabled' => :'enabled',
85
+ :'acquirer' => :'acquirer',
86
+ :'currencies' => :'currencies',
87
+ :'countries' => :'countries',
88
+ :'merchant_id' => :'merchantId',
89
+ :'terminal_id' => :'terminalId',
90
+ :'business_category_validation' => :'businessCategoryValidation',
91
+ :'payouts_transaction_types' => :'payoutsTransactionTypes',
92
+ :'merchant_pseudo_aba_number' => :'merchantPseudoAbaNumber',
93
+ :'bin_lookup_eligibility_check' => :'binLookupEligibilityCheck',
94
+ :'fee_program_id' => :'feeProgramId',
95
+ :'cps_authorization_characteristics_id' => :'cpsAuthorizationCharacteristicsId',
96
+ :'national_reimbursement_fee' => :'nationalReimbursementFee',
97
+ :'settlement_service_id' => :'settlementServiceId',
98
+ :'sharing_group_code' => :'sharingGroupCode',
99
+ :'allow_crypto_currency_purchase' => :'allowCryptoCurrencyPurchase',
100
+ :'merchant_mvv' => :'merchantMvv',
101
+ :'electronic_commerce_id' => :'electronicCommerceId',
102
+ :'merchant_descriptor' => :'merchantDescriptor',
103
+ :'operating_environment' => :'operatingEnvironment',
104
+ :'interchange_rate_designator' => :'interchangeRateDesignator',
105
+ :'partner_identifier' => :'partnerIdentifier'
106
+ }
107
+ end
108
+
109
+ # Attribute mapping from JSON key to ruby-style variable name.
110
+ def self.json_map
111
+ {
112
+ :'enabled' => :'enabled',
113
+ :'acquirer' => :'acquirer',
114
+ :'currencies' => :'currencies',
115
+ :'countries' => :'countries',
116
+ :'merchant_id' => :'merchant_id',
117
+ :'terminal_id' => :'terminal_id',
118
+ :'business_category_validation' => :'business_category_validation',
119
+ :'payouts_transaction_types' => :'payouts_transaction_types',
120
+ :'merchant_pseudo_aba_number' => :'merchant_pseudo_aba_number',
121
+ :'bin_lookup_eligibility_check' => :'bin_lookup_eligibility_check',
122
+ :'fee_program_id' => :'fee_program_id',
123
+ :'cps_authorization_characteristics_id' => :'cps_authorization_characteristics_id',
124
+ :'national_reimbursement_fee' => :'national_reimbursement_fee',
125
+ :'settlement_service_id' => :'settlement_service_id',
126
+ :'sharing_group_code' => :'sharing_group_code',
127
+ :'allow_crypto_currency_purchase' => :'allow_crypto_currency_purchase',
128
+ :'merchant_mvv' => :'merchant_mvv',
129
+ :'electronic_commerce_id' => :'electronic_commerce_id',
130
+ :'merchant_descriptor' => :'merchant_descriptor',
131
+ :'operating_environment' => :'operating_environment',
132
+ :'interchange_rate_designator' => :'interchange_rate_designator',
133
+ :'partner_identifier' => :'partner_identifier'
134
+ }
135
+ end
136
+
137
+ # Attribute type mapping.
138
+ def self.swagger_types
139
+ {
140
+ :'enabled' => :'BOOLEAN',
141
+ :'acquirer' => :'BoardingPayoutsConfigurationsAcquirer',
142
+ :'currencies' => :'Array<String>',
143
+ :'countries' => :'Array<String>',
144
+ :'merchant_id' => :'String',
145
+ :'terminal_id' => :'String',
146
+ :'business_category_validation' => :'BOOLEAN',
147
+ :'payouts_transaction_types' => :'Array<String>',
148
+ :'merchant_pseudo_aba_number' => :'String',
149
+ :'bin_lookup_eligibility_check' => :'Array<String>',
150
+ :'fee_program_id' => :'String',
151
+ :'cps_authorization_characteristics_id' => :'String',
152
+ :'national_reimbursement_fee' => :'String',
153
+ :'settlement_service_id' => :'String',
154
+ :'sharing_group_code' => :'String',
155
+ :'allow_crypto_currency_purchase' => :'BOOLEAN',
156
+ :'merchant_mvv' => :'String',
157
+ :'electronic_commerce_id' => :'String',
158
+ :'merchant_descriptor' => :'BoardingPayoutsConfigurationsMerchantDescriptor',
159
+ :'operating_environment' => :'String',
160
+ :'interchange_rate_designator' => :'String',
161
+ :'partner_identifier' => :'String'
162
+ }
163
+ end
164
+
165
+ # Initializes the object
166
+ # @param [Hash] attributes Model attributes in the form of hash
167
+ def initialize(attributes = {})
168
+ return unless attributes.is_a?(Hash)
169
+
170
+ # convert string to symbol for hash key
171
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
172
+
173
+ if attributes.has_key?(:'enabled')
174
+ self.enabled = attributes[:'enabled']
175
+ end
176
+
177
+ if attributes.has_key?(:'acquirer')
178
+ self.acquirer = attributes[:'acquirer']
179
+ end
180
+
181
+ if attributes.has_key?(:'currencies')
182
+ if (value = attributes[:'currencies']).is_a?(Array)
183
+ self.currencies = value
184
+ end
185
+ end
186
+
187
+ if attributes.has_key?(:'countries')
188
+ if (value = attributes[:'countries']).is_a?(Array)
189
+ self.countries = value
190
+ end
191
+ end
192
+
193
+ if attributes.has_key?(:'merchantId')
194
+ self.merchant_id = attributes[:'merchantId']
195
+ end
196
+
197
+ if attributes.has_key?(:'terminalId')
198
+ self.terminal_id = attributes[:'terminalId']
199
+ end
200
+
201
+ if attributes.has_key?(:'businessCategoryValidation')
202
+ self.business_category_validation = attributes[:'businessCategoryValidation']
203
+ end
204
+
205
+ if attributes.has_key?(:'payoutsTransactionTypes')
206
+ if (value = attributes[:'payoutsTransactionTypes']).is_a?(Array)
207
+ self.payouts_transaction_types = value
208
+ end
209
+ end
210
+
211
+ if attributes.has_key?(:'merchantPseudoAbaNumber')
212
+ self.merchant_pseudo_aba_number = attributes[:'merchantPseudoAbaNumber']
213
+ end
214
+
215
+ if attributes.has_key?(:'binLookupEligibilityCheck')
216
+ if (value = attributes[:'binLookupEligibilityCheck']).is_a?(Array)
217
+ self.bin_lookup_eligibility_check = value
218
+ end
219
+ end
220
+
221
+ if attributes.has_key?(:'feeProgramId')
222
+ self.fee_program_id = attributes[:'feeProgramId']
223
+ end
224
+
225
+ if attributes.has_key?(:'cpsAuthorizationCharacteristicsId')
226
+ self.cps_authorization_characteristics_id = attributes[:'cpsAuthorizationCharacteristicsId']
227
+ end
228
+
229
+ if attributes.has_key?(:'nationalReimbursementFee')
230
+ self.national_reimbursement_fee = attributes[:'nationalReimbursementFee']
231
+ end
232
+
233
+ if attributes.has_key?(:'settlementServiceId')
234
+ self.settlement_service_id = attributes[:'settlementServiceId']
235
+ end
236
+
237
+ if attributes.has_key?(:'sharingGroupCode')
238
+ self.sharing_group_code = attributes[:'sharingGroupCode']
239
+ end
240
+
241
+ if attributes.has_key?(:'allowCryptoCurrencyPurchase')
242
+ self.allow_crypto_currency_purchase = attributes[:'allowCryptoCurrencyPurchase']
243
+ end
244
+
245
+ if attributes.has_key?(:'merchantMvv')
246
+ self.merchant_mvv = attributes[:'merchantMvv']
247
+ end
248
+
249
+ if attributes.has_key?(:'electronicCommerceId')
250
+ self.electronic_commerce_id = attributes[:'electronicCommerceId']
251
+ end
252
+
253
+ if attributes.has_key?(:'merchantDescriptor')
254
+ self.merchant_descriptor = attributes[:'merchantDescriptor']
255
+ end
256
+
257
+ if attributes.has_key?(:'operatingEnvironment')
258
+ self.operating_environment = attributes[:'operatingEnvironment']
259
+ end
260
+
261
+ if attributes.has_key?(:'interchangeRateDesignator')
262
+ self.interchange_rate_designator = attributes[:'interchangeRateDesignator']
263
+ end
264
+
265
+ if attributes.has_key?(:'partnerIdentifier')
266
+ self.partner_identifier = attributes[:'partnerIdentifier']
267
+ end
268
+ end
269
+
270
+ # Show invalid properties with the reasons. Usually used together with valid?
271
+ # @return Array for valid properties with the reasons
272
+ def list_invalid_properties
273
+ invalid_properties = Array.new
274
+ #if !@merchant_id.nil? && @merchant_id !~ Regexp.new(/^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/)
275
+ #invalid_properties.push('invalid value for "merchant_id", must conform to the pattern /^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/.')
276
+ #end
277
+
278
+ #if !@terminal_id.nil? && @terminal_id !~ Regexp.new(/^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/)
279
+ #invalid_properties.push('invalid value for "terminal_id", must conform to the pattern /^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/.')
280
+ #end
281
+
282
+ #if !@merchant_pseudo_aba_number.nil? && @merchant_pseudo_aba_number !~ Regexp.new(/^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/)
283
+ #invalid_properties.push('invalid value for "merchant_pseudo_aba_number", must conform to the pattern /^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/.')
284
+ #end
285
+
286
+ #if !@fee_program_id.nil? && @fee_program_id !~ Regexp.new(/^[A-Za-z0-9]+$/)
287
+ #invalid_properties.push('invalid value for "fee_program_id", must conform to the pattern /^[A-Za-z0-9]+$/.')
288
+ #end
289
+
290
+ #if !@cps_authorization_characteristics_id.nil? && @cps_authorization_characteristics_id !~ Regexp.new(/^[A-Za-z]+$/)
291
+ #invalid_properties.push('invalid value for "cps_authorization_characteristics_id", must conform to the pattern /^[A-Za-z]+$/.')
292
+ #end
293
+
294
+ #if !@national_reimbursement_fee.nil? && @national_reimbursement_fee !~ Regexp.new(/^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/)
295
+ #invalid_properties.push('invalid value for "national_reimbursement_fee", must conform to the pattern /^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/.')
296
+ #end
297
+
298
+ #if !@merchant_mvv.nil? && @merchant_mvv !~ Regexp.new(/^\\d+$/)
299
+ #invalid_properties.push('invalid value for "merchant_mvv", must conform to the pattern /^\\d+$/.')
300
+ #end
301
+
302
+ #if !@interchange_rate_designator.nil? && @interchange_rate_designator !~ Regexp.new(/^[A-Za-z0-9]+$/)
303
+ #invalid_properties.push('invalid value for "interchange_rate_designator", must conform to the pattern /^[A-Za-z0-9]+$/.')
304
+ #end
305
+
306
+ #if !@partner_identifier.nil? && @partner_identifier !~ Regexp.new(/^[A-Za-z0-9_\\-]+$/)
307
+ #invalid_properties.push('invalid value for "partner_identifier", must conform to the pattern /^[A-Za-z0-9_\\-]+$/.')
308
+ #end
309
+
310
+ invalid_properties
311
+ end
312
+
313
+ # Check to see if the all the properties in the model are valid
314
+ # @return true if the model is valid
315
+ def valid?
316
+ #return false if !@merchant_id.nil? && @merchant_id !~ Regexp.new(/^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/)
317
+ #return false if !@terminal_id.nil? && @terminal_id !~ Regexp.new(/^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/)
318
+ #return false if !@merchant_pseudo_aba_number.nil? && @merchant_pseudo_aba_number !~ Regexp.new(/^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/)
319
+ #return false if !@fee_program_id.nil? && @fee_program_id !~ Regexp.new(/^[A-Za-z0-9]+$/)
320
+ #return false if !@cps_authorization_characteristics_id.nil? && @cps_authorization_characteristics_id !~ Regexp.new(/^[A-Za-z]+$/)
321
+ #return false if !@national_reimbursement_fee.nil? && @national_reimbursement_fee !~ Regexp.new(/^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/)
322
+ #return false if !@merchant_mvv.nil? && @merchant_mvv !~ Regexp.new(/^\\d+$/)
323
+ #return false if !@interchange_rate_designator.nil? && @interchange_rate_designator !~ Regexp.new(/^[A-Za-z0-9]+$/)
324
+ #return false if !@partner_identifier.nil? && @partner_identifier !~ Regexp.new(/^[A-Za-z0-9_\\-]+$/)
325
+ true
326
+ end
327
+
328
+ # Custom attribute writer method with validation
329
+ # @param [Object] merchant_id Value to be assigned
330
+ def merchant_id=(merchant_id)
331
+ #if !merchant_id.nil? && merchant_id !~ Regexp.new(/^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/)
332
+ #fail ArgumentError, 'invalid value for "merchant_id", must conform to the pattern /^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/.'
333
+ #end
334
+
335
+ @merchant_id = merchant_id
336
+ end
337
+
338
+ # Custom attribute writer method with validation
339
+ # @param [Object] terminal_id Value to be assigned
340
+ def terminal_id=(terminal_id)
341
+ #if !terminal_id.nil? && terminal_id !~ Regexp.new(/^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/)
342
+ #fail ArgumentError, 'invalid value for "terminal_id", must conform to the pattern /^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/.'
343
+ #end
344
+
345
+ @terminal_id = terminal_id
346
+ end
347
+
348
+ # Custom attribute writer method with validation
349
+ # @param [Object] merchant_pseudo_aba_number Value to be assigned
350
+ def merchant_pseudo_aba_number=(merchant_pseudo_aba_number)
351
+ #if !merchant_pseudo_aba_number.nil? && merchant_pseudo_aba_number !~ Regexp.new(/^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/)
352
+ #fail ArgumentError, 'invalid value for "merchant_pseudo_aba_number", must conform to the pattern /^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/.'
353
+ #end
354
+
355
+ @merchant_pseudo_aba_number = merchant_pseudo_aba_number
356
+ end
357
+
358
+ # Custom attribute writer method with validation
359
+ # @param [Object] fee_program_id Value to be assigned
360
+ def fee_program_id=(fee_program_id)
361
+ #if !fee_program_id.nil? && fee_program_id !~ Regexp.new(/^[A-Za-z0-9]+$/)
362
+ #fail ArgumentError, 'invalid value for "fee_program_id", must conform to the pattern /^[A-Za-z0-9]+$/.'
363
+ #end
364
+
365
+ @fee_program_id = fee_program_id
366
+ end
367
+
368
+ # Custom attribute writer method with validation
369
+ # @param [Object] cps_authorization_characteristics_id Value to be assigned
370
+ def cps_authorization_characteristics_id=(cps_authorization_characteristics_id)
371
+ #if !cps_authorization_characteristics_id.nil? && cps_authorization_characteristics_id !~ Regexp.new(/^[A-Za-z]+$/)
372
+ #fail ArgumentError, 'invalid value for "cps_authorization_characteristics_id", must conform to the pattern /^[A-Za-z]+$/.'
373
+ #end
374
+
375
+ @cps_authorization_characteristics_id = cps_authorization_characteristics_id
376
+ end
377
+
378
+ # Custom attribute writer method with validation
379
+ # @param [Object] national_reimbursement_fee Value to be assigned
380
+ def national_reimbursement_fee=(national_reimbursement_fee)
381
+ #if !national_reimbursement_fee.nil? && national_reimbursement_fee !~ Regexp.new(/^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/)
382
+ #fail ArgumentError, 'invalid value for "national_reimbursement_fee", must conform to the pattern /^[A-Za-z0-9!@#$%^&*(),.?\":{}|<>]+$/.'
383
+ #end
384
+
385
+ @national_reimbursement_fee = national_reimbursement_fee
386
+ end
387
+
388
+ # Custom attribute writer method with validation
389
+ # @param [Object] sharing_group_code Value to be assigned
390
+ def sharing_group_code=(sharing_group_code)
391
+ @sharing_group_code = sharing_group_code
392
+ end
393
+
394
+ # Custom attribute writer method with validation
395
+ # @param [Object] merchant_mvv Value to be assigned
396
+ def merchant_mvv=(merchant_mvv)
397
+ #if !merchant_mvv.nil? && merchant_mvv !~ Regexp.new(/^\\d+$/)
398
+ #fail ArgumentError, 'invalid value for "merchant_mvv", must conform to the pattern /^\\d+$/.'
399
+ #end
400
+
401
+ @merchant_mvv = merchant_mvv
402
+ end
403
+
404
+ # Custom attribute writer method with validation
405
+ # @param [Object] electronic_commerce_id Value to be assigned
406
+ def electronic_commerce_id=(electronic_commerce_id)
407
+ @electronic_commerce_id = electronic_commerce_id
408
+ end
409
+
410
+ # Custom attribute writer method with validation
411
+ # @param [Object] operating_environment Value to be assigned
412
+ def operating_environment=(operating_environment)
413
+ @operating_environment = operating_environment
414
+ end
415
+
416
+ # Custom attribute writer method with validation
417
+ # @param [Object] interchange_rate_designator Value to be assigned
418
+ def interchange_rate_designator=(interchange_rate_designator)
419
+ #if !interchange_rate_designator.nil? && interchange_rate_designator !~ Regexp.new(/^[A-Za-z0-9]+$/)
420
+ #fail ArgumentError, 'invalid value for "interchange_rate_designator", must conform to the pattern /^[A-Za-z0-9]+$/.'
421
+ #end
422
+
423
+ @interchange_rate_designator = interchange_rate_designator
424
+ end
425
+
426
+ # Custom attribute writer method with validation
427
+ # @param [Object] partner_identifier Value to be assigned
428
+ def partner_identifier=(partner_identifier)
429
+ #if !partner_identifier.nil? && partner_identifier !~ Regexp.new(/^[A-Za-z0-9_\\-]+$/)
430
+ #fail ArgumentError, 'invalid value for "partner_identifier", must conform to the pattern /^[A-Za-z0-9_\\-]+$/.'
431
+ #end
432
+
433
+ @partner_identifier = partner_identifier
434
+ end
435
+
436
+ # Checks equality by comparing each attribute.
437
+ # @param [Object] Object to be compared
438
+ def ==(o)
439
+ return true if self.equal?(o)
440
+ self.class == o.class &&
441
+ enabled == o.enabled &&
442
+ acquirer == o.acquirer &&
443
+ currencies == o.currencies &&
444
+ countries == o.countries &&
445
+ merchant_id == o.merchant_id &&
446
+ terminal_id == o.terminal_id &&
447
+ business_category_validation == o.business_category_validation &&
448
+ payouts_transaction_types == o.payouts_transaction_types &&
449
+ merchant_pseudo_aba_number == o.merchant_pseudo_aba_number &&
450
+ bin_lookup_eligibility_check == o.bin_lookup_eligibility_check &&
451
+ fee_program_id == o.fee_program_id &&
452
+ cps_authorization_characteristics_id == o.cps_authorization_characteristics_id &&
453
+ national_reimbursement_fee == o.national_reimbursement_fee &&
454
+ settlement_service_id == o.settlement_service_id &&
455
+ sharing_group_code == o.sharing_group_code &&
456
+ allow_crypto_currency_purchase == o.allow_crypto_currency_purchase &&
457
+ merchant_mvv == o.merchant_mvv &&
458
+ electronic_commerce_id == o.electronic_commerce_id &&
459
+ merchant_descriptor == o.merchant_descriptor &&
460
+ operating_environment == o.operating_environment &&
461
+ interchange_rate_designator == o.interchange_rate_designator &&
462
+ partner_identifier == o.partner_identifier
463
+ end
464
+
465
+ # @see the `==` method
466
+ # @param [Object] Object to be compared
467
+ def eql?(o)
468
+ self == o
469
+ end
470
+
471
+ # Calculates hash code according to all attributes.
472
+ # @return [Fixnum] Hash code
473
+ def hash
474
+ [enabled, acquirer, currencies, countries, merchant_id, terminal_id, business_category_validation, payouts_transaction_types, merchant_pseudo_aba_number, bin_lookup_eligibility_check, fee_program_id, cps_authorization_characteristics_id, national_reimbursement_fee, settlement_service_id, sharing_group_code, allow_crypto_currency_purchase, merchant_mvv, electronic_commerce_id, merchant_descriptor, operating_environment, interchange_rate_designator, partner_identifier].hash
475
+ end
476
+
477
+ # Builds the object from hash
478
+ # @param [Hash] attributes Model attributes in the form of hash
479
+ # @return [Object] Returns the model itself
480
+ def build_from_hash(attributes)
481
+ return nil unless attributes.is_a?(Hash)
482
+ self.class.swagger_types.each_pair do |key, type|
483
+ if type =~ /\AArray<(.*)>/i
484
+ # check to ensure the input is an array given that the the attribute
485
+ # is documented as an array but the input is not
486
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
487
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
488
+ end
489
+ elsif !attributes[self.class.attribute_map[key]].nil?
490
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
491
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
492
+ end
493
+
494
+ self
495
+ end
496
+
497
+ # Deserializes the data based on type
498
+ # @param string type Data type
499
+ # @param string value Value to be deserialized
500
+ # @return [Object] Deserialized data
501
+ def _deserialize(type, value)
502
+ case type.to_sym
503
+ when :DateTime
504
+ DateTime.parse(value)
505
+ when :Date
506
+ Date.parse(value)
507
+ when :String
508
+ value.to_s
509
+ when :Integer
510
+ value.to_i
511
+ when :Float
512
+ value.to_f
513
+ when :BOOLEAN
514
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
515
+ true
516
+ else
517
+ false
518
+ end
519
+ when :Object
520
+ # generic object (usually a Hash), return directly
521
+ value
522
+ when /\AArray<(?<inner_type>.+)>\z/
523
+ inner_type = Regexp.last_match[:inner_type]
524
+ value.map { |v| _deserialize(inner_type, v) }
525
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
526
+ k_type = Regexp.last_match[:k_type]
527
+ v_type = Regexp.last_match[:v_type]
528
+ {}.tap do |hash|
529
+ value.each do |k, v|
530
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
531
+ end
532
+ end
533
+ else # model
534
+ temp_model = CyberSource.const_get(type).new
535
+ temp_model.build_from_hash(value)
536
+ end
537
+ end
538
+
539
+ # Returns the string representation of the object
540
+ # @return [String] String presentation of the object
541
+ def to_s
542
+ to_hash.to_s
543
+ end
544
+
545
+ # to_body is an alias to to_hash (backward compatibility)
546
+ # @return [Hash] Returns the object in the form of hash
547
+ def to_body
548
+ to_hash
549
+ end
550
+
551
+ # Returns the object in the form of hash
552
+ # @return [Hash] Returns the object in the form of hash
553
+ def to_hash
554
+ hash = {}
555
+ self.class.attribute_map.each_pair do |attr, param|
556
+ value = self.send(attr)
557
+ next if value.nil?
558
+ hash[param] = _to_hash(value)
559
+ end
560
+ hash
561
+ end
562
+
563
+ # Outputs non-array value in the form of hash
564
+ # For object, use to_hash. Otherwise, just return the value
565
+ # @param [Object] value Any valid value
566
+ # @return [Hash] Returns the value in the form of hash
567
+ def _to_hash(value)
568
+ if value.is_a?(Array)
569
+ value.compact.map { |v| _to_hash(v) }
570
+ elsif value.is_a?(Hash)
571
+ {}.tap do |hash|
572
+ value.each { |k, v| hash[k] = _to_hash(v) }
573
+ end
574
+ elsif value.respond_to? :to_hash
575
+ value.to_hash
576
+ else
577
+ value
578
+ end
579
+ end
580
+ end
581
+ end
@@ -97,7 +97,7 @@ module CyberSource
97
97
  :'device_information' => :'Ptsv2paymentsidcapturesDeviceInformation',
98
98
  :'merchant_information' => :'Ptsv2paymentsidcapturesMerchantInformation',
99
99
  :'aggregator_information' => :'Ptsv2paymentsidcapturesAggregatorInformation',
100
- :'point_of_sale_information' => :'Ptsv2paymentsidcapturesPointOfSaleInformation',
100
+ :'point_of_sale_information' => :'Ptsv2paymentsPointOfSaleInformation',
101
101
  :'merchant_defined_information' => :'Array<Ptsv2paymentsMerchantDefinedInformation>',
102
102
  :'merchant_defined_secure_information' => :'Ptsv2paymentsMerchantDefinedSecureInformation',
103
103
  :'installment_information' => :'Ptsv2paymentsidcapturesInstallmentInformation',
@@ -23,6 +23,8 @@ module CyberSource
23
23
 
24
24
  attr_accessor :order_information
25
25
 
26
+ attr_accessor :buyer_information
27
+
26
28
  attr_accessor :sender_information
27
29
 
28
30
  attr_accessor :event_information
@@ -39,6 +41,7 @@ module CyberSource
39
41
  :'merchant_information' => :'merchantInformation',
40
42
  :'payment_information' => :'paymentInformation',
41
43
  :'order_information' => :'orderInformation',
44
+ :'buyer_information' => :'buyerInformation',
42
45
  :'sender_information' => :'senderInformation',
43
46
  :'event_information' => :'eventInformation',
44
47
  :'travel_information' => :'travelInformation',
@@ -54,6 +57,7 @@ module CyberSource
54
57
  :'merchant_information' => :'merchant_information',
55
58
  :'payment_information' => :'payment_information',
56
59
  :'order_information' => :'order_information',
60
+ :'buyer_information' => :'buyer_information',
57
61
  :'sender_information' => :'sender_information',
58
62
  :'event_information' => :'event_information',
59
63
  :'travel_information' => :'travel_information',
@@ -69,6 +73,7 @@ module CyberSource
69
73
  :'merchant_information' => :'Ptsv2intentsMerchantInformation',
70
74
  :'payment_information' => :'Ptsv2intentsPaymentInformation',
71
75
  :'order_information' => :'Ptsv2intentsOrderInformation',
76
+ :'buyer_information' => :'Ptsv2intentsBuyerInformation',
72
77
  :'sender_information' => :'Ptsv2intentsSenderInformation',
73
78
  :'event_information' => :'Ptsv2intentsEventInformation',
74
79
  :'travel_information' => :'Ptsv2intentsTravelInformation',
@@ -104,6 +109,10 @@ module CyberSource
104
109
  self.order_information = attributes[:'orderInformation']
105
110
  end
106
111
 
112
+ if attributes.has_key?(:'buyerInformation')
113
+ self.buyer_information = attributes[:'buyerInformation']
114
+ end
115
+
107
116
  if attributes.has_key?(:'senderInformation')
108
117
  self.sender_information = attributes[:'senderInformation']
109
118
  end
@@ -144,6 +153,7 @@ module CyberSource
144
153
  merchant_information == o.merchant_information &&
145
154
  payment_information == o.payment_information &&
146
155
  order_information == o.order_information &&
156
+ buyer_information == o.buyer_information &&
147
157
  sender_information == o.sender_information &&
148
158
  event_information == o.event_information &&
149
159
  travel_information == o.travel_information &&
@@ -159,7 +169,7 @@ module CyberSource
159
169
  # Calculates hash code according to all attributes.
160
170
  # @return [Fixnum] Hash code
161
171
  def hash
162
- [client_reference_information, processing_information, merchant_information, payment_information, order_information, sender_information, event_information, travel_information, recipient_information].hash
172
+ [client_reference_information, processing_information, merchant_information, payment_information, order_information, buyer_information, sender_information, event_information, travel_information, recipient_information].hash
163
173
  end
164
174
 
165
175
  # Builds the object from hash