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,225 @@
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
+ # REST/GraphQL API integration configuration for a merchant checkout flow.
16
+ class MerchantRegistrationResponse201ApiIntegrations
17
+ # URL for integration specification
18
+ attr_accessor :integration_spec
19
+
20
+ # Base API endpoint for agents (must use HTTPS)
21
+ attr_accessor :url
22
+
23
+ # Optional metadata (max 10KB)
24
+ attr_accessor :metadata
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'integration_spec' => :'integrationSpec',
30
+ :'url' => :'url',
31
+ :'metadata' => :'metadata'
32
+ }
33
+ end
34
+
35
+ # Attribute mapping from JSON key to ruby-style variable name.
36
+ def self.json_map
37
+ {
38
+ :'integration_spec' => :'integration_spec',
39
+ :'url' => :'url',
40
+ :'metadata' => :'metadata'
41
+ }
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.swagger_types
46
+ {
47
+ :'integration_spec' => :'String',
48
+ :'url' => :'String',
49
+ :'metadata' => :'Hash<String, Object>'
50
+ }
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ return unless attributes.is_a?(Hash)
57
+
58
+ # convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
+
61
+ if attributes.has_key?(:'integrationSpec')
62
+ self.integration_spec = attributes[:'integrationSpec']
63
+ end
64
+
65
+ if attributes.has_key?(:'url')
66
+ self.url = attributes[:'url']
67
+ end
68
+
69
+ if attributes.has_key?(:'metadata')
70
+ if (value = attributes[:'metadata']).is_a?(Hash)
71
+ self.metadata = value
72
+ end
73
+ end
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properties with the reasons
78
+ def list_invalid_properties
79
+ invalid_properties = Array.new
80
+ if @integration_spec.nil?
81
+ invalid_properties.push('invalid value for "integration_spec", integration_spec cannot be nil.')
82
+ end
83
+
84
+ if @url.nil?
85
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
86
+ end
87
+
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ return false if @integration_spec.nil?
95
+ return false if @url.nil?
96
+ true
97
+ end
98
+
99
+ # Checks equality by comparing each attribute.
100
+ # @param [Object] Object to be compared
101
+ def ==(o)
102
+ return true if self.equal?(o)
103
+ self.class == o.class &&
104
+ integration_spec == o.integration_spec &&
105
+ url == o.url &&
106
+ metadata == o.metadata
107
+ end
108
+
109
+ # @see the `==` method
110
+ # @param [Object] Object to be compared
111
+ def eql?(o)
112
+ self == o
113
+ end
114
+
115
+ # Calculates hash code according to all attributes.
116
+ # @return [Fixnum] Hash code
117
+ def hash
118
+ [integration_spec, url, metadata].hash
119
+ end
120
+
121
+ # Builds the object from hash
122
+ # @param [Hash] attributes Model attributes in the form of hash
123
+ # @return [Object] Returns the model itself
124
+ def build_from_hash(attributes)
125
+ return nil unless attributes.is_a?(Hash)
126
+ self.class.swagger_types.each_pair do |key, type|
127
+ if type =~ /\AArray<(.*)>/i
128
+ # check to ensure the input is an array given that the the attribute
129
+ # is documented as an array but the input is not
130
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
131
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
132
+ end
133
+ elsif !attributes[self.class.attribute_map[key]].nil?
134
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
135
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
136
+ end
137
+
138
+ self
139
+ end
140
+
141
+ # Deserializes the data based on type
142
+ # @param string type Data type
143
+ # @param string value Value to be deserialized
144
+ # @return [Object] Deserialized data
145
+ def _deserialize(type, value)
146
+ case type.to_sym
147
+ when :DateTime
148
+ DateTime.parse(value)
149
+ when :Date
150
+ Date.parse(value)
151
+ when :String
152
+ value.to_s
153
+ when :Integer
154
+ value.to_i
155
+ when :Float
156
+ value.to_f
157
+ when :BOOLEAN
158
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
159
+ true
160
+ else
161
+ false
162
+ end
163
+ when :Object
164
+ # generic object (usually a Hash), return directly
165
+ value
166
+ when /\AArray<(?<inner_type>.+)>\z/
167
+ inner_type = Regexp.last_match[:inner_type]
168
+ value.map { |v| _deserialize(inner_type, v) }
169
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
170
+ k_type = Regexp.last_match[:k_type]
171
+ v_type = Regexp.last_match[:v_type]
172
+ {}.tap do |hash|
173
+ value.each do |k, v|
174
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
175
+ end
176
+ end
177
+ else # model
178
+ temp_model = CyberSource.const_get(type).new
179
+ temp_model.build_from_hash(value)
180
+ end
181
+ end
182
+
183
+ # Returns the string representation of the object
184
+ # @return [String] String presentation of the object
185
+ def to_s
186
+ to_hash.to_s
187
+ end
188
+
189
+ # to_body is an alias to to_hash (backward compatibility)
190
+ # @return [Hash] Returns the object in the form of hash
191
+ def to_body
192
+ to_hash
193
+ end
194
+
195
+ # Returns the object in the form of hash
196
+ # @return [Hash] Returns the object in the form of hash
197
+ def to_hash
198
+ hash = {}
199
+ self.class.attribute_map.each_pair do |attr, param|
200
+ value = self.send(attr)
201
+ next if value.nil?
202
+ hash[param] = _to_hash(value)
203
+ end
204
+ hash
205
+ end
206
+
207
+ # Outputs non-array value in the form of hash
208
+ # For object, use to_hash. Otherwise, just return the value
209
+ # @param [Object] value Any valid value
210
+ # @return [Hash] Returns the value in the form of hash
211
+ def _to_hash(value)
212
+ if value.is_a?(Array)
213
+ value.compact.map { |v| _to_hash(v) }
214
+ elsif value.is_a?(Hash)
215
+ {}.tap do |hash|
216
+ value.each { |k, v| hash[k] = _to_hash(v) }
217
+ end
218
+ elsif value.respond_to? :to_hash
219
+ value.to_hash
220
+ else
221
+ value
222
+ end
223
+ end
224
+ end
225
+ end
@@ -26,7 +26,7 @@ module CyberSource
26
26
  # JWE key wrap algorithm Possible values: - RSA-OAEP - RSA-OAEP-256 - RSA-OAEP-384 - RSA-OAEP-512
