cybersource_rest_client 0.0.36 → 0.0.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/http/GetSignatureParameter.rb +13 -6
  3. data/lib/AuthenticationSDK/authentication/http/HttpSignatureHeader.rb +13 -5
  4. data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +26 -11
  5. data/lib/AuthenticationSDK/authentication/oauth/OAuthToken.rb +11 -5
  6. data/lib/AuthenticationSDK/authentication/payloadDigest/digest.rb +2 -2
  7. data/lib/AuthenticationSDK/core/Authorization.rb +28 -20
  8. data/lib/AuthenticationSDK/core/MerchantConfig.rb +72 -78
  9. data/lib/AuthenticationSDK/logging/log_configuration.rb +71 -0
  10. data/lib/AuthenticationSDK/logging/log_factory.rb +65 -0
  11. data/lib/AuthenticationSDK/logging/sensitive_logging.rb +101 -0
  12. data/lib/AuthenticationSDK/util/Cache.rb +1 -1
  13. data/lib/AuthenticationSDK/util/Constants.rb +25 -17
  14. data/lib/AuthenticationSDK/util/ExceptionHandler.rb +26 -0
  15. data/lib/AuthenticationSDK/util/PropertiesUtil.rb +2 -2
  16. data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +46 -46
  17. data/lib/cybersource_rest_client/api/capture_api.rb +16 -16
  18. data/lib/cybersource_rest_client/api/chargeback_details_api.rb +16 -16
  19. data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +16 -16
  20. data/lib/cybersource_rest_client/api/conversion_details_api.rb +16 -16
  21. data/lib/cybersource_rest_client/api/credit_api.rb +16 -16
  22. data/lib/cybersource_rest_client/api/customer_api.rb +61 -61
  23. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +76 -76
  24. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +76 -76
  25. data/lib/cybersource_rest_client/api/decision_manager_api.rb +46 -46
  26. data/lib/cybersource_rest_client/api/download_dtd_api.rb +16 -16
  27. data/lib/cybersource_rest_client/api/download_xsd_api.rb +16 -16
  28. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +91 -91
  29. data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +16 -16
  30. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +31 -31
  31. data/lib/cybersource_rest_client/api/invoices_api.rb +97 -97
  32. data/lib/cybersource_rest_client/api/key_generation_api.rb +16 -16
  33. data/lib/cybersource_rest_client/api/net_fundings_api.rb +16 -16
  34. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +16 -16
  35. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +46 -46
  36. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +16 -16
  37. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +61 -61
  38. data/lib/cybersource_rest_client/api/payments_api.rb +33 -33
  39. data/lib/cybersource_rest_client/api/payouts_api.rb +16 -16
  40. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +16 -16
  41. data/lib/cybersource_rest_client/api/refund_api.rb +31 -31
  42. data/lib/cybersource_rest_client/api/report_definitions_api.rb +31 -31
  43. data/lib/cybersource_rest_client/api/report_downloads_api.rb +16 -16
  44. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +76 -76
  45. data/lib/cybersource_rest_client/api/reports_api.rb +46 -46
  46. data/lib/cybersource_rest_client/api/retrieval_details_api.rb +16 -16
  47. data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +16 -16
  48. data/lib/cybersource_rest_client/api/reversal_api.rb +31 -31
  49. data/lib/cybersource_rest_client/api/search_transactions_api.rb +31 -31
  50. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +31 -31
  51. data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +46 -46
  52. data/lib/cybersource_rest_client/api/taxes_api.rb +31 -31
  53. data/lib/cybersource_rest_client/api/tokenization_api.rb +16 -16
  54. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +46 -46
  55. data/lib/cybersource_rest_client/api/transaction_details_api.rb +16 -16
  56. data/lib/cybersource_rest_client/api/user_management_api.rb +16 -16
  57. data/lib/cybersource_rest_client/api/user_management_search_api.rb +16 -16
  58. data/lib/cybersource_rest_client/api/verification_api.rb +31 -31
  59. data/lib/cybersource_rest_client/api/void_api.rb +76 -76
  60. data/lib/cybersource_rest_client/api_client.rb +7 -8
  61. data/lib/cybersource_rest_client/models/create_adhoc_report_request.rb +2 -5
  62. data/lib/cybersource_rest_client/models/create_payment_request.rb +19 -1
  63. data/lib/cybersource_rest_client/models/create_search_request.rb +1 -1
  64. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +20 -4
  65. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +10 -1
  66. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_buyer_information.rb +243 -0
  67. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +10 -1
  68. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_issuer_information.rb +206 -0
  69. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb +183 -0
  70. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +52 -4
  71. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +17 -1
  72. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +33 -1
  73. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +15 -5
  74. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +17 -1
  75. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information_strong_authentication.rb +17 -1
  76. data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +17 -1
  77. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +24 -4
  78. data/lib/cybersource_rest_client/models/ptsv2payments_invoice_details.rb +191 -0
  79. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +65 -1
  80. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +1 -1
  81. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +17 -1
  82. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +20 -4
  83. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +33 -1
  84. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
  85. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +14 -4
  86. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_e_wallet.rb +190 -0
  87. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +191 -0
  88. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +17 -1
  89. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +14 -5
  90. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb +215 -0
  91. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +36 -4
  92. data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +17 -1
  93. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +17 -1
  94. data/lib/cybersource_rest_client/models/reportingv3reports_report_filters.rb +218 -0
  95. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +17 -1
  96. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +17 -1
  97. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +17 -1
  98. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +10 -11
  99. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +10 -1
  100. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information_partner.rb +190 -0
  101. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_installment_information.rb +14 -4
  102. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +13 -4
  103. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +32 -5
  104. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +206 -0
  105. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_instrument_identifier.rb +190 -0
  106. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +36 -4
  107. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_token_information.rb +210 -0
  108. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +1 -1
  109. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +13 -4
  110. data/lib/cybersource_rest_client/utilities/flex/token_verification.rb +4 -4
  111. data/lib/cybersource_rest_client.rb +17 -3
  112. metadata +18 -4
  113. data/lib/AuthenticationSDK/core/Logger.rb +0 -26
  114. data/lib/AuthenticationSDK/util/ApiException.rb +0 -19
