cybersource_rest_client 0.0.70 → 0.0.71

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 (65) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/batches_api.rb +9 -9
  3. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +3 -149
  4. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +20 -261
  5. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +75 -0
  6. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +1 -1
  7. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +64 -26
  8. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded.rb → inline_response_200_2__embedded.rb} +2 -2
  9. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded__links.rb → inline_response_200_2__embedded__links.rb} +2 -2
  10. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded__links_reports.rb → inline_response_200_2__embedded__links_reports.rb} +1 -1
  11. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded_batches.rb → inline_response_200_2__embedded_batches.rb} +3 -3
  12. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded_totals.rb → inline_response_200_2__embedded_totals.rb} +1 -1
  13. data/lib/cybersource_rest_client/models/{inline_response_200_5__links.rb → inline_response_200_2__links.rb} +1 -1
  14. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +75 -120
  15. data/lib/cybersource_rest_client/models/{inline_response_200_6__links.rb → inline_response_200_3__links.rb} +2 -2
  16. data/lib/cybersource_rest_client/models/{inline_response_200_6__links_report.rb → inline_response_200_3__links_report.rb} +1 -1
  17. data/lib/cybersource_rest_client/models/{inline_response_200_6_billing.rb → inline_response_200_3_billing.rb} +1 -1
  18. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +83 -126
  19. data/lib/cybersource_rest_client/models/{inline_response_200_7_records.rb → inline_response_200_4_records.rb} +3 -3
  20. data/lib/cybersource_rest_client/models/{inline_response_200_7_response_record.rb → inline_response_200_4_response_record.rb} +2 -2
  21. data/lib/cybersource_rest_client/models/{inline_response_200_7_response_record_additional_updates.rb → inline_response_200_4_response_record_additional_updates.rb} +1 -1
  22. data/lib/cybersource_rest_client/models/{inline_response_200_7_source_record.rb → inline_response_200_4_source_record.rb} +1 -1
  23. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +64 -134
  24. data/lib/cybersource_rest_client/models/inline_response_201_4_payloads.rb +189 -0
  25. data/lib/cybersource_rest_client/models/inline_response_201_4_payloads_test_payload.rb +190 -0
  26. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +5 -25
  27. data/lib/cybersource_rest_client/models/model_400_upload_batch_file_response.rb +199 -0
  28. data/lib/cybersource_rest_client/models/payments_strong_auth_issuer_information.rb +22 -5
  29. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +25 -5
  30. data/lib/cybersource_rest_client/models/{inline_response_404_2.rb → pts_v2_payments_post201_response_1_error_information.rb} +4 -2
  31. data/lib/cybersource_rest_client/models/{inline_response_404_2_details.rb → pts_v2_payments_post201_response_1_error_information_details.rb} +3 -12
  32. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_issuer_information.rb +213 -0
  33. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +15 -5
  34. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_amount_details.rb +196 -0
  35. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information.rb +11 -1
  36. data/lib/cybersource_rest_client/models/{notificationsubscriptionsv1webhooks_security_policy_1.rb → pts_v2_payments_post201_response_1_payment_information_e_wallet.rb} +30 -29
  37. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +41 -1
  38. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +11 -1
  39. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -1
  40. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +1 -1
  41. data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +7 -7
  42. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +3 -3
  43. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information_account.rb +1 -1
  44. data/lib/cybersource_rest_client/models/save_asym_egress_key.rb +0 -10
  45. data/lib/cybersource_rest_client/models/save_sym_egress_key.rb +0 -10
  46. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_issuer_information.rb +22 -5
  47. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +12 -1
  48. data/lib/cybersource_rest_client.rb +21 -32
  49. metadata +23 -34
  50. data/lib/cybersource_rest_client/api/replay_webhooks_api.rb +0 -98
  51. data/lib/cybersource_rest_client/models/create_webhook_request.rb +0 -289
  52. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +0 -251
  53. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +0 -290
  54. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +0 -292
  55. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1productsorganization_id_event_types.rb +0 -233
  56. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_notification_scope.rb +0 -205
  57. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_products.rb +0 -202
  58. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_retry_policy.rb +0 -270
  59. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy.rb +0 -201
  60. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_1_config.rb +0 -223
  61. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_1_config_additional_config.rb +0 -220
  62. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_config.rb +0 -213
  63. data/lib/cybersource_rest_client/models/nrtfv1webhookswebhook_idreplays_by_delivery_status.rb +0 -243
  64. data/lib/cybersource_rest_client/models/replay_webhooks_request.rb +0 -201
  65. data/lib/cybersource_rest_client/models/update_webhook_request.rb +0 -314