27
27
  attr_accessor :algorithm
28
28
 
29
- # JWE content encryption algorithm Possible values: - A256GCM - A128GCM - C20P - A256CBC-HS512 - A128CBC-HS256 - A256CCM - A128CCM
29
+ # JWE content encryption algorithm Possible values: - A256GCM - A128GCM - C20P - A256CBC_HS512 - A128CBC_HS256 - A256CCM - A128CCM
30
30
  attr_accessor :encryption_type
31
31
 
32
32
  # Key expiration date in UTC
@@ -0,0 +1,225 @@
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
+ # Web-based integration configuration for a merchant checkout flow.
16
+ class MerchantRegistrationResponse201WebIntegrations
17
+ # URL for integration specification
18
+ attr_accessor :integration_spec
19
+
20
+ # Base web page to checkout for agents (must use HTTPS)
21
+ attr_accessor :url
22
+
23
+ # Optional metadata (max 10KB)
24
+ attr_accessor :metadata
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'integration_spec' => :'integrationSpec',
30
+ :'url' => :'url',
31
+ :'metadata' => :'metadata'
32
+ }
33
+ end
34
+
35
+ # Attribute mapping from JSON key to ruby-style variable name.
36
+ def self.json_map
37
+ {
38
+ :'integration_spec' => :'integration_spec',
39
+ :'url' => :'url',
40
+ :'metadata' => :'metadata'
41
+ }
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.swagger_types
46
+ {
47
+ :'integration_spec' => :'String',
48
+ :'url' => :'String',
49
+ :'metadata' => :'Hash<String, Object>'
50
+ }
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ return unless attributes.is_a?(Hash)
57
+
58
+ # convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
+
61
+ if attributes.has_key?(:'integrationSpec')
62
+ self.integration_spec = attributes[:'integrationSpec']
63
+ end
64
+
65
+ if attributes.has_key?(:'url')
66
+ self.url = attributes[:'url']
67
+ end
68
+
69
+ if attributes.has_key?(:'metadata')
70
+ if (value = attributes[:'metadata']).is_a?(Hash)
71
+ self.metadata = value
72
+ end
73
+ end
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properties with the reasons
78
+ def list_invalid_properties
79
+ invalid_properties = Array.new
80
+ if @integration_spec.nil?
81
+ invalid_properties.push('invalid value for "integration_spec", integration_spec cannot be nil.')
82
+ end
83
+
84
+ if @url.nil?
85
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
86
+ end
87
+
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ return false if @integration_spec.nil?
95
+ return false if @url.nil?
96
+ true
97
+ end
98
+
99
+ # Checks equality by comparing each attribute.
100
+ # @param [Object] Object to be compared
101
+ def ==(o)
102
+ return true if self.equal?(o)
103
+ self.class == o.class &&
104
+ integration_spec == o.integration_spec &&
105
+ url == o.url &&
106
+ metadata == o.metadata
107
+ end
108
+
109
+ # @see the `==` method
110
+ # @param [Object] Object to be compared
111
+ def eql?(o)
112
+ self == o
113
+ end
114
+
115
+ # Calculates hash code according to all attributes.
116
+ # @return [Fixnum] Hash code
117
+ def hash
118
+ [integration_spec, url, metadata].hash
119
+ end
120
+
121
+ # Builds the object from hash
122
+ # @param [Hash] attributes Model attributes in the form of hash
123
+ # @return [Object] Returns the model itself
124
+ def build_from_hash(attributes)
125
+ return nil unless attributes.is_a?(Hash)
126
+ self.class.swagger_types.each_pair do |key, type|
127
+ if type =~ /\AArray<(.*)>/i
128
+ # check to ensure the input is an array given that the the attribute
129
+ # is documented as an array but the input is not
130
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
131
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
132
+ end
133
+ elsif !attributes[self.class.attribute_map[key]].nil?
134
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
135
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
136
+ end
137
+
138
+ self
139
+ end
140
+
141
+ # Deserializes the data based on type
142
+ # @param string type Data type
143
+ # @param string value Value to be deserialized
144
+ # @return [Object] Deserialized data
145
+ def _deserialize(type, value)
146
+ case type.to_sym
147
+ when :DateTime
148
+ DateTime.parse(value)
149
+ when :Date
150
+ Date.parse(value)
151
+ when :String
152
+ value.to_s
153
+ when :Integer
154
+ value.to_i
155
+ when :Float
156
+ value.to_f
157
+ when :BOOLEAN
158
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
159
+ true
160
+ else
161
+ false
162
+ end
163
+ when :Object
164
+ # generic object (usually a Hash), return directly
165
+ value
166
+ when /\AArray<(?<inner_type>.+)>\z/
167
+ inner_type = Regexp.last_match[:inner_type]
168
+ value.map { |v| _deserialize(inner_type, v) }
169
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
170
+ k_type = Regexp.last_match[:k_type]
171
+ v_type = Regexp.last_match[:v_type]
172
+ {}.tap do |hash|
173
+ value.each do |k, v|
174
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
175
+ end
176
+ end
177
+ else # model
178
+ temp_model = CyberSource.const_get(type).new
179
+ temp_model.build_from_hash(value)
180
+ end
181
+ end
182
+
183
+ # Returns the string representation of the object
184
+ # @return [String] String presentation of the object
185
+ def to_s
186
+ to_hash.to_s
187
+ end
188
+
189
+ # to_body is an alias to to_hash (backward compatibility)
190
+ # @return [Hash] Returns the object in the form of hash
191
+ def to_body
192
+ to_hash
193
+ end
194
+
195
+ # Returns the object in the form of hash
196
+ # @return [Hash] Returns the object in the form of hash
197
+ def to_hash
198
+ hash = {}
199
+ self.class.attribute_map.each_pair do |attr, param|
200
+ value = self.send(attr)
201
+ next if value.nil?
202
+ hash[param] = _to_hash(value)
203
+ end
204
+ hash
205
+ end
206
+
207
+ # Outputs non-array value in the form of hash
208
+ # For object, use to_hash. Otherwise, just return the value
209
+ # @param [Object] value Any valid value
210
+ # @return [Hash] Returns the value in the form of hash
211
+ def _to_hash(value)
212
+ if value.is_a?(Array)
213
+ value.compact.map { |v| _to_hash(v) }
214
+ elsif value.is_a?(Hash)
215
+ {}.tap do |hash|
216
+ value.each { |k, v| hash[k] = _to_hash(v) }
217
+ end
218
+ elsif value.respond_to? :to_hash
219
+ value.to_hash
220
+ else
221
+ value
222
+ end
223
+ end
224
+ end
225
+ end
@@ -17,27 +17,27 @@ module CyberSource
17
17
  # Doing business as (DBA) name
