cybersource_rest_client 0.0.40 → 0.0.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/logging/sensitive_logging.rb +7 -4
  3. data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +223 -219
  4. data/lib/cybersource_rest_client/api/chargeback_details_api.rb +116 -112
  5. data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +116 -112
  6. data/lib/cybersource_rest_client/api/conversion_details_api.rb +5 -1
  7. data/lib/cybersource_rest_client/api/customer_api.rb +368 -360
  8. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +530 -518
  9. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +530 -518
  10. data/lib/cybersource_rest_client/api/download_dtd_api.rb +92 -88
  11. data/lib/cybersource_rest_client/api/download_xsd_api.rb +92 -88
  12. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +15 -3
  13. data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +116 -112
  14. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +152 -148
  15. data/lib/cybersource_rest_client/api/invoices_api.rb +447 -431
  16. data/lib/cybersource_rest_client/api/net_fundings_api.rb +5 -1
  17. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +5 -1
  18. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +219 -219
  19. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +133 -129
  20. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +10 -2
  21. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +5 -1
  22. data/lib/cybersource_rest_client/api/report_definitions_api.rb +10 -2
  23. data/lib/cybersource_rest_client/api/report_downloads_api.rb +5 -1
  24. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +15 -3
  25. data/lib/cybersource_rest_client/api/reports_api.rb +10 -2
  26. data/lib/cybersource_rest_client/api/retrieval_details_api.rb +116 -112
  27. data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +116 -112
  28. data/lib/cybersource_rest_client/api/search_transactions_api.rb +5 -1
  29. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +206 -198
  30. data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +5 -1
  31. data/lib/cybersource_rest_client/api/taxes_api.rb +160 -160
  32. data/lib/cybersource_rest_client/api/tokenization_api.rb +89 -89
  33. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +15 -3
  34. data/lib/cybersource_rest_client/api/transaction_details_api.rb +5 -1
  35. data/lib/cybersource_rest_client/api/user_management_api.rb +5 -1
  36. data/lib/cybersource_rest_client/api/user_management_search_api.rb +89 -89
  37. data/lib/cybersource_rest_client/api/verification_api.rb +154 -154
  38. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +20 -4
  39. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +20 -4
  40. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +20 -4
  41. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +11 -1
  42. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +20 -4
  43. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
  44. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +20 -4
  45. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +21 -7
  46. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +17 -1
  47. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +13 -4
  48. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information_authorization_options.rb +190 -0
  49. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +0 -2
  50. data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_order_information.rb +183 -0
  51. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information.rb +14 -4
  52. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +13 -4
  53. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options.rb +183 -0
  54. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options_initiator.rb +190 -0
  55. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +52 -4
  56. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
  57. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
  58. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
  59. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  60. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +1 -1
  61. data/lib/cybersource_rest_client/models/void_capture_request.rb +13 -4
  62. data/lib/cybersource_rest_client/models/void_credit_request.rb +13 -4
  63. data/lib/cybersource_rest_client/models/void_payment_request.rb +13 -4
  64. data/lib/cybersource_rest_client/models/void_refund_request.rb +13 -4
  65. data/lib/cybersource_rest_client.rb +4 -0
  66. metadata +7 -3