@@ -0,0 +1,196 @@
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.38
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module CyberSource
15
+ class PtsV2PaymentsPost201Response1OrderInformationAmountDetails
16
+ # This field will carry the remaning amount which can be refunded.
17
+ attr_accessor :refund_balance
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'refund_balance' => :'refundBalance'
23
+ }
24
+ end
25
+
26
+ # Attribute mapping from JSON key to ruby-style variable name.
27
+ def self.json_map
28
+ {
29
+ :'refund_balance' => :'refund_balance'
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.swagger_types
35
+ {
36
+ :'refund_balance' => :'String'
37
+ }
38
+ end
39
+
40
+ # Initializes the object
41
+ # @param [Hash] attributes Model attributes in the form of hash
42
+ def initialize(attributes = {})
43
+ return unless attributes.is_a?(Hash)
44
+
45
+ # convert string to symbol for hash key
46
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
47
+
48
+ if attributes.has_key?(:'refundBalance')
49
+ self.refund_balance = attributes[:'refundBalance']
50
+ end
51
+ end
52
+
53
+ # Show invalid properties with the reasons. Usually used together with valid?
54
+ # @return Array for valid properties with the reasons
55
+ def list_invalid_properties
56
+ invalid_properties = Array.new
57
+ invalid_properties
58
+ end
59
+
60
+ # Check to see if the all the properties in the model are valid
61
+ # @return true if the model is valid
62
+ def valid?
63
+ true
64
+ end
65
+
66
+ # Custom attribute writer method with validation
67
+ # @param [Object] refund_balance Value to be assigned
68
+ def refund_balance=(refund_balance)
69
+ @refund_balance = refund_balance
70
+ end
71
+
72
+ # Checks equality by comparing each attribute.
73
+ # @param [Object] Object to be compared
74
+ def ==(o)
75
+ return true if self.equal?(o)
76
+ self.class == o.class &&
77
+ refund_balance == o.refund_balance
78
+ end
79
+
80
+ # @see the `==` method
81
+ # @param [Object] Object to be compared
82
+ def eql?(o)
83
+ self == o
84
+ end
85
+
86
+ # Calculates hash code according to all attributes.
87
+ # @return [Fixnum] Hash code
88
+ def hash
89
+ [refund_balance].hash
90
+ end
91
+
92
+ # Builds the object from hash
93
+ # @param [Hash] attributes Model attributes in the form of hash
94
+ # @return [Object] Returns the model itself
95
+ def build_from_hash(attributes)
96
+ return nil unless attributes.is_a?(Hash)
97
+ self.class.swagger_types.each_pair do |key, type|
98
+ if type =~ /\AArray<(.*)>/i
99
+ # check to ensure the input is an array given that the the attribute
100
+ # is documented as an array but the input is not
101
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
102
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
103
+ end
104
+ elsif !attributes[self.class.attribute_map[key]].nil?
105
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
106
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
107
+ end
108
+
109
+ self
110
+ end
111
+
112
+ # Deserializes the data based on type
113
+ # @param string type Data type
114
+ # @param string value Value to be deserialized
115
+ # @return [Object] Deserialized data
116
+ def _deserialize(type, value)
117
+ case type.to_sym
118
+ when :DateTime
119
+ DateTime.parse(value)
120
+ when :Date
121
+ Date.parse(value)
122
+ when :String
123
+ value.to_s
124
+ when :Integer
125
+ value.to_i
126
+ when :Float
127
+ value.to_f
128
+ when :BOOLEAN
129
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
130
+ true
131
+ else
132
+ false
133
+ end
134
+ when :Object
135
+ # generic object (usually a Hash), return directly
136
+ value
137
+ when /\AArray<(?<inner_type>.+)>\z/
138
+ inner_type = Regexp.last_match[:inner_type]
139
+ value.map { |v| _deserialize(inner_type, v) }
140
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
141
+ k_type = Regexp.last_match[:k_type]
142
+ v_type = Regexp.last_match[:v_type]
143
+ {}.tap do |hash|
144
+ value.each do |k, v|
145
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
146
+ end
147
+ end
148
+ else # model
149
+ temp_model = CyberSource.const_get(type).new
150
+ temp_model.build_from_hash(value)
151
+ end
152
+ end
153
+
154
+ # Returns the string representation of the object
155
+ # @return [String] String presentation of the object
156
+ def to_s
157
+ to_hash.to_s
158
+ end
159
+
160
+ # to_body is an alias to to_hash (backward compatibility)
161
+ # @return [Hash] Returns the object in the form of hash
162
+ def to_body
163
+ to_hash
164
+ end
165
+
166
+ # Returns the object in the form of hash
167
+ # @return [Hash] Returns the object in the form of hash
168
+ def to_hash
169
+ hash = {}
170
+ self.class.attribute_map.each_pair do |attr, param|
171
+ value = self.send(attr)
172
+ next if value.nil?
173
+ hash[param] = _to_hash(value)
174
+ end
175
+ hash
176
+ end
177
+
178
+ # Outputs non-array value in the form of hash
179
+ # For object, use to_hash. Otherwise, just return the value
180
+ # @param [Object] value Any valid value
181
+ # @return [Hash] Returns the value in the form of hash
182
+ def _to_hash(value)
183
+ if value.is_a?(Array)
184
+ value.compact.map { |v| _to_hash(v) }
185
+ elsif value.is_a?(Hash)
186
+ {}.tap do |hash|
187
+ value.each { |k, v| hash[k] = _to_hash(v) }
188
+ end
189
+ elsif value.respond_to? :to_hash
190
+ value.to_hash
191
+ else
192
+ value
193
+ end
194
+ end
195
+ end
196
+ end
@@ -15,6 +15,8 @@ module CyberSource
15
15
  class PtsV2PaymentsPost201Response1PaymentInformation
16
16
  attr_accessor :payment_type
17
17
 
18
+ attr_accessor :e_wallet
19
+
18
20
  attr_accessor :customer
19
21
 
20
22
  attr_accessor :bank
@@ -23,6 +25,7 @@ module CyberSource
23
25
  def self.attribute_map
24
26
  {
25
27
  :'payment_type' => :'paymentType',
28
+ :'e_wallet' => :'eWallet',
26
29
  :'customer' => :'customer',
27
30
  :'bank' => :'bank'
28
31
  }
@@ -32,6 +35,7 @@ module CyberSource
32
35
  def self.json_map
33
36
  {
34
37
  :'payment_type' => :'payment_type',
38
+ :'e_wallet' => :'e_wallet',
35
39
  :'customer' => :'customer',
36
40
  :'bank' => :'bank'
37
41
  }
@@ -41,6 +45,7 @@ module CyberSource
41
45
  def self.swagger_types
42
46
  {
43
47
  :'payment_type' => :'PtsV2PaymentsPost201Response1PaymentInformationPaymentType',
48
+ :'e_wallet' => :'PtsV2PaymentsPost201Response1PaymentInformationEWallet',
44
49
  :'customer' => :'Ptsv2refreshpaymentstatusidPaymentInformationCustomer',
45
50
  :'bank' => :'PtsV2PaymentsPost201Response1PaymentInformationBank'
46
51
  }
@@ -58,6 +63,10 @@ module CyberSource
58
63
  self.payment_type = attributes[:'paymentType']
59
64
  end
60
65
 
66
+ if attributes.has_key?(:'eWallet')
67
+ self.e_wallet = attributes[:'eWallet']
68
+ end
69
+
61
70
  if attributes.has_key?(:'customer')
62
71
  self.customer = attributes[:'customer']
63
72
  end
@@ -86,6 +95,7 @@ module CyberSource
86
95
  return true if self.equal?(o)
87
96
  self.class == o.class &&
88
97
  payment_type == o.payment_type &&
98
+ e_wallet == o.e_wallet &&
89
99
  customer == o.customer &&
90
100
  bank == o.bank
91
101
  end
@@ -99,7 +109,7 @@ module CyberSource
99
109
  # Calculates hash code according to all attributes.
100
110
  # @return [Fixnum] Hash code
101
111
  def hash
102
- [payment_type, customer, bank].hash
112
+ [payment_type, e_wallet, customer, bank].hash
103
113
  end
104
114
 
105
115
  # Builds the object from hash
@@ -12,40 +12,34 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- # The security option to authenticate with your API or client server.
16
- class Notificationsubscriptionsv1webhooksSecurityPolicy1
17
- # Security Policy of the client server.
18
- attr_accessor :security_type
15
+ class PtsV2PaymentsPost201Response1PaymentInformationEWallet
16
+ # Valid Values: - CreditCard - BankTransfer - MobileTransfer - KakaoMoney - NaverPayPoint
17
+ attr_accessor :name
19
18
 
20
- # Internal client proxy type to be used by security policy.
21
- attr_accessor :proxy_type
22
-
23
- attr_accessor :config
19
+ # Valid Values: - PAYCO - Kakaopay - NaverPay - SSG Pay - L.Pay - Apple Pay - TOSS Pay - Samsung Pay
20
+ attr_accessor :funding_source
24
21
 
25
22
  # Attribute mapping from ruby-style variable name to JSON key.
26
23
  def self.attribute_map
27
24
  {
28
- :'security_type' => :'securityType',
29
- :'proxy_type' => :'proxyType',
30
- :'config' => :'config'
25
+ :'name' => :'name',
26
+ :'funding_source' => :'fundingSource'
31
27
  }
32
28
  end
33
29
 
34
30
  # Attribute mapping from JSON key to ruby-style variable name.
35
31
  def self.json_map
36
32
  {
37
- :'security_type' => :'security_type',
38
- :'proxy_type' => :'proxy_type',
39
- :'config' => :'config'
33
+ :'name' => :'name',
34
+ :'funding_source' => :'funding_source'
40
35
  }
41
36
  end
42
37
 
43
38
  # Attribute type mapping.
44
39
  def self.swagger_types
45
40
  {
46
- :'security_type' => :'String',
47
- :'proxy_type' => :'String',
48
- :'config' => :'Notificationsubscriptionsv1webhooksSecurityPolicy1Config'
41
+ :'name' => :'String',
42
+ :'funding_source' => :'String'
49
43
  }
50
44
  end
51
45
 
@@ -57,16 +51,12 @@ module CyberSource
57
51
  # convert string to symbol for hash key
58
52
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
59
53
 
60
- if attributes.has_key?(:'securityType')
61
- self.security_type = attributes[:'securityType']
62
- end
63
-
64
- if attributes.has_key?(:'proxyType')
65
- self.proxy_type = attributes[:'proxyType']
54
+ if attributes.has_key?(:'name')
55
+ self.name = attributes[:'name']
66
56
  end
67
57
 
68
- if attributes.has_key?(:'config')
69
- self.config = attributes[:'config']
58
+ if attributes.has_key?(:'fundingSource')
59
+ self.funding_source = attributes[:'fundingSource']
70
60
  end
71
61
  end
72
62
 
@@ -83,14 +73,25 @@ module CyberSource
83
73
  true
84
74
  end
85
75
 
76
+ # Custom attribute writer method with validation
77
+ # @param [Object] name Value to be assigned
78
+ def name=(name)
79
+ @name = name
80
+ end
81
+
82
+ # Custom attribute writer method with validation
83
+ # @param [Object] funding_source Value to be assigned
84
+ def funding_source=(funding_source)
85
+ @funding_source = funding_source
86
+ end
87
+
86
88
  # Checks equality by comparing each attribute.
87
89
  # @param [Object] Object to be compared
88
90
  def ==(o)
89
91
  return true if self.equal?(o)
90
92
  self.class == o.class &&
91
- security_type == o.security_type &&
92
- proxy_type == o.proxy_type &&
93
- config == o.config
93
+ name == o.name &&
94
+ funding_source == o.funding_source
94
95
  end
95
96
 
96
97
  # @see the `==` method
@@ -102,7 +103,7 @@ module CyberSource
102
103
  # Calculates hash code according to all attributes.
103
104
  # @return [Fixnum] Hash code
104
105
  def hash
105
- [security_type, proxy_type, config].hash
106
+ [name, funding_source].hash
106
107
  end
107
108
 
108
109
  # Builds the object from hash
@@ -22,6 +22,12 @@ module CyberSource
22
22
  # This field is set to the value of failure reason returned by the processor.
23
23
  attr_accessor :raw_response
24
24
 
25
+ # This field is set to the value of failure reason returned by the processor in the local language of the processor.
26
+ attr_accessor :raw_response_local
27
+
28
+ # This field might contain information about a decline.
29
+ attr_accessor :response_details
30
+
25
31
  # This field is set to the value of response code returned by the processor.
26
32
  attr_accessor :response_code
27
33
 
@@ -35,6 +41,8 @@ module CyberSource
35
41
  :'transaction_id' => :'transactionId',
36
42
  :'trade_number' => :'tradeNumber',
37
43
  :'raw_response' => :'rawResponse',
44
+ :'raw_response_local' => :'rawResponseLocal',
45
+ :'response_details' => :'responseDetails',
38
46
  :'response_code' => :'responseCode',
39
47
  :'seller_protection' => :'sellerProtection',
40
48
  :'avs' => :'avs'
@@ -47,6 +55,8 @@ module CyberSource
47
55
  :'transaction_id' => :'transaction_id',
48
56
  :'trade_number' => :'trade_number',
49
57
  :'raw_response' => :'raw_response',
58
+ :'raw_response_local' => :'raw_response_local',
59
+ :'response_details' => :'response_details',
50
60
  :'response_code' => :'response_code',
51
61
  :'seller_protection' => :'seller_protection',
52
62
  :'avs' => :'avs'
@@ -59,6 +69,8 @@ module CyberSource
59
69
  :'transaction_id' => :'String',
60
70
  :'trade_number' => :'String',
61
71
  :'raw_response' => :'String',
72
+ :'raw_response_local' => :'String',
73
+ :'response_details' => :'String',
62
74
  :'response_code' => :'String',
63
75
  :'seller_protection' => :'PtsV2PaymentsPost201ResponseProcessorInformationSellerProtection',
64
76
  :'avs' => :'PtsV2PaymentsPost201Response1ProcessorInformationAvs'
@@ -85,6 +97,14 @@ module CyberSource
85
97
  self.raw_response = attributes[:'rawResponse']
86
98
  end
87
99
 
100
+ if attributes.has_key?(:'rawResponseLocal')
101
+ self.raw_response_local = attributes[:'rawResponseLocal']
102
+ end
103
+
104
+ if attributes.has_key?(:'responseDetails')
105
+ self.response_details = attributes[:'responseDetails']
106
+ end
107
+
88
108
  if attributes.has_key?(:'responseCode')
89
109
  self.response_code = attributes[:'responseCode']
90
110
  end
@@ -117,6 +137,24 @@ module CyberSource
117
137
  @transaction_id = transaction_id
118
138
  end
119
139
 
140
+ # Custom attribute writer method with validation
141
+ # @param [Object] raw_response Value to be assigned
142
+ def raw_response=(raw_response)
143
+ @raw_response = raw_response
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] raw_response_local Value to be assigned
148
+ def raw_response_local=(raw_response_local)
149
+ @raw_response_local = raw_response_local
150
+ end
151
+
152
+ # Custom attribute writer method with validation
153
+ # @param [Object] response_details Value to be assigned
154
+ def response_details=(response_details)
155
+ @response_details = response_details
156
+ end
157
+
120
158
  # Checks equality by comparing each attribute.