18
18
  attr_accessor :merchant_name
19
19
 
20
- # Base merchant URL (must use HTTPS)
20
+ # Base URL of the merchant's domain. Must use HTTPS and be unique across all registrations.
21
21
  attr_accessor :merchant_url
22
22
 
23
- # Visa Merchant ID — unique identifier
23
+ # Visa Merchant ID (VMID). Must be unique — raises 409 if already in use.
24
24
  attr_accessor :vmid
25
25
 
26
- # Transaction processing type Possible values: - TAP - ACG - BOTH
26
+ # Transaction processing indicator: - ***TAP*** — Trusted Agent Protocol - ***ACG*** — Agentic Checkout Gateway - ***BOTH*** — supports both TAP and ACG Possible values: - TAP - ACG - BOTH
27
27
  attr_accessor :indicator
28
28
 
29
- # Authentication cryptogram type (defaults to DAVV) Possible values: - TAVV - DAVV
29
+ # Authentication cryptogram type used for payment credential generation. Defaults to ***DAVV*** if not provided. Possible values: - TAVV - DAVV
30
30
  attr_accessor :cryptogram_type
31
31
 
32
- # Credential delivery format (defaults to UNENCRYPTED) Possible values: - ENCRYPTED - UNENCRYPTED
32
+ # Credential delivery format. Set to ***ENCRYPTED*** to enable JWE-encrypted payload delivery — requires an `encryptionKey`. Defaults to ***UNENCRYPTED***. Possible values: - ENCRYPTED - UNENCRYPTED
33
33
  attr_accessor :payment_payload_type