@@ -0,0 +1,190 @@
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 Ptsv2payoutsProcessingInformationFundingOptionsInitiator
17
+ # #### Visa Platform Connect : This API will contain a code that denotes whether the customer identification data belongs to the sender or the recipient. The valid values are: • S (Payer (sender)) • R (Payee (recipient))
18
+ attr_accessor :type
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'type' => :'type'
24
+ }
25
+ end
26
+
27
+ # Attribute type mapping.
28
+ def self.swagger_types
29
+ {
30
+ :'type' => :'String'
31
+ }
32
+ end
33
+
34
+ # Initializes the object
35
+ # @param [Hash] attributes Model attributes in the form of hash
36
+ def initialize(attributes = {})
37
+ return unless attributes.is_a?(Hash)
38
+
39
+ # convert string to symbol for hash key
40
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
41
+
42
+ if attributes.has_key?(:'type')
43
+ self.type = attributes[:'type']
44
+ end
45
+ end
46
+
47
+ # Show invalid properties with the reasons. Usually used together with valid?
48
+ # @return Array for valid properties with the reasons
49
+ def list_invalid_properties
50
+ invalid_properties = Array.new
51
+ invalid_properties
52
+ end
53
+
54
+ # Check to see if the all the properties in the model are valid
55
+ # @return true if the model is valid
56
+ def valid?
57
+ true
58
+ end
59
+
60
+ # Custom attribute writer method with validation
61
+ # @param [Object] type Value to be assigned
62
+ def type=(type)
63
+ @type = type
64
+ end
65
+
66
+ # Checks equality by comparing each attribute.
67
+ # @param [Object] Object to be compared
68
+ def ==(o)
69
+ return true if self.equal?(o)
70
+ self.class == o.class &&
71
+ type == o.type
72
+ end
73
+
74
+ # @see the `==` method
75
+ # @param [Object] Object to be compared
76
+ def eql?(o)
77
+ self == o
78
+ end
79
+
80
+ # Calculates hash code according to all attributes.
81
+ # @return [Fixnum] Hash code
82
+ def hash
83
+ [type].hash
84
+ end
85
+
86
+ # Builds the object from hash
87
+ # @param [Hash] attributes Model attributes in the form of hash
88
+ # @return [Object] Returns the model itself
89
+ def build_from_hash(attributes)
90
+ return nil unless attributes.is_a?(Hash)
91
+ self.class.swagger_types.each_pair do |key, type|
92
+ if type =~ /\AArray<(.*)>/i
93
+ # check to ensure the input is an array given that the the attribute
94
+ # is documented as an array but the input is not
95
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
96
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
97
+ end
98
+ elsif !attributes[self.class.attribute_map[key]].nil?
99
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
100
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
101
+ end
102
+
103
+ self
104
+ end
105
+
106
+ # Deserializes the data based on type
107
+ # @param string type Data type
108
+ # @param string value Value to be deserialized
109
+ # @return [Object] Deserialized data
110
+ def _deserialize(type, value)
111
+ case type.to_sym
112
+ when :DateTime
113
+ DateTime.parse(value)
114
+ when :Date
115
+ Date.parse(value)
116
+ when :String
117
+ value.to_s
118
+ when :Integer
119
+ value.to_i
120
+ when :Float
121
+ value.to_f
122
+ when :BOOLEAN
123
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
124
+ true
125
+ else
126
+ false
127
+ end
128
+ when :Object
129
+ # generic object (usually a Hash), return directly
130
+ value
131
+ when /\AArray<(?<inner_type>.+)>\z/
132
+ inner_type = Regexp.last_match[:inner_type]
133
+ value.map { |v| _deserialize(inner_type, v) }
134
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
135
+ k_type = Regexp.last_match[:k_type]
136
+ v_type = Regexp.last_match[:v_type]
137
+ {}.tap do |hash|
138
+ value.each do |k, v|
139
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
140
+ end
141
+ end
142
+ else # model
143
+ temp_model = CyberSource.const_get(type).new
144
+ temp_model.build_from_hash(value)
145
+ end
146
+ end
147
+
148
+ # Returns the string representation of the object
149
+ # @return [String] String presentation of the object
150
+ def to_s
151
+ to_hash.to_s
152
+ end
153
+
154
+ # to_body is an alias to to_hash (backward compatibility)
155
+ # @return [Hash] Returns the object in the form of hash
156
+ def to_body
157
+ to_hash
158
+ end
159
+
160
+ # Returns the object in the form of hash
161
+ # @return [Hash] Returns the object in the form of hash
162
+ def to_hash
163
+ hash = {}
164
+ self.class.attribute_map.each_pair do |attr, param|
165
+ value = self.send(attr)
166
+ next if value.nil?
167
+ hash[param] = _to_hash(value)
168
+ end
169
+ hash
170
+ end
171
+
172
+ # Outputs non-array value in the form of hash
173
+ # For object, use to_hash. Otherwise, just return the value
174
+ # @param [Object] value Any valid value
175
+ # @return [Hash] Returns the value in the form of hash
176
+ def _to_hash(value)
177
+ if value.is_a?(Array)
178
+ value.compact.map { |v| _to_hash(v) }
179
+ elsif value.is_a?(Hash)
180
+ {}.tap do |hash|
181
+ value.each { |k, v| hash[k] = _to_hash(v) }
182
+ end
183
+ elsif value.respond_to? :to_hash
184
+ value.to_hash
185
+ else
186
+ value
187
+ end
188
+ end
189
+ end
190
+ end
@@ -58,6 +58,15 @@ module CyberSource
58
58
  # Customer's government-assigned tax identification number.
