cybersource_rest_client 0.0.48 → 0.0.49

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 (106) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/payments_api.rb +71 -0
  3. data/lib/cybersource_rest_client/api/push_funds_api.rb +131 -0
  4. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details.rb +2 -2
  5. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +262 -0
  6. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_risk_information_providers_provider_name.rb → pts_v2_payments_post201_response_1_order_information.rb} +14 -19
  7. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_bill_to.rb +344 -0
  8. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to.rb +318 -0
  9. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information.rb +201 -0
  10. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_risk_information_providers.rb → pts_v2_payments_post201_response_1_payment_information_bank.rb} +8 -10
  11. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank_account.rb +184 -0
  12. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type.rb +183 -0
  13. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type_method.rb +184 -0
  14. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +238 -0
  15. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_avs.rb +190 -0
  16. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_seller_protection.rb +184 -0
  17. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -4
  18. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information.rb +5 -2
  19. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
  20. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_client_reference_information.rb +226 -0
  21. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +17 -1
  22. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information.rb +215 -0
  23. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information_sub_merchant.rb +318 -0
  24. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_client_reference_information.rb +238 -0
  25. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_defined_information.rb +206 -0
  26. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +225 -0
  27. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information_merchant_descriptor.rb +270 -0
  28. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information.rb +208 -0
  29. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +224 -0
  30. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_surcharge.rb +190 -0
  31. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information.rb +236 -0
  32. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +297 -0
  33. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +206 -0
  34. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_recurring_options.rb +184 -0
  35. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options.rb +183 -0
  36. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options.rb +183 -0
  37. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options_initiator.rb +190 -0
  38. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information.rb +384 -0
  39. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information.rb +183 -0
  40. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +281 -0
  41. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_customer.rb +190 -0
  42. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_instrument_identifier.rb +190 -0
  43. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_payment_instrument.rb +190 -0
  44. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification.rb +206 -0
  45. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information.rb +425 -0
  46. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account.rb +206 -0
  47. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information.rb +183 -0
  48. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card.rb +270 -0
  49. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification.rb +222 -0
  50. data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +11 -1
  51. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +17 -1
  52. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +2 -2
  53. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +30 -4
  54. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +21 -1
  55. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +20 -4
  56. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type.rb +2 -12
  57. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +15 -5
  58. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +12 -2
  59. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +63 -4
  60. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information_personal_identification.rb +190 -0
  61. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +65 -1
  62. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_client_reference_information.rb +297 -0
  63. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +2 -2
  64. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb +14 -4
  65. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +36 -4
  66. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_e_wallet.rb +190 -0
  67. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type.rb +203 -0
  68. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type_method.rb +184 -0
  69. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +35 -4
  70. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_refund_options.rb +184 -0
  71. data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_payment_information.rb +1 -1
  72. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_agreement_information.rb +184 -0
  73. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_client_reference_information.rb +206 -0
  74. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information.rb +192 -0
  75. data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_payment_information_customer.rb → ptsv2refreshpaymentstatusid_payment_information_customer.rb} +1 -1
  76. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information_payment_type.rb +193 -0
  77. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_processing_information.rb +186 -0
  78. data/lib/cybersource_rest_client/models/push_funds201_response.rb +301 -0
  79. data/lib/cybersource_rest_client/models/push_funds201_response__links.rb +210 -0
  80. data/lib/cybersource_rest_client/models/push_funds201_response__links_customer.rb +195 -0
  81. data/lib/cybersource_rest_client/models/push_funds201_response__links_instrument_identifier.rb +195 -0
  82. data/lib/cybersource_rest_client/models/push_funds201_response__links_payment_instrument.rb +195 -0
  83. data/lib/cybersource_rest_client/models/push_funds201_response__links_self.rb +195 -0
  84. data/lib/cybersource_rest_client/models/push_funds201_response_client_reference_information.rb +206 -0
  85. data/lib/cybersource_rest_client/models/push_funds201_response_error_information.rb +217 -0
  86. data/lib/cybersource_rest_client/models/push_funds201_response_error_information_details.rb +206 -0
  87. data/lib/cybersource_rest_client/models/push_funds201_response_merchant_information.rb +183 -0
  88. data/lib/cybersource_rest_client/models/push_funds201_response_merchant_information_merchant_descriptor.rb +222 -0
  89. data/lib/cybersource_rest_client/models/push_funds201_response_order_information.rb +183 -0
  90. data/lib/cybersource_rest_client/models/push_funds201_response_order_information_amount_details.rb +247 -0
  91. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +264 -0
  92. data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information.rb +183 -0
  93. data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information_card.rb +206 -0
  94. data/lib/cybersource_rest_client/models/push_funds400_response.rb +247 -0
  95. data/lib/cybersource_rest_client/models/push_funds400_response_details.rb +194 -0
  96. data/lib/cybersource_rest_client/models/push_funds401_response.rb +226 -0
  97. data/lib/cybersource_rest_client/models/push_funds404_response.rb +226 -0
  98. data/lib/cybersource_rest_client/models/push_funds502_response.rb +236 -0
  99. data/lib/cybersource_rest_client/models/push_funds_request.rb +264 -0
  100. data/lib/cybersource_rest_client/models/refresh_payment_status_request.rb +210 -0
  101. data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
  102. data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
  103. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +1 -1
  104. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +1 -1
  105. data/lib/cybersource_rest_client.rb +77 -3
  106. metadata +79 -5