34
34
 
35
35
  attr_accessor :encryption_key
36
36
 
37
- # List of acceptance network relationships
37
+ # List of payment network acceptance relationships (e.g., \"Visa\").
38
38
  attr_accessor :acceptance_relationships
39
39
 
40
- # List of protocol configurations (ucp, acp, x402) with HTTPS URLs
40
+ # List of protocol interaction configurations defining the merchant's endpoint for each supported protocol (ucp, acp, x402).
41
41
  attr_accessor :protocol_interactions
42
42
 
43
43
  attr_accessor :web_integrations
@@ -17,19 +17,19 @@ module CyberSource
17
17
  # Doing business as (DBA) name
18
18
  attr_accessor :merchant_name
19
19
 
20
- # Base merchant URL (must use HTTPS)
20
+ # Base URL of the merchant's domain. Must use HTTPS and be unique — raises 409 if already registered.
21
21
  attr_accessor :merchant_url
22
22
 
23
- # Authentication cryptogram type Possible values: - TAVV - DAVV
23
+ # Authentication cryptogram type used for payment credential generation. Possible values: - TAVV - DAVV
24
24
  attr_accessor :cryptogram_type
25
25
 
26
- # Credential delivery format Possible values: - ENCRYPTED - UNENCRYPTED
26
+ # Credential delivery format. Set to ***ENCRYPTED*** to enable JWE-encrypted payload delivery — requires an active encryption key. Returns 400 if no active key exists. Possible values: - ENCRYPTED - UNENCRYPTED
27
27
  attr_accessor :payment_payload_type
28
28
 
29
- # List of acceptance network relationships
29
+ # List of payment network acceptance relationships (e.g., \"Visa\").
30
30
  attr_accessor :acceptance_relationships
31
31
 