@@ -0,0 +1,183 @@
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 PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthentication
17
+ attr_accessor :issuer_information
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'issuer_information' => :'issuerInformation'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.swagger_types
28
+ {
29
+ :'issuer_information' => :'PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthenticationIssuerInformation'
30
+ }
31
+ end
32
+
33
+ # Initializes the object
34
+ # @param [Hash] attributes Model attributes in the form of hash
35
+ def initialize(attributes = {})
36
+ return unless attributes.is_a?(Hash)
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
+
41
+ if attributes.has_key?(:'issuerInformation')
42
+ self.issuer_information = attributes[:'issuerInformation']
43
+ end
44
+ end
45
+
46
+ # Show invalid properties with the reasons. Usually used together with valid?
47
+ # @return Array for valid properties with the reasons
48
+ def list_invalid_properties
49
+ invalid_properties = Array.new
50
+ invalid_properties
51
+ end
52
+
53
+ # Check to see if the all the properties in the model are valid
54
+ # @return true if the model is valid
55
+ def valid?
56
+ true
57
+ end
58
+
59
+ # Checks equality by comparing each attribute.
60
+ # @param [Object] Object to be compared
61
+ def ==(o)
62
+ return true if self.equal?(o)
63
+ self.class == o.class &&
64
+ issuer_information == o.issuer_information
65
+ end
66
+
67
+ # @see the `==` method
68
+ # @param [Object] Object to be compared
69
+ def eql?(o)
70
+ self == o
71
+ end
72
+
73
+ # Calculates hash code according to all attributes.
74
+ # @return [Fixnum] Hash code
75
+ def hash
76
+ [issuer_information].hash
77
+ end
78
+
79
+ # Builds the object from hash
80
+ # @param [Hash] attributes Model attributes in the form of hash
81
+ # @return [Object] Returns the model itself
82
+ def build_from_hash(attributes)
83
+ return nil unless attributes.is_a?(Hash)
84
+ self.class.swagger_types.each_pair do |key, type|
85
+ if type =~ /\AArray<(.*)>/i
86
+ # check to ensure the input is an array given that the the attribute
87
+ # is documented as an array but the input is not
88
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
89
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
90
+ end
91
+ elsif !attributes[self.class.attribute_map[key]].nil?
92
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
93
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
94
+ end
95
+
96
+ self
97
+ end
98
+
99
+ # Deserializes the data based on type
100
+ # @param string type Data type
101
+ # @param string value Value to be deserialized
102
+ # @return [Object] Deserialized data
103
+ def _deserialize(type, value)
104
+ case type.to_sym
105
+ when :DateTime
106
+ DateTime.parse(value)
107
+ when :Date
108
+ Date.parse(value)
109
+ when :String
110
+ value.to_s
111
+ when :Integer
112
+ value.to_i
113
+ when :Float
114
+ value.to_f
115
+ when :BOOLEAN
116
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
117
+ true
118
+ else
119
+ false
120
+ end
121
+ when :Object
122
+ # generic object (usually a Hash), return directly
123
+ value
124
+ when /\AArray<(?<inner_type>.+)>\z/
125
+ inner_type = Regexp.last_match[:inner_type]
126
+ value.map { |v| _deserialize(inner_type, v) }
127
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
128
+ k_type = Regexp.last_match[:k_type]
129
+ v_type = Regexp.last_match[:v_type]
130
+ {}.tap do |hash|
131
+ value.each do |k, v|
132
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
133
+ end
134
+ end
135
+ else # model
136
+ temp_model = CyberSource.const_get(type).new
137
+ temp_model.build_from_hash(value)
138
+ end
139
+ end
140
+
141
+ # Returns the string representation of the object
142
+ # @return [String] String presentation of the object
143
+ def to_s
144
+ to_hash.to_s
145
+ end
146
+
147
+ # to_body is an alias to to_hash (backward compatibility)
148
+ # @return [Hash] Returns the object in the form of hash
149
+ def to_body
150
+ to_hash
151
+ end
152
+
153
+ # Returns the object in the form of hash
154
+ # @return [Hash] Returns the object in the form of hash
155
+ def to_hash
156
+ hash = {}
157
+ self.class.attribute_map.each_pair do |attr, param|
158
+ value = self.send(attr)
159
+ next if value.nil?
160
+ hash[param] = _to_hash(value)
161
+ end
162
+ hash
163
+ end
164
+
165
+ # Outputs non-array value in the form of hash
166
+ # For object, use to_hash. Otherwise, just return the value
167
+ # @param [Object] value Any valid value
168
+ # @return [Hash] Returns the value in the form of hash
169
+ def _to_hash(value)
170
+ if value.is_a?(Array)
171
+ value.compact.map { |v| _to_hash(v) }
172
+ elsif value.is_a?(Hash)
173
+ {}.tap do |hash|
174
+ value.each { |k, v| hash[k] = _to_hash(v) }
175
+ end
176
+ elsif value.respond_to? :to_hash
177
+ value.to_hash
178
+ else
179
+ value
180
+ end
181
+ end
182
+ end
183
+ end
@@ -87,6 +87,15 @@ module CyberSource
87
87
  # Identifier that was assigned to you by your acquirer. This value must be printed on the receipt. #### Returned by Authorizations and Credits. This reply field is only supported by merchants who have installed client software on their POS terminals and use these processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX
88
88
  attr_accessor :merchant_number
89
89
 
90
+ # #### Ingenico ePayments Unique number that CyberSource generates to identify the transaction. You can use this value to identify transactions in the Ingenico ePayments Collections Report, which provides settlement information. Contact customer support for information about the report. ### CyberSource through VisaNet Retrieval request number.
91
+ attr_accessor :retrieval_reference_number
92
+
93
+ # Direct the customer to this URL to complete the payment.
94
+ attr_accessor :payment_url
95
+
96
+ # The redirect URL for forwarding the consumer to complete page. This redirect needed by PSP to track browser information of consumer. PSP then redirect consumer to merchant success URL.
97
+ attr_accessor :complete_url
98
+
90
99
  # Attribute mapping from ruby-style variable name to JSON key.
91
100
  def self.attribute_map
92
101
  {
@@ -116,7 +125,10 @@ module CyberSource
116
125
  :'master_card_authentication_type' => :'masterCardAuthenticationType',
117
126
  :'name' => :'name',
118
127
  :'routing' => :'routing',
119
- :'merchant_number' => :'merchantNumber'
128
+ :'merchant_number' => :'merchantNumber',
129
+ :'retrieval_reference_number' => :'retrievalReferenceNumber',
130
+ :'payment_url' => :'paymentUrl',
131
+ :'complete_url' => :'completeUrl'
120
132
  }
121
133
  end
122
134
 
@@ -149,7 +161,10 @@ module CyberSource
149
161
  :'master_card_authentication_type' => :'String',
150
162
  :'name' => :'String',
151
163
  :'routing' => :'PtsV2PaymentsPost201ResponseProcessorInformationRouting',
152
- :'merchant_number' => :'String'
164
+ :'merchant_number' => :'String',
165
+ :'retrieval_reference_number' => :'String',
166
+ :'payment_url' => :'String',
167
+ :'complete_url' => :'String'
153
168
  }
154
169
  end
155
170
 