@@ -0,0 +1,264 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ class PushFundsRequest
17
+ attr_accessor :client_reference_information
18
+
19
+ attr_accessor :order_information
20
+
21
+ attr_accessor :processing_information
22
+
23
+ attr_accessor :processing_options
24
+
25
+ attr_accessor :recipient_information
26
+
27
+ attr_accessor :sender_information
28
+
29
+ attr_accessor :aggregator_information
30
+
31
+ attr_accessor :merchant_defined_information
32
+
33
+ attr_accessor :merchant_information
34
+
35
+ attr_accessor :point_of_service_information
36
+
37
+ # Attribute mapping from ruby-style variable name to JSON key.
38
+ def self.attribute_map
39
+ {
40
+ :'client_reference_information' => :'clientReferenceInformation',
41
+ :'order_information' => :'orderInformation',
42
+ :'processing_information' => :'processingInformation',
43
+ :'processing_options' => :'processingOptions',
44
+ :'recipient_information' => :'recipientInformation',
45
+ :'sender_information' => :'senderInformation',
46
+ :'aggregator_information' => :'aggregatorInformation',
47
+ :'merchant_defined_information' => :'merchantDefinedInformation',
48
+ :'merchant_information' => :'merchantInformation',
49
+ :'point_of_service_information' => :'pointOfServiceInformation'
50
+ }
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.swagger_types
55
+ {
56
+ :'client_reference_information' => :'Ptsv1pushfundstransferClientReferenceInformation',
57
+ :'order_information' => :'Ptsv1pushfundstransferOrderInformation',
58
+ :'processing_information' => :'Ptsv1pushfundstransferProcessingInformation',
59
+ :'processing_options' => :'Ptsv1pushfundstransferProcessingOptions',
60
+ :'recipient_information' => :'Ptsv1pushfundstransferRecipientInformation',
61
+ :'sender_information' => :'Ptsv1pushfundstransferSenderInformation',
62
+ :'aggregator_information' => :'Ptsv1pushfundstransferAggregatorInformation',
63
+ :'merchant_defined_information' => :'Ptsv1pushfundstransferMerchantDefinedInformation',
64
+ :'merchant_information' => :'Ptsv1pushfundstransferMerchantInformation',
65
+ :'point_of_service_information' => :'Ptsv1pushfundstransferPointOfServiceInformation'
66
+ }
67
+ end
68
+
69
+ # Initializes the object
70
+ # @param [Hash] attributes Model attributes in the form of hash
71
+ def initialize(attributes = {})
72
+ return unless attributes.is_a?(Hash)
73
+
74
+ # convert string to symbol for hash key
75
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
76
+
77
+ if attributes.has_key?(:'clientReferenceInformation')
78
+ self.client_reference_information = attributes[:'clientReferenceInformation']
79
+ end
80
+
81
+ if attributes.has_key?(:'orderInformation')
82
+ self.order_information = attributes[:'orderInformation']
83
+ end
84
+
85
+ if attributes.has_key?(:'processingInformation')
86
+ self.processing_information = attributes[:'processingInformation']
87
+ end
88
+
89
+ if attributes.has_key?(:'processingOptions')
90
+ self.processing_options = attributes[:'processingOptions']
91
+ end
92
+
93
+ if attributes.has_key?(:'recipientInformation')
94
+ self.recipient_information = attributes[:'recipientInformation']
95
+ end
96
+
97
+ if attributes.has_key?(:'senderInformation')
98
+ self.sender_information = attributes[:'senderInformation']
99
+ end
100
+
101
+ if attributes.has_key?(:'aggregatorInformation')
102
+ self.aggregator_information = attributes[:'aggregatorInformation']
103
+ end
104
+
105
+ if attributes.has_key?(:'merchantDefinedInformation')
106
+ self.merchant_defined_information = attributes[:'merchantDefinedInformation']
107
+ end
108
+
109
+ if attributes.has_key?(:'merchantInformation')
110
+ self.merchant_information = attributes[:'merchantInformation']
111
+ end
112
+
113
+ if attributes.has_key?(:'pointOfServiceInformation')
114
+ self.point_of_service_information = attributes[:'pointOfServiceInformation']
115
+ end
116
+ end
117
+
118
+ # Show invalid properties with the reasons. Usually used together with valid?
119
+ # @return Array for valid properties with the reasons
120
+ def list_invalid_properties
121
+ invalid_properties = Array.new
122
+ invalid_properties
123
+ end
124
+
125
+ # Check to see if the all the properties in the model are valid
126
+ # @return true if the model is valid
127
+ def valid?
128
+ true
129
+ end
130
+
131
+ # Checks equality by comparing each attribute.
132
+ # @param [Object] Object to be compared
133
+ def ==(o)
134
+ return true if self.equal?(o)
135
+ self.class == o.class &&
136
+ client_reference_information == o.client_reference_information &&
137
+ order_information == o.order_information &&
138
+ processing_information == o.processing_information &&
139
+ processing_options == o.processing_options &&
140
+ recipient_information == o.recipient_information &&
141
+ sender_information == o.sender_information &&
142
+ aggregator_information == o.aggregator_information &&
143
+ merchant_defined_information == o.merchant_defined_information &&
144
+ merchant_information == o.merchant_information &&
145
+ point_of_service_information == o.point_of_service_information
146
+ end
147
+
148
+ # @see the `==` method
149
+ # @param [Object] Object to be compared
150
+ def eql?(o)
151
+ self == o
152
+ end
153
+
154
+ # Calculates hash code according to all attributes.
155
+ # @return [Fixnum] Hash code
156
+ def hash
157
+ [client_reference_information, order_information, processing_information, processing_options, recipient_information, sender_information, aggregator_information, merchant_defined_information, merchant_information, point_of_service_information].hash
158
+ end
159
+
160
+ # Builds the object from hash
161
+ # @param [Hash] attributes Model attributes in the form of hash
162
+ # @return [Object] Returns the model itself
163
+ def build_from_hash(attributes)
164
+ return nil unless attributes.is_a?(Hash)
165
+ self.class.swagger_types.each_pair do |key, type|
166
+ if type =~ /\AArray<(.*)>/i
167
+ # check to ensure the input is an array given that the the attribute
168
+ # is documented as an array but the input is not
169
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
170
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
171
+ end
172
+ elsif !attributes[self.class.attribute_map[key]].nil?
173
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
174
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
175
+ end
176
+
177
+ self
178
+ end
179
+
180
+ # Deserializes the data based on type
181
+ # @param string type Data type
182
+ # @param string value Value to be deserialized
183
+ # @return [Object] Deserialized data
184
+ def _deserialize(type, value)
185
+ case type.to_sym
186
+ when :DateTime
187
+ DateTime.parse(value)
188
+ when :Date
189
+ Date.parse(value)
190
+ when :String
191
+ value.to_s
192
+ when :Integer
193
+ value.to_i
194
+ when :Float
195
+ value.to_f
196
+ when :BOOLEAN
197
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
198
+ true
199
+ else
200
+ false
201
+ end
202
+ when :Object
203
+ # generic object (usually a Hash), return directly
204
+ value
205
+ when /\AArray<(?<inner_type>.+)>\z/
206
+ inner_type = Regexp.last_match[:inner_type]
207
+ value.map { |v| _deserialize(inner_type, v) }
208
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
209
+ k_type = Regexp.last_match[:k_type]
210
+ v_type = Regexp.last_match[:v_type]
211
+ {}.tap do |hash|
212
+ value.each do |k, v|
213
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
214
+ end
215
+ end
216
+ else # model
217
+ temp_model = CyberSource.const_get(type).new
218
+ temp_model.build_from_hash(value)
219
+ end
220
+ end
221
+
222
+ # Returns the string representation of the object
223
+ # @return [String] String presentation of the object
224
+ def to_s
225
+ to_hash.to_s
226
+ end
227
+
228
+ # to_body is an alias to to_hash (backward compatibility)
229
+ # @return [Hash] Returns the object in the form of hash
230
+ def to_body
231
+ to_hash
232
+ end
233
+
234
+ # Returns the object in the form of hash
235
+ # @return [Hash] Returns the object in the form of hash
236
+ def to_hash
237
+ hash = {}
238
+ self.class.attribute_map.each_pair do |attr, param|
239
+ value = self.send(attr)
240
+ next if value.nil?
241
+ hash[param] = _to_hash(value)
242
+ end
243
+ hash
244
+ end
245
+
246
+ # Outputs non-array value in the form of hash
247
+ # For object, use to_hash. Otherwise, just return the value
248
+ # @param [Object] value Any valid value
249
+ # @return [Hash] Returns the value in the form of hash
250
+ def _to_hash(value)
251
+ if value.is_a?(Array)
252
+ value.compact.map { |v| _to_hash(v) }
253
+ elsif value.is_a?(Hash)
254
+ {}.tap do |hash|
255
+ value.each { |k, v| hash[k] = _to_hash(v) }
256
+ end
257
+ elsif value.respond_to? :to_hash
258
+ value.to_hash
259
+ else
260
+ value
261
+ end
262
+ end
263
+ end
264
+ end
@@ -0,0 +1,210 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ class RefreshPaymentStatusRequest
17
+ attr_accessor :payment_information
18
+
19
+ attr_accessor :client_reference_information
20
+
21
+ attr_accessor :agreement_information
22
+
23
+ attr_accessor :processing_information
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'payment_information' => :'paymentInformation',
29
+ :'client_reference_information' => :'clientReferenceInformation',
30
+ :'agreement_information' => :'agreementInformation',
31
+ :'processing_information' => :'processingInformation'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.swagger_types
37
+ {
38
+ :'payment_information' => :'Ptsv2refreshpaymentstatusidPaymentInformation',
39
+ :'client_reference_information' => :'Ptsv2refreshpaymentstatusidClientReferenceInformation',
40
+ :'agreement_information' => :'Ptsv2refreshpaymentstatusidAgreementInformation',
41
+ :'processing_information' => :'Ptsv2refreshpaymentstatusidProcessingInformation'
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ return unless attributes.is_a?(Hash)
49
+
50
+ # convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
+
53
+ if attributes.has_key?(:'paymentInformation')
54
+ self.payment_information = attributes[:'paymentInformation']
55
+ end
56
+
57
+ if attributes.has_key?(:'clientReferenceInformation')
58
+ self.client_reference_information = attributes[:'clientReferenceInformation']
59
+ end
60
+
61
+ if attributes.has_key?(:'agreementInformation')
62
+ self.agreement_information = attributes[:'agreementInformation']
63
+ end
64
+
65
+ if attributes.has_key?(:'processingInformation')
66
+ self.processing_information = attributes[:'processingInformation']
67
+ end
68
+ end
69
+
70
+ # Show invalid properties with the reasons. Usually used together with valid?
71
+ # @return Array for valid properties with the reasons
72
+ def list_invalid_properties
73
+ invalid_properties = Array.new
74
+ invalid_properties
75
+ end
76
+
77
+ # Check to see if the all the properties in the model are valid
78
+ # @return true if the model is valid
79
+ def valid?
80
+ true
81
+ end
82
+
83
+ # Checks equality by comparing each attribute.
84
+ # @param [Object] Object to be compared
85
+ def ==(o)
86
+ return true if self.equal?(o)
87
+ self.class == o.class &&
88
+ payment_information == o.payment_information &&
89
+ client_reference_information == o.client_reference_information &&
90
+ agreement_information == o.agreement_information &&
91
+ processing_information == o.processing_information
92
+ end
93
+
94
+ # @see the `==` method
95
+ # @param [Object] Object to be compared
96
+ def eql?(o)
97
+ self == o
98
+ end
99
+
100
+ # Calculates hash code according to all attributes.
101
+ # @return [Fixnum] Hash code
102
+ def hash
103
+ [payment_information, client_reference_information, agreement_information, processing_information].hash
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ self.class.swagger_types.each_pair do |key, type|
112
+ if type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ end
118
+ elsif !attributes[self.class.attribute_map[key]].nil?
119
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
121
+ end
122
+
123
+ self
124
+ end
125
+
126
+ # Deserializes the data based on type
127
+ # @param string type Data type
128
+ # @param string value Value to be deserialized
129
+ # @return [Object] Deserialized data
130
+ def _deserialize(type, value)
131
+ case type.to_sym
132
+ when :DateTime
133
+ DateTime.parse(value)
134
+ when :Date
135
+ Date.parse(value)
136
+ when :String
137
+ value.to_s
138
+ when :Integer
139
+ value.to_i
140
+ when :Float
141
+ value.to_f
142
+ when :BOOLEAN
143
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
144
+ true
145
+ else
146
+ false
147
+ end
148
+ when :Object
149
+ # generic object (usually a Hash), return directly
150
+ value
151
+ when /\AArray<(?<inner_type>.+)>\z/
152
+ inner_type = Regexp.last_match[:inner_type]
153
+ value.map { |v| _deserialize(inner_type, v) }
154
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
155
+ k_type = Regexp.last_match[:k_type]
156
+ v_type = Regexp.last_match[:v_type]
157
+ {}.tap do |hash|
158
+ value.each do |k, v|
159
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
160
+ end
161
+ end
162
+ else # model
163
+ temp_model = CyberSource.const_get(type).new
164
+ temp_model.build_from_hash(value)
165
+ end
166
+ end
167
+
168
+ # Returns the string representation of the object
169
+ # @return [String] String presentation of the object
170
+ def to_s
171
+ to_hash.to_s
172
+ end
173
+
174
+ # to_body is an alias to to_hash (backward compatibility)
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_body
177
+ to_hash
178
+ end
179
+
180
+ # Returns the object in the form of hash
181
+ # @return [Hash] Returns the object in the form of hash
182
+ def to_hash
183
+ hash = {}
184
+ self.class.attribute_map.each_pair do |attr, param|
185
+ value = self.send(attr)
186
+ next if value.nil?
187
+ hash[param] = _to_hash(value)
188
+ end
189
+ hash
190
+ end
191
+
192
+ # Outputs non-array value in the form of hash
193
+ # For object, use to_hash. Otherwise, just return the value
194
+ # @param [Object] value Any valid value
195
+ # @return [Hash] Returns the value in the form of hash
196
+ def _to_hash(value)
197
+ if value.is_a?(Array)
198
+ value.compact.map { |v| _to_hash(v) }
199
+ elsif value.is_a?(Hash)
200
+ {}.tap do |hash|
201
+ value.each { |k, v| hash[k] = _to_hash(v) }
202
+ end
203
+ elsif value.respond_to? :to_hash
204
+ value.to_hash
205
+ else
206
+ value
207
+ end
208
+ end
209
+ end
210
+ end
@@ -60,7 +60,7 @@ module CyberSource
60
60
  # Attribute type mapping.
61
61
  def self.swagger_types
62
62
  {
63
- :'client_reference_information' => :'Ptsv2paymentsClientReferenceInformation',
63
+ :'client_reference_information' => :'Ptsv2paymentsidrefundsClientReferenceInformation',
64
64
  :'processing_information' => :'Ptsv2paymentsidrefundsProcessingInformation',
65
65
  :'payment_information' => :'Ptsv2paymentsidrefundsPaymentInformation',
66
66
  :'order_information' => :'Ptsv2paymentsidrefundsOrderInformation',
@@ -60,7 +60,7 @@ module CyberSource
60
60
  # Attribute type mapping.
61
61
  def self.swagger_types
62
62
  {
63
- :'client_reference_information' => :'Ptsv2paymentsClientReferenceInformation',
63
+ :'client_reference_information' => :'Ptsv2paymentsidrefundsClientReferenceInformation',
64
64
  :'processing_information' => :'Ptsv2paymentsidrefundsProcessingInformation',
65
65
  :'payment_information' => :'Ptsv2paymentsidrefundsPaymentInformation',
66
66
  :'order_information' => :'Ptsv2paymentsidrefundsOrderInformation',
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class TssV2TransactionsGet200ResponsePaymentInformationPaymentType
17
- # A Payment Type is an agreed means for a payee to receive legal tender from a payer. The way one pays for a commercial financial transaction. Examples: Card, Bank Transfer, Digital, Direct Debit. Possible values: - `CARD` (use this for a PIN debit transaction) - `CHECK` (use this for all eCheck payment transactions - ECP Debit, ECP Follow-on Credit, ECP StandAlone Credit) - `bankTransfer` (use for Online Bank Transafer for methods such as P24, iDeal, Estonia Bank)
17
+ # A Payment Type is an agreed means for a payee to receive legal tender from a payer. The way one pays for a commercial financial transaction. Examples: Card, Bank Transfer, Digital, Direct Debit. Possible values: - `CARD` (use this for a PIN debit transaction) - `CHECK` (use this for all eCheck payment transactions - ECP Debit, ECP Follow-on Credit, ECP StandAlone Credit) - `bankTransfer` (use for Online Bank Transafer for methods such as P24, iDeal, Estonia Bank, KCP) - `localCard` (KCP Local card via Altpay) - `carrierBilling` (KCP Carrier Billing via Altpay)
18
18
  attr_accessor :name
19
19
 
20
20
  # Indicates the payment type used in this payment transaction. Example: credit card, check
@@ -36,7 +36,7 @@ module CyberSource
36
36
  def self.swagger_types
37
37
  {
38
38
  :'payment_type' => :'TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentType',
39
- :'customer' => :'TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCustomer',
39
+ :'customer' => :'Ptsv2refreshpaymentstatusidPaymentInformationCustomer',
40
40
  :'card' => :'TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard',
41
41
  :'bank' => :'TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank'
42
42
  }
@@ -194,6 +194,18 @@ require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_respons
194
194
  require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information'
195
195
  require 'cybersource_rest_client/models/pts_v2_payments_captures_post400_response'
196
196
  require 'cybersource_rest_client/models/pts_v2_payments_post201_response'
197
+ require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1'
198
+ require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information'
199
+ require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_bill_to'
200
+ require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to'
201
+ require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information'
202
+ require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank'
203
+ require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank_account'
204
+ require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type'
205
+ require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type_method'
206
+ require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information'
207
+ require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_avs'
208
+ require 'cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_seller_protection'
197
209
  require 'cybersource_rest_client/models/pts_v2_payments_post201_response_buyer_information'
198
210
  require 'cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information'
199
211
  require 'cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information'
@@ -238,8 +250,6 @@ require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_in
238
250
  require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_info_codes'
239
251
  require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_ip_address'
240
252
  require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_profile'
241
- require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_providers'
242
- require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_providers_provider_name'
243
253
  require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_rules'
244
254
  require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_score'
245
255
  require 'cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel'
@@ -257,6 +267,7 @@ require 'cybersource_rest_client/models/pts_v2_payments_post201_response_token_i
257
267
  require 'cybersource_rest_client/models/pts_v2_payments_post400_response'
258
268
  require 'cybersource_rest_client/models/pts_v2_payments_post502_response'
259
269
  require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response'
270
+ require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_client_reference_information'
260
271
  require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response__links'
261
272
  require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information'
262
273
  require 'cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information'
@@ -283,6 +294,34 @@ require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_processo
283
294
  require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information'
284
295
  require 'cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card'
285
296
  require 'cybersource_rest_client/models/pts_v2_payouts_post400_response'
297
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information'
298
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information_sub_merchant'
299
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_client_reference_information'
300
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_defined_information'
301
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information'
302
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information_merchant_descriptor'
303
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_order_information'
304
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details'
305
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_surcharge'
306
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information'
307
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information'
308
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options'
309
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_recurring_options'
310
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options'
311
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options'
312
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options_initiator'
313
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information'
314
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information'
315
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card'
316
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_customer'
317
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_instrument_identifier'
318
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_payment_instrument'
319
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification'
320
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information'
321
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account'
322
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information'
323
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card'
324
+ require 'cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification'
286
325
  require 'cybersource_rest_client/models/ptsv2credits_installment_information'
287
326
  require 'cybersource_rest_client/models/ptsv2credits_processing_information'
288
327
  require 'cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options'
@@ -390,6 +429,7 @@ require 'cybersource_rest_client/models/ptsv2paymentsid_travel_information'
390
429
  require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information'
391
430
  require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant'
392
431
  require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information'
432
+ require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information_personal_identification'
393
433
  require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_device_information'
394
434
  require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information'
395
435
  require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information'
@@ -406,15 +446,20 @@ require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_in
406
446
  require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information'
407
447
  require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options'
408
448
  require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options'
449
+ require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_client_reference_information'
409
450
  require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information'
410
451
  require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information'
411
452
  require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items'
412
453
  require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information'
413
454
  require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank'
414
455
  require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card'
456
+ require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_e_wallet'
457
+ require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type'
458
+ require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type_method'
415
459
  require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information'
416
460
  require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information'
417
461
  require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options'
462
+ require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_refund_options'
418
463
  require 'cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information'
419
464
  require 'cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner'
420
465
  require 'cybersource_rest_client/models/ptsv2paymentsidreversals_order_information'
@@ -443,7 +488,36 @@ require 'cybersource_rest_client/models/ptsv2payouts_processing_information_payo
443
488
  require 'cybersource_rest_client/models/ptsv2payouts_recipient_information'
444
489
  require 'cybersource_rest_client/models/ptsv2payouts_sender_information'
445
490
  require 'cybersource_rest_client/models/ptsv2payouts_sender_information_account'
491
+ require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_agreement_information'
492
+ require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_client_reference_information'
493
+ require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information'
494
+ require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information_customer'
495
+ require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information_payment_type'
496
+ require 'cybersource_rest_client/models/ptsv2refreshpaymentstatusid_processing_information'
446
497
  require 'cybersource_rest_client/models/ptsv2voids_processing_information'
498
+ require 'cybersource_rest_client/models/push_funds201_response'
499
+ require 'cybersource_rest_client/models/push_funds201_response_client_reference_information'
500
+ require 'cybersource_rest_client/models/push_funds201_response_error_information'
501
+ require 'cybersource_rest_client/models/push_funds201_response_error_information_details'
502
+ require 'cybersource_rest_client/models/push_funds201_response__links'
503
+ require 'cybersource_rest_client/models/push_funds201_response__links_customer'
504
+ require 'cybersource_rest_client/models/push_funds201_response__links_instrument_identifier'
505
+ require 'cybersource_rest_client/models/push_funds201_response__links_payment_instrument'
506
+ require 'cybersource_rest_client/models/push_funds201_response__links_self'
507
+ require 'cybersource_rest_client/models/push_funds201_response_merchant_information'
508
+ require 'cybersource_rest_client/models/push_funds201_response_merchant_information_merchant_descriptor'
509
+ require 'cybersource_rest_client/models/push_funds201_response_order_information'
510
+ require 'cybersource_rest_client/models/push_funds201_response_order_information_amount_details'
511
+ require 'cybersource_rest_client/models/push_funds201_response_processor_information'
512
+ require 'cybersource_rest_client/models/push_funds201_response_recipient_information'
513
+ require 'cybersource_rest_client/models/push_funds201_response_recipient_information_card'
514
+ require 'cybersource_rest_client/models/push_funds400_response'
515
+ require 'cybersource_rest_client/models/push_funds400_response_details'
516
+ require 'cybersource_rest_client/models/push_funds401_response'
517
+ require 'cybersource_rest_client/models/push_funds404_response'
518
+ require 'cybersource_rest_client/models/push_funds502_response'
519
+ require 'cybersource_rest_client/models/push_funds_request'
520
+ require 'cybersource_rest_client/models/refresh_payment_status_request'
447
521
  require 'cybersource_rest_client/models/refund_capture_request'
448
522
  require 'cybersource_rest_client/models/refund_payment_request'
449
523
  require 'cybersource_rest_client/models/reporting_v3_chargeback_details_get200_response'
@@ -732,7 +806,6 @@ require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__em
732
806
  require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank'
733
807
  require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank_account'
734
808
  require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card'
735
- require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_customer'
736
809
  require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_type'
737
810
  require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information'
738
811
  require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner'
@@ -832,6 +905,7 @@ require 'cybersource_rest_client/api/payment_instrument_api'
832
905
  require 'cybersource_rest_client/api/payments_api'
833
906
  require 'cybersource_rest_client/api/payouts_api'
834
907
  require 'cybersource_rest_client/api/purchase_and_refund_details_api'
908
+ require 'cybersource_rest_client/api/push_funds_api'
835
909
  require 'cybersource_rest_client/api/refund_api'
836
910
  require 'cybersource_rest_client/api/report_definitions_api'
837
911
  require 'cybersource_rest_client/api/report_downloads_api'