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,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 OrderApi
|
@@ -78,7 +78,7 @@ module OpenapiClient
|
|
78
78
|
fail ArgumentError, "Missing the required parameter 'order_id' when calling OrderApi.order_inquiry"
|
79
79
|
end
|
80
80
|
# resource path
|
81
|
-
local_var_path = '/orders/{order-id}'.sub('{' + 'order-id' + '}', order_id.to_s)
|
81
|
+
local_var_path = '/orders/{order-id}'.sub('{' + 'order-id' + '}', CGI.escape(order_id.to_s))
|
82
82
|
|
83
83
|
# query parameters
|
84
84
|
query_params = opts[:query_params] || {}
|
@@ -186,7 +186,7 @@ module OpenapiClient
|
|
186
186
|
fail ArgumentError, "Missing the required parameter 'secondary_transaction' when calling OrderApi.submit_secondary_transaction_from_order"
|
187
187
|
end
|
188
188
|
# resource path
|
189
|
-
local_var_path = '/orders/{order-id}'.sub('{' + 'order-id' + '}', order_id.to_s)
|
189
|
+
local_var_path = '/orders/{order-id}'.sub('{' + 'order-id' + '}', CGI.escape(order_id.to_s))
|
190
190
|
|
191
191
|
# query parameters
|
192
192
|
query_params = opts[:query_params] || {}
|
@@ -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 PaymentApi
|
@@ -82,7 +82,7 @@ module OpenapiClient
|
|
82
82
|
fail ArgumentError, "Missing the required parameter 'authentication_verification_request' when calling PaymentApi.finalize_secure_transaction"
|
83
83
|
end
|
84
84
|
# resource path
|
85
|
-
local_var_path = '/payments/{transaction-id}'.sub('{' + 'transaction-id' + '}', transaction_id.to_s)
|
85
|
+
local_var_path = '/payments/{transaction-id}'.sub('{' + 'transaction-id' + '}', CGI.escape(transaction_id.to_s))
|
86
86
|
|
87
87
|
# query parameters
|
88
88
|
query_params = opts[:query_params] || {}
|
@@ -130,12 +130,12 @@ module OpenapiClient
|
|
130
130
|
end
|
131
131
|
|
132
132
|
# Generate a primary transaction.
|
133
|
-
# Use this to originate a financial transaction like a sale, preauthorization, or credit.
|
133
|
+
# Use this to originate a financial transaction like a sale, preauthorization, or credit.
|
134
134
|
# @param content_type [String] Content type.
|
135
135
|
# @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.
|
136
136
|
# @param api_key [String] Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
137
137
|
# @param timestamp [Integer] Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
138
|
-
# @param primary_transaction [PrimaryTransaction] Accepted request types: AliPaySaleTransaction, ChinaPnRSaleTransaction, PaymentCardCreditTransaction, PaymentCardForcedTicketTransaction, PaymentCardSaleTransaction, PaymentCardPreAuthTransaction, PaymentCardPayerAuthTransaction, PaymentCardDisbursementTransaction, PaymentTokenCreditTransaction, PaymentTokenPreAuthTransaction, PaymentTokenSaleTransaction, PaymentTokenDisbursementTransaction, PaypalCreditTransaction, SepaSaleTransaction, WalletSaleTransaction, and WalletPreAuthTransaction.
|
138
|
+
# @param primary_transaction [PrimaryTransaction] Accepted request types: AliPaySaleTransaction, ChinaPnRSaleTransaction, PaymentCardCreditTransaction, PaymentCardForcedTicketTransaction, PaymentCardSaleTransaction, PaymentCardPreAuthTransaction, PaymentCardPayerAuthTransaction, PaymentCardDisbursementTransaction, PaymentTokenCreditTransaction, PaymentTokenPreAuthTransaction, PaymentTokenSaleTransaction, PaymentTokenDisbursementTransaction, PaypalCreditTransaction, SepaSaleTransaction, WalletSaleTransaction, and WalletPreAuthTransaction, PaymentDeviceSaleTransaction, PaymentDevicePreAuthTransaction, PaymentDeviceCreditTransaction, PaymentDeviceDisbursementTransaction.
|
139
139
|
# @param [Hash] opts the optional parameters
|
140
140
|
# @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.
|
141
141
|
# @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.
|
@@ -146,12 +146,12 @@ module OpenapiClient
|
|
146
146
|
end
|
147
147
|
|
148
148
|
# Generate a primary transaction.
|
149
|
-
# Use this to originate a financial transaction like a sale, preauthorization, or credit.
|
149
|
+
# Use this to originate a financial transaction like a sale, preauthorization, or credit.
|
150
150
|
# @param content_type [String] Content type.
|
151
151
|
# @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.
|
152
152
|
# @param api_key [String] Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
153
153
|
# @param timestamp [Integer] Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
154
|
-
# @param primary_transaction [PrimaryTransaction] Accepted request types: AliPaySaleTransaction, ChinaPnRSaleTransaction, PaymentCardCreditTransaction, PaymentCardForcedTicketTransaction, PaymentCardSaleTransaction, PaymentCardPreAuthTransaction, PaymentCardPayerAuthTransaction, PaymentCardDisbursementTransaction, PaymentTokenCreditTransaction, PaymentTokenPreAuthTransaction, PaymentTokenSaleTransaction, PaymentTokenDisbursementTransaction, PaypalCreditTransaction, SepaSaleTransaction, WalletSaleTransaction, and WalletPreAuthTransaction.
|
154
|
+
# @param primary_transaction [PrimaryTransaction] Accepted request types: AliPaySaleTransaction, ChinaPnRSaleTransaction, PaymentCardCreditTransaction, PaymentCardForcedTicketTransaction, PaymentCardSaleTransaction, PaymentCardPreAuthTransaction, PaymentCardPayerAuthTransaction, PaymentCardDisbursementTransaction, PaymentTokenCreditTransaction, PaymentTokenPreAuthTransaction, PaymentTokenSaleTransaction, PaymentTokenDisbursementTransaction, PaypalCreditTransaction, SepaSaleTransaction, WalletSaleTransaction, and WalletPreAuthTransaction, PaymentDeviceSaleTransaction, PaymentDevicePreAuthTransaction, PaymentDeviceCreditTransaction, PaymentDeviceDisbursementTransaction.
|
155
155
|
# @param [Hash] opts the optional parameters
|
156
156
|
# @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.
|
157
157
|
# @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.
|
@@ -298,7 +298,7 @@ module OpenapiClient
|
|
298
298
|
fail ArgumentError, "Missing the required parameter 'secondary_transaction' when calling PaymentApi.submit_secondary_transaction"
|
299
299
|
end
|
300
300
|
# resource path
|
301
|
-
local_var_path = '/payments/{transaction-id}'.sub('{' + 'transaction-id' + '}', transaction_id.to_s)
|
301
|
+
local_var_path = '/payments/{transaction-id}'.sub('{' + 'transaction-id' + '}', CGI.escape(transaction_id.to_s))
|
302
302
|
|
303
303
|
# query parameters
|
304
304
|
query_params = opts[:query_params] || {}
|
@@ -405,7 +405,7 @@ module OpenapiClient
|
|
405
405
|
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling PaymentApi.transaction_inquiry"
|
406
406
|
end
|
407
407
|
# resource path
|
408
|
-
local_var_path = '/payments/{transaction-id}'.sub('{' + 'transaction-id' + '}', transaction_id.to_s)
|
408
|
+
local_var_path = '/payments/{transaction-id}'.sub('{' + 'transaction-id' + '}', CGI.escape(transaction_id.to_s))
|
409
409
|
|
410
410
|
# query parameters
|
411
411
|
query_params = opts[:query_params] || {}
|
@@ -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 PaymentSchedulesApi
|
@@ -78,7 +78,7 @@ module OpenapiClient
|
|
78
78
|
fail ArgumentError, "Missing the required parameter 'order_id' when calling PaymentSchedulesApi.cancel_payment_schedule"
|
79
79
|
end
|
80
80
|
# resource path
|
81
|
-
local_var_path = '/payment-schedules/{order-id}'.sub('{' + 'order-id' + '}', order_id.to_s)
|
81
|
+
local_var_path = '/payment-schedules/{order-id}'.sub('{' + 'order-id' + '}', CGI.escape(order_id.to_s))
|
82
82
|
|
83
83
|
# query parameters
|
84
84
|
query_params = opts[:query_params] || {}
|
@@ -286,7 +286,7 @@ module OpenapiClient
|
|
286
286
|
fail ArgumentError, "Missing the required parameter 'order_id' when calling PaymentSchedulesApi.inquiry_payment_schedule"
|
287
287
|
end
|
288
288
|
# resource path
|
289
|
-
local_var_path = '/payment-schedules/{order-id}'.sub('{' + 'order-id' + '}', order_id.to_s)
|
289
|
+
local_var_path = '/payment-schedules/{order-id}'.sub('{' + 'order-id' + '}', CGI.escape(order_id.to_s))
|
290
290
|
|
291
291
|
# query parameters
|
292
292
|
query_params = opts[:query_params] || {}
|
@@ -394,7 +394,7 @@ module OpenapiClient
|
|
394
394
|
fail ArgumentError, "Missing the required parameter 'payment_schedules_request' when calling PaymentSchedulesApi.update_payment_schedule"
|
395
395
|
end
|
396
396
|
# resource path
|
397
|
-
local_var_path = '/payment-schedules/{order-id}'.sub('{' + 'order-id' + '}', order_id.to_s)
|
397
|
+
local_var_path = '/payment-schedules/{order-id}'.sub('{' + 'order-id' + '}', CGI.escape(order_id.to_s))
|
398
398
|
|
399
399
|
# query parameters
|
400
400
|
query_params = opts[:query_params] || {}
|
@@ -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 PaymentTokenApi
|
@@ -25,7 +25,7 @@ module OpenapiClient
|
|
25
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
26
|
# @param api_key [String] Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
27
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 payment_tokenization_request [PaymentTokenizationRequest] Accepted request types: PaymentCardPaymentTokenizationRequest and ReferencedOrderPaymentTokenizationRequest.
|
28
|
+
# @param payment_tokenization_request [PaymentTokenizationRequest] Accepted request types: PaymentCardPaymentTokenizationRequest, PaymentDevicePaymentTokenizationRequest, and ReferencedOrderPaymentTokenizationRequest.
|
29
29
|
# @param [Hash] opts the optional parameters
|
30
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
31
|
# @option opts [String] :authorization The access token previously generated with the access-tokens call. Use the format 'Bearer {access-token}'.
|
@@ -42,7 +42,7 @@ module OpenapiClient
|
|
42
42
|
# @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.
|
43
43
|
# @param api_key [String] Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
44
44
|
# @param timestamp [Integer] Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
45
|
-
# @param payment_tokenization_request [PaymentTokenizationRequest] Accepted request types: PaymentCardPaymentTokenizationRequest and ReferencedOrderPaymentTokenizationRequest.
|
45
|
+
# @param payment_tokenization_request [PaymentTokenizationRequest] Accepted request types: PaymentCardPaymentTokenizationRequest, PaymentDevicePaymentTokenizationRequest, and ReferencedOrderPaymentTokenizationRequest.
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
47
|
# @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.
|
48
48
|
# @option opts [String] :authorization The access token previously generated with the access-tokens call. Use the format 'Bearer {access-token}'.
|
@@ -116,7 +116,8 @@ module OpenapiClient
|
|
116
116
|
:body => post_body,
|
117
117
|
:auth_names => auth_names,
|
118
118
|
:return_type => 'PaymentTokenizationResponse',
|
119
|
-
:default_error_type => 'ErrorResponse'
|
119
|
+
:default_error_type => 'ErrorResponse',
|
120
|
+
:error_type => 'PaymentTokenizationErrorResponse')
|
120
121
|
|
121
122
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
122
123
|
if @api_client.config.debugging
|
@@ -186,7 +187,7 @@ module OpenapiClient
|
|
186
187
|
fail ArgumentError, "Missing the required parameter 'token_id' when calling PaymentTokenApi.delete_payment_token"
|
187
188
|
end
|
188
189
|
# resource path
|
189
|
-
local_var_path = '/payment-tokens/{token-id}'.sub('{' + 'token-id' + '}', token_id.to_s)
|
190
|
+
local_var_path = '/payment-tokens/{token-id}'.sub('{' + 'token-id' + '}', CGI.escape(token_id.to_s))
|
190
191
|
|
191
192
|
# query parameters
|
192
193
|
query_params = opts[:query_params] || {}
|
@@ -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 PaymentURLApi
|
@@ -121,5 +121,236 @@ module OpenapiClient
|
|
121
121
|
end
|
122
122
|
return data, status_code, headers
|
123
123
|
end
|
124
|
+
|
125
|
+
# Delete a payment URL.
|
126
|
+
# Use this to delete an embedding payment link.
|
127
|
+
# @param content_type [String] Content type.
|
128
|
+
# @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.
|
129
|
+
# @param api_key [String] Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
130
|
+
# @param timestamp [Integer] Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
131
|
+
# @param [Hash] opts the optional parameters
|
132
|
+
# @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.
|
133
|
+
# @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.
|
134
|
+
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app.
|
135
|
+
# @option opts [String] :transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId.
|
136
|
+
# @option opts [String] :order_id Gateway order identifier as returned in the parameter orderId.
|
137
|
+
# @option opts [String] :payment_url_id The ID code from the payment URL.
|
138
|
+
# @option opts [String] :transaction_time The transaction time in seconds since epoch.
|
139
|
+
# @return [PaymentUrlResponse]
|
140
|
+
def delete_payment_url(content_type, client_request_id, api_key, timestamp, opts = {})
|
141
|
+
data, _status_code, _headers = delete_payment_url_with_http_info(content_type, client_request_id, api_key, timestamp, opts)
|
142
|
+
data
|
143
|
+
end
|
144
|
+
|
145
|
+
# Delete a payment URL.
|
146
|
+
# Use this to delete an embedding payment link.
|
147
|
+
# @param content_type [String] Content type.
|
148
|
+
# @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.
|
149
|
+
# @param api_key [String] Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
150
|
+
# @param timestamp [Integer] Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @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.
|
153
|
+
# @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.
|
154
|
+
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app.
|
155
|
+
# @option opts [String] :transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId.
|
156
|
+
# @option opts [String] :order_id Gateway order identifier as returned in the parameter orderId.
|
157
|
+
# @option opts [String] :payment_url_id The ID code from the payment URL.
|
158
|
+
# @option opts [String] :transaction_time The transaction time in seconds since epoch.
|
159
|
+
# @return [Array<(PaymentUrlResponse, Integer, Hash)>] PaymentUrlResponse data, response status code and response headers
|
160
|
+
def delete_payment_url_with_http_info(content_type, client_request_id, api_key, timestamp, opts = {})
|
161
|
+
if @api_client.config.debugging
|
162
|
+
@api_client.config.logger.debug 'Calling API: PaymentURLApi.delete_payment_url ...'
|
163
|
+
end
|
164
|
+
# verify the required parameter 'content_type' is set
|
165
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
166
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling PaymentURLApi.delete_payment_url"
|
167
|
+
end
|
168
|
+
# verify enum value
|
169
|
+
allowable_values = ["application/json"]
|
170
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(content_type)
|
171
|
+
fail ArgumentError, "invalid value for \"content_type\", must be one of #{allowable_values}"
|
172
|
+
end
|
173
|
+
# verify the required parameter 'client_request_id' is set
|
174
|
+
if @api_client.config.client_side_validation && client_request_id.nil?
|
175
|
+
fail ArgumentError, "Missing the required parameter 'client_request_id' when calling PaymentURLApi.delete_payment_url"
|
176
|
+
end
|
177
|
+
# verify the required parameter 'api_key' is set
|
178
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
179
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling PaymentURLApi.delete_payment_url"
|
180
|
+
end
|
181
|
+
# verify the required parameter 'timestamp' is set
|
182
|
+
if @api_client.config.client_side_validation && timestamp.nil?
|
183
|
+
fail ArgumentError, "Missing the required parameter 'timestamp' when calling PaymentURLApi.delete_payment_url"
|
184
|
+
end
|
185
|
+
# resource path
|
186
|
+
local_var_path = '/payment-url'
|
187
|
+
|
188
|
+
# query parameters
|
189
|
+
query_params = opts[:query_params] || {}
|
190
|
+
query_params[:'storeId'] = opts[:'store_id'] if !opts[:'store_id'].nil?
|
191
|
+
query_params[:'transactionId'] = opts[:'transaction_id'] if !opts[:'transaction_id'].nil?
|
192
|
+
query_params[:'orderId'] = opts[:'order_id'] if !opts[:'order_id'].nil?
|
193
|
+
query_params[:'paymentUrlId'] = opts[:'payment_url_id'] if !opts[:'payment_url_id'].nil?
|
194
|
+
query_params[:'transactionTime'] = opts[:'transaction_time'] if !opts[:'transaction_time'].nil?
|
195
|
+
|
196
|
+
# header parameters
|
197
|
+
header_params = opts[:header_params] || {}
|
198
|
+
# HTTP header 'Accept' (if needed)
|
199
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
200
|
+
# header_params[:'Content-Type'] = content_type
|
201
|
+
header_params[:'Client-Request-Id'] = client_request_id
|
202
|
+
header_params[:'Api-Key'] = api_key
|
203
|
+
header_params[:'Timestamp'] = timestamp
|
204
|
+
header_params[:'Message-Signature'] = opts[:'message_signature'] if !opts[:'message_signature'].nil?
|
205
|
+
header_params[:'Region'] = opts[:'region'] if !opts[:'region'].nil?
|
206
|
+
|
207
|
+
# form parameters
|
208
|
+
form_params = opts[:form_params] || {}
|
209
|
+
|
210
|
+
# http body (model)
|
211
|
+
post_body = opts[:body]
|
212
|
+
|
213
|
+
# return_type
|
214
|
+
return_type = opts[:return_type] || 'PaymentUrlResponse'
|
215
|
+
|
216
|
+
# auth_names
|
217
|
+
auth_names = opts[:auth_names] || []
|
218
|
+
|
219
|
+
new_options = opts.merge(
|
220
|
+
:header_params => header_params,
|
221
|
+
:query_params => query_params,
|
222
|
+
:form_params => form_params,
|
223
|
+
:body => post_body,
|
224
|
+
:auth_names => auth_names,
|
225
|
+
:return_type => 'PaymentUrlResponse',
|
226
|
+
:default_error_type => 'ErrorResponse')
|
227
|
+
|
228
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
229
|
+
if @api_client.config.debugging
|
230
|
+
@api_client.config.logger.debug "API called: PaymentURLApi#delete_payment_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
231
|
+
end
|
232
|
+
return data, status_code, headers
|
233
|
+
end
|
234
|
+
|
235
|
+
# Retrieve the state of payment URL.
|
236
|
+
# Use this query to get the current state of an existing paymentURL.
|
237
|
+
# @param content_type [String] Content type.
|
238
|
+
# @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.
|
239
|
+
# @param api_key [String] Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
240
|
+
# @param timestamp [Integer] Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
241
|
+
# @param from_date [String] The start date for payment URL in seconds since epoch.
|
242
|
+
# @param to_date [String] The end date for payment URL search query in seconds since epoch.
|
243
|
+
# @param [Hash] opts the optional parameters
|
244
|
+
# @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.
|
245
|
+
# @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.
|
246
|
+
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app.
|
247
|
+
# @option opts [String] :order_id Gateway order identifier as returned in the parameter orderId.
|
248
|
+
# @option opts [String] :merchant_transaction_id Gateway merchant identifier as returned in the parameter merchantTransactionId.
|
249
|
+
# @option opts [String] :status The status of payment URL.
|
250
|
+
# @return [PaymentUrlDetailResponse]
|
251
|
+
def payment_url_detail(content_type, client_request_id, api_key, timestamp, from_date, to_date, opts = {})
|
252
|
+
data, _status_code, _headers = payment_url_detail_with_http_info(content_type, client_request_id, api_key, timestamp, from_date, to_date, opts)
|
253
|
+
data
|
254
|
+
end
|
255
|
+
|
256
|
+
# Retrieve the state of payment URL.
|
257
|
+
# Use this query to get the current state of an existing paymentURL.
|
258
|
+
# @param content_type [String] Content type.
|
259
|
+
# @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.
|
260
|
+
# @param api_key [String] Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
261
|
+
# @param timestamp [Integer] Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
262
|
+
# @param from_date [String] The start date for payment URL in seconds since epoch.
|
263
|
+
# @param to_date [String] The end date for payment URL search query in seconds since epoch.
|
264
|
+
# @param [Hash] opts the optional parameters
|
265
|
+
# @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.
|
266
|
+
# @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.
|
267
|
+
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app.
|
268
|
+
# @option opts [String] :order_id Gateway order identifier as returned in the parameter orderId.
|
269
|
+
# @option opts [String] :merchant_transaction_id Gateway merchant identifier as returned in the parameter merchantTransactionId.
|
270
|
+
# @option opts [String] :status The status of payment URL.
|
271
|
+
# @return [Array<(PaymentUrlDetailResponse, Integer, Hash)>] PaymentUrlDetailResponse data, response status code and response headers
|
272
|
+
def payment_url_detail_with_http_info(content_type, client_request_id, api_key, timestamp, from_date, to_date, opts = {})
|
273
|
+
if @api_client.config.debugging
|
274
|
+
@api_client.config.logger.debug 'Calling API: PaymentURLApi.payment_url_detail ...'
|
275
|
+
end
|
276
|
+
# verify the required parameter 'content_type' is set
|
277
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
278
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling PaymentURLApi.payment_url_detail"
|
279
|
+
end
|
280
|
+
# verify enum value
|
281
|
+
allowable_values = ["application/json"]
|
282
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(content_type)
|
283
|
+
fail ArgumentError, "invalid value for \"content_type\", must be one of #{allowable_values}"
|
284
|
+
end
|
285
|
+
# verify the required parameter 'client_request_id' is set
|
286
|
+
if @api_client.config.client_side_validation && client_request_id.nil?
|
287
|
+
fail ArgumentError, "Missing the required parameter 'client_request_id' when calling PaymentURLApi.payment_url_detail"
|
288
|
+
end
|
289
|
+
# verify the required parameter 'api_key' is set
|
290
|
+
if @api_client.config.client_side_validation && api_key.nil?
|
291
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling PaymentURLApi.payment_url_detail"
|
292
|
+
end
|
293
|
+
# verify the required parameter 'timestamp' is set
|
294
|
+
if @api_client.config.client_side_validation && timestamp.nil?
|
295
|
+
fail ArgumentError, "Missing the required parameter 'timestamp' when calling PaymentURLApi.payment_url_detail"
|
296
|
+
end
|
297
|
+
# verify the required parameter 'from_date' is set
|
298
|
+
if @api_client.config.client_side_validation && from_date.nil?
|
299
|
+
fail ArgumentError, "Missing the required parameter 'from_date' when calling PaymentURLApi.payment_url_detail"
|
300
|
+
end
|
301
|
+
# verify the required parameter 'to_date' is set
|
302
|
+
if @api_client.config.client_side_validation && to_date.nil?
|
303
|
+
fail ArgumentError, "Missing the required parameter 'to_date' when calling PaymentURLApi.payment_url_detail"
|
304
|
+
end
|
305
|
+
# resource path
|
306
|
+
local_var_path = '/payment-url'
|
307
|
+
|
308
|
+
# query parameters
|
309
|
+
query_params = opts[:query_params] || {}
|
310
|
+
query_params[:'fromDate'] = from_date
|
311
|
+
query_params[:'toDate'] = to_date
|
312
|
+
query_params[:'storeId'] = opts[:'store_id'] if !opts[:'store_id'].nil?
|
313
|
+
query_params[:'orderId'] = opts[:'order_id'] if !opts[:'order_id'].nil?
|
314
|
+
query_params[:'merchantTransactionId'] = opts[:'merchant_transaction_id'] if !opts[:'merchant_transaction_id'].nil?
|
315
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
316
|
+
|
317
|
+
# header parameters
|
318
|
+
header_params = opts[:header_params] || {}
|
319
|
+
# HTTP header 'Accept' (if needed)
|
320
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
321
|
+
# header_params[:'Content-Type'] = content_type
|
322
|
+
header_params[:'Client-Request-Id'] = client_request_id
|
323
|
+
header_params[:'Api-Key'] = api_key
|
324
|
+
header_params[:'Timestamp'] = timestamp
|
325
|
+
header_params[:'Message-Signature'] = opts[:'message_signature'] if !opts[:'message_signature'].nil?
|
326
|
+
header_params[:'Region'] = opts[:'region'] if !opts[:'region'].nil?
|
327
|
+
|
328
|
+
# form parameters
|
329
|
+
form_params = opts[:form_params] || {}
|
330
|
+
|
331
|
+
# http body (model)
|
332
|
+
post_body = opts[:body]
|
333
|
+
|
334
|
+
# return_type
|
335
|
+
return_type = opts[:return_type] || 'PaymentUrlDetailResponse'
|
336
|
+
|
337
|
+
# auth_names
|
338
|
+
auth_names = opts[:auth_names] || []
|
339
|
+
|
340
|
+
new_options = opts.merge(
|
341
|
+
:header_params => header_params,
|
342
|
+
:query_params => query_params,
|
343
|
+
:form_params => form_params,
|
344
|
+
:body => post_body,
|
345
|
+
:auth_names => auth_names,
|
346
|
+
:return_type => 'PaymentUrlDetailResponse',
|
347
|
+
:default_error_type => 'ErrorResponse')
|
348
|
+
|
349
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
350
|
+
if @api_client.config.debugging
|
351
|
+
@api_client.config.logger.debug "API called: PaymentURLApi#payment_url_detail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
352
|
+
end
|
353
|
+
return data, status_code, headers
|
354
|
+
end
|
124
355
|
end
|
125
356
|
end
|