59
59
  attr_accessor :vat_registration_number
60
60
 
61
+ # #### Visa Platform Connect This tag will contain the type of sender identification. The valid values are: • BTHD (Date of birth) • CUID (Customer identification (unspecified)) • NTID (National identification) • PASN (Passport number) • DRLN (Driver license) • TXIN (Tax identification) • CPNY (Company registration number) • PRXY (Proxy identification) • SSNB (Social security number) • ARNB (Alien registration number) • LAWE (Law enforcement identification) • MILI (Military identification) • TRVL (Travel identification (non-passport)) • EMAL (Email) • PHON (Phone number)
62
+ attr_accessor :personal_id_type
63
+
64
+ # #### Visa Platform Connect This tag will denote whether the tax ID is a business or individual tax ID when personal ID Type contains the value of TXIN (Tax identification). The valid values are: • B (Business) • I (Individual)
65
+ attr_accessor :type
66
+
67
+ # #### Visa Platform Connect This tag will contain an acquirer-populated value associated with the API : senderInformation.personalIdType which will identify the personal ID type of the sender.
68
+ attr_accessor :identification_number
69
+
61
70
  # Attribute mapping from ruby-style variable name to JSON key.
62
71
  def self.attribute_map
63
72
  {
@@ -75,7 +84,10 @@ module CyberSource
75
84
  :'postal_code' => :'postalCode',
76
85
  :'phone_number' => :'phoneNumber',
77
86
  :'date_of_birth' => :'dateOfBirth',
78
- :'vat_registration_number' => :'vatRegistrationNumber'
87
+ :'vat_registration_number' => :'vatRegistrationNumber',
88
+ :'personal_id_type' => :'personalIdType',
89
+ :'type' => :'type',
90
+ :'identification_number' => :'identificationNumber'
79
91
  }
80
92
  end
81
93
 
@@ -96,7 +108,10 @@ module CyberSource
96
108
  :'postal_code' => :'String',
97
109
  :'phone_number' => :'String',
98
110
  :'date_of_birth' => :'String',
99
- :'vat_registration_number' => :'String'
111
+ :'vat_registration_number' => :'String',
112
+ :'personal_id_type' => :'String',
113
+ :'type' => :'String',
114
+ :'identification_number' => :'String'
100
115
  }
101
116
  end
102
117
 
@@ -167,6 +182,18 @@ module CyberSource
167
182
  if attributes.has_key?(:'vatRegistrationNumber')
168
183
  self.vat_registration_number = attributes[:'vatRegistrationNumber']
169
184
  end
185
+
186
+ if attributes.has_key?(:'personalIdType')
187
+ self.personal_id_type = attributes[:'personalIdType']
188
+ end
189
+
190
+ if attributes.has_key?(:'type')
191
+ self.type = attributes[:'type']
192
+ end
193
+
194
+ if attributes.has_key?(:'identificationNumber')
195
+ self.identification_number = attributes[:'identificationNumber']
196
+ end
170
197
  end
171
198
 
172
199
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -266,6 +293,24 @@ module CyberSource
266
293
  @vat_registration_number = vat_registration_number
267
294
  end
268
295
 
296
+ # Custom attribute writer method with validation
297
+ # @param [Object] personal_id_type Value to be assigned
298
+ def personal_id_type=(personal_id_type)
299
+ @personal_id_type = personal_id_type
300
+ end
301
+
302
+ # Custom attribute writer method with validation
303
+ # @param [Object] type Value to be assigned
304
+ def type=(type)
305
+ @type = type
306
+ end
307
+
308
+ # Custom attribute writer method with validation
309
+ # @param [Object] identification_number Value to be assigned
310
+ def identification_number=(identification_number)
311
+ @identification_number = identification_number
312
+ end
313
+
269
314
  # Checks equality by comparing each attribute.
270
315
  # @param [Object] Object to be compared
271
316
  def ==(o)
@@ -285,7 +330,10 @@ module CyberSource
285
330
  postal_code == o.postal_code &&
286
331
  phone_number == o.phone_number &&
287
332
  date_of_birth == o.date_of_birth &&
288
- vat_registration_number == o.vat_registration_number
333
+ vat_registration_number == o.vat_registration_number &&
334
+ personal_id_type == o.personal_id_type &&
335
+ type == o.type &&
336
+ identification_number == o.identification_number
289
337
  end