@@ -268,6 +283,18 @@ module CyberSource
268
283
  if attributes.has_key?(:'merchantNumber')
269
284
  self.merchant_number = attributes[:'merchantNumber']
270
285
  end
286
+
287
+ if attributes.has_key?(:'retrievalReferenceNumber')
288
+ self.retrieval_reference_number = attributes[:'retrievalReferenceNumber']
289
+ end
290
+
291
+ if attributes.has_key?(:'paymentUrl')
292
+ self.payment_url = attributes[:'paymentUrl']
293
+ end
294
+
295
+ if attributes.has_key?(:'completeUrl')
296
+ self.complete_url = attributes[:'completeUrl']
297
+ end
271
298
  end
272
299
 
273
300
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -391,6 +418,24 @@ module CyberSource
391
418
  @merchant_number = merchant_number
392
419
  end
393
420
 
421
+ # Custom attribute writer method with validation
422
+ # @param [Object] retrieval_reference_number Value to be assigned
423
+ def retrieval_reference_number=(retrieval_reference_number)
424
+ @retrieval_reference_number = retrieval_reference_number
425
+ end
426
+
427
+ # Custom attribute writer method with validation
428
+ # @param [Object] payment_url Value to be assigned
429
+ def payment_url=(payment_url)
430
+ @payment_url = payment_url
431
+ end
432
+
433
+ # Custom attribute writer method with validation
434
+ # @param [Object] complete_url Value to be assigned
435
+ def complete_url=(complete_url)
436
+ @complete_url = complete_url
437
+ end
438
+
394
439
  # Checks equality by comparing each attribute.
395
440
  # @param [Object] Object to be compared
396
441
  def ==(o)
@@ -422,7 +467,10 @@ module CyberSource
422
467
  master_card_authentication_type == o.master_card_authentication_type &&
423
468
  name == o.name &&
424
469
  routing == o.routing &&
425
- merchant_number == o.merchant_number
470
+ merchant_number == o.merchant_number &&
471
+ retrieval_reference_number == o.retrieval_reference_number &&
472
+ payment_url == o.payment_url &&
473
+ complete_url == o.complete_url
426
474
  end
427
475
 
428
476
  # @see the `==` method
@@ -434,7 +482,7 @@ module CyberSource
434
482
  # Calculates hash code according to all attributes.
435
483
  # @return [Fixnum] Hash code
436
484
  def hash
437
- [auth_indicator, approval_code, card_reference_data, transaction_id, network_transaction_id, response_code, response_code_source, response_details, response_category_code, forwarded_acquirer_code, avs, card_verification, merchant_advice, electronic_verification_results, ach_verification, customer, consumer_authentication_response, system_trace_audit_number, payment_account_reference_number, transaction_integrity_code, amex_verbal_auth_reference_number, master_card_service_code, master_card_service_reply_code, master_card_authentication_type, name, routing, merchant_number].hash
485
+ [auth_indicator, approval_code, card_reference_data, transaction_id, network_transaction_id, response_code, response_code_source, response_details, response_category_code, forwarded_acquirer_code, avs, card_verification, merchant_advice, electronic_verification_results, ach_verification, customer, consumer_authentication_response, system_trace_audit_number, payment_account_reference_number, transaction_integrity_code, amex_verbal_auth_reference_number, master_card_service_code, master_card_service_reply_code, master_card_authentication_type, name, routing, merchant_number, retrieval_reference_number, payment_url, complete_url].hash
438
486
  end
439
487
 
440
488
  # Builds the object from hash
@@ -14,6 +14,9 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class PtsV2PaymentsRefundPost201ResponseProcessorInformation
17
+ # Authorization code. Returned only when the processor returns this value. The length of this value depends on your processor. Returned by authorization service. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit credit. #### Elavon Encrypted Account Number Program The returned value is OFFLINE. #### TSYS Acquiring Solutions The returned value for a successful zero amount authorization is 000000.
18
+ attr_accessor :approval_code
19
+
17
20
  # Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003
18
21
  attr_accessor :transaction_id
19
22
 
@@ -31,6 +34,7 @@ module CyberSource
31
34
  # Attribute mapping from ruby-style variable name to JSON key.
32
35
  def self.attribute_map