32
- # List of protocol configurations
32
+ # List of protocol interaction configurations defining the merchant's endpoint for each supported protocol (ucp, acp, x402).
33
33
  attr_accessor :protocol_interactions
34
34
 
35
35
  attr_accessor :web_integrations
@@ -73,8 +73,8 @@ module CyberSource
73
73
  :'payment_payload_type' => :'String',
74
74
  :'acceptance_relationships' => :'Array<String>',
75
75
  :'protocol_interactions' => :'Array<Iccv1merchantsProtocolInteractions>',
76
- :'web_integrations' => :'Iccv1merchantsWebIntegrations',
77
- :'api_integrations' => :'Iccv1merchantsApiIntegrations'
76
+ :'web_integrations' => :'MerchantRegistrationResponse201WebIntegrations',
77
+ :'api_integrations' => :'MerchantRegistrationResponse201ApiIntegrations'
78
78
  }
79
79
  end
80
80
 
@@ -60,7 +60,7 @@ module CyberSource
60
60
  :'reversal_information' => :'Ptsv2paymentsidreversalsReversalInformation',
61
61
  :'processing_information' => :'Ptsv2paymentsidreversalsProcessingInformation',
62
62
  :'order_information' => :'Ptsv2paymentsidreversalsOrderInformation',
63
- :'point_of_sale_information' => :'Ptsv2paymentsidreversalsPointOfSaleInformation',
63
+ :'point_of_sale_information' => :'Ptsv2paymentsPointOfSaleInformation',
64
64
  :'device_information' => :'Ptsv2paymentsidreversalsDeviceInformation',
65
65
  :'processor_information' => :'Ptsv2reversalsProcessorInformation'
66
66
  }
@@ -21,13 +21,16 @@ module CyberSource
21
21
 
22
22
  attr_accessor :processing_information
23
23
 
24
+ attr_accessor :point_of_sale_information
25
+
24
26
  # Attribute mapping from ruby-style variable name to JSON key.
25
27
  def self.attribute_map
26
28
  {
27
29
  :'client_reference_information' => :'clientReferenceInformation',
28
30
  :'payment_information' => :'paymentInformation',
29
31
  :'order_information' => :'orderInformation',
30
- :'processing_information' => :'processingInformation'
32
+ :'processing_information' => :'processingInformation',
33
+ :'point_of_sale_information' => :'pointOfSaleInformation'
31
34
  }
32
35
  end
33
36
 
@@ -37,7 +40,8 @@ module CyberSource
37
40
  :'client_reference_information' => :'client_reference_information',
38
41
  :'payment_information' => :'payment_information',
39
42
  :'order_information' => :'order_information',
40
- :'processing_information' => :'processing_information'
43
+ :'processing_information' => :'processing_information',
44
+ :'point_of_sale_information' => :'point_of_sale_information'
41
45
  }
42
46
  end
43
47
 
@@ -47,7 +51,8 @@ module CyberSource
47
51
  :'client_reference_information' => :'Ptsv2paymentsClientReferenceInformation',
48
52
  :'payment_information' => :'Ptsv2paymentsidvoidsPaymentInformation',
49
53
  :'order_information' => :'Ptsv2paymentsidvoidsOrderInformation',
50
- :'processing_information' => :'Ptsv2voidsProcessingInformation'
54
+ :'processing_information' => :'Ptsv2voidsProcessingInformation',
55
+ :'point_of_sale_information' => :'Ptsv2paymentsPointOfSaleInformation'
51
56
  }
52
57
  end
53
58
 
@@ -74,6 +79,10 @@ module CyberSource
74
79
  if attributes.has_key?(:'processingInformation')
75
80
  self.processing_information = attributes[:'processingInformation']
76
81
  end
82
+
83
+ if attributes.has_key?(:'pointOfSaleInformation')
84
+ self.point_of_sale_information = attributes[:'pointOfSaleInformation']
85
+ end
77
86
  end
78
87
 
79
88
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -97,7 +106,8 @@ module CyberSource
97
106
  client_reference_information == o.client_reference_information &&
98
107
  payment_information == o.payment_information &&
99
108
  order_information == o.order_information &&