290
338
 
291
339
  # @see the `==` method
@@ -297,7 +345,7 @@ module CyberSource
297
345
  # Calculates hash code according to all attributes.
298
346
  # @return [Fixnum] Hash code
299
347
  def hash
300
- [reference_number, account, first_name, middle_initial, middle_name, last_name, name, address1, locality, administrative_area, country_code, postal_code, phone_number, date_of_birth, vat_registration_number].hash
348
+ [reference_number, account, first_name, middle_initial, middle_name, last_name, name, address1, locality, administrative_area, country_code, postal_code, phone_number, date_of_birth, vat_registration_number, personal_id_type, type, identification_number].hash
301
349
  end
302
350
 
303
351
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Riskv1authenticationresultsPaymentInformationTokenizedCard
17
- # Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
17
+ # Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
18
18
  attr_accessor :transaction_type
19
19
 
20
20
  # Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Riskv1authenticationsPaymentInformationTokenizedCard
17
- # Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
17
+ # Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
18
18
  attr_accessor :transaction_type
19
19
 
20
20
  # Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Riskv1authenticationsetupsPaymentInformationTokenizedCard
17
- # Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
17
+ # Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
18
18
  attr_accessor :transaction_type
19
19
 
20
20
  # Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
@@ -15,7 +15,7 @@ require 'date'
15
15
  module CyberSource
16
16
  # Use this object to submit a payment network token instead of card-based values.
17
17
  class Riskv1decisionsPaymentInformationTokenizedCard
18
- # Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
18
+ # Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. #### Visa Platform Connect - `1`: In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
19
19
  attr_accessor :transaction_type
20
20
 
21
21
  # Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
@@ -56,7 +56,7 @@ module CyberSource
56
56
  :'authorized_amount' => :'String',
57
57
  :'settlement_amount' => :'String',
58
58
  :'settlement_currency' => :'String',
59
- :'surcharge' => :'Ptsv2paymentsOrderInformationAmountDetailsSurcharge'
59
+ :'surcharge' => :'Ptsv2payoutsOrderInformationAmountDetailsSurcharge'
60
60
  }
61
61
  end
62
62
 
@@ -18,11 +18,14 @@ module CyberSource
18
18
 
19
19
  attr_accessor :payment_information
20
20
 
21
+ attr_accessor :order_information
22
+
21
23
  # Attribute mapping from ruby-style variable name to JSON key.
22
24
  def self.attribute_map
23
25
  {
24
26
  :'client_reference_information' => :'clientReferenceInformation',
25
- :'payment_information' => :'paymentInformation'
27
+ :'payment_information' => :'paymentInformation',
28
+ :'order_information' => :'orderInformation'
26
29
  }
27
30
  end
28
31
 
@@ -30,7 +33,8 @@ module CyberSource
30
33
  def self.swagger_types
31
34
  {
32
35
  :'client_reference_information' => :'Ptsv2paymentsidreversalsClientReferenceInformation',
33
- :'payment_information' => :'Ptsv2paymentsidvoidsPaymentInformation'
36
+ :'payment_information' => :'Ptsv2paymentsidvoidsPaymentInformation',
37
+ :'order_information' => :'Ptsv2paymentsidvoidsOrderInformation'
34
38
  }
35
39
  end
36
40
 
@@ -49,6 +53,10 @@ module CyberSource
49
53
  if attributes.has_key?(:'paymentInformation')
50
54
  self.payment_information = attributes[:'paymentInformation']
51
55
  end
56
+
57
+ if attributes.has_key?(:'orderInformation')
58
+ self.order_information = attributes[:'orderInformation']
59
+ end
52
60
  end
53
61
 
54
62
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -70,7 +78,8 @@ module CyberSource
70
78
  return true if self.equal?(o)
71
79
  self.class == o.class &&
72
80
  client_reference_information == o.client_reference_information &&
73
- payment_information == o.payment_information
81
+ payment_information == o.payment_information &&
82
+ order_information == o.order_information
74
83
  end
75
84
 
76
85
  # @see the `==` method
@@ -82,7 +91,7 @@ module CyberSource
82
91
  # Calculates hash code according to all attributes.
83
92
  # @return [Fixnum] Hash code
84
93
  def hash
85
- [client_reference_information, payment_information].hash
94
+ [client_reference_information, payment_information, order_information].hash
86
95
  end