33
36
  {
37
+ :'approval_code' => :'approvalCode',
34
38
  :'transaction_id' => :'transactionId',
35
39
  :'forwarded_acquirer_code' => :'forwardedAcquirerCode',
36
40
  :'merchant_number' => :'merchantNumber',
@@ -42,6 +46,7 @@ module CyberSource
42
46
  # Attribute type mapping.
43
47
  def self.swagger_types
44
48
  {
49
+ :'approval_code' => :'String',
45
50
  :'transaction_id' => :'String',
46
51
  :'forwarded_acquirer_code' => :'String',
47
52
  :'merchant_number' => :'String',
@@ -58,6 +63,10 @@ module CyberSource
58
63
  # convert string to symbol for hash key
59
64
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
65
 
66
+ if attributes.has_key?(:'approvalCode')
67
+ self.approval_code = attributes[:'approvalCode']
68
+ end
69
+
61
70
  if attributes.has_key?(:'transactionId')
62
71
  self.transaction_id = attributes[:'transactionId']
63
72
  end
@@ -92,6 +101,12 @@ module CyberSource
92
101
  true
93
102
  end
94
103
 
104
+ # Custom attribute writer method with validation
105
+ # @param [Object] approval_code Value to be assigned
106
+ def approval_code=(approval_code)
107
+ @approval_code = approval_code
108
+ end
109
+
95
110
  # Custom attribute writer method with validation
96
111
  # @param [Object] transaction_id Value to be assigned
97
112
  def transaction_id=(transaction_id)
@@ -121,6 +136,7 @@ module CyberSource
121
136
  def ==(o)
122
137
  return true if self.equal?(o)
123
138
  self.class == o.class &&
139
+ approval_code == o.approval_code &&
124
140
  transaction_id == o.transaction_id &&
125
141
  forwarded_acquirer_code == o.forwarded_acquirer_code &&
126
142
  merchant_number == o.merchant_number &&
@@ -137,7 +153,7 @@ module CyberSource
137
153
  # Calculates hash code according to all attributes.
138
154
  # @return [Fixnum] Hash code
139
155
  def hash
140
- [transaction_id, forwarded_acquirer_code, merchant_number, response_code, ach_verification].hash
156
+ [approval_code, transaction_id, forwarded_acquirer_code, merchant_number, response_code, ach_verification].hash
141
157
  end
142
158
 
143
159
  # Builds the object from hash
@@ -31,6 +31,12 @@ module CyberSource
31
31
  # The merchant's password that CyberSource hashes and stores as a hashed password. For details about this field, see the `customer_password` field description in _Decision Manager Using the SCMP API Developer Guide_ on the [CyberSource Business Center.](https://ebc2.cybersource.com/ebc2/) Click **Decision Manager** > **Documentation** > **Guides** > _Decision Manager Using the SCMP API Developer Guide_ (PDF link).
32
32
  attr_accessor :hashed_password
33
33
 
34
+ # Customer's gender. Possible values are F (female), M (male),O (other).
35
+ attr_accessor :gender
36
+
37
+ # language setting of the user
38
+ attr_accessor :language
39
+
34
40
  # Cardholder’s mobile phone number. **Important** Required for Visa Secure transactions in Brazil. Do not use this request field for any other types of transactions.
35
41
  attr_accessor :mobile_phone
36
42
 
@@ -43,6 +49,8 @@ module CyberSource
43
49
  :'company_tax_id' => :'companyTaxId',
44
50
  :'personal_identification' => :'personalIdentification',
45
51
  :'hashed_password' => :'hashedPassword',
52
+ :'gender' => :'gender',
53
+ :'language' => :'language',
46
54
  :'mobile_phone' => :'mobilePhone'
47
55
  }
48
56
  end
@@ -56,6 +64,8 @@ module CyberSource
56
64
  :'company_tax_id' => :'String',
57
65
  :'personal_identification' => :'Array<Ptsv2paymentsBuyerInformationPersonalIdentification>',
58
66
  :'hashed_password' => :'String',
67
+ :'gender' => :'String',
68
+ :'language' => :'String',
59
69
  :'mobile_phone' => :'Integer'
60
70
  }
61
71
  end
@@ -94,6 +104,14 @@ module CyberSource
94
104
  self.hashed_password = attributes[:'hashedPassword']
95
105
  end
96
106
 
107
+ if attributes.has_key?(:'gender')
108
+ self.gender = attributes[:'gender']
109
+ end
110
+
111
+ if attributes.has_key?(:'language')
112
+ self.language = attributes[:'language']
113
+ end
114
+
97
115
  if attributes.has_key?(:'mobilePhone')
98
116
  self.mobile_phone = attributes[:'mobilePhone']
99
117
  end
@@ -142,6 +160,18 @@ module CyberSource
142
160
  @hashed_password = hashed_password
143
161
  end
144
162
 
