first_data_gateway 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/lib/openapi_client.rb +41 -13
- data/lib/openapi_client/api/authentication_api.rb +2 -2
- data/lib/openapi_client/api/card_info_lookup_api.rb +2 -2
- data/lib/openapi_client/api/card_verification_api.rb +2 -2
- data/lib/openapi_client/api/currency_conversion_api.rb +2 -2
- data/lib/openapi_client/api/fraud_detect_api.rb +214 -4
- data/lib/openapi_client/api/order_api.rb +4 -4
- data/lib/openapi_client/api/payment_api.rb +9 -9
- data/lib/openapi_client/api/payment_schedules_api.rb +5 -5
- data/lib/openapi_client/api/payment_token_api.rb +7 -6
- data/lib/openapi_client/api/payment_url_api.rb +233 -2
- data/lib/openapi_client/api_client.rb +31 -31
- data/lib/openapi_client/api_error.rb +1 -1
- data/lib/openapi_client/configuration.rb +2 -5
- data/lib/openapi_client/models/access_token_response.rb +1 -1
- data/lib/openapi_client/models/account_updater_response.rb +1 -1
- data/lib/openapi_client/models/additional_amount_rate.rb +1 -1
- data/lib/openapi_client/models/additional_details.rb +1 -1
- data/lib/openapi_client/models/additional_transaction_details.rb +3 -3
- data/lib/openapi_client/models/address.rb +1 -1
- data/lib/openapi_client/models/airline.rb +1 -1
- data/lib/openapi_client/models/airline_ancillary_service_category.rb +1 -1
- data/lib/openapi_client/models/airline_travel_route.rb +1 -1
- data/lib/openapi_client/models/ali_pay.rb +1 -1
- data/lib/openapi_client/models/ali_pay_payment_method.rb +1 -1
- data/lib/openapi_client/models/ali_pay_payment_method_all_of.rb +1 -1
- data/lib/openapi_client/models/ali_pay_sale_transaction.rb +1 -1
- data/lib/openapi_client/models/ali_pay_sale_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/amount.rb +1 -1
- data/lib/openapi_client/models/amount_components.rb +1 -1
- data/lib/openapi_client/models/authentication.rb +1 -1
- data/lib/openapi_client/models/authentication_redirect.rb +1 -1
- data/lib/openapi_client/models/authentication_redirect_params.rb +1 -1
- data/lib/openapi_client/models/authentication_verification_request.rb +1 -1
- data/lib/openapi_client/models/avs_response.rb +1 -1
- data/lib/openapi_client/models/basic_response.rb +1 -1
- data/lib/openapi_client/models/billing.rb +1 -1
- data/lib/openapi_client/models/billing_address.rb +2 -2
- data/lib/openapi_client/models/car_rental.rb +1 -1
- data/lib/openapi_client/models/car_rental_extra_charges.rb +1 -1
- data/lib/openapi_client/models/card.rb +1 -1
- data/lib/openapi_client/models/card_function.rb +1 -1
- data/lib/openapi_client/models/card_info.rb +1 -1
- data/lib/openapi_client/models/card_info_lookup_request.rb +1 -1
- data/lib/openapi_client/models/card_info_lookup_response.rb +1 -1
- data/lib/openapi_client/models/card_verification_request.rb +1 -1
- data/lib/openapi_client/models/china_domestic.rb +1 -1
- data/lib/openapi_client/models/china_domestic_payment_method.rb +1 -1
- data/lib/openapi_client/models/china_domestic_payment_method_all_of.rb +1 -1
- data/lib/openapi_client/models/china_pn_r_sale_transaction.rb +1 -1
- data/lib/openapi_client/models/china_pn_r_sale_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/client_locale.rb +1 -1
- data/lib/openapi_client/models/client_registration.rb +281 -0
- data/lib/openapi_client/models/contact.rb +1 -1
- data/lib/openapi_client/models/create_payment_token.rb +1 -1
- data/lib/openapi_client/models/currency_conversion.rb +1 -1
- data/lib/openapi_client/models/customer.rb +1 -1
- data/lib/openapi_client/models/customer_address.rb +21 -14
- data/lib/openapi_client/models/dcc.rb +1 -1
- data/lib/openapi_client/models/dcc_all_of.rb +1 -1
- data/lib/openapi_client/models/dcc_exchange_rate_request.rb +1 -1
- data/lib/openapi_client/models/dcc_exchange_rate_request_all_of.rb +1 -1
- data/lib/openapi_client/models/device.rb +2 -2
- data/lib/openapi_client/models/disbursement.rb +1 -1
- data/lib/openapi_client/models/disbursement_transaction_type.rb +1 -1
- data/lib/openapi_client/models/document.rb +1 -1
- data/lib/openapi_client/models/dynamic_pricing.rb +13 -4
- data/lib/openapi_client/models/dynamic_pricing_all_of.rb +13 -4
- data/lib/openapi_client/models/dynamic_pricing_exchange_rate_request.rb +1 -1
- data/lib/openapi_client/models/dynamic_pricing_exchange_rate_request_all_of.rb +1 -1
- data/lib/openapi_client/models/encrypted_apple_pay.rb +1 -1
- data/lib/openapi_client/models/encrypted_apple_pay_header.rb +1 -1
- data/lib/openapi_client/models/encrypted_apple_pay_wallet_payment_method.rb +1 -1
- data/lib/openapi_client/models/encrypted_apple_pay_wallet_payment_method_all_of.rb +1 -1
- data/lib/openapi_client/models/encrypted_google_pay.rb +1 -1
- data/lib/openapi_client/models/encrypted_google_pay_data.rb +1 -1
- data/lib/openapi_client/models/encrypted_google_pay_wallet_payment_method.rb +1 -1
- data/lib/openapi_client/models/encrypted_google_pay_wallet_payment_method_all_of.rb +1 -1
- data/lib/openapi_client/models/encrypted_samsung_pay.rb +251 -0
- data/lib/openapi_client/models/encrypted_samsung_pay_wallet_payment_method.rb +225 -0
- data/lib/openapi_client/models/encrypted_samsung_pay_wallet_payment_method_all_of.rb +201 -0
- data/lib/openapi_client/models/error.rb +1 -1
- data/lib/openapi_client/models/error_details.rb +1 -1
- data/lib/openapi_client/models/error_message.rb +208 -0
- data/lib/openapi_client/models/error_response.rb +1 -1
- data/lib/openapi_client/models/exchange_rate_request.rb +1 -1
- data/lib/openapi_client/models/exchange_rate_response.rb +1 -1
- data/lib/openapi_client/models/expiration.rb +1 -1
- data/lib/openapi_client/models/{merchant_location_merchant_address.rb → fraud_address.rb} +9 -9
- data/lib/openapi_client/models/fraud_order.rb +2 -2
- data/lib/openapi_client/models/fraud_order_items.rb +1 -1
- data/lib/openapi_client/models/fraud_registration.rb +259 -0
- data/lib/openapi_client/models/fraud_registration_card.rb +248 -0
- data/lib/openapi_client/models/fraud_registration_device.rb +375 -0
- data/lib/openapi_client/models/fraud_registration_device_items.rb +287 -0
- data/lib/openapi_client/models/{billing_address_phone.rb → fraud_registration_error.rb} +14 -23
- data/lib/openapi_client/models/fraud_registration_response.rb +279 -0
- data/lib/openapi_client/models/fraud_score.rb +232 -0
- data/lib/openapi_client/models/frequency.rb +1 -1
- data/lib/openapi_client/models/funding_transaction_type.rb +1 -1
- data/lib/openapi_client/models/industry_specific_extensions.rb +1 -1
- data/lib/openapi_client/models/installment_options.rb +1 -1
- data/lib/openapi_client/models/{payment_issuer_response.rb → issuer_response.rb} +4 -4
- data/lib/openapi_client/models/{device_networks.rb → items.rb} +4 -4
- data/lib/openapi_client/models/{merchant_location.rb → location.rb} +5 -5
- data/lib/openapi_client/models/lodging.rb +1 -1
- data/lib/openapi_client/models/lodging_extra_charges.rb +1 -1
- data/lib/openapi_client/models/loyalty.rb +1 -1
- data/lib/openapi_client/models/merchant.rb +2 -2
- data/lib/openapi_client/models/{payment_pay_method.rb → method.rb} +4 -4
- data/lib/openapi_client/models/order.rb +1 -1
- data/lib/openapi_client/models/order_error_response.rb +9 -28
- data/lib/openapi_client/models/order_response.rb +9 -28
- data/lib/openapi_client/models/pay_pal.rb +1 -1
- data/lib/openapi_client/models/pay_pal_payment_method.rb +1 -1
- data/lib/openapi_client/models/pay_pal_payment_method_all_of.rb +1 -1
- data/lib/openapi_client/models/payment.rb +10 -10
- data/lib/openapi_client/models/payment_card.rb +1 -1
- data/lib/openapi_client/models/payment_card_credit_transaction.rb +1 -1
- data/lib/openapi_client/models/payment_card_disbursement_transaction.rb +1 -1
- data/lib/openapi_client/models/payment_card_disbursement_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/payment_card_forced_ticket_transaction.rb +1 -1
- data/lib/openapi_client/models/payment_card_forced_ticket_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/payment_card_payer_auth_transaction.rb +1 -1
- data/lib/openapi_client/models/payment_card_payer_auth_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/payment_card_payment_method.rb +1 -1
- data/lib/openapi_client/models/payment_card_payment_method_all_of.rb +1 -1
- data/lib/openapi_client/models/payment_card_payment_tokenization_request.rb +1 -1
- data/lib/openapi_client/models/payment_card_payment_tokenization_request_all_of.rb +1 -1
- data/lib/openapi_client/models/payment_card_pre_auth_transaction.rb +1 -1
- data/lib/openapi_client/models/payment_card_pre_auth_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/payment_card_sale_transaction.rb +1 -1
- data/lib/openapi_client/models/payment_card_sale_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/payment_device.rb +336 -0
- data/lib/openapi_client/models/payment_device_credit_transaction.rb +307 -0
- data/lib/openapi_client/models/payment_device_credit_transaction_all_of.rb +201 -0
- data/lib/openapi_client/models/payment_device_disbursement_transaction.rb +321 -0
- data/lib/openapi_client/models/payment_device_disbursement_transaction_all_of.rb +215 -0
- data/lib/openapi_client/models/payment_device_payment_method.rb +219 -0
- data/lib/openapi_client/models/payment_device_payment_method_all_of.rb +210 -0
- data/lib/openapi_client/models/payment_device_payment_tokenization_request.rb +285 -0
- data/lib/openapi_client/models/payment_device_payment_tokenization_request_all_of.rb +201 -0
- data/lib/openapi_client/models/payment_device_pre_auth_transaction.rb +346 -0
- data/lib/openapi_client/models/payment_device_pre_auth_transaction_all_of.rb +240 -0
- data/lib/openapi_client/models/payment_device_sale_transaction.rb +325 -0
- data/lib/openapi_client/models/payment_device_sale_transaction_all_of.rb +219 -0
- data/lib/openapi_client/models/payment_facilitator.rb +1 -1
- data/lib/openapi_client/models/payment_method_details.rb +1 -1
- data/lib/openapi_client/models/payment_method_payment_schedules_request.rb +1 -1
- data/lib/openapi_client/models/payment_method_payment_schedules_request_all_of.rb +1 -1
- data/lib/openapi_client/models/payment_method_type.rb +2 -1
- data/lib/openapi_client/models/payment_registration.rb +331 -0
- data/lib/openapi_client/models/payment_schedules_error_response.rb +1 -1
- data/lib/openapi_client/models/payment_schedules_request.rb +1 -1
- data/lib/openapi_client/models/payment_schedules_response.rb +1 -1
- data/lib/openapi_client/models/payment_token_credit_transaction.rb +1 -1
- data/lib/openapi_client/models/payment_token_credit_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/payment_token_details.rb +1 -1
- data/lib/openapi_client/models/payment_token_details_all_of.rb +1 -1
- data/lib/openapi_client/models/payment_token_disbursement_transaction.rb +1 -1
- data/lib/openapi_client/models/payment_token_disbursement_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/payment_token_payment_method.rb +1 -1
- data/lib/openapi_client/models/payment_token_payment_method_all_of.rb +1 -1
- data/lib/openapi_client/models/payment_token_pre_auth_transaction.rb +1 -1
- data/lib/openapi_client/models/payment_token_pre_auth_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/payment_token_sale_transaction.rb +1 -1
- data/lib/openapi_client/models/payment_token_sale_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/payment_tokenization_error_response.rb +1 -1
- data/lib/openapi_client/models/payment_tokenization_request.rb +1 -1
- data/lib/openapi_client/models/payment_tokenization_response.rb +1 -1
- data/lib/openapi_client/models/payment_url_detail.rb +252 -0
- data/lib/openapi_client/models/payment_url_detail_response.rb +236 -0
- data/lib/openapi_client/models/payment_url_error_response.rb +1 -1
- data/lib/openapi_client/models/payment_url_request.rb +1 -1
- data/lib/openapi_client/models/payment_url_response.rb +1 -1
- data/lib/openapi_client/models/payment_url_status.rb +38 -0
- data/lib/openapi_client/models/paypal_credit_transaction.rb +1 -1
- data/lib/openapi_client/models/paypal_credit_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/{customer_address_phone.rb → phone.rb} +4 -4
- data/lib/openapi_client/models/post_auth_transaction.rb +1 -1
- data/lib/openapi_client/models/post_auth_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/primary_transaction.rb +1 -1
- data/lib/openapi_client/models/processor_data.rb +1 -1
- data/lib/openapi_client/models/purchase_cards.rb +1 -1
- data/lib/openapi_client/models/purchase_cards_level2.rb +1 -1
- data/lib/openapi_client/models/purchase_cards_level3.rb +2 -2
- data/lib/openapi_client/models/purchase_cards_level3_line_items.rb +1 -1
- data/lib/openapi_client/models/receiver_info.rb +1 -1
- data/lib/openapi_client/models/recurring_payment_details.rb +1 -1
- data/lib/openapi_client/models/recurring_payment_details_response.rb +9 -28
- data/lib/openapi_client/models/referenced_order_payment_schedules_request.rb +1 -1
- data/lib/openapi_client/models/referenced_order_payment_schedules_request_all_of.rb +1 -1
- data/lib/openapi_client/models/referenced_order_payment_tokenization_request.rb +1 -1
- data/lib/openapi_client/models/referenced_order_payment_tokenization_request_all_of.rb +1 -1
- data/lib/openapi_client/models/registration_method.rb +300 -0
- data/lib/openapi_client/models/response_amount_components.rb +1 -1
- data/lib/openapi_client/models/response_amount_components_all_of.rb +1 -1
- data/lib/openapi_client/models/response_type.rb +1 -1
- data/lib/openapi_client/models/return_transaction.rb +1 -1
- data/lib/openapi_client/models/return_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/score_only_request.rb +1 -13
- data/lib/openapi_client/models/score_only_response.rb +1 -1
- data/lib/openapi_client/models/score_only_response_fraud_score.rb +1 -1
- data/lib/openapi_client/models/score_only_response_fraud_score_explanations.rb +1 -1
- data/lib/openapi_client/models/secondary_transaction.rb +1 -1
- data/lib/openapi_client/models/secure3_d10_authentication_result.rb +1 -1
- data/lib/openapi_client/models/secure3_d10_authentication_result_all_of.rb +1 -1
- data/lib/openapi_client/models/secure3_d21_authentication_result.rb +1 -1
- data/lib/openapi_client/models/secure3_d21_authentication_result_all_of.rb +1 -1
- data/lib/openapi_client/models/secure3d_authentication_request.rb +1 -1
- data/lib/openapi_client/models/secure3d_authentication_verification_request.rb +1 -1
- data/lib/openapi_client/models/secure3d_authentication_verification_request_all_of.rb +1 -1
- data/lib/openapi_client/models/secure3d_response.rb +1 -1
- data/lib/openapi_client/models/sender_info.rb +1 -1
- data/lib/openapi_client/models/sepa.rb +1 -1
- data/lib/openapi_client/models/sepa_mandate.rb +1 -1
- data/lib/openapi_client/models/sepa_payment_method.rb +1 -1
- data/lib/openapi_client/models/sepa_payment_method_all_of.rb +1 -1
- data/lib/openapi_client/models/sepa_sale_transaction.rb +1 -1
- data/lib/openapi_client/models/sepa_sale_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/{fraud_order_ship_to_address.rb → ship_to_address.rb} +4 -4
- data/lib/openapi_client/models/shipping.rb +1 -1
- data/lib/openapi_client/models/soft_descriptor.rb +1 -1
- data/lib/openapi_client/models/split_shipment.rb +1 -1
- data/lib/openapi_client/models/stored_credential.rb +1 -1
- data/lib/openapi_client/models/sub_merchant_data.rb +1 -1
- data/lib/openapi_client/models/sub_merchant_split.rb +1 -1
- data/lib/openapi_client/models/transaction_error_response.rb +1 -1
- data/lib/openapi_client/models/transaction_origin.rb +1 -1
- data/lib/openapi_client/models/transaction_response.rb +1 -1
- data/lib/openapi_client/models/transaction_type.rb +1 -1
- data/lib/openapi_client/models/union_pay_authentication_request.rb +1 -1
- data/lib/openapi_client/models/union_pay_authentication_request_all_of.rb +1 -1
- data/lib/openapi_client/models/union_pay_authentication_verification_request.rb +1 -1
- data/lib/openapi_client/models/union_pay_authentication_verification_request_all_of.rb +1 -1
- data/lib/openapi_client/models/use_payment_token.rb +27 -2
- data/lib/openapi_client/models/{payment_verification3ds.rb → verification3ds.rb} +4 -4
- data/lib/openapi_client/models/{payment_verification_avs.rb → verification_avs.rb} +4 -4
- data/lib/openapi_client/models/{payment_verification_cvv.rb → verification_cvv.rb} +4 -4
- data/lib/openapi_client/models/void_transaction.rb +1 -1
- data/lib/openapi_client/models/wallet_payment_method.rb +2 -2
- data/lib/openapi_client/models/wallet_pre_auth_transaction.rb +1 -1
- data/lib/openapi_client/models/wallet_pre_auth_transaction_all_of.rb +1 -1
- data/lib/openapi_client/models/wallet_sale_transaction.rb +1 -1
- data/lib/openapi_client/models/wallet_sale_transaction_all_of.rb +1 -1
- data/lib/openapi_client/version.rb +2 -2
- data/lib/simple/gateway.rb +73 -0
- metadata +42 -17
- data/lib/openapi_client/.DS_Store +0 -0
- data/lib/openapi_client/api/.DS_Store +0 -0
- data/lib/openapi_client/models/.DS_Store +0 -0
- data/lib/openapi_client/models/transaction.rb +0 -350
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9b88c1a482b7fd9f69814e6d3d00cd6b8455875
|
4
|
+
data.tar.gz: 7ca7d59d8ea9c7d221e1d1db872c489f223216cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: deab07fa7190b354fe708accaf7d29c8977effa7e29c7a719393ba56b5638d41705533d667434ffb8b6f94d03a3e563d153524c966db633cf290cfc2fabe9aac
|
7
|
+
data.tar.gz: dbaa01991fa4b48e3dfcb8f24438143a3db6edab709057312a406ebe26b293c51ed6fbdb91d1b84114b338e0a327ed041ae70cab9fd31e25284c72251421c1ce
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ gem install first_data_gateway
|
|
13
13
|
|
14
14
|
Then add the gem to your Gemfile:
|
15
15
|
|
16
|
-
gem 'first_data_gateway', '~> 1.
|
16
|
+
gem 'first_data_gateway', '~> 1.4.0'
|
17
17
|
|
18
18
|
### Install from Git
|
19
19
|
|
@@ -229,4 +229,3 @@ Class | Method | HTTP request | Description
|
|
229
229
|
- [OpenapiClient::UnionPayAuthenticationVerificationRequest](docs/UnionPayAuthenticationVerificationRequest.md)
|
230
230
|
- [OpenapiClient::UsePaymentToken](docs/UsePaymentToken.md)
|
231
231
|
- [OpenapiClient::VoidTransaction](docs/VoidTransaction.md)
|
232
|
-
|
data/lib/openapi_client.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.
|
6
|
+
The version of the OpenAPI document: 6.8.0.20190731.002
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: unset
|
@@ -41,7 +41,6 @@ require 'openapi_client/models/authentication_verification_request'
|
|
41
41
|
require 'openapi_client/models/basic_response'
|
42
42
|
require 'openapi_client/models/billing'
|
43
43
|
require 'openapi_client/models/billing_address'
|
44
|
-
require 'openapi_client/models/billing_address_phone'
|
45
44
|
require 'openapi_client/models/car_rental'
|
46
45
|
require 'openapi_client/models/car_rental_extra_charges'
|
47
46
|
require 'openapi_client/models/card'
|
@@ -56,18 +55,17 @@ require 'openapi_client/models/china_domestic_payment_method_all_of'
|
|
56
55
|
require 'openapi_client/models/china_pn_r_sale_transaction'
|
57
56
|
require 'openapi_client/models/china_pn_r_sale_transaction_all_of'
|
58
57
|
require 'openapi_client/models/client_locale'
|
58
|
+
require 'openapi_client/models/client_registration'
|
59
59
|
require 'openapi_client/models/contact'
|
60
60
|
require 'openapi_client/models/create_payment_token'
|
61
61
|
require 'openapi_client/models/currency_conversion'
|
62
62
|
require 'openapi_client/models/customer'
|
63
63
|
require 'openapi_client/models/customer_address'
|
64
|
-
require 'openapi_client/models/customer_address_phone'
|
65
64
|
require 'openapi_client/models/dcc_exchange_rate_request'
|
66
65
|
require 'openapi_client/models/dcc_exchange_rate_request_all_of'
|
67
66
|
require 'openapi_client/models/dcc'
|
68
67
|
require 'openapi_client/models/dcc_all_of'
|
69
68
|
require 'openapi_client/models/device'
|
70
|
-
require 'openapi_client/models/device_networks'
|
71
69
|
require 'openapi_client/models/disbursement'
|
72
70
|
require 'openapi_client/models/disbursement_transaction_type'
|
73
71
|
require 'openapi_client/models/document'
|
@@ -83,25 +81,38 @@ require 'openapi_client/models/encrypted_google_pay'
|
|
83
81
|
require 'openapi_client/models/encrypted_google_pay_data'
|
84
82
|
require 'openapi_client/models/encrypted_google_pay_wallet_payment_method'
|
85
83
|
require 'openapi_client/models/encrypted_google_pay_wallet_payment_method_all_of'
|
84
|
+
require 'openapi_client/models/encrypted_samsung_pay'
|
85
|
+
require 'openapi_client/models/encrypted_samsung_pay_wallet_payment_method'
|
86
|
+
require 'openapi_client/models/encrypted_samsung_pay_wallet_payment_method_all_of'
|
86
87
|
require 'openapi_client/models/error'
|
87
88
|
require 'openapi_client/models/error_details'
|
89
|
+
require 'openapi_client/models/error_message'
|
88
90
|
require 'openapi_client/models/error_response'
|
89
91
|
require 'openapi_client/models/exchange_rate_request'
|
90
92
|
require 'openapi_client/models/exchange_rate_response'
|
91
93
|
require 'openapi_client/models/expiration'
|
94
|
+
require 'openapi_client/models/fraud_address'
|
92
95
|
require 'openapi_client/models/fraud_order'
|
93
96
|
require 'openapi_client/models/fraud_order_items'
|
94
|
-
require 'openapi_client/models/
|
97
|
+
require 'openapi_client/models/fraud_registration'
|
98
|
+
require 'openapi_client/models/fraud_registration_card'
|
99
|
+
require 'openapi_client/models/fraud_registration_device'
|
100
|
+
require 'openapi_client/models/fraud_registration_device_items'
|
101
|
+
require 'openapi_client/models/fraud_registration_error'
|
102
|
+
require 'openapi_client/models/fraud_registration_response'
|
103
|
+
require 'openapi_client/models/fraud_score'
|
95
104
|
require 'openapi_client/models/frequency'
|
96
105
|
require 'openapi_client/models/funding_transaction_type'
|
97
106
|
require 'openapi_client/models/industry_specific_extensions'
|
98
107
|
require 'openapi_client/models/installment_options'
|
108
|
+
require 'openapi_client/models/issuer_response'
|
109
|
+
require 'openapi_client/models/items'
|
110
|
+
require 'openapi_client/models/location'
|
99
111
|
require 'openapi_client/models/lodging'
|
100
112
|
require 'openapi_client/models/lodging_extra_charges'
|
101
113
|
require 'openapi_client/models/loyalty'
|
102
114
|
require 'openapi_client/models/merchant'
|
103
|
-
require 'openapi_client/models/
|
104
|
-
require 'openapi_client/models/merchant_location_merchant_address'
|
115
|
+
require 'openapi_client/models/method'
|
105
116
|
require 'openapi_client/models/order'
|
106
117
|
require 'openapi_client/models/order_error_response'
|
107
118
|
require 'openapi_client/models/order_response'
|
@@ -125,13 +136,25 @@ require 'openapi_client/models/payment_card_pre_auth_transaction'
|
|
125
136
|
require 'openapi_client/models/payment_card_pre_auth_transaction_all_of'
|
126
137
|
require 'openapi_client/models/payment_card_sale_transaction'
|
127
138
|
require 'openapi_client/models/payment_card_sale_transaction_all_of'
|
139
|
+
require 'openapi_client/models/payment_device'
|
140
|
+
require 'openapi_client/models/payment_device_credit_transaction'
|
141
|
+
require 'openapi_client/models/payment_device_credit_transaction_all_of'
|
142
|
+
require 'openapi_client/models/payment_device_disbursement_transaction'
|
143
|
+
require 'openapi_client/models/payment_device_disbursement_transaction_all_of'
|
144
|
+
require 'openapi_client/models/payment_device_payment_method'
|
145
|
+
require 'openapi_client/models/payment_device_payment_method_all_of'
|
146
|
+
require 'openapi_client/models/payment_device_payment_tokenization_request'
|
147
|
+
require 'openapi_client/models/payment_device_payment_tokenization_request_all_of'
|
148
|
+
require 'openapi_client/models/payment_device_pre_auth_transaction'
|
149
|
+
require 'openapi_client/models/payment_device_pre_auth_transaction_all_of'
|
150
|
+
require 'openapi_client/models/payment_device_sale_transaction'
|
151
|
+
require 'openapi_client/models/payment_device_sale_transaction_all_of'
|
128
152
|
require 'openapi_client/models/payment_facilitator'
|
129
|
-
require 'openapi_client/models/payment_issuer_response'
|
130
153
|
require 'openapi_client/models/payment_method_details'
|
131
154
|
require 'openapi_client/models/payment_method_payment_schedules_request'
|
132
155
|
require 'openapi_client/models/payment_method_payment_schedules_request_all_of'
|
133
156
|
require 'openapi_client/models/payment_method_type'
|
134
|
-
require 'openapi_client/models/
|
157
|
+
require 'openapi_client/models/payment_registration'
|
135
158
|
require 'openapi_client/models/payment_schedules_error_response'
|
136
159
|
require 'openapi_client/models/payment_schedules_request'
|
137
160
|
require 'openapi_client/models/payment_schedules_response'
|
@@ -150,14 +173,15 @@ require 'openapi_client/models/payment_token_sale_transaction_all_of'
|
|
150
173
|
require 'openapi_client/models/payment_tokenization_error_response'
|
151
174
|
require 'openapi_client/models/payment_tokenization_request'
|
152
175
|
require 'openapi_client/models/payment_tokenization_response'
|
176
|
+
require 'openapi_client/models/payment_url_detail'
|
177
|
+
require 'openapi_client/models/payment_url_detail_response'
|
153
178
|
require 'openapi_client/models/payment_url_error_response'
|
154
179
|
require 'openapi_client/models/payment_url_request'
|
155
180
|
require 'openapi_client/models/payment_url_response'
|
156
|
-
require 'openapi_client/models/
|
157
|
-
require 'openapi_client/models/payment_verification_avs'
|
158
|
-
require 'openapi_client/models/payment_verification_cvv'
|
181
|
+
require 'openapi_client/models/payment_url_status'
|
159
182
|
require 'openapi_client/models/paypal_credit_transaction'
|
160
183
|
require 'openapi_client/models/paypal_credit_transaction_all_of'
|
184
|
+
require 'openapi_client/models/phone'
|
161
185
|
require 'openapi_client/models/post_auth_transaction'
|
162
186
|
require 'openapi_client/models/post_auth_transaction_all_of'
|
163
187
|
require 'openapi_client/models/primary_transaction'
|
@@ -173,6 +197,7 @@ require 'openapi_client/models/referenced_order_payment_schedules_request'
|
|
173
197
|
require 'openapi_client/models/referenced_order_payment_schedules_request_all_of'
|
174
198
|
require 'openapi_client/models/referenced_order_payment_tokenization_request'
|
175
199
|
require 'openapi_client/models/referenced_order_payment_tokenization_request_all_of'
|
200
|
+
require 'openapi_client/models/registration_method'
|
176
201
|
require 'openapi_client/models/response_amount_components'
|
177
202
|
require 'openapi_client/models/response_amount_components_all_of'
|
178
203
|
require 'openapi_client/models/response_type'
|
@@ -198,13 +223,13 @@ require 'openapi_client/models/sepa_payment_method'
|
|
198
223
|
require 'openapi_client/models/sepa_payment_method_all_of'
|
199
224
|
require 'openapi_client/models/sepa_sale_transaction'
|
200
225
|
require 'openapi_client/models/sepa_sale_transaction_all_of'
|
226
|
+
require 'openapi_client/models/ship_to_address'
|
201
227
|
require 'openapi_client/models/shipping'
|
202
228
|
require 'openapi_client/models/soft_descriptor'
|
203
229
|
require 'openapi_client/models/split_shipment'
|
204
230
|
require 'openapi_client/models/stored_credential'
|
205
231
|
require 'openapi_client/models/sub_merchant_data'
|
206
232
|
require 'openapi_client/models/sub_merchant_split'
|
207
|
-
require 'openapi_client/models/transaction'
|
208
233
|
require 'openapi_client/models/transaction_error_response'
|
209
234
|
require 'openapi_client/models/transaction_origin'
|
210
235
|
require 'openapi_client/models/transaction_response'
|
@@ -214,6 +239,9 @@ require 'openapi_client/models/union_pay_authentication_request_all_of'
|
|
214
239
|
require 'openapi_client/models/union_pay_authentication_verification_request'
|
215
240
|
require 'openapi_client/models/union_pay_authentication_verification_request_all_of'
|
216
241
|
require 'openapi_client/models/use_payment_token'
|
242
|
+
require 'openapi_client/models/verification3ds'
|
243
|
+
require 'openapi_client/models/verification_avs'
|
244
|
+
require 'openapi_client/models/verification_cvv'
|
217
245
|
require 'openapi_client/models/void_transaction'
|
218
246
|
require 'openapi_client/models/wallet_payment_method'
|
219
247
|
require 'openapi_client/models/wallet_pre_auth_transaction'
|
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
#The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.
|
6
|
+
The version of the OpenAPI document: 6.8.0.20190731.002
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: unset
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
16
|
class AuthenticationApi
|
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
#The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.
|
6
|
+
The version of the OpenAPI document: 6.8.0.20190731.002
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: unset
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
16
|
class CardInfoLookupApi
|
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
#The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.
|
6
|
+
The version of the OpenAPI document: 6.8.0.20190731.002
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: unset
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
16
|
class CardVerificationApi
|
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
#The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.
|
6
|
+
The version of the OpenAPI document: 6.8.0.20190731.002
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: unset
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
16
|
class CurrencyConversionApi
|
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
#The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.
|
6
|
+
The version of the OpenAPI document: 6.8.0.20190731.002
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: unset
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
16
|
class FraudDetectApi
|
@@ -19,6 +19,216 @@ module OpenapiClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Client registration for fraud detect transaction.
|
23
|
+
# Use this to register client for fraud detect transaction.
|
24
|
+
# @param content_type [String] Content type.
|
25
|
+
# @param client_request_id [String] A client-generated ID for request tracking and signature creation, unique per request. This is also used for idempotency control. We recommend 128-bit UUID format.
|
26
|
+
# @param api_key [String] Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
27
|
+
# @param timestamp [Integer] Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
28
|
+
# @param client_registration [ClientRegistration]
|
29
|
+
# @param [Hash] opts the optional parameters
|
30
|
+
# @option opts [String] :message_signature Used to ensure the request has not been tampered with during transmission. The Message-Signature is the Base64 encoded HMAC hash (SHA256 algorithm with the API Secret as the key.) For more information, refer to the supporting documentation on the Developer Portal.
|
31
|
+
# @option opts [String] :region Indicates the region where the client wants the transaction to be processed. This will override the default processing region identified for the client. Available options are argentina, brazil, germany, india and northamerica. Region specific store setup and APIGEE boarding is required in order to use an alternate region for processing.
|
32
|
+
# @return [FraudRegistrationResponse]
|
33
|
+
def fraud_client_registration_post(content_type, client_request_id, api_key, timestamp, client_registration, opts = {})
|
34
|
+
data, _status_code, _headers = fraud_client_registration_post_with_http_info(content_type, client_request_id, api_key, timestamp, client_registration, opts)
|
35
|
+
data
|
36
|
+
end
|
37
|
+
|
38
|
+
# Client registration for fraud detect transaction.
|
39
|
+
# Use this to register client for fraud detect transaction.
|
40
|
+
# @param content_type [String] Content type.
|
41
|
+
# @param client_request_id [String] A client-generated ID for request tracking and signature creation, unique per request. This is also used for idempotency control. We recommend 128-bit UUID format.
|
42
|
+
# @param api_key [String] Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
43
|
+
# @param timestamp [Integer] Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
44
|
+
# @param client_registration [ClientRegistration]
|
45
|
+
# @param [Hash] opts the optional parameters
|
46
|
+
# @option opts [String] :message_signature Used to ensure the request has not been tampered with during transmission. The Message-Signature is the Base64 encoded HMAC hash (SHA256 algorithm with the API Secret as the key.) For more information, refer to the supporting documentation on the Developer Portal.
|
47
|
+
# @option opts [String] :region Indicates the region where the client wants the transaction to be processed. This will override the default processing region identified for the client. Available options are argentina, brazil, germany, india and northamerica. Region specific store setup and APIGEE boarding is required in order to use an alternate region for processing.
|
48
|
+
# @return [Array<(FraudRegistrationResponse, Integer, Hash)>] FraudRegistrationResponse data, response status code and response headers
|
49
|
+
def fraud_client_registration_post_with_http_info(content_type, client_request_id, api_key, timestamp, client_registration, opts = {})
|
50
|
+
if @api_client.config.debugging
|
51
|
+
@api_client.config.logger.debug 'Calling API: FraudDetectApi.fraud_client_registration_post ...'
|
52
|
+
end
|
53
|
+
# verify the required parameter 'content_type' is set
|
54
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
55
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling FraudDetectApi.fraud_client_registration_post"
|
56
|
+
end
|
57
|
+
# verify enum value
|
58
|
+
allowable_values = ["application/json"]
|
59
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(content_type)
|
60
|
+
fail ArgumentError, "invalid value for \"content_type\", must be one of #{allowable_values}"
|
61
|
+
end
|
62
|
+
# verify the required parameter 'client_request_id' is set
|
63
|
+
if @api_client.config.client_side_validation && client_request_id.nil?
|
64
|
+
fail ArgumentError, "Missing the required parameter 'client_request_id' when calling FraudDetectApi.fraud_client_registration_post"
|
65
|
+
end
|
66
|
+
# verify the required parameter 'api_key' is set
|
67
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
68
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling FraudDetectApi.fraud_client_registration_post"
|
69
|
+
end
|
70
|
+
# verify the required parameter 'timestamp' is set
|
71
|
+
if @api_client.config.client_side_validation && timestamp.nil?
|
72
|
+
fail ArgumentError, "Missing the required parameter 'timestamp' when calling FraudDetectApi.fraud_client_registration_post"
|
73
|
+
end
|
74
|
+
# verify the required parameter 'client_registration' is set
|
75
|
+
if @api_client.config.client_side_validation && client_registration.nil?
|
76
|
+
fail ArgumentError, "Missing the required parameter 'client_registration' when calling FraudDetectApi.fraud_client_registration_post"
|
77
|
+
end
|
78
|
+
# resource path
|
79
|
+
local_var_path = '/fraud/client-registration'
|
80
|
+
|
81
|
+
# query parameters
|
82
|
+
query_params = opts[:query_params] || {}
|
83
|
+
|
84
|
+
# header parameters
|
85
|
+
header_params = opts[:header_params] || {}
|
86
|
+
# HTTP header 'Accept' (if needed)
|
87
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
88
|
+
# HTTP header 'Content-Type'
|
89
|
+
# header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
90
|
+
# header_params[:'Content-Type'] = content_type
|
91
|
+
header_params[:'Client-Request-Id'] = client_request_id
|
92
|
+
header_params[:'Api-Key'] = api_key
|
93
|
+
header_params[:'Timestamp'] = timestamp
|
94
|
+
header_params[:'Message-Signature'] = opts[:'message_signature'] if !opts[:'message_signature'].nil?
|
95
|
+
header_params[:'Region'] = opts[:'region'] if !opts[:'region'].nil?
|
96
|
+
|
97
|
+
# form parameters
|
98
|
+
form_params = opts[:form_params] || {}
|
99
|
+
|
100
|
+
# http body (model)
|
101
|
+
post_body = opts[:body] || @api_client.object_to_http_body(client_registration)
|
102
|
+
|
103
|
+
# return_type
|
104
|
+
return_type = opts[:return_type] || 'FraudRegistrationResponse'
|
105
|
+
|
106
|
+
# auth_names
|
107
|
+
auth_names = opts[:auth_names] || []
|
108
|
+
|
109
|
+
new_options = opts.merge(
|
110
|
+
:header_params => header_params,
|
111
|
+
:query_params => query_params,
|
112
|
+
:form_params => form_params,
|
113
|
+
:body => post_body,
|
114
|
+
:auth_names => auth_names,
|
115
|
+
:return_type => 'FraudRegistrationResponse',
|
116
|
+
:default_error_type => 'ErrorResponse',
|
117
|
+
:custom_responses => {201 => 'FraudRegistrationResponse',
|
118
|
+
400 => 'FraudRegistrationResponse'})
|
119
|
+
|
120
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
121
|
+
if @api_client.config.debugging
|
122
|
+
@api_client.config.logger.debug "API called: FraudDetectApi#fraud_client_registration_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
123
|
+
end
|
124
|
+
return data, status_code, headers
|
125
|
+
end
|
126
|
+
|
127
|
+
# Payment registration for fraud detect transaction.
|
128
|
+
# Use this to register payment for fraud detect transaction.
|
129
|
+
# @param content_type [String] Content type.
|
130
|
+
# @param client_request_id [String] A client-generated ID for request tracking and signature creation, unique per request. This is also used for idempotency control. We recommend 128-bit UUID format.
|
131
|
+
# @param api_key [String] Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
132
|
+
# @param timestamp [Integer] Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
133
|
+
# @param payment_registration [PaymentRegistration]
|
134
|
+
# @param [Hash] opts the optional parameters
|
135
|
+
# @option opts [String] :message_signature Used to ensure the request has not been tampered with during transmission. The Message-Signature is the Base64 encoded HMAC hash (SHA256 algorithm with the API Secret as the key.) For more information, refer to the supporting documentation on the Developer Portal.
|
136
|
+
# @option opts [String] :region Indicates the region where the client wants the transaction to be processed. This will override the default processing region identified for the client. Available options are argentina, brazil, germany, india and northamerica. Region specific store setup and APIGEE boarding is required in order to use an alternate region for processing.
|
137
|
+
# @return [FraudRegistrationResponse]
|
138
|
+
def fraud_payment_registration_post(content_type, client_request_id, api_key, timestamp, payment_registration, opts = {})
|
139
|
+
data, _status_code, _headers = fraud_payment_registration_post_with_http_info(content_type, client_request_id, api_key, timestamp, payment_registration, opts)
|
140
|
+
data
|
141
|
+
end
|
142
|
+
|
143
|
+
# Payment registration for fraud detect transaction.
|
144
|
+
# Use this to register payment for fraud detect transaction.
|
145
|
+
# @param content_type [String] Content type.
|
146
|
+
# @param client_request_id [String] A client-generated ID for request tracking and signature creation, unique per request. This is also used for idempotency control. We recommend 128-bit UUID format.
|
147
|
+
# @param api_key [String] Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
148
|
+
# @param timestamp [Integer] Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
149
|
+
# @param payment_registration [PaymentRegistration]
|
150
|
+
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [String] :message_signature Used to ensure the request has not been tampered with during transmission. The Message-Signature is the Base64 encoded HMAC hash (SHA256 algorithm with the API Secret as the key.) For more information, refer to the supporting documentation on the Developer Portal.
|
152
|
+
# @option opts [String] :region Indicates the region where the client wants the transaction to be processed. This will override the default processing region identified for the client. Available options are argentina, brazil, germany, india and northamerica. Region specific store setup and APIGEE boarding is required in order to use an alternate region for processing.
|
153
|
+
# @return [Array<(FraudRegistrationResponse, Integer, Hash)>] FraudRegistrationResponse data, response status code and response headers
|
154
|
+
def fraud_payment_registration_post_with_http_info(content_type, client_request_id, api_key, timestamp, payment_registration, opts = {})
|
155
|
+
if @api_client.config.debugging
|
156
|
+
@api_client.config.logger.debug 'Calling API: FraudDetectApi.fraud_payment_registration_post ...'
|
157
|
+
end
|
158
|
+
# verify the required parameter 'content_type' is set
|
159
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
160
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling FraudDetectApi.fraud_payment_registration_post"
|
161
|
+
end
|
162
|
+
# verify enum value
|
163
|
+
allowable_values = ["application/json"]
|
164
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(content_type)
|
165
|
+
fail ArgumentError, "invalid value for \"content_type\", must be one of #{allowable_values}"
|
166
|
+
end
|
167
|
+
# verify the required parameter 'client_request_id' is set
|
168
|
+
if @api_client.config.client_side_validation && client_request_id.nil?
|
169
|
+
fail ArgumentError, "Missing the required parameter 'client_request_id' when calling FraudDetectApi.fraud_payment_registration_post"
|
170
|
+
end
|
171
|
+
# verify the required parameter 'api_key' is set
|
172
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
173
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling FraudDetectApi.fraud_payment_registration_post"
|
174
|
+
end
|
175
|
+
# verify the required parameter 'timestamp' is set
|
176
|
+
if @api_client.config.client_side_validation && timestamp.nil?
|
177
|
+
fail ArgumentError, "Missing the required parameter 'timestamp' when calling FraudDetectApi.fraud_payment_registration_post"
|
178
|
+
end
|
179
|
+
# verify the required parameter 'payment_registration' is set
|
180
|
+
if @api_client.config.client_side_validation && payment_registration.nil?
|
181
|
+
fail ArgumentError, "Missing the required parameter 'payment_registration' when calling FraudDetectApi.fraud_payment_registration_post"
|
182
|
+
end
|
183
|
+
# resource path
|
184
|
+
local_var_path = '/fraud/payment-registration'
|
185
|
+
|
186
|
+
# query parameters
|
187
|
+
query_params = opts[:query_params] || {}
|
188
|
+
|
189
|
+
# header parameters
|
190
|
+
header_params = opts[:header_params] || {}
|
191
|
+
# HTTP header 'Accept' (if needed)
|
192
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
193
|
+
# HTTP header 'Content-Type'
|
194
|
+
# header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
195
|
+
# header_params[:'Content-Type'] = content_type
|
196
|
+
header_params[:'Client-Request-Id'] = client_request_id
|
197
|
+
header_params[:'Api-Key'] = api_key
|
198
|
+
header_params[:'Timestamp'] = timestamp
|
199
|
+
header_params[:'Message-Signature'] = opts[:'message_signature'] if !opts[:'message_signature'].nil?
|
200
|
+
header_params[:'Region'] = opts[:'region'] if !opts[:'region'].nil?
|
201
|
+
|
202
|
+
# form parameters
|
203
|
+
form_params = opts[:form_params] || {}
|
204
|
+
|
205
|
+
# http body (model)
|
206
|
+
post_body = opts[:body] || @api_client.object_to_http_body(payment_registration)
|
207
|
+
|
208
|
+
# return_type
|
209
|
+
return_type = opts[:return_type] || 'FraudRegistrationResponse'
|
210
|
+
|
211
|
+
# auth_names
|
212
|
+
auth_names = opts[:auth_names] || []
|
213
|
+
|
214
|
+
new_options = opts.merge(
|
215
|
+
:header_params => header_params,
|
216
|
+
:query_params => query_params,
|
217
|
+
:form_params => form_params,
|
218
|
+
:body => post_body,
|
219
|
+
:auth_names => auth_names,
|
220
|
+
:return_type => 'FraudRegistrationResponse',
|
221
|
+
:default_error_type => 'ErrorResponse',
|
222
|
+
:custom_responses => {201 => 'FraudRegistrationResponse',
|
223
|
+
400 => 'FraudRegistrationResponse'})
|
224
|
+
|
225
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
226
|
+
if @api_client.config.debugging
|
227
|
+
@api_client.config.logger.debug "API called: FraudDetectApi#fraud_payment_registration_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
228
|
+
end
|
229
|
+
return data, status_code, headers
|
230
|
+
end
|
231
|
+
|
22
232
|
# Score a transaction for fraud.
|
23
233
|
# Use this to obtain a fraud score for a transaction.
|
24
234
|
# @param content_type [String] Content type.
|
@@ -115,8 +325,8 @@ module OpenapiClient
|
|
115
325
|
:return_type => 'ScoreOnlyResponse',
|
116
326
|
:default_error_type => 'ErrorResponse',
|
117
327
|
:custom_responses => {201 => 'ScoreOnlyResponse',
|
118
|
-
|
119
|
-
|
328
|
+
400 => 'ScoreOnlyResponse'})
|
329
|
+
|
120
330
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
121
331
|
if @api_client.config.debugging
|
122
332
|
@api_client.config.logger.debug "API called: FraudDetectApi#score_only\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|