87
96
 
88
97
  # Builds the object from hash
@@ -18,11 +18,14 @@ module CyberSource
18
18
 
19
19
  attr_accessor :payment_information
20
20
 
21
+ attr_accessor :order_information
22
+
21
23
  # Attribute mapping from ruby-style variable name to JSON key.
22
24
  def self.attribute_map
23
25
  {
24
26
  :'client_reference_information' => :'clientReferenceInformation',
25
- :'payment_information' => :'paymentInformation'
27
+ :'payment_information' => :'paymentInformation',
28
+ :'order_information' => :'orderInformation'
26
29
  }
27
30
  end
28
31
 
@@ -30,7 +33,8 @@ module CyberSource
30
33
  def self.swagger_types
31
34
  {
32
35
  :'client_reference_information' => :'Ptsv2paymentsidreversalsClientReferenceInformation',
33
- :'payment_information' => :'Ptsv2paymentsidvoidsPaymentInformation'
36
+ :'payment_information' => :'Ptsv2paymentsidvoidsPaymentInformation',
37
+ :'order_information' => :'Ptsv2paymentsidvoidsOrderInformation'
34
38
  }
35
39
  end
36
40
 
@@ -49,6 +53,10 @@ module CyberSource
49
53
  if attributes.has_key?(:'paymentInformation')
50
54
  self.payment_information = attributes[:'paymentInformation']
51
55
  end
56
+
57
+ if attributes.has_key?(:'orderInformation')
58
+ self.order_information = attributes[:'orderInformation']
59
+ end
52
60
  end
53
61
 
54
62
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -70,7 +78,8 @@ module CyberSource
70
78
  return true if self.equal?(o)
71
79
  self.class == o.class &&
72
80
  client_reference_information == o.client_reference_information &&
73
- payment_information == o.payment_information
81
+ payment_information == o.payment_information &&
82
+ order_information == o.order_information
74
83
  end
75
84
 
76
85
  # @see the `==` method
@@ -82,7 +91,7 @@ module CyberSource
82
91
  # Calculates hash code according to all attributes.
83
92
  # @return [Fixnum] Hash code
84
93
  def hash
85
- [client_reference_information, payment_information].hash
94
+ [client_reference_information, payment_information, order_information].hash
86
95
  end
87
96
 
88
97
  # Builds the object from hash
@@ -18,11 +18,14 @@ module CyberSource
18
18
 
19
19
  attr_accessor :payment_information
20
20
 
21
+ attr_accessor :order_information
22
+
21
23
  # Attribute mapping from ruby-style variable name to JSON key.
22
24
  def self.attribute_map
23
25
  {
24
26
  :'client_reference_information' => :'clientReferenceInformation',
25
- :'payment_information' => :'paymentInformation'
27
+ :'payment_information' => :'paymentInformation',
28
+ :'order_information' => :'orderInformation'
26
29
  }
27
30
  end
28
31
 
@@ -30,7 +33,8 @@ module CyberSource
30
33
  def self.swagger_types
31
34
  {
32
35
  :'client_reference_information' => :'Ptsv2paymentsidreversalsClientReferenceInformation',
33
- :'payment_information' => :'Ptsv2paymentsidvoidsPaymentInformation'
36
+ :'payment_information' => :'Ptsv2paymentsidvoidsPaymentInformation',
37
+ :'order_information' => :'Ptsv2paymentsidvoidsOrderInformation'
34
38
  }
35
39
  end
36
40
 
@@ -49,6 +53,10 @@ module CyberSource
49
53
  if attributes.has_key?(:'paymentInformation')
50
54
  self.payment_information = attributes[:'paymentInformation']
51
55
  end
56
+
57
+ if attributes.has_key?(:'orderInformation')
58
+ self.order_information = attributes[:'orderInformation']
59
+ end
52
60
  end
53
61
 
54
62
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -70,7 +78,8 @@ module CyberSource
70
78
  return true if self.equal?(o)
71
79
  self.class == o.class &&
72
80
  client_reference_information == o.client_reference_information &&
73
- payment_information == o.payment_information
81
+ payment_information == o.payment_information &&
82
+ order_information == o.order_information
74
83
  end
75
84
 
76
85
  # @see the `==` method
@@ -82,7 +91,7 @@ module CyberSource
82
91
  # Calculates hash code according to all attributes.
83
92
  # @return [Fixnum] Hash code