121
159
  # @param [Object] Object to be compared
122
160
  def ==(o)
@@ -125,6 +163,8 @@ module CyberSource
125
163
  transaction_id == o.transaction_id &&
126
164
  trade_number == o.trade_number &&
127
165
  raw_response == o.raw_response &&
166
+ raw_response_local == o.raw_response_local &&
167
+ response_details == o.response_details &&
128
168
  response_code == o.response_code &&
129
169
  seller_protection == o.seller_protection &&
130
170
  avs == o.avs
@@ -139,7 +179,7 @@ module CyberSource
139
179
  # Calculates hash code according to all attributes.
140
180
  # @return [Fixnum] Hash code
141
181
  def hash
142
- [transaction_id, trade_number, raw_response, response_code, seller_protection, avs].hash
182
+ [transaction_id, trade_number, raw_response, raw_response_local, response_details, response_code, seller_protection, avs].hash
143
183
  end
144
184
 
145
185
  # Builds the object from hash
@@ -31,6 +31,8 @@ module CyberSource
31
31
 
32
32
  attr_accessor :refund_amount_details
33
33
 
34
+ attr_accessor :processing_information
35
+
34
36
  attr_accessor :processor_information
35
37
 
36
38
  attr_accessor :order_information
@@ -47,6 +49,7 @@ module CyberSource
47
49
  :'reconciliation_id' => :'reconciliationId',