163
+ # Custom attribute writer method with validation
164
+ # @param [Object] gender Value to be assigned
165
+ def gender=(gender)
166
+ @gender = gender
167
+ end
168
+
169
+ # Custom attribute writer method with validation
170
+ # @param [Object] language Value to be assigned
171
+ def language=(language)
172
+ @language = language
173
+ end
174
+
145
175
  # Checks equality by comparing each attribute.
146
176
  # @param [Object] Object to be compared
147
177
  def ==(o)
@@ -153,6 +183,8 @@ module CyberSource
153
183
  company_tax_id == o.company_tax_id &&
154
184
  personal_identification == o.personal_identification &&
155
185
  hashed_password == o.hashed_password &&
186
+ gender == o.gender &&
187
+ language == o.language &&
156
188
  mobile_phone == o.mobile_phone
157
189
  end
158
190
 
@@ -165,7 +197,7 @@ module CyberSource
165
197
  # Calculates hash code according to all attributes.
166
198
  # @return [Fixnum] Hash code
167
199
  def hash
168
- [merchant_customer_id, date_of_birth, vat_registration_number, company_tax_id, personal_identification, hashed_password, mobile_phone].hash
200
+ [merchant_customer_id, date_of_birth, vat_registration_number, company_tax_id, personal_identification, hashed_password, gender, language, mobile_phone].hash
169
201
  end
170
202
 
171
203
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsBuyerInformationPersonalIdentification
17
- # The type of the identification. Possible values: - `NATIONAL` - `CPF` - `CPNJ` - `CURP` - `SSN` - `DRIVER_LICENSE` This field is supported only on the following processors. #### ComercioLatino Set this field to the Cadastro de Pessoas Fisicas (CPF). #### CyberSource Latin American Processing Supported for Redecard in Brazil. Set this field to the Cadastro de Pessoas Fisicas (CPF), which is required for AVS for Redecard in Brazil. **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this field description is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. For processor-specific information, see the `personal_id` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
17
+ # The type of the identification. Possible values: - `NATIONAL` - `CPF` - `CPNJ` - `CURP` - `SSN` - `DRIVER_LICENSE` - `PASSPORT_NUMBER` - `PERSONAL_ID` - `TAX_ID` This field is supported only on the following processors. #### ComercioLatino Set this field to the Cadastro de Pessoas Fisicas (CPF). #### CyberSource Latin American Processing Supported for Redecard in Brazil. Set this field to the Cadastro de Pessoas Fisicas (CPF), which is required for AVS for Redecard in Brazil. **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this field description is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. For processor-specific information, see the `personal_id` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
18
18
  attr_accessor :type
19
19
 
20
20
  # The value of the identification type. This field is supported only on the following processors. #### ComercioLatino Set this field to the Cadastro de Pessoas Fisicas (CPF). #### CyberSource Latin American Processing Supported for Redecard in Brazil. Set this field to the Cadastro de Pessoas Fisicas (CPF), which is required for AVS for Redecard in Brazil. **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this field description is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. For processor-specific information, see the `personal_id` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) If `type = PASSPORT`, this is the cardholder's passport number. Recommended for Discover ProtectBuy.
@@ -23,12 +23,16 @@ module CyberSource
23
23
  # The government agency that issued the driver's license or passport. If **type**` = DRIVER_LICENSE`, this is the State or province where the customer’s driver’s license was issued. If **type**` = PASSPORT`, this is the Issuing country for the cardholder’s passport. Recommended for Discover ProtectBuy. Use the two-character [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf). #### TeleCheck Contact your TeleCheck representative to find out whether this field is required or optional. #### All Other Processors Not used. For details about the country that issued the passport, see `customer_passport_country` field description in [CyberSource Payer Authentication Using the SCMP API] (https://apps.cybersource.com/library/documentation/dev_guides/Payer_Authentication_SCMP_API/html/) For details about the state or province that issued the passport, see `driver_license_state` field description in [Electronic Check Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)
24
24
  attr_accessor :issued_by
25
25
 
26
+ # Verification results received from Issuer or Card Network for verification transactions. Response Only Field.
27
+ attr_accessor :verification_results
28
+
26
29
  # Attribute mapping from ruby-style variable name to JSON key.
27
30
  def self.attribute_map
28
31
  {
29
32
  :'type' => :'type',
30
33
  :'id' => :'id',
31
- :'issued_by' => :'issuedBy'
34
+ :'issued_by' => :'issuedBy',
35
+ :'verification_results' => :'verificationResults'
32
36
  }
33
37
  end