84
93
  def hash
85
- [client_reference_information, payment_information].hash
94
+ [client_reference_information, payment_information, order_information].hash
86
95
  end
87
96
 
88
97
  # Builds the object from hash
@@ -18,11 +18,14 @@ module CyberSource
18
18
 
19
19
  attr_accessor :payment_information
20
20
 
21
+ attr_accessor :order_information
22
+
21
23
  # Attribute mapping from ruby-style variable name to JSON key.
22
24
  def self.attribute_map
23
25
  {
24
26
  :'client_reference_information' => :'clientReferenceInformation',
25
- :'payment_information' => :'paymentInformation'
27
+ :'payment_information' => :'paymentInformation',
28
+ :'order_information' => :'orderInformation'
26
29
  }
27
30
  end
28
31
 
@@ -30,7 +33,8 @@ module CyberSource
30
33
  def self.swagger_types
31
34
  {
32
35
  :'client_reference_information' => :'Ptsv2paymentsidreversalsClientReferenceInformation',
33
- :'payment_information' => :'Ptsv2paymentsidvoidsPaymentInformation'
36
+ :'payment_information' => :'Ptsv2paymentsidvoidsPaymentInformation',
37
+ :'order_information' => :'Ptsv2paymentsidvoidsOrderInformation'
34
38
  }
35
39
  end
36
40
 
@@ -49,6 +53,10 @@ module CyberSource
49
53
  if attributes.has_key?(:'paymentInformation')
50
54
  self.payment_information = attributes[:'paymentInformation']
51
55
  end
56
+
57
+ if attributes.has_key?(:'orderInformation')
58
+ self.order_information = attributes[:'orderInformation']
59
+ end
52
60
  end
53
61
 
54
62
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -70,7 +78,8 @@ module CyberSource
70
78
  return true if self.equal?(o)
71
79
  self.class == o.class &&
72
80
  client_reference_information == o.client_reference_information &&
73
- payment_information == o.payment_information
81
+ payment_information == o.payment_information &&
82
+ order_information == o.order_information
74
83
  end
75
84
 
76
85
  # @see the `==` method
@@ -82,7 +91,7 @@ module CyberSource
82
91
  # Calculates hash code according to all attributes.
83
92
  # @return [Fixnum] Hash code
84
93
  def hash
85
- [client_reference_information, payment_information].hash
94
+ [client_reference_information, payment_information, order_information].hash
86
95
  end
87
96
 
88
97
  # Builds the object from hash
@@ -339,6 +339,7 @@ require 'cybersource_rest_client/models/ptsv2payments_processing_information_loa
339
339
  require 'cybersource_rest_client/models/ptsv2payments_processing_information_purchase_options'
340
340
  require 'cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options'
341
341
  require 'cybersource_rest_client/models/ptsv2payments_processor_information'
342
+ require 'cybersource_rest_client/models/ptsv2payments_processor_information_authorization_options'
342
343
  require 'cybersource_rest_client/models/ptsv2payments_promotion_information'
343
344
  require 'cybersource_rest_client/models/ptsv2payments_recipient_information'
344
345
  require 'cybersource_rest_client/models/ptsv2payments_recurring_payment_information'
@@ -412,6 +413,7 @@ require 'cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_i
412
413
  require 'cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information'
413
414
  require 'cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information'
414
415
  require 'cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details'
416
+ require 'cybersource_rest_client/models/ptsv2paymentsidvoids_order_information'
415
417
  require 'cybersource_rest_client/models/ptsv2paymentsidvoids_payment_information'
416
418
  require 'cybersource_rest_client/models/ptsv2payouts_client_reference_information'
417
419
  require 'cybersource_rest_client/models/ptsv2payouts_merchant_information'
@@ -423,6 +425,8 @@ require 'cybersource_rest_client/models/ptsv2payouts_order_information_bill_to'
423
425
  require 'cybersource_rest_client/models/ptsv2payouts_payment_information'
424
426
  require 'cybersource_rest_client/models/ptsv2payouts_payment_information_card'
425
427
  require 'cybersource_rest_client/models/ptsv2payouts_processing_information'
428
+ require 'cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options'
429
+ require 'cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options_initiator'
426
430
  require 'cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options'
427
431
  require 'cybersource_rest_client/models/ptsv2payouts_recipient_information'
428
432
  require 'cybersource_rest_client/models/ptsv2payouts_sender_information'