100
- processing_information == o.processing_information
109
+ processing_information == o.processing_information &&
110
+ point_of_sale_information == o.point_of_sale_information
101
111
  end
102
112
 
103
113
  # @see the `==` method
@@ -109,7 +119,7 @@ module CyberSource
109
119
  # Calculates hash code according to all attributes.
110
120
  # @return [Fixnum] Hash code
111
121
  def hash
112
- [client_reference_information, payment_information, order_information, processing_information].hash
122
+ [client_reference_information, payment_information, order_information, processing_information, point_of_sale_information].hash
113
123
  end
114
124
 
115
125
  # Builds the object from hash
@@ -53,6 +53,8 @@ module CyberSource
53
53
 
54
54
  attr_accessor :batch_upload
55
55
 
56
+ attr_accessor :payment_events
57
+
56
58
  attr_accessor :transact_guard
57
59
 
58
60
  attr_accessor :microform
@@ -80,6 +82,7 @@ module CyberSource
80
82
  :'receivables_manager' => :'receivablesManager',
81
83
  :'service_fee' => :'serviceFee',
82
84
  :'batch_upload' => :'batchUpload',
85
+ :'payment_events' => :'paymentEvents',
83
86
  :'transact_guard' => :'transactGuard',
84
87
  :'microform' => :'microform'
85
88
  }
@@ -108,6 +111,7 @@ module CyberSource
108
111
  :'receivables_manager' => :'receivables_manager',
109
112
  :'service_fee' => :'service_fee',
110
113
  :'batch_upload' => :'batch_upload',
114
+ :'payment_events' => :'payment_events',
111
115
  :'transact_guard' => :'transact_guard',
112
116
  :'microform' => :'microform'
113
117
  }
@@ -136,6 +140,7 @@ module CyberSource
136
140
  :'receivables_manager' => :'PaymentsConfigurationSetupDigitalPayments',
137
141
  :'service_fee' => :'PaymentsConfigurationSetupCardProcessing',
138
142
  :'batch_upload' => :'PaymentsConfigurationSetupDigitalPayments',
143
+ :'payment_events' => :'PaymentsConfigurationSetupDigitalPayments',
139
144
  :'transact_guard' => :'PaymentsConfigurationSetupDigitalPayments',
140
145
  :'microform' => :'PaymentsConfigurationSetupCardProcessing'
141
146
  }
@@ -229,6 +234,10 @@ module CyberSource
229
234
  self.batch_upload = attributes[:'batchUpload']
230
235
  end
231
236
 
237
+ if attributes.has_key?(:'paymentEvents')
238
+ self.payment_events = attributes[:'paymentEvents']
239
+ end
240
+
232
241
  if attributes.has_key?(:'transactGuard')
233
242
  self.transact_guard = attributes[:'transactGuard']
234
243
  end
@@ -276,6 +285,7 @@ module CyberSource
276
285
  receivables_manager == o.receivables_manager &&
277
286
  service_fee == o.service_fee &&
278
287
  batch_upload == o.batch_upload &&
288
+ payment_events == o.payment_events &&
279
289
  transact_guard == o.transact_guard &&
280
290
  microform == o.microform
281
291
  end
@@ -289,7 +299,7 @@ module CyberSource
289
299
  # Calculates hash code according to all attributes.
290
300
  # @return [Fixnum] Hash code
291
301
  def hash
292
- [card_processing, alternative_payment_methods, card_present_connect, e_check, payer_authentication, digital_payments, secure_acceptance, virtual_terminal, currency_conversion, tax, customer_invoicing, recurring_billing, cybs_ready_terminal, payment_orchestration, payouts, pay_by_link, unified_checkout, receivables_manager, service_fee, batch_upload, transact_guard, microform].hash
302
+ [card_processing, alternative_payment_methods, card_present_connect, e_check, payer_authentication, digital_payments, secure_acceptance, virtual_terminal, currency_conversion, tax, customer_invoicing, recurring_billing, cybs_ready_terminal, payment_orchestration, payouts, pay_by_link, unified_checkout, receivables_manager, service_fee, batch_upload, payment_events, transact_guard, microform].hash
293
303
  end
294
304
 
295
305
  # Builds the object from hash