cybersource_rest_client 0.0.50 → 0.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +4 -2
- data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
- data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +13 -4
- data/lib/cybersource_rest_client/models/create_payment_request.rb +13 -4
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +32 -8
- data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +32 -4
- data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information.rb +13 -4
- data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information_company.rb +190 -0
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_freight.rb +20 -4
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +84 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +13 -4
- 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_order_information.rb +13 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_bill_to.rb +206 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +21 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +17 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +102 -6
- data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb → pts_v2_payments_post201_response_watchlist_screening_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_export_compliance_information_watch_list.rb → pts_v2_payments_post201_response_watchlist_screening_information_watch_list.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_watch_list_matches.rb → pts_v2_payments_post201_response_watchlist_screening_information_watch_list_matches.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +20 -4
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +26 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_location.rb +238 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +36 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +26 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type.rb +11 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +21 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +12 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_watchlist_screening_information.rb +215 -0
- data/lib/cybersource_rest_client/models/{riskv1exportcomplianceinquiries_export_compliance_information_weights.rb → ptsv2payments_watchlist_screening_information_weights.rb} +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +20 -4
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +10 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +26 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +10 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +40 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +194 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +27 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_features.rb +286 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_issuer_information.rb +238 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_network.rb +190 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payout_options.rb +190 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +11 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_token_information.rb +24 -4
- data/lib/cybersource_rest_client.rb +13 -4
- metadata +31 -8
@@ -21,11 +21,15 @@ module CyberSource
|
|
21
21
|
# Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any `lineItems[].taxAmount` values in your request, CyberSource does not include `invoiceDetails.taxable` in the data it sends to the processor. For processor-specific information, see the `tax_indicator` field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) Possible values: - **true** - **false**
|
22
22
|
attr_accessor :taxable
|
23
23
|
|
24
|
+
# Shipping Tax rate applied to the freight amount. **Visa**: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). **Mastercard**: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%).
|
25
|
+
attr_accessor :tax_rate
|
26
|
+
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
28
|
def self.attribute_map
|
26
29
|
{
|
27
30
|
:'amount' => :'amount',
|
28
|
-
:'taxable' => :'taxable'
|
31
|
+
:'taxable' => :'taxable',
|
32
|
+
:'tax_rate' => :'taxRate'
|
29
33
|
}
|
30
34
|
end
|
31
35
|
|
@@ -33,7 +37,8 @@ module CyberSource
|
|
33
37
|
def self.swagger_types
|
34
38
|
{
|
35
39
|
:'amount' => :'String',
|
36
|
-
:'taxable' => :'BOOLEAN'
|
40
|
+
:'taxable' => :'BOOLEAN',
|
41
|
+
:'tax_rate' => :'String'
|
37
42
|
}
|
38
43
|
end
|
39
44
|
|
@@ -52,6 +57,10 @@ module CyberSource
|
|
52
57
|
if attributes.has_key?(:'taxable')
|
53
58
|
self.taxable = attributes[:'taxable']
|
54
59
|
end
|
60
|
+
|
61
|
+
if attributes.has_key?(:'taxRate')
|
62
|
+
self.tax_rate = attributes[:'taxRate']
|
63
|
+
end
|
55
64
|
end
|
56
65
|
|
57
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -73,13 +82,20 @@ module CyberSource
|
|
73
82
|
@amount = amount
|
74
83
|
end
|
75
84
|
|
85
|
+
# Custom attribute writer method with validation
|
86
|
+
# @param [Object] tax_rate Value to be assigned
|
87
|
+
def tax_rate=(tax_rate)
|
88
|
+
@tax_rate = tax_rate
|
89
|
+
end
|
90
|
+
|
76
91
|
# Checks equality by comparing each attribute.
|
77
92
|
# @param [Object] Object to be compared
|
78
93
|
def ==(o)
|
79
94
|
return true if self.equal?(o)
|
80
95
|
self.class == o.class &&
|
81
96
|
amount == o.amount &&
|
82
|
-
taxable == o.taxable
|
97
|
+
taxable == o.taxable &&
|
98
|
+
tax_rate == o.tax_rate
|
83
99
|
end
|
84
100
|
|
85
101
|
# @see the `==` method
|
@@ -91,7 +107,7 @@ module CyberSource
|
|
91
107
|
# Calculates hash code according to all attributes.
|
92
108
|
# @return [Fixnum] Hash code
|
93
109
|
def hash
|
94
|
-
[amount, taxable].hash
|
110
|
+
[amount, taxable, tax_rate].hash
|
95
111
|
end
|
96
112
|
|
97
113
|
# Builds the object from hash
|
@@ -27,13 +27,33 @@ module CyberSource
|
|
27
27
|
# Per-item price of the product. This value for this field cannot be negative. You must include either this field or the request-level field `orderInformation.amountDetails.totalAmount` in your request. You can include a decimal point (.), but you cannot include any other special characters. The value is truncated to the correct number of decimal places. #### DCC with a Third-Party Provider Set this field to the converted amount that was returned by the DCC provider. You must include either the 1st line item in the order and this field, or the request-level field `orderInformation.amountDetails.totalAmount` in your request. #### FDMS South If you accept IDR or CLP currencies, see the entry for FDMS South in the [Merchant Descriptors Using the SCMP API Guide.] (https://apps.cybersource.com/library/documentation/dev_guides/Merchant_Descriptors_SCMP_API/html/) #### Tax Calculation Required field for U.S., Canadian, international and value added taxes. #### Zero Amount Authorizations If your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. #### Maximum Field Lengths For GPN and JCN Gateway: Decimal (10) All other processors: Decimal (15)
|
28
28
|
attr_accessor :unit_price
|
29
29
|
|
30
|
+
# Discount applied to the item.
|
31
|
+
attr_accessor :discount_amount
|
32
|
+
|
33
|
+
# Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%)
|
34
|
+
attr_accessor :discount_rate
|
35
|
+
|
36
|
+
# Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. Optional field. #### Airlines processing Tax portion of the order amount. This value cannot exceed 99999999999999 (fourteen 9s). Format: English characters only. Optional request field for a line item. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. Note if you send this field in your tax request, the value in the field will override the tax engine
|
37
|
+
attr_accessor :tax_amount
|
38
|
+
|
39
|
+
# Tax rate applied to the item. For details, see `tax_rate` field description in the [Level II and Level III Processing Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html/) **Visa**: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). **Mastercard**: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%).
|
40
|
+
attr_accessor :tax_rate
|
41
|
+
|
42
|
+
# Total amount for the item. Normally calculated as the unit price times quantity. When `orderInformation.lineItems[].productCode` is \"gift_card\", this is the purchase amount total for prepaid gift cards in major units. Example: 123.45 USD = 123
|
43
|
+
attr_accessor :total_amount
|
44
|
+
|
30
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
46
|
def self.attribute_map
|
32
47
|
{
|
33
48
|
:'product_sku' => :'productSku',
|
34
49
|
:'product_name' => :'productName',
|
35
50
|
:'quantity' => :'quantity',
|
36
|
-
:'unit_price' => :'unitPrice'
|
51
|
+
:'unit_price' => :'unitPrice',
|
52
|
+
:'discount_amount' => :'discountAmount',
|
53
|
+
:'discount_rate' => :'discountRate',
|
54
|
+
:'tax_amount' => :'taxAmount',
|
55
|
+
:'tax_rate' => :'taxRate',
|
56
|
+
:'total_amount' => :'totalAmount'
|
37
57
|
}
|
38
58
|
end
|
39
59
|
|
@@ -43,7 +63,12 @@ module CyberSource
|
|
43
63
|
:'product_sku' => :'String',
|
44
64
|
:'product_name' => :'String',
|
45
65
|
:'quantity' => :'Integer',
|
46
|
-
:'unit_price' => :'String'
|
66
|
+
:'unit_price' => :'String',
|
67
|
+
:'discount_amount' => :'String',
|
68
|
+
:'discount_rate' => :'String',
|
69
|
+
:'tax_amount' => :'String',
|
70
|
+
:'tax_rate' => :'String',
|
71
|
+
:'total_amount' => :'String'
|
47
72
|
}
|
48
73
|
end
|
49
74
|
|
@@ -70,6 +95,26 @@ module CyberSource
|
|
70
95
|
if attributes.has_key?(:'unitPrice')
|
71
96
|
self.unit_price = attributes[:'unitPrice']
|
72
97
|
end
|
98
|
+
|
99
|
+
if attributes.has_key?(:'discountAmount')
|
100
|
+
self.discount_amount = attributes[:'discountAmount']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.has_key?(:'discountRate')
|
104
|
+
self.discount_rate = attributes[:'discountRate']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.has_key?(:'taxAmount')
|
108
|
+
self.tax_amount = attributes[:'taxAmount']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.has_key?(:'taxRate')
|
112
|
+
self.tax_rate = attributes[:'taxRate']
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.has_key?(:'totalAmount')
|
116
|
+
self.total_amount = attributes[:'totalAmount']
|
117
|
+
end
|
73
118
|
end
|
74
119
|
|
75
120
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -109,6 +154,36 @@ module CyberSource
|
|
109
154
|
@unit_price = unit_price
|
110
155
|
end
|
111
156
|
|
157
|
+
# Custom attribute writer method with validation
|
158
|
+
# @param [Object] discount_amount Value to be assigned
|
159
|
+
def discount_amount=(discount_amount)
|
160
|
+
@discount_amount = discount_amount
|
161
|
+
end
|
162
|
+
|
163
|
+
# Custom attribute writer method with validation
|
164
|
+
# @param [Object] discount_rate Value to be assigned
|
165
|
+
def discount_rate=(discount_rate)
|
166
|
+
@discount_rate = discount_rate
|
167
|
+
end
|
168
|
+
|
169
|
+
# Custom attribute writer method with validation
|
170
|
+
# @param [Object] tax_amount Value to be assigned
|
171
|
+
def tax_amount=(tax_amount)
|
172
|
+
@tax_amount = tax_amount
|
173
|
+
end
|
174
|
+
|
175
|
+
# Custom attribute writer method with validation
|
176
|
+
# @param [Object] tax_rate Value to be assigned
|
177
|
+
def tax_rate=(tax_rate)
|
178
|
+
@tax_rate = tax_rate
|
179
|
+
end
|
180
|
+
|
181
|
+
# Custom attribute writer method with validation
|
182
|
+
# @param [Object] total_amount Value to be assigned
|
183
|
+
def total_amount=(total_amount)
|
184
|
+
@total_amount = total_amount
|
185
|
+
end
|
186
|
+
|
112
187
|
# Checks equality by comparing each attribute.
|
113
188
|
# @param [Object] Object to be compared
|
114
189
|
def ==(o)
|
@@ -117,7 +192,12 @@ module CyberSource
|
|
117
192
|
product_sku == o.product_sku &&
|
118
193
|
product_name == o.product_name &&
|
119
194
|
quantity == o.quantity &&
|
120
|
-
unit_price == o.unit_price
|
195
|
+
unit_price == o.unit_price &&
|
196
|
+
discount_amount == o.discount_amount &&
|
197
|
+
discount_rate == o.discount_rate &&
|
198
|
+
tax_amount == o.tax_amount &&
|
199
|
+
tax_rate == o.tax_rate &&
|
200
|
+
total_amount == o.total_amount
|
121
201
|
end
|
122
202
|
|
123
203
|
# @see the `==` method
|
@@ -129,7 +209,7 @@ module CyberSource
|
|
129
209
|
# Calculates hash code according to all attributes.
|
130
210
|
# @return [Fixnum] Hash code
|
131
211
|
def hash
|
132
|
-
[product_sku, product_name, quantity, unit_price].hash
|
212
|
+
[product_sku, product_name, quantity, unit_price, discount_amount, discount_rate, tax_amount, tax_rate, total_amount].hash
|
133
213
|
end
|
134
214
|
|
135
215
|
# Builds the object from hash
|
@@ -58,6 +58,8 @@ module CyberSource
|
|
58
58
|
|
59
59
|
attr_accessor :consumer_authentication_information
|
60
60
|
|
61
|
+
attr_accessor :watchlist_screening_information
|
62
|
+
|
61
63
|
# Attribute mapping from ruby-style variable name to JSON key.
|
62
64
|
def self.attribute_map
|
63
65
|
{
|
@@ -80,7 +82,8 @@ module CyberSource
|
|
80
82
|
:'token_information' => :'tokenInformation',
|
81
83
|
:'buyer_information' => :'buyerInformation',
|
82
84
|
:'risk_information' => :'riskInformation',
|
83
|
-
:'consumer_authentication_information' => :'consumerAuthenticationInformation'
|
85
|
+
:'consumer_authentication_information' => :'consumerAuthenticationInformation',
|
86
|
+
:'watchlist_screening_information' => :'watchlistScreeningInformation'
|
84
87
|
}
|
85
88
|
end
|
86
89
|
|
@@ -106,7 +109,8 @@ module CyberSource
|
|
106
109
|
:'token_information' => :'PtsV2PaymentsPost201ResponseTokenInformation',
|
107
110
|
:'buyer_information' => :'PtsV2PaymentsPost201ResponseBuyerInformation',
|
108
111
|
:'risk_information' => :'PtsV2PaymentsPost201ResponseRiskInformation',
|
109
|
-
:'consumer_authentication_information' => :'PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation'
|
112
|
+
:'consumer_authentication_information' => :'PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation',
|
113
|
+
:'watchlist_screening_information' => :'PtsV2PaymentsPost201ResponseWatchlistScreeningInformation'
|
110
114
|
}
|
111
115
|
end
|
112
116
|
|
@@ -197,6 +201,10 @@ module CyberSource
|
|
197
201
|
if attributes.has_key?(:'consumerAuthenticationInformation')
|
198
202
|
self.consumer_authentication_information = attributes[:'consumerAuthenticationInformation']
|
199
203
|
end
|
204
|
+
|
205
|
+
if attributes.has_key?(:'watchlistScreeningInformation')
|
206
|
+
self.watchlist_screening_information = attributes[:'watchlistScreeningInformation']
|
207
|
+
end
|
200
208
|
end
|
201
209
|
|
202
210
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -248,7 +256,8 @@ module CyberSource
|
|
248
256
|
token_information == o.token_information &&
|
249
257
|
buyer_information == o.buyer_information &&
|
250
258
|
risk_information == o.risk_information &&
|
251
|
-
consumer_authentication_information == o.consumer_authentication_information
|
259
|
+
consumer_authentication_information == o.consumer_authentication_information &&
|
260
|
+
watchlist_screening_information == o.watchlist_screening_information
|
252
261
|
end
|
253
262
|
|
254
263
|
# @see the `==` method
|
@@ -260,7 +269,7 @@ module CyberSource
|
|
260
269
|
# Calculates hash code according to all attributes.
|
261
270
|
# @return [Fixnum] Hash code
|
262
271
|
def hash
|
263
|
-
[_links, id, submit_time_utc, status, reconciliation_id, error_information, client_reference_information, processing_information, processor_information, issuer_information, payment_account_information, payment_information, payment_insights_information, order_information, point_of_sale_information, installment_information, token_information, buyer_information, risk_information, consumer_authentication_information].hash
|
272
|
+
[_links, id, submit_time_utc, status, reconciliation_id, error_information, client_reference_information, processing_information, processor_information, issuer_information, payment_account_information, payment_information, payment_insights_information, order_information, point_of_sale_information, installment_information, token_information, buyer_information, risk_information, consumer_authentication_information, watchlist_screening_information].hash
|
264
273
|
end
|
265
274
|
|
266
275
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb
CHANGED
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class PtsV2PaymentsPost201ResponseErrorInformation
|
17
|
-
# The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD - PENDING_AUTHENTICATION - ACH_VERIFICATION_FAILED - DECISION_PROFILE_REVIEW - CONSUMER_AUTHENTICATION_REQUIRED - CONSUMER_AUTHENTICATION_FAILED - ALLOWABLE_PIN_RETRIES_EXCEEDED - PROCESSOR_ERROR
|
17
|
+
# The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD - PENDING_AUTHENTICATION - ACH_VERIFICATION_FAILED - DECISION_PROFILE_REVIEW - CONSUMER_AUTHENTICATION_REQUIRED - CONSUMER_AUTHENTICATION_FAILED - ALLOWABLE_PIN_RETRIES_EXCEEDED - PROCESSOR_ERROR - CUSTOMER_WATCHLIST_MATCH - ADDRESS_COUNTRY_WATCHLIST_MATCH - EMAIL_COUNTRY_WATCHLIST_MATCH - IP_COUNTRY_WATCHLIST_MATCH - INVALID_MERCHANT_CONFIGURATION
|
18
18
|
attr_accessor :reason
|
19
19
|
|
20
20
|
# The detail message related to the status and reason listed above.
|
data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information.rb
CHANGED
@@ -20,12 +20,15 @@ module CyberSource
|
|
20
20
|
|
21
21
|
attr_accessor :reward_points_details
|
22
22
|
|
23
|
+
attr_accessor :bill_to
|
24
|
+
|
23
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
26
|
def self.attribute_map
|
25
27
|
{
|
26
28
|
:'amount_details' => :'amountDetails',
|
27
29
|
:'invoice_details' => :'invoiceDetails',
|
28
|
-
:'reward_points_details' => :'rewardPointsDetails'
|
30
|
+
:'reward_points_details' => :'rewardPointsDetails',
|
31
|
+
:'bill_to' => :'billTo'
|
29
32
|
}
|
30
33
|
end
|
31
34
|
|
@@ -34,7 +37,8 @@ module CyberSource
|
|
34
37
|
{
|
35
38
|
:'amount_details' => :'PtsV2PaymentsPost201ResponseOrderInformationAmountDetails',
|
36
39
|
:'invoice_details' => :'PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails',
|
37
|
-
:'reward_points_details' => :'PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails'
|
40
|
+
:'reward_points_details' => :'PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails',
|
41
|
+
:'bill_to' => :'PtsV2PaymentsPost201ResponseOrderInformationBillTo'
|
38
42
|
}
|
39
43
|
end
|
40
44
|
|
@@ -57,6 +61,10 @@ module CyberSource
|
|
57
61
|
if attributes.has_key?(:'rewardPointsDetails')
|
58
62
|
self.reward_points_details = attributes[:'rewardPointsDetails']
|
59
63
|
end
|
64
|
+
|
65
|
+
if attributes.has_key?(:'billTo')
|
66
|
+
self.bill_to = attributes[:'billTo']
|
67
|
+
end
|
60
68
|
end
|
61
69
|
|
62
70
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -79,7 +87,8 @@ module CyberSource
|
|
79
87
|
self.class == o.class &&
|
80
88
|
amount_details == o.amount_details &&
|
81
89
|
invoice_details == o.invoice_details &&
|
82
|
-
reward_points_details == o.reward_points_details
|
90
|
+
reward_points_details == o.reward_points_details &&
|
91
|
+
bill_to == o.bill_to
|
83
92
|
end
|
84
93
|
|
85
94
|
# @see the `==` method
|
@@ -91,7 +100,7 @@ module CyberSource
|
|
91
100
|
# Calculates hash code according to all attributes.
|
92
101
|
# @return [Fixnum] Hash code
|
93
102
|
def hash
|
94
|
-
[amount_details, invoice_details, reward_points_details].hash
|
103
|
+
[amount_details, invoice_details, reward_points_details, bill_to].hash
|
95
104
|
end
|
96
105
|
|
97
106
|
# Builds the object from hash
|
@@ -0,0 +1,206 @@
|
|
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 PtsV2PaymentsPost201ResponseOrderInformationBillTo
|
17
|
+
# #### Visa Platform Connect Contains one of the following values that will identify the phone number result code in the account verification response message: 'VERIFIED' - Customer verified 'UNVERIFIED' - Customer not verified 'FAILED' - Customer verification failed
|
18
|
+
attr_accessor :alternate_phone_number_verification_status
|
19
|
+
|
20
|
+
# #### Visa Platform Connect Contains one of the following values that will identify the phone number result code in the account verification response message: 'VERIFIED' - Customer verified 'UNVERIFIED' - Customer not verified 'FAILED' - Customer verification failed
|
21
|
+
attr_accessor :alternate_email_verification_status
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'alternate_phone_number_verification_status' => :'alternatePhoneNumberVerificationStatus',
|
27
|
+
:'alternate_email_verification_status' => :'alternateEmailVerificationStatus'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attribute type mapping.
|
32
|
+
def self.swagger_types
|
33
|
+
{
|
34
|
+
:'alternate_phone_number_verification_status' => :'String',
|
35
|
+
:'alternate_email_verification_status' => :'String'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Initializes the object
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
+
def initialize(attributes = {})
|
42
|
+
return unless attributes.is_a?(Hash)
|
43
|
+
|
44
|
+
# convert string to symbol for hash key
|
45
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
|
+
|
47
|
+
if attributes.has_key?(:'alternatePhoneNumberVerificationStatus')
|
48
|
+
self.alternate_phone_number_verification_status = attributes[:'alternatePhoneNumberVerificationStatus']
|
49
|
+
end
|
50
|
+
|
51
|
+
if attributes.has_key?(:'alternateEmailVerificationStatus')
|
52
|
+
self.alternate_email_verification_status = attributes[:'alternateEmailVerificationStatus']
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
57
|
+
# @return Array for valid properties with the reasons
|
58
|
+
def list_invalid_properties
|
59
|
+
invalid_properties = Array.new
|
60
|
+
invalid_properties
|
61
|
+
end
|
62
|
+
|
63
|
+
# Check to see if the all the properties in the model are valid
|
64
|
+
# @return true if the model is valid
|
65
|
+
def valid?
|
66
|
+
true
|
67
|
+
end
|
68
|
+
|
69
|
+
# Custom attribute writer method with validation
|
70
|
+
# @param [Object] alternate_phone_number_verification_status Value to be assigned
|
71
|
+
def alternate_phone_number_verification_status=(alternate_phone_number_verification_status)
|
72
|
+
@alternate_phone_number_verification_status = alternate_phone_number_verification_status
|
73
|
+
end
|
74
|
+
|
75
|
+
# Custom attribute writer method with validation
|
76
|
+
# @param [Object] alternate_email_verification_status Value to be assigned
|
77
|
+
def alternate_email_verification_status=(alternate_email_verification_status)
|
78
|
+
@alternate_email_verification_status = alternate_email_verification_status
|
79
|
+
end
|
80
|
+
|
81
|
+
# Checks equality by comparing each attribute.
|
82
|
+
# @param [Object] Object to be compared
|
83
|
+
def ==(o)
|
84
|
+
return true if self.equal?(o)
|
85
|
+
self.class == o.class &&
|
86
|
+
alternate_phone_number_verification_status == o.alternate_phone_number_verification_status &&
|
87
|
+
alternate_email_verification_status == o.alternate_email_verification_status
|
88
|
+
end
|
89
|
+
|
90
|
+
# @see the `==` method
|
91
|
+
# @param [Object] Object to be compared
|
92
|
+
def eql?(o)
|
93
|
+
self == o
|
94
|
+
end
|
95
|
+
|
96
|
+
# Calculates hash code according to all attributes.
|
97
|
+
# @return [Fixnum] Hash code
|
98
|
+
def hash
|
99
|
+
[alternate_phone_number_verification_status, alternate_email_verification_status].hash
|
100
|
+
end
|
101
|
+
|
102
|
+
# Builds the object from hash
|
103
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
104
|
+
# @return [Object] Returns the model itself
|
105
|
+
def build_from_hash(attributes)
|
106
|
+
return nil unless attributes.is_a?(Hash)
|
107
|
+
self.class.swagger_types.each_pair do |key, type|
|
108
|
+
if type =~ /\AArray<(.*)>/i
|
109
|
+
# check to ensure the input is an array given that the the attribute
|
110
|
+
# is documented as an array but the input is not
|
111
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
112
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
113
|
+
end
|
114
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
115
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
116
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
117
|
+
end
|
118
|
+
|
119
|
+
self
|
120
|
+
end
|
121
|
+
|
122
|
+
# Deserializes the data based on type
|
123
|
+
# @param string type Data type
|
124
|
+
# @param string value Value to be deserialized
|
125
|
+
# @return [Object] Deserialized data
|
126
|
+
def _deserialize(type, value)
|
127
|
+
case type.to_sym
|
128
|
+
when :DateTime
|
129
|
+
DateTime.parse(value)
|
130
|
+
when :Date
|
131
|
+
Date.parse(value)
|
132
|
+
when :String
|
133
|
+
value.to_s
|
134
|
+
when :Integer
|
135
|
+
value.to_i
|
136
|
+
when :Float
|
137
|
+
value.to_f
|
138
|
+
when :BOOLEAN
|
139
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
140
|
+
true
|
141
|
+
else
|
142
|
+
false
|
143
|
+
end
|
144
|
+
when :Object
|
145
|
+
# generic object (usually a Hash), return directly
|
146
|
+
value
|
147
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
148
|
+
inner_type = Regexp.last_match[:inner_type]
|
149
|
+
value.map { |v| _deserialize(inner_type, v) }
|
150
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
151
|
+
k_type = Regexp.last_match[:k_type]
|
152
|
+
v_type = Regexp.last_match[:v_type]
|
153
|
+
{}.tap do |hash|
|
154
|
+
value.each do |k, v|
|
155
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
else # model
|
159
|
+
temp_model = CyberSource.const_get(type).new
|
160
|
+
temp_model.build_from_hash(value)
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
# Returns the string representation of the object
|
165
|
+
# @return [String] String presentation of the object
|
166
|
+
def to_s
|
167
|
+
to_hash.to_s
|
168
|
+
end
|
169
|
+
|
170
|
+
# to_body is an alias to to_hash (backward compatibility)
|
171
|
+
# @return [Hash] Returns the object in the form of hash
|
172
|
+
def to_body
|
173
|
+
to_hash
|
174
|
+
end
|
175
|
+
|
176
|
+
# Returns the object in the form of hash
|
177
|
+
# @return [Hash] Returns the object in the form of hash
|
178
|
+
def to_hash
|
179
|
+
hash = {}
|
180
|
+
self.class.attribute_map.each_pair do |attr, param|
|
181
|
+
value = self.send(attr)
|
182
|
+
next if value.nil?
|
183
|
+
hash[param] = _to_hash(value)
|
184
|
+
end
|
185
|
+
hash
|
186
|
+
end
|
187
|
+
|
188
|
+
# Outputs non-array value in the form of hash
|
189
|
+
# For object, use to_hash. Otherwise, just return the value
|
190
|
+
# @param [Object] value Any valid value
|
191
|
+
# @return [Hash] Returns the value in the form of hash
|
192
|
+
def _to_hash(value)
|
193
|
+
if value.is_a?(Array)
|
194
|
+
value.compact.map { |v| _to_hash(v) }
|
195
|
+
elsif value.is_a?(Hash)
|
196
|
+
{}.tap do |hash|
|
197
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
198
|
+
end
|
199
|
+
elsif value.respond_to? :to_hash
|
200
|
+
value.to_hash
|
201
|
+
else
|
202
|
+
value
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
@@ -23,7 +23,7 @@ module CyberSource
|
|
23
23
|
# 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 - '070': EFTPOS [^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
|
24
24
|
attr_accessor :type
|
25
25
|
|
26
|
-
# Confidence level of the tokenization. This value is assigned by the token service provider. **Note** This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. Returned by PIN debit credit or PIN debit purchase.
|
26
|
+
# Confidence level of the tokenization. This value is assigned by the token service provider. **Note** This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. Returned by PIN debit credit or PIN debit purchase. **Note** Merchants supported for **CyberSource through VisaNet**/**Visa Platform Connect** are advised not to use this field.
|
27
27
|
attr_accessor :assurance_level
|
28
28
|
|
29
29
|
# One of two possible meanings: - The two-digit month in which a token expires. - The two-digit month in which a card expires. Format: `MM` Possible values: `01` through `12` **NOTE** The meaning of this field is dependent on the payment processor that is returning the value in an authorization reply. Please see the processor-specific details below. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`01` through `12`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (`card_type=039`), if there is no expiration date on the card, use `12`.\\ **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Samsung Pay and Apple Pay Month in which the token expires. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. For processor-specific information, see the `customer_cc_expmo` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
@@ -35,6 +35,9 @@ module CyberSource
|
|
35
35
|
# Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. **Note** This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. #### PIN debit Optional field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
36
36
|
attr_accessor :requestor_id
|
37
37
|
|
38
|
+
# Confidence level of the tokenization. This value is assigned by the token service provider. **Note** This field is supported only for **Visa Platform Connect**
|
39
|
+
attr_accessor :assurance_method
|
40
|
+
|
38
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
42
|
def self.attribute_map
|
40
43
|
{
|
@@ -44,7 +47,8 @@ module CyberSource
|
|
44
47
|
:'assurance_level' => :'assuranceLevel',
|
45
48
|
:'expiration_month' => :'expirationMonth',
|
46
49
|
:'expiration_year' => :'expirationYear',
|
47
|
-
:'requestor_id' => :'requestorId'
|
50
|
+
:'requestor_id' => :'requestorId',
|
51
|
+
:'assurance_method' => :'assuranceMethod'
|
48
52
|
}
|
49
53
|
end
|
50
54
|
|
@@ -57,7 +61,8 @@ module CyberSource
|
|
57
61
|
:'assurance_level' => :'String',
|
58
62
|
:'expiration_month' => :'String',
|
59
63
|
:'expiration_year' => :'String',
|
60
|
-
:'requestor_id' => :'String'
|
64
|
+
:'requestor_id' => :'String',
|
65
|
+
:'assurance_method' => :'String'
|
61
66
|
}
|
62
67
|
end
|
63
68
|
|
@@ -96,6 +101,10 @@ module CyberSource
|
|
96
101
|
if attributes.has_key?(:'requestorId')
|
97
102
|
self.requestor_id = attributes[:'requestorId']
|
98
103
|
end
|
104
|
+
|
105
|
+
if attributes.has_key?(:'assuranceMethod')
|
106
|
+
self.assurance_method = attributes[:'assuranceMethod']
|
107
|
+
end
|
99
108
|
end
|
100
109
|
|
101
110
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -147,6 +156,12 @@ module CyberSource
|
|
147
156
|
@requestor_id = requestor_id
|
148
157
|
end
|
149
158
|
|
159
|
+
# Custom attribute writer method with validation
|
160
|
+
# @param [Object] assurance_method Value to be assigned
|
161
|
+
def assurance_method=(assurance_method)
|
162
|
+
@assurance_method = assurance_method
|
163
|
+
end
|
164
|
+
|
150
165
|
# Checks equality by comparing each attribute.
|
151
166
|
# @param [Object] Object to be compared
|
152
167
|
def ==(o)
|
@@ -158,7 +173,8 @@ module CyberSource
|
|
158
173
|
assurance_level == o.assurance_level &&
|
159
174
|
expiration_month == o.expiration_month &&
|
160
175
|
expiration_year == o.expiration_year &&
|
161
|
-
requestor_id == o.requestor_id
|
176
|
+
requestor_id == o.requestor_id &&
|
177
|
+
assurance_method == o.assurance_method
|
162
178
|
end
|
163
179
|
|
164
180
|
# @see the `==` method
|
@@ -170,7 +186,7 @@ module CyberSource
|
|
170
186
|
# Calculates hash code according to all attributes.
|
171
187
|
# @return [Fixnum] Hash code
|
172
188
|
def hash
|
173
|
-
[prefix, suffix, type, assurance_level, expiration_month, expiration_year, requestor_id].hash
|
189
|
+
[prefix, suffix, type, assurance_level, expiration_month, expiration_year, requestor_id, assurance_method].hash
|
174
190
|
end
|
175
191
|
|
176
192
|
# Builds the object from hash
|