48
50
  :'client_reference_information' => :'clientReferenceInformation',
49
51
  :'refund_amount_details' => :'refundAmountDetails',
52
+ :'processing_information' => :'processingInformation',
50
53
  :'processor_information' => :'processorInformation',
51
54
  :'order_information' => :'orderInformation',
52
55
  :'point_of_sale_information' => :'pointOfSaleInformation'
@@ -63,6 +66,7 @@ module CyberSource
63
66
  :'reconciliation_id' => :'reconciliation_id',
64
67
  :'client_reference_information' => :'client_reference_information',
65
68
  :'refund_amount_details' => :'refund_amount_details',
69
+ :'processing_information' => :'processing_information',
66
70
  :'processor_information' => :'processor_information',
67
71
  :'order_information' => :'order_information',
68
72
  :'point_of_sale_information' => :'point_of_sale_information'
@@ -79,6 +83,7 @@ module CyberSource
79
83
  :'reconciliation_id' => :'String',
80
84
  :'client_reference_information' => :'PtsV2PaymentsRefundPost201ResponseClientReferenceInformation',
81
85
  :'refund_amount_details' => :'PtsV2PaymentsRefundPost201ResponseRefundAmountDetails',
86
+ :'processing_information' => :'PtsV2PaymentsCapturesPost201ResponseProcessingInformation',
82
87
  :'processor_information' => :'PtsV2PaymentsRefundPost201ResponseProcessorInformation',
