cybersource_rest_client 0.0.33 → 0.0.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client/models/inline_response_400_2.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get404_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get502_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post202_response.rb +1 -1
- data/lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/kms_v2_keys_asym_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/kms_v2_keys_sym_deletes_post200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get500_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +6 -0
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +9 -13
- data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +2 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response_1.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post400_response_1.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/risk_v1_update_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_fluid_data.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information.rb +13 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information_strong_authentication.rb +254 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +8 -12
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.rb +17 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +6 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/vas_v2_payments_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/vas_v2_tax_void200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/vas_v2_tax_voids_post400_response.rb +1 -1
- data/lib/cybersource_rest_client.rb +1 -0
- metadata +3 -2
@@ -0,0 +1,254 @@
|
|
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 TssV2TransactionsGet200ResponseConsumerAuthenticationInformationStrongAuthentication
|
17
|
+
# This field will contain the low value exemption indicator with one of the following values: Possible values: - `0` ( low value exemption does not apply to the transaction) - `1` (Transaction exempt from SCA as the merchant/acquirer has determined it to be a low value payment)
|
18
|
+
attr_accessor :low_value_exemption_indicator
|
19
|
+
|
20
|
+
# This field will contain the transaction risk analysis exemption indicator with one of the following values: Possible values: - `0` (TRA exemption does not apply to the transaction) - `1` (Transaction exempt from SCA as the merchant/acquirer has determined it to be low risk in accordance with the criteria defined by PSD2/RTS)
|
21
|
+
attr_accessor :risk_analysis_exemption_indicator
|
22
|
+
|
23
|
+
# Possible values: - `0` (Trusted merchant exemption does not apply to the transaction) - `1` (Transaction exempt from SCA as it originated at a merchant trusted by the cardholder)
|
24
|
+
attr_accessor :trusted_merchant_exemption_indicator
|
25
|
+
|
26
|
+
# This field will contain the secure corporate payment exemption indicator with one of the following values: Possible values: - `0` (SCA exemption does not apply to the transaction) - `1` (Transaction exempt from SCA as the merchant/acquirer has determined it as a secure corporate payment)
|
27
|
+
attr_accessor :secure_corporate_payment_indicator
|
28
|
+
|
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
|
+
attr_accessor :delegated_authentication_exemption_indicator
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
def self.attribute_map
|
34
|
+
{
|
35
|
+
:'low_value_exemption_indicator' => :'lowValueExemptionIndicator',
|
36
|
+
:'risk_analysis_exemption_indicator' => :'riskAnalysisExemptionIndicator',
|
37
|
+
:'trusted_merchant_exemption_indicator' => :'trustedMerchantExemptionIndicator',
|
38
|
+
:'secure_corporate_payment_indicator' => :'secureCorporatePaymentIndicator',
|
39
|
+
:'delegated_authentication_exemption_indicator' => :'delegatedAuthenticationExemptionIndicator'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute type mapping.
|
44
|
+
def self.swagger_types
|
45
|
+
{
|
46
|
+
:'low_value_exemption_indicator' => :'String',
|
47
|
+
:'risk_analysis_exemption_indicator' => :'String',
|
48
|
+
:'trusted_merchant_exemption_indicator' => :'String',
|
49
|
+
:'secure_corporate_payment_indicator' => :'String',
|
50
|
+
:'delegated_authentication_exemption_indicator' => :'String'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Initializes the object
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
56
|
+
def initialize(attributes = {})
|
57
|
+
return unless attributes.is_a?(Hash)
|
58
|
+
|
59
|
+
# convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
61
|
+
|
62
|
+
if attributes.has_key?(:'lowValueExemptionIndicator')
|
63
|
+
self.low_value_exemption_indicator = attributes[:'lowValueExemptionIndicator']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.has_key?(:'riskAnalysisExemptionIndicator')
|
67
|
+
self.risk_analysis_exemption_indicator = attributes[:'riskAnalysisExemptionIndicator']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.has_key?(:'trustedMerchantExemptionIndicator')
|
71
|
+
self.trusted_merchant_exemption_indicator = attributes[:'trustedMerchantExemptionIndicator']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.has_key?(:'secureCorporatePaymentIndicator')
|
75
|
+
self.secure_corporate_payment_indicator = attributes[:'secureCorporatePaymentIndicator']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.has_key?(:'delegatedAuthenticationExemptionIndicator')
|
79
|
+
self.delegated_authentication_exemption_indicator = attributes[:'delegatedAuthenticationExemptionIndicator']
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
84
|
+
# @return Array for valid properties with the reasons
|
85
|
+
def list_invalid_properties
|
86
|
+
invalid_properties = Array.new
|
87
|
+
invalid_properties
|
88
|
+
end
|
89
|
+
|
90
|
+
# Check to see if the all the properties in the model are valid
|
91
|
+
# @return true if the model is valid
|
92
|
+
def valid?
|
93
|
+
true
|
94
|
+
end
|
95
|
+
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param [Object] low_value_exemption_indicator Value to be assigned
|
98
|
+
def low_value_exemption_indicator=(low_value_exemption_indicator)
|
99
|
+
@low_value_exemption_indicator = low_value_exemption_indicator
|
100
|
+
end
|
101
|
+
|
102
|
+
# Custom attribute writer method with validation
|
103
|
+
# @param [Object] risk_analysis_exemption_indicator Value to be assigned
|
104
|
+
def risk_analysis_exemption_indicator=(risk_analysis_exemption_indicator)
|
105
|
+
@risk_analysis_exemption_indicator = risk_analysis_exemption_indicator
|
106
|
+
end
|
107
|
+
|
108
|
+
# Custom attribute writer method with validation
|
109
|
+
# @param [Object] trusted_merchant_exemption_indicator Value to be assigned
|
110
|
+
def trusted_merchant_exemption_indicator=(trusted_merchant_exemption_indicator)
|
111
|
+
@trusted_merchant_exemption_indicator = trusted_merchant_exemption_indicator
|
112
|
+
end
|
113
|
+
|
114
|
+
# Custom attribute writer method with validation
|
115
|
+
# @param [Object] secure_corporate_payment_indicator Value to be assigned
|
116
|
+
def secure_corporate_payment_indicator=(secure_corporate_payment_indicator)
|
117
|
+
@secure_corporate_payment_indicator = secure_corporate_payment_indicator
|
118
|
+
end
|
119
|
+
|
120
|
+
# Custom attribute writer method with validation
|
121
|
+
# @param [Object] delegated_authentication_exemption_indicator Value to be assigned
|
122
|
+
def delegated_authentication_exemption_indicator=(delegated_authentication_exemption_indicator)
|
123
|
+
@delegated_authentication_exemption_indicator = delegated_authentication_exemption_indicator
|
124
|
+
end
|
125
|
+
|
126
|
+
# Checks equality by comparing each attribute.
|
127
|
+
# @param [Object] Object to be compared
|
128
|
+
def ==(o)
|
129
|
+
return true if self.equal?(o)
|
130
|
+
self.class == o.class &&
|
131
|
+
low_value_exemption_indicator == o.low_value_exemption_indicator &&
|
132
|
+
risk_analysis_exemption_indicator == o.risk_analysis_exemption_indicator &&
|
133
|
+
trusted_merchant_exemption_indicator == o.trusted_merchant_exemption_indicator &&
|
134
|
+
secure_corporate_payment_indicator == o.secure_corporate_payment_indicator &&
|
135
|
+
delegated_authentication_exemption_indicator == o.delegated_authentication_exemption_indicator
|
136
|
+
end
|
137
|
+
|
138
|
+
# @see the `==` method
|
139
|
+
# @param [Object] Object to be compared
|
140
|
+
def eql?(o)
|
141
|
+
self == o
|
142
|
+
end
|
143
|
+
|
144
|
+
# Calculates hash code according to all attributes.
|
145
|
+
# @return [Fixnum] Hash code
|
146
|
+
def hash
|
147
|
+
[low_value_exemption_indicator, risk_analysis_exemption_indicator, trusted_merchant_exemption_indicator, secure_corporate_payment_indicator, delegated_authentication_exemption_indicator].hash
|
148
|
+
end
|
149
|
+
|
150
|
+
# Builds the object from hash
|
151
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
152
|
+
# @return [Object] Returns the model itself
|
153
|
+
def build_from_hash(attributes)
|
154
|
+
return nil unless attributes.is_a?(Hash)
|
155
|
+
self.class.swagger_types.each_pair do |key, type|
|
156
|
+
if type =~ /\AArray<(.*)>/i
|
157
|
+
# check to ensure the input is an array given that the the attribute
|
158
|
+
# is documented as an array but the input is not
|
159
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
160
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
161
|
+
end
|
162
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
163
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
164
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
165
|
+
end
|
166
|
+
|
167
|
+
self
|
168
|
+
end
|
169
|
+
|
170
|
+
# Deserializes the data based on type
|
171
|
+
# @param string type Data type
|
172
|
+
# @param string value Value to be deserialized
|
173
|
+
# @return [Object] Deserialized data
|
174
|
+
def _deserialize(type, value)
|
175
|
+
case type.to_sym
|
176
|
+
when :DateTime
|
177
|
+
DateTime.parse(value)
|
178
|
+
when :Date
|
179
|
+
Date.parse(value)
|
180
|
+
when :String
|
181
|
+
value.to_s
|
182
|
+
when :Integer
|
183
|
+
value.to_i
|
184
|
+
when :Float
|
185
|
+
value.to_f
|
186
|
+
when :BOOLEAN
|
187
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
188
|
+
true
|
189
|
+
else
|
190
|
+
false
|
191
|
+
end
|
192
|
+
when :Object
|
193
|
+
# generic object (usually a Hash), return directly
|
194
|
+
value
|
195
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
196
|
+
inner_type = Regexp.last_match[:inner_type]
|
197
|
+
value.map { |v| _deserialize(inner_type, v) }
|
198
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
199
|
+
k_type = Regexp.last_match[:k_type]
|
200
|
+
v_type = Regexp.last_match[:v_type]
|
201
|
+
{}.tap do |hash|
|
202
|
+
value.each do |k, v|
|
203
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
204
|
+
end
|
205
|
+
end
|
206
|
+
else # model
|
207
|
+
temp_model = CyberSource.const_get(type).new
|
208
|
+
temp_model.build_from_hash(value)
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
# Returns the string representation of the object
|
213
|
+
# @return [String] String presentation of the object
|
214
|
+
def to_s
|
215
|
+
to_hash.to_s
|
216
|
+
end
|
217
|
+
|
218
|
+
# to_body is an alias to to_hash (backward compatibility)
|
219
|
+
# @return [Hash] Returns the object in the form of hash
|
220
|
+
def to_body
|
221
|
+
to_hash
|
222
|
+
end
|
223
|
+
|
224
|
+
# Returns the object in the form of hash
|
225
|
+
# @return [Hash] Returns the object in the form of hash
|
226
|
+
def to_hash
|
227
|
+
hash = {}
|
228
|
+
self.class.attribute_map.each_pair do |attr, param|
|
229
|
+
value = self.send(attr)
|
230
|
+
next if value.nil?
|
231
|
+
hash[param] = _to_hash(value)
|
232
|
+
end
|
233
|
+
hash
|
234
|
+
end
|
235
|
+
|
236
|
+
# Outputs non-array value in the form of hash
|
237
|
+
# For object, use to_hash. Otherwise, just return the value
|
238
|
+
# @param [Object] value Any valid value
|
239
|
+
# @return [Hash] Returns the value in the form of hash
|
240
|
+
def _to_hash(value)
|
241
|
+
if value.is_a?(Array)
|
242
|
+
value.compact.map { |v| _to_hash(v) }
|
243
|
+
elsif value.is_a?(Hash)
|
244
|
+
{}.tap do |hash|
|
245
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
246
|
+
end
|
247
|
+
elsif value.respond_to? :to_hash
|
248
|
+
value.to_hash
|
249
|
+
else
|
250
|
+
value
|
251
|
+
end
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|
@@ -26,10 +26,10 @@ module CyberSource
|
|
26
26
|
# Amount that was authorized. Returned by authorization service. #### PIN debit Amount of the purchase. Returned by PIN debit purchase. #### FDMS South If you accept IDR or CLP currencies, see the entry for FDMS South in Merchant Descriptors Using the SCMP API.
|
27
27
|
attr_accessor :authorized_amount
|
28
28
|
|
29
|
-
# This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder’s account.
|
29
|
+
# This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder’s account. This field is returned for OCT transactions.
|
30
30
|
attr_accessor :settlement_amount
|
31
31
|
|
32
|
-
# This is a multicurrency-only field. It contains a 3-digit numeric code that identifies the currency used by the issuer to bill the cardholder's account.
|
32
|
+
# This is a multicurrency-only field. It contains a 3-digit numeric code that identifies the currency used by the issuer to bill the cardholder's account. This field is returned for OCT transactions.
|
33
33
|
attr_accessor :settlement_currency
|
34
34
|
|
35
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -17,10 +17,10 @@ module CyberSource
|
|
17
17
|
# Indicates that the transaction includes industry-specific data. Possible Values: - `airline` - `restaurant` - `lodging` - `auto_rental` - `transit` - `healthcare_medical` - `healthcare_transit` - `transit` #### Card Present, Airlines and Auto Rental You must set this field to `airline` in order for airline data to be sent to the processor. For example, if this field is not set to `airline` or is not included in the request, no airline data is sent to the processor. You must set this field to `restaurant` in order for restaurant data to be sent to the processor. When this field is not set to `restaurant` or is not included in the request, no restaurant data is sent to the processor. You must set this field to `auto_rental` in order for auto rental data to be sent to the processor. For example, if this field is not set to `auto_rental` or is not included in the request, no auto rental data is sent to the processor. Restaurant data is supported only on CyberSource through VisaNet.
|
18
18
|
attr_accessor :industry_data_type
|
19
19
|
|
20
|
-
# Type of digital payment solution for the transaction.
|
20
|
+
# Type of digital payment solution for the transaction.
|
21
21
|
attr_accessor :payment_solution
|
22
22
|
|
23
|
-
# Type of transaction. Some payment card companies use this information when determining discount rates. #### Used by **Authorization** Required payer authentication transactions; otherwise, optional. **Credit** Required for standalone credits on Chase Paymentech solutions; otherwise, optional.
|
23
|
+
# Type of transaction. Some payment card companies use this information when determining discount rates. #### Used by **Authorization** Required payer authentication transactions; otherwise, optional. **Credit** Required for standalone credits on Chase Paymentech solutions; otherwise, optional. The list of valid values in this field depends on your processor. See Appendix I, \"Commerce Indicators,\" on page 441 of the Cybersource Credit Card Guide. #### Ingenico ePayments When you omit this field for Ingenico ePayments, the processor uses the default transaction type they have on file for you instead of the default value (listed in Appendix I, \"Commerce Indicators,\" on page 441.) #### Payer Authentication Transactions For the possible values and requirements, see \"Payer Authentication,\" page 195. #### Card Present You must set this field to `retail`. This field is required for a card-present transaction. Note that this should ONLY be used when the cardholder and card are present at the time of the transaction. For all keyed transactions originated from a POS terminal where the cardholder and card are not present, commerceIndicator should be submitted as “moto\"
|
24
24
|
attr_accessor :commerce_indicator
|
25
25
|
|
26
26
|
# Payouts transaction type. Required for OCT transactions. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. **Note** When the request includes this field, this value overrides the information in your CyberSource account. For valid values, see the `invoiceHeader_businessApplicationID` field description in [Payouts Using the Simple Order API.](http://apps.cybersource.com/library/documentation/dev_guides/payouts_SO/Payouts_SO_API.pdf)
|
data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb
CHANGED
@@ -22,15 +22,12 @@ module CyberSource
|
|
22
22
|
# Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. Returned by the authorization service. #### PIN debit Transaction identifier generated by the processor. Returned by PIN debit credit. #### GPX Processor transaction ID. #### Cielo For Cielo, this value is the non-sequential unit (NSU) and is supported for all transactions. The value is generated by Cielo or the issuing bank. #### Comercio Latino For Comercio Latino, this value is the proof of sale or non-sequential unit (NSU) number generated by the acquirers Cielo and Rede, or the issuing bank. #### CyberSource through VisaNet and GPN For details about this value for CyberSource through VisaNet and GPN, see \"Network Transaction Identifiers\" in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) #### Moneris This value identifies the transaction on a host system. It contains the following 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
|
23
23
|
attr_accessor :transaction_id
|
24
24
|
|
25
|
-
#
|
25
|
+
# Same value as `processorInformation.transactionId`
|
26
26
|
attr_accessor :network_transaction_id
|
27
27
|
|
28
28
|
# Response ID sent from the processor.
|
29
29
|
attr_accessor :response_id
|
30
30
|
|
31
|
-
# The description for this field is not available.
|
32
|
-
attr_accessor :provider_transaction_id
|
33
|
-
|
34
31
|
# 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.
|
35
32
|
attr_accessor :approval_code
|
36
33
|
|
@@ -59,7 +56,6 @@ module CyberSource
|
|
59
56
|
:'transaction_id' => :'transactionId',
|
60
57
|
:'network_transaction_id' => :'networkTransactionId',
|
61
58
|
:'response_id' => :'responseId',
|
62
|
-
:'provider_transaction_id' => :'providerTransactionId',
|
63
59
|
:'approval_code' => :'approvalCode',
|
64
60
|
:'response_code' => :'responseCode',
|
65
61
|
:'avs' => :'avs',
|
@@ -79,7 +75,6 @@ module CyberSource
|
|
79
75
|
:'transaction_id' => :'String',
|
80
76
|
:'network_transaction_id' => :'String',
|
81
77
|
:'response_id' => :'String',
|
82
|
-
:'provider_transaction_id' => :'String',
|
83
78
|
:'approval_code' => :'String',
|
84
79
|
:'response_code' => :'String',
|
85
80
|
:'avs' => :'PtsV2PaymentsPost201ResponseProcessorInformationAvs',
|
@@ -121,10 +116,6 @@ module CyberSource
|
|
121
116
|
self.response_id = attributes[:'responseId']
|
122
117
|
end
|
123
118
|
|
124
|
-
if attributes.has_key?(:'providerTransactionId')
|
125
|
-
self.provider_transaction_id = attributes[:'providerTransactionId']
|
126
|
-
end
|
127
|
-
|
128
119
|
if attributes.has_key?(:'approvalCode')
|
129
120
|
self.approval_code = attributes[:'approvalCode']
|
130
121
|
end
|
@@ -177,6 +168,12 @@ module CyberSource
|
|
177
168
|
@transaction_id = transaction_id
|
178
169
|
end
|
179
170
|
|
171
|
+
# Custom attribute writer method with validation
|
172
|
+
# @param [Object] approval_code Value to be assigned
|
173
|
+
def approval_code=(approval_code)
|
174
|
+
@approval_code = approval_code
|
175
|
+
end
|
176
|
+
|
180
177
|
# Custom attribute writer method with validation
|
181
178
|
# @param [Object] response_code Value to be assigned
|
182
179
|
def response_code=(response_code)
|
@@ -205,7 +202,6 @@ module CyberSource
|
|
205
202
|
transaction_id == o.transaction_id &&
|
206
203
|
network_transaction_id == o.network_transaction_id &&
|
207
204
|
response_id == o.response_id &&
|
208
|
-
provider_transaction_id == o.provider_transaction_id &&
|
209
205
|
approval_code == o.approval_code &&
|
210
206
|
response_code == o.response_code &&
|
211
207
|
avs == o.avs &&
|
@@ -225,7 +221,7 @@ module CyberSource
|
|
225
221
|
# Calculates hash code according to all attributes.
|
226
222
|
# @return [Fixnum] Hash code
|
227
223
|
def hash
|
228
|
-
[processor, multi_processor_routing, transaction_id, network_transaction_id, response_id,
|
224
|
+
[processor, multi_processor_routing, transaction_id, network_transaction_id, response_id, approval_code, response_code, avs, card_verification, ach_verification, electronic_verification_results, system_trace_audit_number, response_code_source].hash
|
229
225
|
end
|
230
226
|
|
231
227
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information.rb
CHANGED
@@ -24,7 +24,7 @@ module CyberSource
|
|
24
24
|
|
25
25
|
attr_accessor :score
|
26
26
|
|
27
|
-
# Time that the transaction was submitted in local time.
|
27
|
+
# Time that the transaction was submitted in local time. Generated by Cybersource.
|
28
28
|
attr_accessor :local_time
|
29
29
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -47,7 +47,7 @@ module CyberSource
|
|
47
47
|
# The status of the submitted transaction.
|
48
48
|
attr_accessor :status
|
49
49
|
|
50
|
-
# Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by
|
50
|
+
# Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services.
|
51
51
|
attr_accessor :submit_time_utc
|
52
52
|
|
53
53
|
attr_accessor :_embedded
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class TssV2TransactionsPost201ResponseEmbeddedMerchantInformation
|
17
|
-
# An unique identification number to identify the submitted request. It is also appended to the endpoint of the resource.
|
17
|
+
# An unique identification number generated by Cybersource to identify the submitted request. Returned by all services. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response.
|
18
18
|
attr_accessor :reseller_id
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -20,6 +20,9 @@ module CyberSource
|
|
20
20
|
# Customer’s last name. This name must be the same as the name on the card. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Chase Paymentech Solutions Optional field. #### Credit Mutuel-CIC Optional field. #### CyberSource Latin American Processing **Important** For an authorization request, CyberSource Latin American Processing concatenates `orderInformation.billTo.firstName` and `orderInformation.billTo.lastName`. If the concatenated value exceeds 30 characters, CyberSource Latin American Processing declines the authorization request.\\ **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. #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. #### For Payouts: This field may be sent only for FDC Compass. #### OmniPay Direct Optional field. #### RBS WorldPay Atlanta Optional field. #### SIX Optional field. #### TSYS Acquiring Solutions Required when `processingInformation.billPaymentOptions.billPayment=true` and `pointOfSaleInformation.entryMode=keyed`. #### Worldpay VAP Optional field. #### All other processors Not used.
|
21
21
|
attr_accessor :last_name
|
22
22
|
|
23
|
+
# Payment card billing street address as it appears on the credit card issuer’s records. #### Atos This field must not contain colons (:). #### CyberSource through VisaNet **Important** When you populate orderInformation.billTo.address1 and orderInformation.billTo.address2, CyberSource through VisaNet concatenates the two values. If the concatenated value exceeds 40 characters, CyberSource through VisaNet truncates the value at 40 characters before sending it to Visa and the issuing bank. Truncating this value affects AVS results and therefore might also affect risk decisions and chargebacks. Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. #### FDMS Nashville When the street name is numeric, it must be sent in numeric format. For example, if the address is _One First Street_, it must be sent as _1 1st Street_. Required if keyed; not used if swiped. String (20) #### TSYS Acquiring Solutions Required when `processingInformation.billPaymentOptions.billPayment=true` and `pointOfSaleInformation.entryMode=keyed`. #### All other processors: Optional. String (60) #### For Payouts This field may be sent only for FDC Compass. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting.
|
24
|
+
attr_accessor :address1
|
25
|
+
|
23
26
|
# Customer's email address, including the full domain name. #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `customer_email` request-level field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) #### Invoicing Email address for the customer for sending the invoice. If the invoice is in SENT status and email is updated, the old email customer payment link won't work and you must resend the invoice with the new payment link. #### Chase Paymentech Solutions Optional field. #### Credit Mutuel-CIC Optional field. #### OmniPay Direct Optional field. #### SIX Optional field. #### TSYS Acquiring Solutions Required when `processingInformation.billPaymentOptions.billPayment=true` and `pointOfSaleInformation.entryMode=keyed`. #### Worldpay VAP Optional field. #### All other processors Not used.
|
24
27
|
attr_accessor :email
|
25
28
|
|
@@ -34,6 +37,7 @@ module CyberSource
|
|
34
37
|
{
|
35
38
|
:'first_name' => :'firstName',
|
36
39
|
:'last_name' => :'lastName',
|
40
|
+
:'address1' => :'address1',
|
37
41
|
:'email' => :'email',
|
38
42
|
:'country' => :'country',
|
39
43
|
:'phone_number' => :'phoneNumber'
|
@@ -45,6 +49,7 @@ module CyberSource
|
|
45
49
|
{
|
46
50
|
:'first_name' => :'String',
|
47
51
|
:'last_name' => :'String',
|
52
|
+
:'address1' => :'String',
|
48
53
|
:'email' => :'String',
|
49
54
|
:'country' => :'String',
|
50
55
|
:'phone_number' => :'String'
|
@@ -67,6 +72,10 @@ module CyberSource
|
|
67
72
|
self.last_name = attributes[:'lastName']
|
68
73
|
end
|
69
74
|
|
75
|
+
if attributes.has_key?(:'address1')
|
76
|
+
self.address1 = attributes[:'address1']
|
77
|
+
end
|
78
|
+
|
70
79
|
if attributes.has_key?(:'email')
|
71
80
|
self.email = attributes[:'email']
|
72
81
|
end
|
@@ -105,6 +114,12 @@ module CyberSource
|
|
105
114
|
@last_name = last_name
|
106
115
|
end
|
107
116
|
|
117
|
+
# Custom attribute writer method with validation
|
118
|
+
# @param [Object] address1 Value to be assigned
|
119
|
+
def address1=(address1)
|
120
|
+
@address1 = address1
|
121
|
+
end
|
122
|
+
|
108
123
|
# Custom attribute writer method with validation
|
109
124
|
# @param [Object] email Value to be assigned
|
110
125
|
def email=(email)
|
@@ -130,6 +145,7 @@ module CyberSource
|
|
130
145
|
self.class == o.class &&
|
131
146
|
first_name == o.first_name &&
|
132
147
|
last_name == o.last_name &&
|
148
|
+
address1 == o.address1 &&
|
133
149
|
email == o.email &&
|
134
150
|
country == o.country &&
|
135
151
|
phone_number == o.phone_number
|
@@ -144,7 +160,7 @@ module CyberSource
|
|
144
160
|
# Calculates hash code according to all attributes.
|
145
161
|
# @return [Fixnum] Hash code
|
146
162
|
def hash
|
147
|
-
[first_name, last_name, email, country, phone_number].hash
|
163
|
+
[first_name, last_name, address1, email, country, phone_number].hash
|
148
164
|
end
|
149
165
|
|
150
166
|
# Builds the object from hash
|