34
38
 
@@ -37,7 +41,8 @@ module CyberSource
37
41
  {
38
42
  :'type' => :'String',
39
43
  :'id' => :'String',
40
- :'issued_by' => :'String'
44
+ :'issued_by' => :'String',
45
+ :'verification_results' => :'String'
41
46
  }
42
47
  end
43
48
 
@@ -60,6 +65,10 @@ module CyberSource
60
65
  if attributes.has_key?(:'issuedBy')
61
66
  self.issued_by = attributes[:'issuedBy']
62
67
  end
68
+
69
+ if attributes.has_key?(:'verificationResults')
70
+ self.verification_results = attributes[:'verificationResults']
71
+ end
63
72
  end
64
73
 
65
74
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -88,7 +97,8 @@ module CyberSource
88
97
  self.class == o.class &&
89
98
  type == o.type &&
90
99
  id == o.id &&
91
- issued_by == o.issued_by
100
+ issued_by == o.issued_by &&
101
+ verification_results == o.verification_results
92
102
  end
93
103
 
94
104
  # @see the `==` method
@@ -100,7 +110,7 @@ module CyberSource
100
110
  # Calculates hash code according to all attributes.
101
111
  # @return [Fixnum] Hash code
102
112
  def hash
103
- [type, id, issued_by].hash
113
+ [type, id, issued_by, verification_results].hash
104
114
  end
105
115
 
106
116
  # Builds the object from hash
@@ -17,6 +17,9 @@ module CyberSource
17
17
  # Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. #### Used by **Authorization** Required field. #### PIN Debit Requests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being reversed. Required field for all PIN Debit requests (purchase, credit, and reversal). #### FDC Nashville Global Certain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.
18
18
  attr_accessor :code
19
19
 
20
+ # Reference number for the transaction. Depending on how your Cybersource account is configured, this value could either be provided in the API request or generated by CyberSource. The actual value used in the request to the processor is provided back to you by Cybersource in the response.
21
+ attr_accessor :reconciliation_id
22
+
20
23
  # Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call.
21
24
  attr_accessor :paused_request_id
22
25
 
@@ -41,6 +44,7 @@ module CyberSource
41
44
  def self.attribute_map
42
45
  {
43
46
  :'code' => :'code',
47
+ :'reconciliation_id' => :'reconciliationId',
44
48
  :'paused_request_id' => :'pausedRequestId',
45
49
  :'transaction_id' => :'transactionId',
46
50
  :'comments' => :'comments',
@@ -55,6 +59,7 @@ module CyberSource
55
59
  def self.swagger_types
56
60
  {
57
61
  :'code' => :'String',
62
+ :'reconciliation_id' => :'String',
58
63
  :'paused_request_id' => :'String',
59
64
  :'transaction_id' => :'String',
60
65
  :'comments' => :'String',
@@ -77,6 +82,10 @@ module CyberSource
77
82
  self.code = attributes[:'code']
78
83
  end
79
84
 
85
+ if attributes.has_key?(:'reconciliationId')
86
+ self.reconciliation_id = attributes[:'reconciliationId']
87
+ end
88
+
80
89
  if attributes.has_key?(:'pausedRequestId')
81
90
  self.paused_request_id = attributes[:'pausedRequestId']
82
91
  end
@@ -125,6 +134,12 @@ module CyberSource
125
134
  @code = code
126
135
  end
127
136
 
137
+ # Custom attribute writer method with validation
138
+ # @param [Object] reconciliation_id Value to be assigned
139
+ def reconciliation_id=(reconciliation_id)
140
+ @reconciliation_id = reconciliation_id
141
+ end
142
+
128
143
  # Custom attribute writer method with validation
129
144
  # @param [Object] paused_request_id Value to be assigned
130
145
  def paused_request_id=(paused_request_id)
@@ -143,6 +158,7 @@ module CyberSource
143
158
  return true if self.equal?(o)
144
159
  self.class == o.class &&
145
160
  code == o.code &&
161
+ reconciliation_id == o.reconciliation_id &&
146
162
  paused_request_id == o.paused_request_id &&
147
163
  transaction_id == o.transaction_id &&
148
164
  comments == o.comments &&
@@ -161,7 +177,7 @@ module CyberSource
161
177
  # Calculates hash code according to all attributes.
162
178
  # @return [Fixnum] Hash code
163
179
  def hash
164
- [code, paused_request_id, transaction_id, comments, partner, application_name, application_version, application_user].hash
180
+ [code, reconciliation_id, paused_request_id, transaction_id, comments, partner, application_name, application_version, application_user].hash
165
181
  end
166
182
 
167
183
  # Builds the object from hash
@@ -29,6 +29,9 @@ module CyberSource
29
29
  # This field will contain the delegated authentication exemption indicator with one of the following values: Possible values: - `0` (delegated Authentication exemption does not apply to the transaction) - `1` (Transaction exempt from SCA as authentication has been delegated to other provider (PSP,Acquirer))
30
30
  attr_accessor :delegated_authentication_exemption_indicator
31
31
 
32
+ # This field will contain the outage exemption indicator with one of the following values: Possible values: - `0` (Outage Authentication exemption does not apply to the transaction) - `1` (Outage exempt from SCA as authentication could not be done due to outage)
33
+ attr_accessor :outage_exemption_indicator
34
+
32
35
  # Indicates the type of Authentication request 01 - Payment transaction 02 - Recurring transaction 03 - Installment transaction 04 - Add card 05 - Maintain card 06 - Cardholder verification as part of EMV token ID and V
33
36
  attr_accessor :authentication_indicator
34
37
 
@@ -40,6 +43,7 @@ module CyberSource
40
43
  :'trusted_merchant_exemption_indicator' => :'trustedMerchantExemptionIndicator',
41
44
  :'secure_corporate_payment_indicator' => :'secureCorporatePaymentIndicator',
42
45
  :'delegated_authentication_exemption_indicator' => :'delegatedAuthenticationExemptionIndicator',
46
+ :'outage_exemption_indicator' => :'outageExemptionIndicator',
43
47
  :'authentication_indicator' => :'authenticationIndicator'
44
48
  }
45
49
  end
@@ -52,6 +56,7 @@ module CyberSource
52
56
  :'trusted_merchant_exemption_indicator' => :'String',
53
57
  :'secure_corporate_payment_indicator' => :'String',
54
58
  :'delegated_authentication_exemption_indicator' => :'String',
59
+ :'outage_exemption_indicator' => :'String',
55
60
  :'authentication_indicator' => :'String'
56
61
  }