83
88
  :'order_information' => :'PtsV2PaymentsRefundPost201ResponseOrderInformation',
84
89
  :'point_of_sale_information' => :'PtsV2PaymentsCapturesPost201ResponsePointOfSaleInformation'
@@ -121,6 +126,10 @@ module CyberSource
121
126
  self.refund_amount_details = attributes[:'refundAmountDetails']
122
127
  end
123
128
 
129
+ if attributes.has_key?(:'processingInformation')
130
+ self.processing_information = attributes[:'processingInformation']
131
+ end
132
+
124
133
  if attributes.has_key?(:'processorInformation')
125
134
  self.processor_information = attributes[:'processorInformation']
126
135
  end
@@ -171,6 +180,7 @@ module CyberSource
171
180
  reconciliation_id == o.reconciliation_id &&
172
181
  client_reference_information == o.client_reference_information &&
173
182
  refund_amount_details == o.refund_amount_details &&
183
+ processing_information == o.processing_information &&
174
184
  processor_information == o.processor_information &&
175
185
  order_information == o.order_information &&
176
186
  point_of_sale_information == o.point_of_sale_information
@@ -185,7 +195,7 @@ module CyberSource
185
195
  # Calculates hash code according to all attributes.
186
196
  # @return [Fixnum] Hash code
