cybersource_rest_client 0.0.48 → 0.0.49
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/cybersource_rest_client/api/payments_api.rb +71 -0
- data/lib/cybersource_rest_client/api/push_funds_api.rb +131 -0
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +262 -0
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_risk_information_providers_provider_name.rb → pts_v2_payments_post201_response_1_order_information.rb} +14 -19
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_bill_to.rb +344 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to.rb +318 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information.rb +201 -0
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_risk_information_providers.rb → pts_v2_payments_post201_response_1_payment_information_bank.rb} +8 -10
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank_account.rb +184 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type_method.rb +184 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +238 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_avs.rb +190 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_seller_protection.rb +184 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information.rb +5 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_client_reference_information.rb +226 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information.rb +215 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information_sub_merchant.rb +318 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_client_reference_information.rb +238 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_defined_information.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +225 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information_merchant_descriptor.rb +270 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information.rb +208 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_surcharge.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information.rb +236 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +297 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_recurring_options.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options_initiator.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information.rb +384 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +281 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_customer.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_instrument_identifier.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_payment_instrument.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information.rb +425 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card.rb +270 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification.rb +222 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +11 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +30 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +21 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type.rb +2 -12
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +12 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +63 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information_personal_identification.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +65 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_client_reference_information.rb +297 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +36 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_e_wallet.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type.rb +203 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type_method.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +35 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_refund_options.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_agreement_information.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_client_reference_information.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information.rb +192 -0
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_payment_information_customer.rb → ptsv2refreshpaymentstatusid_payment_information_customer.rb} +1 -1
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information_payment_type.rb +193 -0
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_processing_information.rb +186 -0
- data/lib/cybersource_rest_client/models/push_funds201_response.rb +301 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links.rb +210 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links_customer.rb +195 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links_instrument_identifier.rb +195 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links_payment_instrument.rb +195 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links_self.rb +195 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_client_reference_information.rb +206 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_error_information.rb +217 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_error_information_details.rb +206 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_merchant_information.rb +183 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_merchant_information_merchant_descriptor.rb +222 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_order_information_amount_details.rb +247 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +264 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information.rb +183 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information_card.rb +206 -0
- data/lib/cybersource_rest_client/models/push_funds400_response.rb +247 -0
- data/lib/cybersource_rest_client/models/push_funds400_response_details.rb +194 -0
- data/lib/cybersource_rest_client/models/push_funds401_response.rb +226 -0
- data/lib/cybersource_rest_client/models/push_funds404_response.rb +226 -0
- data/lib/cybersource_rest_client/models/push_funds502_response.rb +236 -0
- data/lib/cybersource_rest_client/models/push_funds_request.rb +264 -0
- data/lib/cybersource_rest_client/models/refresh_payment_status_request.rb +210 -0
- data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
- data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +1 -1
- data/lib/cybersource_rest_client.rb +77 -3
- metadata +79 -5
@@ -32,6 +32,9 @@ module CyberSource
|
|
32
32
|
# The device type at the client side.
|
33
33
|
attr_accessor :device_type
|
34
34
|
|
35
|
+
# This field will contain the deep link that would help the Customer App to wake up.
|
36
|
+
attr_accessor :app_url
|
37
|
+
|
35
38
|
attr_accessor :raw_data
|
36
39
|
|
37
40
|
# Value of the Accept header sent by the customer’s web browser. **Note** If the customer’s browser provides a value, you must include it in your request.
|
@@ -76,6 +79,7 @@ module CyberSource
|
|
76
79
|
:'fingerprint_session_id' => :'fingerprintSessionId',
|
77
80
|
:'use_raw_fingerprint_session_id' => :'useRawFingerprintSessionId',
|
78
81
|
:'device_type' => :'deviceType',
|
82
|
+
:'app_url' => :'appUrl',
|
79
83
|
:'raw_data' => :'rawData',
|
80
84
|
:'http_accept_browser_value' => :'httpAcceptBrowserValue',
|
81
85
|
:'http_accept_content' => :'httpAcceptContent',
|
@@ -100,6 +104,7 @@ module CyberSource
|
|
100
104
|
:'fingerprint_session_id' => :'String',
|
101
105
|
:'use_raw_fingerprint_session_id' => :'BOOLEAN',
|
102
106
|
:'device_type' => :'String',
|
107
|
+
:'app_url' => :'String',
|
103
108
|
:'raw_data' => :'Array<Ptsv2paymentsDeviceInformationRawData>',
|
104
109
|
:'http_accept_browser_value' => :'String',
|
105
110
|
:'http_accept_content' => :'String',
|
@@ -147,6 +152,10 @@ module CyberSource
|
|
147
152
|
self.device_type = attributes[:'deviceType']
|
148
153
|
end
|
149
154
|
|
155
|
+
if attributes.has_key?(:'appUrl')
|
156
|
+
self.app_url = attributes[:'appUrl']
|
157
|
+
end
|
158
|
+
|
150
159
|
if attributes.has_key?(:'rawData')
|
151
160
|
if (value = attributes[:'rawData']).is_a?(Array)
|
152
161
|
self.raw_data = value
|
@@ -294,6 +303,7 @@ module CyberSource
|
|
294
303
|
fingerprint_session_id == o.fingerprint_session_id &&
|
295
304
|
use_raw_fingerprint_session_id == o.use_raw_fingerprint_session_id &&
|
296
305
|
device_type == o.device_type &&
|
306
|
+
app_url == o.app_url &&
|
297
307
|
raw_data == o.raw_data &&
|
298
308
|
http_accept_browser_value == o.http_accept_browser_value &&
|
299
309
|
http_accept_content == o.http_accept_content &&
|
@@ -317,7 +327,7 @@ module CyberSource
|
|
317
327
|
# Calculates hash code according to all attributes.
|
318
328
|
# @return [Fixnum] Hash code
|
319
329
|
def hash
|
320
|
-
[host_name, ip_address, user_agent, fingerprint_session_id, use_raw_fingerprint_session_id, device_type, raw_data, http_accept_browser_value, http_accept_content, http_browser_email, http_browser_language, http_browser_java_enabled, http_browser_java_script_enabled, http_browser_color_depth, http_browser_screen_height, http_browser_screen_width, http_browser_time_difference, user_agent_browser_value].hash
|
330
|
+
[host_name, ip_address, user_agent, fingerprint_session_id, use_raw_fingerprint_session_id, device_type, app_url, raw_data, http_accept_browser_value, http_accept_content, http_browser_email, http_browser_language, http_browser_java_enabled, http_browser_java_script_enabled, http_browser_color_depth, http_browser_screen_height, http_browser_screen_width, http_browser_time_difference, user_agent_browser_value].hash
|
321
331
|
end
|
322
332
|
|
323
333
|
# Builds the object from hash
|
@@ -51,6 +51,9 @@ module CyberSource
|
|
51
51
|
# customer would be redirected to this url based on the decision of the transaction
|
52
52
|
attr_accessor :failure_url
|
53
53
|
|
54
|
+
# URL for displaying payment results to the consumer (notifications) after the transaction is processed. Usually this URL belongs to merchant and its behavior is defined by merchant
|
55
|
+
attr_accessor :return_url
|
56
|
+
|
54
57
|
# Use this field only if you are requesting payment with Payer Authentication service together. Your company’s name as you want it to appear to the customer in the issuing bank’s authentication form. This value overrides the value specified by your merchant bank.
|
55
58
|
attr_accessor :merchant_name
|
56
59
|
|
@@ -70,6 +73,7 @@ module CyberSource
|
|
70
73
|
:'cancel_url' => :'cancelUrl',
|
71
74
|
:'success_url' => :'successUrl',
|
72
75
|
:'failure_url' => :'failureUrl',
|
76
|
+
:'return_url' => :'returnUrl',
|
73
77
|
:'merchant_name' => :'merchantName'
|
74
78
|
}
|
75
79
|
end
|
@@ -90,6 +94,7 @@ module CyberSource
|
|
90
94
|
:'cancel_url' => :'String',
|
91
95
|
:'success_url' => :'String',
|
92
96
|
:'failure_url' => :'String',
|
97
|
+
:'return_url' => :'String',
|
93
98
|
:'merchant_name' => :'String'
|
94
99
|
}
|
95
100
|
end
|
@@ -154,6 +159,10 @@ module CyberSource
|
|
154
159
|
self.failure_url = attributes[:'failureUrl']
|
155
160
|
end
|
156
161
|
|
162
|
+
if attributes.has_key?(:'returnUrl')
|
163
|
+
self.return_url = attributes[:'returnUrl']
|
164
|
+
end
|
165
|
+
|
157
166
|
if attributes.has_key?(:'merchantName')
|
158
167
|
self.merchant_name = attributes[:'merchantName']
|
159
168
|
end
|
@@ -256,6 +265,12 @@ module CyberSource
|
|
256
265
|
@failure_url = failure_url
|
257
266
|
end
|
258
267
|
|
268
|
+
# Custom attribute writer method with validation
|
269
|
+
# @param [Object] return_url Value to be assigned
|
270
|
+
def return_url=(return_url)
|
271
|
+
@return_url = return_url
|
272
|
+
end
|
273
|
+
|
259
274
|
# Custom attribute writer method with validation
|
260
275
|
# @param [Object] merchant_name Value to be assigned
|
261
276
|
def merchant_name=(merchant_name)
|
@@ -280,6 +295,7 @@ module CyberSource
|
|
280
295
|
cancel_url == o.cancel_url &&
|
281
296
|
success_url == o.success_url &&
|
282
297
|
failure_url == o.failure_url &&
|
298
|
+
return_url == o.return_url &&
|
283
299
|
merchant_name == o.merchant_name
|
284
300
|
end
|
285
301
|
|
@@ -292,7 +308,7 @@ module CyberSource
|
|
292
308
|
# Calculates hash code according to all attributes.
|
293
309
|
# @return [Fixnum] Hash code
|
294
310
|
def hash
|
295
|
-
[merchant_descriptor, domain_name, sales_organization_id, category_code, category_code_domestic, tax_id, vat_registration_number, card_acceptor_reference_number, transaction_local_date_time, service_fee_descriptor, cancel_url, success_url, failure_url, merchant_name].hash
|
311
|
+
[merchant_descriptor, domain_name, sales_organization_id, category_code, category_code_domestic, tax_id, vat_registration_number, card_acceptor_reference_number, transaction_local_date_time, service_fee_descriptor, cancel_url, success_url, failure_url, return_url, merchant_name].hash
|
296
312
|
end
|
297
313
|
|
298
314
|
# Builds the object from hash
|
@@ -14,10 +14,10 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Ptsv2paymentsOrderInformationAmountDetailsTaxDetails
|
17
|
-
# Indicates the type of tax data for the _taxDetails_ object. Possible values: - `alternate` - `local` - `national` - `vat` - `other` For processor-specific details, see the `alternate_tax_amount`, `local_tax`, `national_tax` or `vat_tax_amount` field descriptions in [Level II and Level III Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html/)
|
17
|
+
# Indicates the type of tax data for the _taxDetails_ object. Possible values: - `alternate` - `local` - `national` - `vat` - `other` - `green` For processor-specific details, see the `alternate_tax_amount`, `local_tax`, `national_tax` or `vat_tax_amount` field descriptions in [Level II and Level III Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html/)
|
18
18
|
attr_accessor :type
|
19
19
|
|
20
|
-
# Indicates the amount of tax based on the `type` field as described in the table below: | type | type description | | ------------- |:-------------:| | `alternate` | Total amount of alternate tax for the order. | | `local` | Sales tax for the order. | | `national` | National tax for the order. | | `vat` | Total amount of value added tax (VAT) included in the order. | | `other` | Other tax. |
|
20
|
+
# Indicates the amount of tax based on the `type` field as described in the table below: | type | type description | | ------------- |:-------------:| | `alternate` | Total amount of alternate tax for the order. | | `local` | Sales tax for the order. | | `national` | National tax for the order. | | `vat` | Total amount of value added tax (VAT) included in the order. | | `other` | Other tax. | | `green` | Green tax amount for Korean Processing. |
|
21
21
|
attr_accessor :amount
|
22
22
|
|
23
23
|
# Rate of VAT or other tax for the order. Example 0.040 (=4%) Valid range: 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated) For processor-specific details, see the `alternate_tax_amount`, `vat_rate`, `vat_tax_rate`, `local_tax`, `national_tax`, `vat_tax_amount` or `other_tax#_rate` field descriptions 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/)
|
@@ -52,6 +52,9 @@ module CyberSource
|
|
52
52
|
# Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] **Example** `12345-6789` When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] **Example** `A1B 2C3` **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### For Payouts: This field may be sent only for FDC Compass. #### American Express Direct Before sending the postal code to the processor, CyberSource removes all nonalphanumeric characters and, if the remaining value is longer than nine characters, truncates the value starting from the right side. #### Atos This field must not contain colons (:). #### 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. #### FDMS Nashville Required if `pointOfSaleInformation.entryMode=keyed` and the address is in the U.S. or Canada. Optional if `pointOfSaleInformation.entryMode=keyed` and the address is **not** in the U.S. or Canada. Not used if swiped. #### RBS WorldPay Atlanta: For best card-present keyed rates, send the postal code if `pointOfSaleInformation.entryMode=keyed`. #### TSYS Acquiring Solutions Required when `processingInformation.billPaymentOptions.billPayment=true` and `pointOfSaleInformation.entryMode=keyed`. #### All other processors: Optional field.
|
53
53
|
attr_accessor :postal_code
|
54
54
|
|
55
|
+
# U.S. county if available.
|
56
|
+
attr_accessor :county
|
57
|
+
|
55
58
|
# Payment card billing country. Use the two-character [ISO Standard Country Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf). #### 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. #### 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.
|
56
59
|
attr_accessor :country
|
57
60
|
|
@@ -73,6 +76,9 @@ module CyberSource
|
|
73
76
|
# Customer's phone number type. #### For Payouts: This field may be sent only for FDC Compass. Possible Values: * day * home * night * work
|
74
77
|
attr_accessor :phone_type
|
75
78
|
|
79
|
+
# Whether buyer has verified their identity. Used in case of PayPal transactions. Possible Values: * VERIFIED * UNVERIFIED
|
80
|
+
attr_accessor :verification_status
|
81
|
+
|
76
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
77
83
|
def self.attribute_map
|
78
84
|
{
|
@@ -89,13 +95,15 @@ module CyberSource
|
|
89
95
|
:'locality' => :'locality',
|
90
96
|
:'administrative_area' => :'administrativeArea',
|
91
97
|
:'postal_code' => :'postalCode',
|
98
|
+
:'county' => :'county',
|
92
99
|
:'country' => :'country',
|
93
100
|
:'district' => :'district',
|
94
101
|
:'building_number' => :'buildingNumber',
|
95
102
|
:'email' => :'email',
|
96
103
|
:'email_domain' => :'emailDomain',
|
97
104
|
:'phone_number' => :'phoneNumber',
|
98
|
-
:'phone_type' => :'phoneType'
|
105
|
+
:'phone_type' => :'phoneType',
|
106
|
+
:'verification_status' => :'verificationStatus'
|
99
107
|
}
|
100
108
|
end
|
101
109
|
|
@@ -115,13 +123,15 @@ module CyberSource
|
|
115
123
|
:'locality' => :'String',
|
116
124
|
:'administrative_area' => :'String',
|
117
125
|
:'postal_code' => :'String',
|
126
|
+
:'county' => :'String',
|
118
127
|
:'country' => :'String',
|
119
128
|
:'district' => :'String',
|
120
129
|
:'building_number' => :'String',
|
121
130
|
:'email' => :'String',
|
122
131
|
:'email_domain' => :'String',
|
123
132
|
:'phone_number' => :'String',
|
124
|
-
:'phone_type' => :'String'
|
133
|
+
:'phone_type' => :'String',
|
134
|
+
:'verification_status' => :'String'
|
125
135
|
}
|
126
136
|
end
|
127
137
|
|
@@ -185,6 +195,10 @@ module CyberSource
|
|
185
195
|
self.postal_code = attributes[:'postalCode']
|
186
196
|
end
|
187
197
|
|
198
|
+
if attributes.has_key?(:'county')
|
199
|
+
self.county = attributes[:'county']
|
200
|
+
end
|
201
|
+
|
188
202
|
if attributes.has_key?(:'country')
|
189
203
|
self.country = attributes[:'country']
|
190
204
|
end
|
@@ -212,6 +226,10 @@ module CyberSource
|
|
212
226
|
if attributes.has_key?(:'phoneType')
|
213
227
|
self.phone_type = attributes[:'phoneType']
|
214
228
|
end
|
229
|
+
|
230
|
+
if attributes.has_key?(:'verificationStatus')
|
231
|
+
self.verification_status = attributes[:'verificationStatus']
|
232
|
+
end
|
215
233
|
end
|
216
234
|
|
217
235
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -299,6 +317,12 @@ module CyberSource
|
|
299
317
|
@postal_code = postal_code
|
300
318
|
end
|
301
319
|
|
320
|
+
# Custom attribute writer method with validation
|
321
|
+
# @param [Object] county Value to be assigned
|
322
|
+
def county=(county)
|
323
|
+
@county = county
|
324
|
+
end
|
325
|
+
|
302
326
|
# Custom attribute writer method with validation
|
303
327
|
# @param [Object] country Value to be assigned
|
304
328
|
def country=(country)
|
@@ -353,13 +377,15 @@ module CyberSource
|
|
353
377
|
locality == o.locality &&
|
354
378
|
administrative_area == o.administrative_area &&
|
355
379
|
postal_code == o.postal_code &&
|
380
|
+
county == o.county &&
|
356
381
|
country == o.country &&
|
357
382
|
district == o.district &&
|
358
383
|
building_number == o.building_number &&
|
359
384
|
email == o.email &&
|
360
385
|
email_domain == o.email_domain &&
|
361
386
|
phone_number == o.phone_number &&
|
362
|
-
phone_type == o.phone_type
|
387
|
+
phone_type == o.phone_type &&
|
388
|
+
verification_status == o.verification_status
|
363
389
|
end
|
364
390
|
|
365
391
|
# @see the `==` method
|
@@ -371,7 +397,7 @@ module CyberSource
|
|
371
397
|
# Calculates hash code according to all attributes.
|
372
398
|
# @return [Fixnum] Hash code
|
373
399
|
def hash
|
374
|
-
[first_name, last_name, middle_name, name_suffix, title, company, address1, address2, address3, address4, locality, administrative_area, postal_code, country, district, building_number, email, email_domain, phone_number, phone_type].hash
|
400
|
+
[first_name, last_name, middle_name, name_suffix, title, company, address1, address2, address3, address4, locality, administrative_area, postal_code, county, country, district, building_number, email, email_domain, phone_number, phone_type, verification_status].hash
|
375
401
|
end
|
376
402
|
|
377
403
|
# Builds the object from hash
|
@@ -14,6 +14,12 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Ptsv2paymentsPaymentInformation
|
17
|
+
# Intent.
|
18
|
+
attr_accessor :intent
|
19
|
+
|
20
|
+
# Country code.
|
21
|
+
attr_accessor :country_code
|
22
|
+
|
17
23
|
attr_accessor :card
|
18
24
|
|
19
25
|
attr_accessor :tokenized_card
|
@@ -42,6 +48,8 @@ module CyberSource
|
|
42
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
49
|
def self.attribute_map
|
44
50
|
{
|
51
|
+
:'intent' => :'intent',
|
52
|
+
:'country_code' => :'countryCode',
|
45
53
|
:'card' => :'card',
|
46
54
|
:'tokenized_card' => :'tokenizedCard',
|
47
55
|
:'fluid_data' => :'fluidData',
|
@@ -60,6 +68,8 @@ module CyberSource
|
|
60
68
|
# Attribute type mapping.
|
61
69
|
def self.swagger_types
|
62
70
|
{
|
71
|
+
:'intent' => :'String',
|
72
|
+
:'country_code' => :'String',
|
63
73
|
:'card' => :'Ptsv2paymentsPaymentInformationCard',
|
64
74
|
:'tokenized_card' => :'Ptsv2paymentsPaymentInformationTokenizedCard',
|
65
75
|
:'fluid_data' => :'Ptsv2paymentsPaymentInformationFluidData',
|
@@ -83,6 +93,14 @@ module CyberSource
|
|
83
93
|
# convert string to symbol for hash key
|
84
94
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
85
95
|
|
96
|
+
if attributes.has_key?(:'intent')
|
97
|
+
self.intent = attributes[:'intent']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.has_key?(:'countryCode')
|
101
|
+
self.country_code = attributes[:'countryCode']
|
102
|
+
end
|
103
|
+
|
86
104
|
if attributes.has_key?(:'card')
|
87
105
|
self.card = attributes[:'card']
|
88
106
|
end
|
@@ -156,6 +174,8 @@ module CyberSource
|
|
156
174
|
def ==(o)
|
157
175
|
return true if self.equal?(o)
|
158
176
|
self.class == o.class &&
|
177
|
+
intent == o.intent &&
|
178
|
+
country_code == o.country_code &&
|
159
179
|
card == o.card &&
|
160
180
|
tokenized_card == o.tokenized_card &&
|
161
181
|
fluid_data == o.fluid_data &&
|
@@ -179,7 +199,7 @@ module CyberSource
|
|
179
199
|
# Calculates hash code according to all attributes.
|
180
200
|
# @return [Fixnum] Hash code
|
181
201
|
def hash
|
182
|
-
[card, tokenized_card, fluid_data, customer, payment_instrument, instrument_identifier, shipping_address, legacy_token, bank, payment_type, initiation_channel, e_wallet].hash
|
202
|
+
[intent, country_code, card, tokenized_card, fluid_data, customer, payment_instrument, instrument_identifier, shipping_address, legacy_token, bank, payment_type, initiation_channel, e_wallet].hash
|
183
203
|
end
|
184
204
|
|
185
205
|
# Builds the object from hash
|
@@ -25,13 +25,17 @@ module CyberSource
|
|
25
25
|
# Bank’s SWIFT code. You can use this field only when scoring a direct debit transaction. Required only for crossborder transactions. For all possible values, see the `bank_swiftcode` field description in the _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).
|
26
26
|
attr_accessor :swift_code
|
27
27
|
|
28
|
+
# Bank code of the consumer’s account
|
29
|
+
attr_accessor :code
|
30
|
+
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
32
|
def self.attribute_map
|
30
33
|
{
|
31
34
|
:'account' => :'account',
|
32
35
|
:'routing_number' => :'routingNumber',
|
33
36
|
:'iban' => :'iban',
|
34
|
-
:'swift_code' => :'swiftCode'
|
37
|
+
:'swift_code' => :'swiftCode',
|
38
|
+
:'code' => :'code'
|
35
39
|
}
|
36
40
|
end
|
37
41
|
|
@@ -41,7 +45,8 @@ module CyberSource
|
|
41
45
|
:'account' => :'Ptsv2paymentsPaymentInformationBankAccount',
|
42
46
|
:'routing_number' => :'String',
|
43
47
|
:'iban' => :'String',
|
44
|
-
:'swift_code' => :'String'
|
48
|
+
:'swift_code' => :'String',
|
49
|
+
:'code' => :'String'
|
45
50
|
}
|
46
51
|
end
|
47
52
|
|
@@ -68,6 +73,10 @@ module CyberSource
|
|
68
73
|
if attributes.has_key?(:'swiftCode')
|
69
74
|
self.swift_code = attributes[:'swiftCode']
|
70
75
|
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'code')
|
78
|
+
self.code = attributes[:'code']
|
79
|
+
end
|
71
80
|
end
|
72
81
|
|
73
82
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -95,6 +104,12 @@ module CyberSource
|
|
95
104
|
@iban = iban
|
96
105
|
end
|
97
106
|
|
107
|
+
# Custom attribute writer method with validation
|
108
|
+
# @param [Object] code Value to be assigned
|
109
|
+
def code=(code)
|
110
|
+
@code = code
|
111
|
+
end
|
112
|
+
|
98
113
|
# Checks equality by comparing each attribute.
|
99
114
|
# @param [Object] Object to be compared
|
100
115
|
def ==(o)
|
@@ -103,7 +118,8 @@ module CyberSource
|
|
103
118
|
account == o.account &&
|
104
119
|
routing_number == o.routing_number &&
|
105
120
|
iban == o.iban &&
|
106
|
-
swift_code == o.swift_code
|
121
|
+
swift_code == o.swift_code &&
|
122
|
+
code == o.code
|
107
123
|
end
|
108
124
|
|
109
125
|
# @see the `==` method
|
@@ -115,7 +131,7 @@ module CyberSource
|
|
115
131
|
# Calculates hash code according to all attributes.
|
116
132
|
# @return [Fixnum] Hash code
|
117
133
|
def hash
|
118
|
-
[account, routing_number, iban, swift_code].hash
|
134
|
+
[account, routing_number, iban, swift_code, code].hash
|
119
135
|
end
|
120
136
|
|
121
137
|
# Builds the object from hash
|
@@ -14,19 +14,15 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Ptsv2paymentsPaymentInformationPaymentType
|
17
|
-
# A Payment Type is an agreed means for a payee to receive legal tender from a payer. The way one pays for a commercial financial transaction. Examples: Card, Bank Transfer, Digital, Direct Debit. Possible values: - `CARD` (use this for a PIN debit transaction) - `CHECK` (use this for all eCheck payment transactions - ECP Debit, ECP Follow-on Credit, ECP StandAlone Credit) - `bankTransfer` (use for Online Bank Transafer for methods such as P24, iDeal, Estonia Bank)
|
17
|
+
# A Payment Type is an agreed means for a payee to receive legal tender from a payer. The way one pays for a commercial financial transaction. Examples: Card, Bank Transfer, Digital, Direct Debit. Possible values: - `CARD` (use this for a PIN debit transaction) - `CHECK` (use this for all eCheck payment transactions - ECP Debit, ECP Follow-on Credit, ECP StandAlone Credit) - `bankTransfer` (use for Online Bank Transafer for methods such as P24, iDeal, Estonia Bank, KCP) - `localCard` (KCP Local card via Altpay) - `carrierBilling` (KCP Carrier Billing via Altpay)
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
-
# Detailed information about the Payment Type. Possible values: - `DEBIT`: Use this value to indicate a PIN debit transaction. Examples: For Card, if Credit or Debit or PrePaid. For Bank Transfer, if Online Bank Transfer or Wire Transfers.
|
21
|
-
attr_accessor :sub_type_name
|
22
|
-
|
23
20
|
attr_accessor :method
|
24
21
|
|
25
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
23
|
def self.attribute_map
|
27
24
|
{
|
28
25
|
:'name' => :'name',
|
29
|
-
:'sub_type_name' => :'subTypeName',
|
30
26
|
:'method' => :'method'
|
31
27
|
}
|
32
28
|
end
|
@@ -35,7 +31,6 @@ module CyberSource
|
|
35
31
|
def self.swagger_types
|
36
32
|
{
|
37
33
|
:'name' => :'String',
|
38
|
-
:'sub_type_name' => :'String',
|
39
34
|
:'method' => :'Ptsv2paymentsPaymentInformationPaymentTypeMethod'
|
40
35
|
}
|
41
36
|
end
|
@@ -52,10 +47,6 @@ module CyberSource
|
|
52
47
|
self.name = attributes[:'name']
|
53
48
|
end
|
54
49
|
|
55
|
-
if attributes.has_key?(:'subTypeName')
|
56
|
-
self.sub_type_name = attributes[:'subTypeName']
|
57
|
-
end
|
58
|
-
|
59
50
|
if attributes.has_key?(:'method')
|
60
51
|
self.method = attributes[:'method']
|
61
52
|
end
|
@@ -80,7 +71,6 @@ module CyberSource
|
|
80
71
|
return true if self.equal?(o)
|
81
72
|
self.class == o.class &&
|
82
73
|
name == o.name &&
|
83
|
-
sub_type_name == o.sub_type_name &&
|
84
74
|
method == o.method
|
85
75
|
end
|
86
76
|
|
@@ -93,7 +83,7 @@ module CyberSource
|
|
93
83
|
# Calculates hash code according to all attributes.
|
94
84
|
# @return [Fixnum] Hash code
|
95
85
|
def hash
|
96
|
-
[name,
|
86
|
+
[name, method].hash
|
97
87
|
end
|
98
88
|
|
99
89
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb
CHANGED
@@ -14,20 +14,25 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Ptsv2paymentsPaymentInformationPaymentTypeMethod
|
17
|
-
# A Payment Type is enabled through a Method. Examples: Visa, Master Card, ApplePay, iDeal, 7Eleven, alfamart, etc For Japan Payment Processing Valid Values: - 1 Banking Data - 2 Authorization Data
|
17
|
+
# A Payment Type is enabled through a Method. Examples: Visa, Master Card, ApplePay, iDeal, 7Eleven, alfamart, etc For Japan Payment Processing Valid Values: - 1 Banking Data - 2 Authorization Data #### Via KCP - `KCP` : Local Card, Bank Transfer and Carrier Billing. - `PAYCO` - `KAKAOPAY` - `NAVERPAY`
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
+
# The payment channel that facilitates the transactions. This parameter can be used if the payment channels are listed on the merchant’s site, and the payment channel is known. Possible Values: #### Via PPRO - `alfaVa` - `kredivo` - `consumerBarCode` - `merchantQrCode` - `dokuWallet`
|
21
|
+
attr_accessor :type
|
22
|
+
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
24
|
def self.attribute_map
|
22
25
|
{
|
23
|
-
:'name' => :'name'
|
26
|
+
:'name' => :'name',
|
27
|
+
:'type' => :'type'
|
24
28
|
}
|
25
29
|
end
|
26
30
|
|
27
31
|
# Attribute type mapping.
|
28
32
|
def self.swagger_types
|
29
33
|
{
|
30
|
-
:'name' => :'String'
|
34
|
+
:'name' => :'String',
|
35
|
+
:'type' => :'String'
|
31
36
|
}
|
32
37
|
end
|
33
38
|
|
@@ -42,6 +47,10 @@ module CyberSource
|
|
42
47
|
if attributes.has_key?(:'name')
|
43
48
|
self.name = attributes[:'name']
|
44
49
|
end
|
50
|
+
|
51
|
+
if attributes.has_key?(:'type')
|
52
|
+
self.type = attributes[:'type']
|
53
|
+
end
|
45
54
|
end
|
46
55
|
|
47
56
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -62,7 +71,8 @@ module CyberSource
|
|
62
71
|
def ==(o)
|
63
72
|
return true if self.equal?(o)
|
64
73
|
self.class == o.class &&
|
65
|
-
name == o.name
|
74
|
+
name == o.name &&
|
75
|
+
type == o.type
|
66
76
|
end
|
67
77
|
|
68
78
|
# @see the `==` method
|
@@ -74,7 +84,7 @@ module CyberSource
|
|
74
84
|
# Calculates hash code according to all attributes.
|
75
85
|
# @return [Fixnum] Hash code
|
76
86
|
def hash
|
77
|
-
[name].hash
|
87
|
+
[name, type].hash
|
78
88
|
end
|
79
89
|
|
80
90
|
# Builds the object from hash
|
@@ -14,9 +14,12 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Ptsv2paymentsProcessingInformation
|
17
|
-
# Array of actions (one or more) to be included in the payment to invoke bundled
|
17
|
+
# Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested.
|
18
18
|
attr_accessor :action_list
|
19
19
|
|
20
|
+
# Indicates whether to use the customer’s escrow agreement. Possible values: - `true`: yes, use the customer’s escrow agreement. - `false`: no, do not use the customer’s escrow agreement.
|
21
|
+
attr_accessor :enable_escrow_option
|
22
|
+
|
20
23
|
# CyberSource tokens types you are performing a create on. If not supplied the default token type for the merchants token vault will be used. Valid values: - customer - paymentInstrument - instrumentIdentifier - shippingAddress
|
21
24
|
attr_accessor :action_token_types
|
22
25
|
|
@@ -100,6 +103,7 @@ module CyberSource
|
|
100
103
|
def self.attribute_map
|
101
104
|
{
|
102
105
|
:'action_list' => :'actionList',
|
106
|
+
:'enable_escrow_option' => :'enableEscrowOption',
|
103
107
|
:'action_token_types' => :'actionTokenTypes',
|
104
108
|
:'capture' => :'capture',
|
105
109
|
:'processor_id' => :'processorId',
|
@@ -136,6 +140,7 @@ module CyberSource
|
|
136
140
|
def self.swagger_types
|
137
141
|
{
|
138
142
|
:'action_list' => :'Array<String>',
|
143
|
+
:'enable_escrow_option' => :'BOOLEAN',
|
139
144
|
:'action_token_types' => :'Array<String>',
|
140
145
|
:'capture' => :'BOOLEAN',
|
141
146
|
:'processor_id' => :'String',
|
@@ -182,6 +187,10 @@ module CyberSource
|
|
182
187
|
end
|
183
188
|
end
|
184
189
|
|
190
|
+
if attributes.has_key?(:'enableEscrowOption')
|
191
|
+
self.enable_escrow_option = attributes[:'enableEscrowOption']
|
192
|
+
end
|
193
|
+
|
185
194
|
if attributes.has_key?(:'actionTokenTypes')
|
186
195
|
if (value = attributes[:'actionTokenTypes']).is_a?(Array)
|
187
196
|
self.action_token_types = value
|
@@ -418,6 +427,7 @@ module CyberSource
|
|
418
427
|
return true if self.equal?(o)
|
419
428
|
self.class == o.class &&
|
420
429
|
action_list == o.action_list &&
|
430
|
+
enable_escrow_option == o.enable_escrow_option &&
|
421
431
|
action_token_types == o.action_token_types &&
|
422
432
|
capture == o.capture &&
|
423
433
|
processor_id == o.processor_id &&
|
@@ -458,7 +468,7 @@ module CyberSource
|
|
458
468
|
# Calculates hash code according to all attributes.
|
459
469
|
# @return [Fixnum] Hash code
|
460
470
|
def hash
|
461
|
-
[action_list, action_token_types, capture, processor_id, business_application_id, commerce_indicator, commerce_indicator_label, payment_solution, reconciliation_id, link_id, purchase_level, payment_id, report_group, visa_checkout_id, industry_data_type, authorization_options, capture_options, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, wallet_type, national_net_domestic_data, japan_payment_options, mobile_remote_payment_type, extended_credit_total_count, network_routing_order, pay_by_points_indicator, is_return_auth_record_enabled].hash
|
471
|
+
[action_list, enable_escrow_option, action_token_types, capture, processor_id, business_application_id, commerce_indicator, commerce_indicator_label, payment_solution, reconciliation_id, link_id, purchase_level, payment_id, report_group, visa_checkout_id, industry_data_type, authorization_options, capture_options, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, wallet_type, national_net_domestic_data, japan_payment_options, mobile_remote_payment_type, extended_credit_total_count, network_routing_order, pay_by_points_indicator, is_return_auth_record_enabled].hash
|
462
472
|
end
|
463
473
|
|
464
474
|
# Builds the object from hash
|