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
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -96,7 +96,7 @@ module OpenapiClient
|
|
96
96
|
{
|
97
97
|
:'device_type' => :'String',
|
98
98
|
:'device_id' => :'String',
|
99
|
-
:'networks' => :'Array<
|
99
|
+
:'networks' => :'Array<Items>',
|
100
100
|
:'latitude' => :'Float',
|
101
101
|
:'longitude' => :'Float',
|
102
102
|
:'imei' => :'String',
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -104,8 +104,12 @@ module OpenapiClient
|
|
104
104
|
invalid_properties.push("invalid value for \"inquiry_rate_id\", must conform to the pattern #{pattern}.")
|
105
105
|
end
|
106
106
|
|
107
|
+
if @foreign_currency.nil?
|
108
|
+
invalid_properties.push('invalid value for "foreign_currency", foreign_currency cannot be nil.')
|
109
|
+
end
|
110
|
+
|
107
111
|
pattern = Regexp.new(/([A-Z]{3})|([0-9]{3})/)
|
108
|
-
if
|
112
|
+
if @foreign_currency !~ pattern
|
109
113
|
invalid_properties.push("invalid value for \"foreign_currency\", must conform to the pattern #{pattern}.")
|
110
114
|
end
|
111
115
|
|
@@ -127,7 +131,8 @@ module OpenapiClient
|
|
127
131
|
return false if @conversion_type.nil?
|
128
132
|
return false if @inquiry_rate_id.nil?
|
129
133
|
return false if @inquiry_rate_id !~ Regexp.new(/^(?!\s*$).+/)
|
130
|
-
return false if
|
134
|
+
return false if @foreign_currency.nil?
|
135
|
+
return false if @foreign_currency !~ Regexp.new(/([A-Z]{3})|([0-9]{3})/)
|
131
136
|
return false if @foreign_amount.nil?
|
132
137
|
return false if @foreign_amount !~ Regexp.new(/^(?!\s*$).+/)
|
133
138
|
true
|
@@ -151,8 +156,12 @@ module OpenapiClient
|
|
151
156
|
# Custom attribute writer method with validation
|
152
157
|
# @param [Object] foreign_currency Value to be assigned
|
153
158
|
def foreign_currency=(foreign_currency)
|
159
|
+
if foreign_currency.nil?
|
160
|
+
fail ArgumentError, 'foreign_currency cannot be nil'
|
161
|
+
end
|
162
|
+
|
154
163
|
pattern = Regexp.new(/([A-Z]{3})|([0-9]{3})/)
|
155
|
-
if
|
164
|
+
if foreign_currency !~ pattern
|
156
165
|
fail ArgumentError, "invalid value for \"foreign_currency\", must conform to the pattern #{pattern}."
|
157
166
|
end
|
158
167
|
|
@@ -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
|
@@ -64,8 +64,12 @@ module OpenapiClient
|
|
64
64
|
# @return Array for valid properties with the reasons
|
65
65
|
def list_invalid_properties
|
66
66
|
invalid_properties = Array.new
|
67
|
+
if @foreign_currency.nil?
|
68
|
+
invalid_properties.push('invalid value for "foreign_currency", foreign_currency cannot be nil.')
|
69
|
+
end
|
70
|
+
|
67
71
|
pattern = Regexp.new(/([A-Z]{3})|([0-9]{3})/)
|
68
|
-
if
|
72
|
+
if @foreign_currency !~ pattern
|
69
73
|
invalid_properties.push("invalid value for \"foreign_currency\", must conform to the pattern #{pattern}.")
|
70
74
|
end
|
71
75
|
|
@@ -84,7 +88,8 @@ module OpenapiClient
|
|
84
88
|
# Check to see if the all the properties in the model are valid
|
85
89
|
# @return true if the model is valid
|
86
90
|
def valid?
|
87
|
-
return false if
|
91
|
+
return false if @foreign_currency.nil?
|
92
|
+
return false if @foreign_currency !~ Regexp.new(/([A-Z]{3})|([0-9]{3})/)
|
88
93
|
return false if @foreign_amount.nil?
|
89
94
|
return false if @foreign_amount !~ Regexp.new(/^(?!\s*$).+/)
|
90
95
|
true
|
@@ -93,8 +98,12 @@ module OpenapiClient
|
|
93
98
|
# Custom attribute writer method with validation
|
94
99
|
# @param [Object] foreign_currency Value to be assigned
|
95
100
|
def foreign_currency=(foreign_currency)
|
101
|
+
if foreign_currency.nil?
|
102
|
+
fail ArgumentError, 'foreign_currency cannot be nil'
|
103
|
+
end
|
104
|
+
|
96
105
|
pattern = Regexp.new(/([A-Z]{3})|([0-9]{3})/)
|
97
|
-
if
|
106
|
+
if foreign_currency !~ pattern
|
98
107
|
fail ArgumentError, "invalid value for \"foreign_currency\", must conform to the pattern #{pattern}."
|
99
108
|
end
|
100
109
|
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -0,0 +1,251 @@
|
|
1
|
+
=begin
|
2
|
+
#Payment Gateway API Specification.
|
3
|
+
|
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
|
+
|
6
|
+
The version of the OpenAPI document: 6.8.0.20190731.002
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: unset
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module OpenapiClient
|
16
|
+
# Encrypted Samsung Pay payload.
|
17
|
+
class EncryptedSamsungPay
|
18
|
+
# The encrypted wallet payload.
|
19
|
+
attr_accessor :data
|
20
|
+
|
21
|
+
# Identifies under which encryption/signing scheme this message has been created. In this way, the protocol can evolve over time if needed. For Google Payments transactions, this should be set to ECv1.
|
22
|
+
attr_accessor :version
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'data' => :'data',
|
28
|
+
:'version' => :'version'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.openapi_types
|
34
|
+
{
|
35
|
+
:'data' => :'String',
|
36
|
+
:'version' => :'String'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Initializes the object
|
41
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
42
|
+
def initialize(attributes = {})
|
43
|
+
if (!attributes.is_a?(Hash))
|
44
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::EncryptedSamsungPay` initialize method"
|
45
|
+
end
|
46
|
+
|
47
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
48
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
49
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
50
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::EncryptedSamsungPay`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
51
|
+
end
|
52
|
+
h[k.to_sym] = v
|
53
|
+
}
|
54
|
+
|
55
|
+
if attributes.key?(:'data')
|
56
|
+
self.data = attributes[:'data']
|
57
|
+
end
|
58
|
+
|
59
|
+
if attributes.key?(:'version')
|
60
|
+
self.version = attributes[:'version']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
65
|
+
# @return Array for valid properties with the reasons
|
66
|
+
def list_invalid_properties
|
67
|
+
invalid_properties = Array.new
|
68
|
+
if @data.nil?
|
69
|
+
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
70
|
+
end
|
71
|
+
|
72
|
+
pattern = Regexp.new(/^(?!\s*$).+/)
|
73
|
+
if @data !~ pattern
|
74
|
+
invalid_properties.push("invalid value for \"data\", must conform to the pattern #{pattern}.")
|
75
|
+
end
|
76
|
+
|
77
|
+
pattern = Regexp.new(/^(?!\s*$).+/)
|
78
|
+
if !@version.nil? && @version !~ pattern
|
79
|
+
invalid_properties.push("invalid value for \"version\", must conform to the pattern #{pattern}.")
|
80
|
+
end
|
81
|
+
|
82
|
+
invalid_properties
|
83
|
+
end
|
84
|
+
|
85
|
+
# Check to see if the all the properties in the model are valid
|
86
|
+
# @return true if the model is valid
|
87
|
+
def valid?
|
88
|
+
return false if @data.nil?
|
89
|
+
return false if @data !~ Regexp.new(/^(?!\s*$).+/)
|
90
|
+
return false if !@version.nil? && @version !~ Regexp.new(/^(?!\s*$).+/)
|
91
|
+
true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Custom attribute writer method with validation
|
95
|
+
# @param [Object] data Value to be assigned
|
96
|
+
def data=(data)
|
97
|
+
if data.nil?
|
98
|
+
fail ArgumentError, 'data cannot be nil'
|
99
|
+
end
|
100
|
+
|
101
|
+
pattern = Regexp.new(/^(?!\s*$).+/)
|
102
|
+
if data !~ pattern
|
103
|
+
fail ArgumentError, "invalid value for \"data\", must conform to the pattern #{pattern}."
|
104
|
+
end
|
105
|
+
|
106
|
+
@data = data
|
107
|
+
end
|
108
|
+
|
109
|
+
# Custom attribute writer method with validation
|
110
|
+
# @param [Object] version Value to be assigned
|
111
|
+
def version=(version)
|
112
|
+
pattern = Regexp.new(/^(?!\s*$).+/)
|
113
|
+
if !version.nil? && version !~ pattern
|
114
|
+
fail ArgumentError, "invalid value for \"version\", must conform to the pattern #{pattern}."
|
115
|
+
end
|
116
|
+
|
117
|
+
@version = version
|
118
|
+
end
|
119
|
+
|
120
|
+
# Checks equality by comparing each attribute.
|
121
|
+
# @param [Object] Object to be compared
|
122
|
+
def ==(o)
|
123
|
+
return true if self.equal?(o)
|
124
|
+
self.class == o.class &&
|
125
|
+
data == o.data &&
|
126
|
+
version == o.version
|
127
|
+
end
|
128
|
+
|
129
|
+
# @see the `==` method
|
130
|
+
# @param [Object] Object to be compared
|
131
|
+
def eql?(o)
|
132
|
+
self == o
|
133
|
+
end
|
134
|
+
|
135
|
+
# Calculates hash code according to all attributes.
|
136
|
+
# @return [Integer] Hash code
|
137
|
+
def hash
|
138
|
+
[data, version].hash
|
139
|
+
end
|
140
|
+
|
141
|
+
# Builds the object from hash
|
142
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
143
|
+
# @return [Object] Returns the model itself
|
144
|
+
def self.build_from_hash(attributes)
|
145
|
+
new.build_from_hash(attributes)
|
146
|
+
end
|
147
|
+
|
148
|
+
# Builds the object from hash
|
149
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
150
|
+
# @return [Object] Returns the model itself
|
151
|
+
def build_from_hash(attributes)
|
152
|
+
return nil unless attributes.is_a?(Hash)
|
153
|
+
self.class.openapi_types.each_pair do |key, type|
|
154
|
+
if type =~ /\AArray<(.*)>/i
|
155
|
+
# check to ensure the input is an array given that the attribute
|
156
|
+
# is documented as an array but the input is not
|
157
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
158
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
159
|
+
end
|
160
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
161
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
162
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
163
|
+
end
|
164
|
+
|
165
|
+
self
|
166
|
+
end
|
167
|
+
|
168
|
+
# Deserializes the data based on type
|
169
|
+
# @param string type Data type
|
170
|
+
# @param string value Value to be deserialized
|
171
|
+
# @return [Object] Deserialized data
|
172
|
+
def _deserialize(type, value)
|
173
|
+
case type.to_sym
|
174
|
+
when :DateTime
|
175
|
+
DateTime.parse(value)
|
176
|
+
when :Date
|
177
|
+
Date.parse(value)
|
178
|
+
when :String
|
179
|
+
value.to_s
|
180
|
+
when :Integer
|
181
|
+
value.to_i
|
182
|
+
when :Float
|
183
|
+
value.to_f
|
184
|
+
when :Boolean
|
185
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
186
|
+
true
|
187
|
+
else
|
188
|
+
false
|
189
|
+
end
|
190
|
+
when :Object
|
191
|
+
# generic object (usually a Hash), return directly
|
192
|
+
value
|
193
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
194
|
+
inner_type = Regexp.last_match[:inner_type]
|
195
|
+
value.map { |v| _deserialize(inner_type, v) }
|
196
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
197
|
+
k_type = Regexp.last_match[:k_type]
|
198
|
+
v_type = Regexp.last_match[:v_type]
|
199
|
+
{}.tap do |hash|
|
200
|
+
value.each do |k, v|
|
201
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
202
|
+
end
|
203
|
+
end
|
204
|
+
else # model
|
205
|
+
OpenapiClient.const_get(type).build_from_hash(value)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
# Returns the string representation of the object
|
210
|
+
# @return [String] String presentation of the object
|
211
|
+
def to_s
|
212
|
+
to_hash.to_s
|
213
|
+
end
|
214
|
+
|
215
|
+
# to_body is an alias to to_hash (backward compatibility)
|
216
|
+
# @return [Hash] Returns the object in the form of hash
|
217
|
+
def to_body
|
218
|
+
to_hash
|
219
|
+
end
|
220
|
+
|
221
|
+
# Returns the object in the form of hash
|
222
|
+
# @return [Hash] Returns the object in the form of hash
|
223
|
+
def to_hash
|
224
|
+
hash = {}
|
225
|
+
self.class.attribute_map.each_pair do |attr, param|
|
226
|
+
value = self.send(attr)
|
227
|
+
next if value.nil?
|
228
|
+
hash[param] = _to_hash(value)
|
229
|
+
end
|
230
|
+
hash
|
231
|
+
end
|
232
|
+
|
233
|
+
# Outputs non-array value in the form of hash
|
234
|
+
# For object, use to_hash. Otherwise, just return the value
|
235
|
+
# @param [Object] value Any valid value
|
236
|
+
# @return [Hash] Returns the value in the form of hash
|
237
|
+
def _to_hash(value)
|
238
|
+
if value.is_a?(Array)
|
239
|
+
value.compact.map { |v| _to_hash(v) }
|
240
|
+
elsif value.is_a?(Hash)
|
241
|
+
{}.tap do |hash|
|
242
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
243
|
+
end
|
244
|
+
elsif value.respond_to? :to_hash
|
245
|
+
value.to_hash
|
246
|
+
else
|
247
|
+
value
|
248
|
+
end
|
249
|
+
end
|
250
|
+
end
|
251
|
+
end
|