187
197
  def hash
188
- [_links, id, submit_time_utc, status, reconciliation_id, client_reference_information, refund_amount_details, processor_information, order_information, point_of_sale_information].hash
198
+ [_links, id, submit_time_utc, status, reconciliation_id, client_reference_information, refund_amount_details, processing_information, processor_information, order_information, point_of_sale_information].hash
189
199
  end
190
200
 
191
201
  # Builds the object from hash
@@ -122,7 +122,7 @@ module CyberSource
122
122
  # This field is used identify the type of payment transaction taking place. This field is applicable for MasterCard transactions only. Possible values: - 201- Mastercard Rebate - 202- rePower Load Value - 203- Gaming Re-pay - 204- General Person-to-Person - 205- General Transfer to Own Account - 206- Agent Cash Out - 207- Payment of Own Credit Card Bill - 208- Business Disbursement - 209- Government/Non-Profit Disbursement - 210- Rapid Merchant Settlement - 211- Cash in at ATM (Usage limited to specific countries) - 212- Cash in at Point of Sale (Usage limited to specific countries) - 213- General Business to Business Transfer - 214- Mastercard Merchant Presented QR - 215- Mastercard Merchant Presented QR Refund Payment - 216- Utility Payments (for Brazil domestic use only) - 217- Government Services (for Brazil domestic use only) - 218- Mobile phone top-ups (for Brazil domestic use only) - 219- Coupon booklet payments (for Brazil domestic use only) - 220- General Person-to-Person Transfer - 221- Person-to-Person Transfer to Card Account - 222- General Transfer to Own Account - 223- Agent Cash Out - 224- Payment of Own Credit Card Bill - 225- Business Disbursement - 226- Transfer to Own Staged Digital Wallet Account - 227- Transfer to Own Debit or Prepaid Account - 228- General Business-to-Business Transfer - 229- Installment-based repayment - 230- Mastercard ATM Cash Pick-Up Transaction - 231- Cryptocurrency - 232- High-risk Securities