57
62
  end
@@ -84,6 +89,10 @@ module CyberSource
84
89
  self.delegated_authentication_exemption_indicator = attributes[:'delegatedAuthenticationExemptionIndicator']
85
90
  end
86
91
 
92
+ if attributes.has_key?(:'outageExemptionIndicator')
93
+ self.outage_exemption_indicator = attributes[:'outageExemptionIndicator']
94
+ end
95
+
87
96
  if attributes.has_key?(:'authenticationIndicator')
88
97
  self.authentication_indicator = attributes[:'authenticationIndicator']
89
98
  end
@@ -132,6 +141,12 @@ module CyberSource
132
141
  @delegated_authentication_exemption_indicator = delegated_authentication_exemption_indicator
133
142
  end
134
143
 
144
+ # Custom attribute writer method with validation
145
+ # @param [Object] outage_exemption_indicator Value to be assigned
146
+ def outage_exemption_indicator=(outage_exemption_indicator)
147
+ @outage_exemption_indicator = outage_exemption_indicator
148
+ end
149
+
135
150
  # Custom attribute writer method with validation
136
151
  # @param [Object] authentication_indicator Value to be assigned
137
152
  def authentication_indicator=(authentication_indicator)
@@ -148,6 +163,7 @@ module CyberSource
148
163
  trusted_merchant_exemption_indicator == o.trusted_merchant_exemption_indicator &&
149
164
  secure_corporate_payment_indicator == o.secure_corporate_payment_indicator &&
150
165
  delegated_authentication_exemption_indicator == o.delegated_authentication_exemption_indicator &&
166
+ outage_exemption_indicator == o.outage_exemption_indicator &&
151
167
  authentication_indicator == o.authentication_indicator
152
168
  end
153
169
 
@@ -160,7 +176,7 @@ module CyberSource
160
176
  # Calculates hash code according to all attributes.
161
177
  # @return [Fixnum] Hash code
162
178
  def hash
163
- [low_value_exemption_indicator, risk_analysis_exemption_indicator, trusted_merchant_exemption_indicator, secure_corporate_payment_indicator, delegated_authentication_exemption_indicator, authentication_indicator].hash
179
+ [low_value_exemption_indicator, risk_analysis_exemption_indicator, trusted_merchant_exemption_indicator, secure_corporate_payment_indicator, delegated_authentication_exemption_indicator, outage_exemption_indicator, authentication_indicator].hash
164
180
  end
165
181
 
166
182
  # Builds the object from hash