123
123
  attr_accessor :transaction_type_indicator
124
124
 
125
- # Possible values: - `16` : High Risk Security Other values can also be accommodated in future for different transactions. Currently this field is only used in OCT, we could not find any existing valid values for the past 30 days in production. Issuer may decline invalid purpose of payment code with response code 93. This field is also applicable for AFT transactions. For list of supported values, please refer to Developer Guide.
125
+ # This field is applicable for AFT and OCT transactions. For list of supported values, please refer to Developer Guide.
126
126
  attr_accessor :purpose_of_payment
127
127
 
128
128
  # Contains the ISO 639-2 defined language Code
@@ -30,7 +30,7 @@ module CyberSource
30
30
  # Transaction reason code.
31
31
  attr_accessor :transaction_reason
32
32
 
33
- # This will send purpose of funds code for original credit transactions (OCTs).
33
+ # This field is applicable for AFT and OCT transactions. For list of supported values, please refer to Developer Guide.
34
34
  attr_accessor :purpose_of_payment
35
35
 
36
36
  attr_accessor :funding_options
@@ -13,25 +13,25 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class Ptsv2payoutsRecipientInformation
16
- # First name of recipient. characters. * CTV (14) * Paymentech (30)
16
+ # First name of the recipient. This field is applicable for AFT & OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to sent to the processor.
17
17
  attr_accessor :first_name
18
18
 
19
- # Recipient's middle name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor.
19
+ # Middle name of the recipient. This field is applicable for AFT & OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to sent to the processor.
20
20
  attr_accessor :middle_name
21
21
 
22
- # Last name of recipient. characters. * CTV (14) * Paymentech (30)
22
+ # Last name of the recipient. This field is applicable for AFT & OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to sent to the processor.
23
23
  attr_accessor :last_name
24
24
 
25
- # Recipient address information. Required only for FDCCompass.
25
+ # The street address of the recipient This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set are not supported and will be stripped before being sent to sent to the processor.
26
26
  attr_accessor :address1
27
27
 
28
- # Recipient city. Required only for FDCCompass.
28
+ # The city of the recipient. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set are not supported and will be stripped before being sent to sent to the processor.
29
29
  attr_accessor :locality
30
30
 
31
- # Recipient State. Required only for FDCCompass.
31
+ # The state or province of the recipient. This field is applicable for AFT and OCT transactions when the recipient country is US or CA. Else it is optional. Must be a two character value
32
32
  attr_accessor :administrative_area
33
33
 
34
- # Recipient country code. Required only for FDCCompass.
34
+ # The country associated with the address of the recipient. This field is applicable for AFT and OCT transactions. Must be a two character ISO country code. For example, see [ISO Country Code](https://developer.cybersource.com/docs/cybs/en-us/country-codes/reference/all/na/country-codes/country-codes.html)
35
35
  attr_accessor :country
36
36
 
37
37
  # Recipient postal code. Required only for FDCCompass.
@@ -18,16 +18,16 @@ module CyberSource
18
18
 
19
19
  attr_accessor :account
20
20
 
21
- # First name of sender (Optional). * CTV (14) * Paymentech (30)
21
+ # First name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported.Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to the processor.
22
22
  attr_accessor :first_name
23
23
 
24
24
  # Recipient middle initial (Optional).
25
25
  attr_accessor :middle_initial
26
26
 
27
- # Sender's middle name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor.
27
+ # Middle name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to sent to the processor.
28
28
  attr_accessor :middle_name
29
29
 
30
- # Recipient last name (Optional). * CTV (14) * Paymentech (30)
30
+ # Last name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to sent to the processor.
31
31
  attr_accessor :last_name
32
32
 
33
33
  # Name of sender. **Funds Disbursement** This value is the name of the originator sending the funds disbursement. * CTV, Paymentech (30)
@@ -16,7 +16,7 @@ module CyberSource
16
16
  # Source of funds. Possible values: Paymentech, CTV, FDC Compass: - 01: Credit card - 02: Debit card - 03: Prepaid card Paymentech, CTV - - 04: Cash - 05: Debit or deposit account that is not linked to a Visa card. Includes checking accounts, savings accounts, and proprietary debit or ATM cards. - 06: Credit account that is not linked to a Visa card. Includes credit cards and proprietary lines of credit. FDCCompass - - 04: Deposit Account **Funds Disbursement** This value is most likely 05 to identify that the originator used a deposit account to fund the disbursement. **Credit Card Bill Payment** This value must be 02, 03, 04, or 05.
17
17
  attr_accessor :funds_source
18
18
 
19
- # The account number of the entity funding the transaction. It is the sender's account number. It can be a debit/credit card account number or bank account number. **Funds disbursements** This field is optional. **All other transactions** This field is required when the sender funds the transaction with a financial instrument, for example debit card. Length: * FDCCompass (<= 19) * Paymentech (<= 16)
19
+ # The account number of the entity funding the transaction. It is the sender's account number. It can be a debit/credit card account number or bank account number. **Funds disbursements and OCT transactions** This field is optional. **All other transactions** This field is required when the sender funds the transaction with a financial instrument, for example debit card. Length: * FDCCompass (<= 19) * Paymentech (<= 16)
20
20
  attr_accessor :number
21
21
 
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -72,22 +72,12 @@ module CyberSource
72
72
  # @return Array for valid properties with the reasons
73
73
  def list_invalid_properties
74
74
  invalid_properties = Array.new
75
- if @client_request_action.nil?
76
- invalid_properties.push('invalid value for "client_request_action", client_request_action cannot be nil.')
77
- end
78
-
79
- if @key_information.nil?
80
- invalid_properties.push('invalid value for "key_information", key_information cannot be nil.')
81
- end
82
-
83
75
  invalid_properties
84
76
  end
85
77
 
86
78
  # Check to see if the all the properties in the model are valid
87
79
  # @return true if the model is valid
88
80
  def valid?
89
- return false if @client_request_action.nil?
90
- return false if @key_information.nil?
91
81
  true
92
82
  end
93
83
 
@@ -72,22 +72,12 @@ module CyberSource
72
72
  # @return Array for valid properties with the reasons
73
73
  def list_invalid_properties
74
74
  invalid_properties = Array.new
75
- if @client_request_action.nil?
76
- invalid_properties.push('invalid value for "client_request_action", client_request_action cannot be nil.')
77
- end
78
-
79
- if @key_information.nil?
80
- invalid_properties.push('invalid value for "key_information", key_information cannot be nil.')
81
- end
82
-
83
75
  invalid_properties
84
76
  end
85
77
 
86
78
  # Check to see if the all the properties in the model are valid
87
79
  # @return true if the model is valid
88
80
  def valid?
89
- return false if @client_request_action.nil?
90
- return false if @key_information.nil?
91
81
  true
92
82
  end
93
83