first_data_gateway 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +79 -0
- data/README.md +69 -39
- data/docs/AVSResponse.md +2 -2
- data/docs/AccessTokenResponse.md +2 -2
- data/docs/AccountUpdaterResponse.md +12 -0
- data/docs/AdditionalAmountRate.md +2 -2
- data/docs/AdditionalDetails.md +10 -0
- data/docs/AdditionalTransactionDetails.md +3 -3
- data/docs/Address.md +7 -7
- data/docs/Airline.md +12 -12
- data/docs/AirlineAncillaryServiceCategory.md +1 -1
- data/docs/AirlineTravelRoute.md +4 -4
- data/docs/AliPay.md +2 -2
- data/docs/{SecondaryTransactionAdditionalDetails.md → AliPayPaymentMethod.md} +2 -2
- data/docs/AliPaySaleTransaction.md +14 -0
- data/docs/Amount.md +2 -2
- data/docs/AmountComponents.md +6 -7
- data/docs/Authentication.md +8 -0
- data/docs/AuthenticationApi.md +12 -12
- data/docs/AuthenticationRedirect.md +10 -0
- data/docs/AuthenticationRedirectParams.md +10 -0
- data/docs/AuthenticationVerificationRequest.md +11 -0
- data/docs/BasicResponse.md +1 -1
- data/docs/Billing.md +3 -5
- data/docs/BillingAddress.md +4 -4
- data/docs/BillingAddressPhone.md +1 -1
- data/docs/CarRental.md +6 -6
- data/docs/CarRentalExtraCharges.md +1 -1
- data/docs/Card.md +6 -6
- data/docs/CardFunction.md +7 -0
- data/docs/CardInfo.md +2 -2
- data/docs/CardInfoLookupApi.md +14 -14
- data/docs/CardInfoLookupResponse.md +1 -1
- data/docs/CardVerificationApi.md +12 -12
- data/docs/CardVerificationRequest.md +1 -0
- data/docs/ChinaDomesticPaymentMethod.md +9 -0
- data/docs/ChinaPnRSaleTransaction.md +14 -0
- data/docs/ClientLocale.md +2 -2
- data/docs/Contact.md +4 -4
- data/docs/CreatePaymentToken.md +10 -0
- data/docs/CurrencyConversion.md +9 -0
- data/docs/CurrencyConversionApi.md +15 -15
- data/docs/Customer.md +6 -6
- data/docs/CustomerAddress.md +3 -3
- data/docs/CustomerAddressPhone.md +1 -1
- data/docs/DCCExchangeRateRequest.md +11 -0
- data/docs/Dcc.md +2 -1
- data/docs/Device.md +2 -2
- data/docs/DeviceNetworks.md +1 -1
- data/docs/Document.md +2 -2
- data/docs/DynamicPricing.md +11 -0
- data/docs/DynamicPricingExchangeRateRequest.md +11 -0
- data/docs/ErrorResponse.md +1 -1
- data/docs/ExchangeRateRequest.md +2 -4
- data/docs/ExchangeRateResponse.md +11 -11
- data/docs/Expiration.md +2 -2
- data/docs/FraudDetectApi.md +12 -12
- data/docs/FraudOrderItems.md +1 -1
- data/docs/FraudOrderShipToAddress.md +6 -6
- data/docs/Frequency.md +2 -2
- data/docs/InstallmentOptions.md +5 -3
- data/docs/Lodging.md +5 -5
- data/docs/MerchantLocationMerchantAddress.md +6 -6
- data/docs/Order.md +5 -0
- data/docs/OrderApi.md +36 -102
- data/docs/OrderErrorResponse.md +4 -5
- data/docs/OrderResponse.md +4 -5
- data/docs/PayPal.md +1 -1
- data/docs/PayPalPaymentMethod.md +8 -0
- data/docs/PaymentApi.md +67 -193
- data/docs/PaymentCard.md +8 -11
- data/docs/PaymentCardCreditTransaction.md +15 -0
- data/docs/PaymentCardForcedTicketTransaction.md +15 -0
- data/docs/PaymentCardPayerAuthTransaction.md +15 -0
- data/docs/PaymentCardPaymentMethod.md +9 -0
- data/docs/PaymentCardPaymentTokenizationRequest.md +13 -0
- data/docs/PaymentCardPreAuthTransaction.md +18 -0
- data/docs/PaymentCardSaleTransaction.md +18 -0
- data/docs/PaymentFacilitator.md +4 -4
- data/docs/PaymentMethod.md +0 -7
- data/docs/PaymentMethodDetails.md +9 -0
- data/docs/PaymentMethodPaymentSchedulesRequest.md +24 -0
- data/docs/PaymentMethodType.md +7 -0
- data/docs/PaymentPayMethod.md +1 -1
- data/docs/PaymentSchedulesApi.md +58 -58
- data/docs/PaymentSchedulesErrorResponse.md +1 -1
- data/docs/PaymentSchedulesRequest.md +5 -6
- data/docs/PaymentSchedulesResponse.md +1 -1
- data/docs/PaymentTokenApi.md +23 -23
- data/docs/PaymentTokenCreditTransaction.md +15 -0
- data/docs/PaymentTokenDetails.md +14 -0
- data/docs/PaymentTokenPaymentMethod.md +9 -0
- data/docs/PaymentTokenPreAuthTransaction.md +17 -0
- data/docs/PaymentTokenSaleTransaction.md +17 -0
- data/docs/PaymentTokenizationErrorResponse.md +8 -8
- data/docs/PaymentTokenizationRequest.md +4 -3
- data/docs/PaymentTokenizationResponse.md +8 -8
- data/docs/PaymentURLApi.md +12 -12
- data/docs/PaymentUrlErrorResponse.md +3 -3
- data/docs/PaymentUrlRequest.md +3 -3
- data/docs/PaymentUrlResponse.md +3 -3
- data/docs/PaymentVerification3ds.md +3 -3
- data/docs/PaymentVerificationAvs.md +3 -3
- data/docs/PaymentVerificationCvv.md +3 -3
- data/docs/PaypalCreditTransaction.md +14 -0
- data/docs/PostAuthTransaction.md +14 -0
- data/docs/PrimaryTransaction.md +3 -12
- data/docs/ProcessorData.md +8 -6
- data/docs/PurchaseCardsLevel2.md +3 -3
- data/docs/PurchaseCardsLevel3.md +1 -1
- data/docs/PurchaseCardsLevel3LineItems.md +8 -8
- data/docs/RecurringPaymentDetails.md +2 -2
- data/docs/RecurringPaymentDetailsResponse.md +4 -5
- data/docs/ReferencedOrderPaymentSchedulesRequest.md +24 -0
- data/docs/ReferencedOrderPaymentTokenizationRequest.md +13 -0
- data/docs/ResponseAmountComponents.md +14 -0
- data/docs/ReturnTransaction.md +13 -0
- data/docs/ScoreOnlyRequest.md +1 -1
- data/docs/ScoreOnlyResponse.md +3 -3
- data/docs/ScoreOnlyResponseFraudScore.md +1 -1
- data/docs/ScoreOnlyResponseFraudScoreExplanations.md +3 -3
- data/docs/SecondaryTransaction.md +3 -5
- data/docs/Secure3dAuthenticationRequest.md +8 -0
- data/docs/Secure3dAuthenticationResult.md +12 -0
- data/docs/Secure3dAuthenticationVerificationRequest.md +13 -0
- data/docs/Secure3dResponse.md +1 -1
- data/docs/Sepa.md +4 -4
- data/docs/SepaMandate.md +2 -2
- data/docs/SepaPaymentMethod.md +8 -0
- data/docs/SepaSaleTransaction.md +14 -0
- data/docs/Shipping.md +1 -1
- data/docs/SoftDescriptor.md +2 -2
- data/docs/SplitShipment.md +1 -1
- data/docs/StoredCredential.md +4 -4
- data/docs/SubMerchantData.md +4 -4
- data/docs/SubMerchantSplit.md +9 -0
- data/docs/Transaction.md +4 -4
- data/docs/TransactionErrorResponse.md +11 -10
- data/docs/TransactionResponse.md +11 -10
- data/docs/UnionPayAuthenticationRequest.md +9 -0
- data/docs/UnionPayAuthenticationVerificationRequest.md +12 -0
- data/docs/UsePaymentToken.md +10 -0
- data/docs/VoidTransaction.md +10 -0
- data/first_data_gateway.gemspec +3 -2
- data/lib/openapi_client/api/authentication_api.rb +18 -18
- data/lib/openapi_client/api/card_info_lookup_api.rb +15 -15
- data/lib/openapi_client/api/card_verification_api.rb +13 -13
- data/lib/openapi_client/api/currency_conversion_api.rb +17 -17
- data/lib/openapi_client/api/fraud_detect_api.rb +13 -17
- data/lib/openapi_client/api/order_api.rb +45 -153
- data/lib/openapi_client/api/payment_api.rb +88 -287
- data/lib/openapi_client/api/payment_schedules_api.rb +61 -63
- data/lib/openapi_client/api/payment_token_api.rb +24 -24
- data/lib/openapi_client/api/payment_url_api.rb +13 -13
- data/lib/openapi_client/api_client.rb +2 -2
- data/lib/openapi_client/api_error.rb +2 -2
- data/lib/openapi_client/configuration.rb +4 -4
- data/lib/openapi_client/models/access_token_response.rb +5 -5
- data/lib/openapi_client/models/account_updater_response.rb +225 -0
- data/lib/openapi_client/models/additional_amount_rate.rb +15 -4
- data/lib/openapi_client/models/{primary_transaction_additional_details.rb → additional_details.rb} +11 -113
- data/lib/openapi_client/models/additional_transaction_details.rb +6 -6
- data/lib/openapi_client/models/address.rb +9 -9
- data/lib/openapi_client/models/airline.rb +15 -15
- data/lib/openapi_client/models/airline_ancillary_service_category.rb +7 -2
- data/lib/openapi_client/models/airline_travel_route.rb +7 -6
- data/lib/openapi_client/models/ali_pay.rb +4 -4
- data/lib/openapi_client/models/{referenced_order.rb → ali_pay_payment_method.rb} +16 -20
- data/lib/openapi_client/models/ali_pay_sale_transaction.rb +286 -0
- data/lib/openapi_client/models/amount.rb +5 -5
- data/lib/openapi_client/models/amount_components.rb +13 -23
- data/lib/openapi_client/models/authentication.rb +190 -0
- data/lib/openapi_client/models/{authentication_request.rb → authentication_redirect.rb} +24 -20
- data/lib/openapi_client/models/authentication_redirect_params.rb +205 -0
- data/lib/openapi_client/models/authentication_verification_request.rb +234 -0
- data/lib/openapi_client/models/avs_response.rb +4 -2
- data/lib/openapi_client/models/basic_response.rb +2 -7
- data/lib/openapi_client/models/billing.rb +7 -76
- data/lib/openapi_client/models/billing_address.rb +7 -7
- data/lib/openapi_client/models/billing_address_phone.rb +4 -4
- data/lib/openapi_client/models/car_rental.rb +9 -9
- data/lib/openapi_client/models/car_rental_extra_charges.rb +3 -3
- data/lib/openapi_client/models/card.rb +9 -8
- data/lib/openapi_client/models/card_function.rb +33 -0
- data/lib/openapi_client/models/card_info.rb +4 -17
- data/lib/openapi_client/models/card_info_lookup_request.rb +3 -3
- data/lib/openapi_client/models/card_info_lookup_response.rb +2 -7
- data/lib/openapi_client/models/card_verification_request.rb +32 -7
- data/lib/openapi_client/models/china_domestic.rb +2 -2
- data/lib/openapi_client/models/{authentication_response_verification.rb → china_domestic_payment_method.rb} +33 -48
- data/lib/openapi_client/models/china_pn_r_sale_transaction.rb +286 -0
- data/lib/openapi_client/models/client_locale.rb +5 -5
- data/lib/openapi_client/models/contact.rb +7 -6
- data/lib/openapi_client/models/create_payment_token.rb +209 -0
- data/lib/openapi_client/models/{authentication_response_verification_request.rb → currency_conversion.rb} +29 -35
- data/lib/openapi_client/models/customer.rb +9 -9
- data/lib/openapi_client/models/customer_address.rb +6 -6
- data/lib/openapi_client/models/customer_address_phone.rb +4 -4
- data/lib/openapi_client/models/dcc.rb +24 -4
- data/lib/openapi_client/models/dcc_exchange_rate_request.rb +273 -0
- data/lib/openapi_client/models/device.rb +4 -3
- data/lib/openapi_client/models/device_networks.rb +4 -3
- data/lib/openapi_client/models/document.rb +4 -4
- data/lib/openapi_client/models/dynamic_pricing.rb +235 -0
- data/lib/openapi_client/models/dynamic_pricing_exchange_rate_request.rb +273 -0
- data/lib/openapi_client/models/error.rb +2 -2
- data/lib/openapi_client/models/error_details.rb +2 -2
- data/lib/openapi_client/models/error_response.rb +2 -7
- data/lib/openapi_client/models/exchange_rate_request.rb +26 -103
- data/lib/openapi_client/models/exchange_rate_response.rb +20 -25
- data/lib/openapi_client/models/expiration.rb +5 -5
- data/lib/openapi_client/models/fraud_order.rb +2 -2
- data/lib/openapi_client/models/fraud_order_items.rb +4 -2
- data/lib/openapi_client/models/fraud_order_ship_to_address.rb +8 -8
- data/lib/openapi_client/models/frequency.rb +5 -5
- data/lib/openapi_client/models/industry_specific_extensions.rb +3 -3
- data/lib/openapi_client/models/installment_options.rb +63 -9
- data/lib/openapi_client/models/lodging.rb +8 -8
- data/lib/openapi_client/models/lodging_extra_charges.rb +2 -2
- data/lib/openapi_client/models/loyalty.rb +2 -2
- data/lib/openapi_client/models/merchant.rb +2 -2
- data/lib/openapi_client/models/merchant_location.rb +2 -2
- data/lib/openapi_client/models/merchant_location_merchant_address.rb +9 -9
- data/lib/openapi_client/models/order.rb +52 -7
- data/lib/openapi_client/models/order_error_response.rb +6 -21
- data/lib/openapi_client/models/order_response.rb +7 -22
- data/lib/openapi_client/models/pay_pal.rb +3 -3
- data/lib/openapi_client/models/pay_pal_payment_method.rb +189 -0
- data/lib/openapi_client/models/payment.rb +2 -2
- data/lib/openapi_client/models/payment_card.rb +38 -58
- data/lib/openapi_client/models/payment_card_credit_transaction.rb +295 -0
- data/lib/openapi_client/models/payment_card_forced_ticket_transaction.rb +320 -0
- data/lib/openapi_client/models/payment_card_payer_auth_transaction.rb +295 -0
- data/lib/openapi_client/models/payment_card_payment_method.rb +198 -0
- data/lib/openapi_client/models/payment_card_payment_tokenization_request.rb +264 -0
- data/lib/openapi_client/models/payment_card_pre_auth_transaction.rb +325 -0
- data/lib/openapi_client/models/payment_card_sale_transaction.rb +325 -0
- data/lib/openapi_client/models/payment_facilitator.rb +7 -7
- data/lib/openapi_client/models/payment_issuer_response.rb +2 -2
- data/lib/openapi_client/models/payment_method.rb +5 -108
- data/lib/openapi_client/models/{basket_item.rb → payment_method_details.rb} +17 -38
- data/lib/openapi_client/models/payment_method_payment_schedules_request.rb +426 -0
- data/lib/openapi_client/models/payment_method_type.rb +47 -0
- data/lib/openapi_client/models/payment_pay_method.rb +4 -4
- data/lib/openapi_client/models/payment_schedules_error_response.rb +2 -7
- data/lib/openapi_client/models/payment_schedules_request.rb +41 -30
- data/lib/openapi_client/models/payment_schedules_response.rb +2 -7
- data/lib/openapi_client/models/payment_token_credit_transaction.rb +295 -0
- data/lib/openapi_client/models/{payment_tokenization.rb → payment_token_details.rb} +18 -96
- data/lib/openapi_client/models/payment_token_payment_method.rb +198 -0
- data/lib/openapi_client/models/payment_token_pre_auth_transaction.rb +316 -0
- data/lib/openapi_client/models/payment_token_sale_transaction.rb +316 -0
- data/lib/openapi_client/models/payment_tokenization_error_response.rb +10 -15
- data/lib/openapi_client/models/payment_tokenization_request.rb +60 -61
- data/lib/openapi_client/models/payment_tokenization_response.rb +10 -15
- data/lib/openapi_client/models/payment_url_error_response.rb +4 -9
- data/lib/openapi_client/models/payment_url_request.rb +11 -16
- data/lib/openapi_client/models/payment_url_response.rb +4 -9
- data/lib/openapi_client/models/payment_verification3ds.rb +5 -5
- data/lib/openapi_client/models/payment_verification_avs.rb +5 -5
- data/lib/openapi_client/models/payment_verification_cvv.rb +5 -5
- data/lib/openapi_client/models/paypal_credit_transaction.rb +286 -0
- data/lib/openapi_client/models/post_auth_transaction.rb +266 -0
- data/lib/openapi_client/models/primary_transaction.rb +30 -118
- data/lib/openapi_client/models/processor_data.rb +48 -7
- data/lib/openapi_client/models/purchase_cards.rb +3 -2
- data/lib/openapi_client/models/purchase_cards_level2.rb +6 -5
- data/lib/openapi_client/models/purchase_cards_level3.rb +9 -3
- data/lib/openapi_client/models/purchase_cards_level3_line_items.rb +16 -16
- data/lib/openapi_client/models/recurring_payment_details.rb +15 -15
- data/lib/openapi_client/models/recurring_payment_details_response.rb +6 -21
- data/lib/openapi_client/models/referenced_order_payment_schedules_request.rb +427 -0
- data/lib/openapi_client/models/referenced_order_payment_tokenization_request.rb +265 -0
- data/lib/openapi_client/models/response_amount_components.rb +245 -0
- data/lib/openapi_client/models/response_type.rb +2 -2
- data/lib/openapi_client/models/return_transaction.rb +257 -0
- data/lib/openapi_client/models/score_only_request.rb +4 -4
- data/lib/openapi_client/models/score_only_response.rb +6 -5
- data/lib/openapi_client/models/score_only_response_fraud_score.rb +4 -3
- data/lib/openapi_client/models/score_only_response_fraud_score_explanations.rb +5 -2
- data/lib/openapi_client/models/secondary_transaction.rb +45 -40
- data/lib/openapi_client/models/secure3d_authentication_request.rb +190 -0
- data/lib/openapi_client/models/{payment_card_authentication_result.rb → secure3d_authentication_result.rb} +34 -41
- data/lib/openapi_client/models/secure3d_authentication_verification_request.rb +264 -0
- data/lib/openapi_client/models/secure3d_response.rb +4 -3
- data/lib/openapi_client/models/sepa.rb +6 -6
- data/lib/openapi_client/models/sepa_mandate.rb +5 -5
- data/lib/openapi_client/models/{secondary_transaction_additional_details.rb → sepa_payment_method.rb} +16 -10
- data/lib/openapi_client/models/sepa_sale_transaction.rb +286 -0
- data/lib/openapi_client/models/shipping.rb +4 -3
- data/lib/openapi_client/models/soft_descriptor.rb +15 -15
- data/lib/openapi_client/models/split_shipment.rb +4 -4
- data/lib/openapi_client/models/stored_credential.rb +7 -7
- data/lib/openapi_client/models/sub_merchant_data.rb +7 -7
- data/lib/openapi_client/models/sub_merchant_split.rb +233 -0
- data/lib/openapi_client/models/transaction.rb +18 -18
- data/lib/openapi_client/models/transaction_error_response.rb +28 -24
- data/lib/openapi_client/models/transaction_origin.rb +2 -2
- data/lib/openapi_client/models/transaction_response.rb +32 -28
- data/lib/openapi_client/models/transaction_type.rb +2 -2
- data/lib/openapi_client/models/union_pay_authentication_request.rb +224 -0
- data/lib/openapi_client/models/union_pay_authentication_verification_request.rb +249 -0
- data/lib/openapi_client/models/use_payment_token.rb +233 -0
- data/lib/openapi_client/models/{card_verifications_transaction.rb → void_transaction.rb} +28 -17
- data/lib/openapi_client/version.rb +3 -3
- data/lib/openapi_client.rb +50 -12
- data/lib/simple/gateway.rb +8 -59
- data/lib/simple_client.rb +4 -4
- data/spec/api/authentication_api_spec.rb +7 -7
- data/spec/api/card_info_lookup_api_spec.rb +8 -8
- data/spec/api/card_verification_api_spec.rb +7 -7
- data/spec/api/currency_conversion_api_spec.rb +9 -9
- data/spec/api/fraud_detect_api_spec.rb +7 -7
- data/spec/api/order_api_spec.rb +19 -40
- data/spec/api/payment_api_spec.rb +33 -72
- data/spec/api/payment_schedules_api_spec.rb +29 -29
- data/spec/api/payment_token_api_spec.rb +12 -12
- data/spec/api/payment_url_api_spec.rb +7 -7
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +5 -5
- data/spec/models/access_token_response_spec.rb +2 -2
- data/spec/models/account_updater_response_spec.rb +65 -0
- data/spec/models/additional_amount_rate_spec.rb +2 -2
- data/spec/models/additional_details_spec.rb +53 -0
- data/spec/models/additional_transaction_details_spec.rb +2 -2
- data/spec/models/address_spec.rb +2 -2
- data/spec/models/airline_ancillary_service_category_spec.rb +2 -2
- data/spec/models/airline_spec.rb +2 -2
- data/spec/models/airline_travel_route_spec.rb +2 -2
- data/spec/models/ali_pay_payment_method_spec.rb +41 -0
- data/spec/models/ali_pay_sale_transaction_spec.rb +77 -0
- data/spec/models/ali_pay_spec.rb +2 -2
- data/spec/models/amount_components_spec.rb +2 -8
- data/spec/models/amount_spec.rb +2 -2
- data/spec/models/authentication_redirect_params_spec.rb +53 -0
- data/spec/models/{authentication_response_verification_spec.rb → authentication_redirect_spec.rb} +11 -17
- data/spec/models/authentication_spec.rb +41 -0
- data/spec/models/{authentication_response_verification_request_spec.rb → authentication_verification_request_spec.rb} +11 -11
- data/spec/models/avs_response_spec.rb +2 -2
- data/spec/models/basic_response_spec.rb +2 -2
- data/spec/models/billing_address_phone_spec.rb +2 -2
- data/spec/models/billing_address_spec.rb +2 -2
- data/spec/models/billing_spec.rb +2 -18
- data/spec/models/car_rental_extra_charges_spec.rb +2 -2
- data/spec/models/car_rental_spec.rb +2 -2
- data/spec/models/card_function_spec.rb +35 -0
- data/spec/models/card_info_lookup_request_spec.rb +2 -2
- data/spec/models/card_info_lookup_response_spec.rb +2 -2
- data/spec/models/card_info_spec.rb +2 -6
- data/spec/models/card_spec.rb +2 -2
- data/spec/models/card_verification_request_spec.rb +8 -2
- data/spec/models/china_domestic_payment_method_spec.rb +51 -0
- data/spec/models/china_domestic_spec.rb +2 -2
- data/spec/models/china_pn_r_sale_transaction_spec.rb +77 -0
- data/spec/models/client_locale_spec.rb +2 -2
- data/spec/models/contact_spec.rb +2 -2
- data/spec/models/create_payment_token_spec.rb +53 -0
- data/spec/models/currency_conversion_spec.rb +47 -0
- data/spec/models/customer_address_phone_spec.rb +2 -2
- data/spec/models/customer_address_spec.rb +2 -2
- data/spec/models/customer_spec.rb +2 -2
- data/spec/models/dcc_exchange_rate_request_spec.rb +59 -0
- data/spec/models/dcc_spec.rb +8 -2
- data/spec/models/device_networks_spec.rb +2 -2
- data/spec/models/device_spec.rb +2 -2
- data/spec/models/document_spec.rb +2 -2
- data/spec/models/dynamic_pricing_exchange_rate_request_spec.rb +59 -0
- data/spec/models/{basket_item_spec.rb → dynamic_pricing_spec.rb} +12 -12
- data/spec/models/error_details_spec.rb +2 -2
- data/spec/models/error_response_spec.rb +2 -2
- data/spec/models/error_spec.rb +2 -2
- data/spec/models/exchange_rate_request_spec.rb +4 -20
- data/spec/models/exchange_rate_response_spec.rb +3 -3
- data/spec/models/expiration_spec.rb +2 -2
- data/spec/models/fraud_order_items_spec.rb +2 -2
- data/spec/models/fraud_order_ship_to_address_spec.rb +2 -2
- data/spec/models/fraud_order_spec.rb +2 -2
- data/spec/models/frequency_spec.rb +2 -2
- data/spec/models/industry_specific_extensions_spec.rb +2 -2
- data/spec/models/installment_options_spec.rb +18 -2
- data/spec/models/lodging_extra_charges_spec.rb +2 -2
- data/spec/models/lodging_spec.rb +2 -2
- data/spec/models/loyalty_spec.rb +2 -2
- data/spec/models/merchant_location_merchant_address_spec.rb +2 -2
- data/spec/models/merchant_location_spec.rb +2 -2
- data/spec/models/merchant_spec.rb +2 -2
- data/spec/models/order_error_response_spec.rb +2 -8
- data/spec/models/order_response_spec.rb +2 -8
- data/spec/models/order_spec.rb +32 -2
- data/spec/models/pay_pal_payment_method_spec.rb +41 -0
- data/spec/models/pay_pal_spec.rb +2 -2
- data/spec/models/payment_card_credit_transaction_spec.rb +83 -0
- data/spec/models/{primary_transaction_additional_details_spec.rb → payment_card_forced_ticket_transaction_spec.rb} +16 -22
- data/spec/models/payment_card_payer_auth_transaction_spec.rb +83 -0
- data/spec/models/payment_card_payment_method_spec.rb +47 -0
- data/spec/models/payment_card_payment_tokenization_request_spec.rb +71 -0
- data/spec/models/payment_card_pre_auth_transaction_spec.rb +101 -0
- data/spec/models/payment_card_sale_transaction_spec.rb +101 -0
- data/spec/models/payment_card_spec.rb +3 -21
- data/spec/models/payment_facilitator_spec.rb +2 -2
- data/spec/models/payment_issuer_response_spec.rb +2 -2
- data/spec/models/payment_method_details_spec.rb +47 -0
- data/spec/models/payment_method_payment_schedules_request_spec.rb +137 -0
- data/spec/models/payment_method_spec.rb +2 -48
- data/spec/models/payment_method_type_spec.rb +35 -0
- data/spec/models/payment_pay_method_spec.rb +2 -2
- data/spec/models/payment_schedules_error_response_spec.rb +2 -2
- data/spec/models/payment_schedules_request_spec.rb +5 -11
- data/spec/models/payment_schedules_response_spec.rb +2 -2
- data/spec/models/payment_spec.rb +2 -2
- data/spec/models/payment_token_credit_transaction_spec.rb +83 -0
- data/spec/models/{payment_tokenization_spec.rb → payment_token_details_spec.rb} +9 -25
- data/spec/models/payment_token_payment_method_spec.rb +47 -0
- data/spec/models/payment_token_pre_auth_transaction_spec.rb +95 -0
- data/spec/models/payment_token_sale_transaction_spec.rb +95 -0
- data/spec/models/payment_tokenization_error_response_spec.rb +2 -2
- data/spec/models/payment_tokenization_request_spec.rb +12 -10
- data/spec/models/payment_tokenization_response_spec.rb +2 -2
- data/spec/models/payment_url_error_response_spec.rb +2 -2
- data/spec/models/payment_url_request_spec.rb +3 -3
- data/spec/models/payment_url_response_spec.rb +2 -2
- data/spec/models/payment_verification3ds_spec.rb +2 -2
- data/spec/models/payment_verification_avs_spec.rb +2 -2
- data/spec/models/payment_verification_cvv_spec.rb +2 -2
- data/spec/models/paypal_credit_transaction_spec.rb +77 -0
- data/spec/models/post_auth_transaction_spec.rb +77 -0
- data/spec/models/primary_transaction_spec.rb +5 -59
- data/spec/models/processor_data_spec.rb +14 -2
- data/spec/models/purchase_cards_level2_spec.rb +2 -2
- data/spec/models/purchase_cards_level3_line_items_spec.rb +3 -3
- data/spec/models/purchase_cards_level3_spec.rb +2 -2
- data/spec/models/purchase_cards_spec.rb +2 -2
- data/spec/models/recurring_payment_details_response_spec.rb +2 -8
- data/spec/models/recurring_payment_details_spec.rb +4 -4
- data/spec/models/referenced_order_payment_schedules_request_spec.rb +137 -0
- data/spec/models/referenced_order_payment_tokenization_request_spec.rb +71 -0
- data/spec/models/response_amount_components_spec.rb +77 -0
- data/spec/models/response_type_spec.rb +2 -2
- data/spec/models/return_transaction_spec.rb +71 -0
- data/spec/models/score_only_request_spec.rb +2 -2
- data/spec/models/score_only_response_fraud_score_explanations_spec.rb +2 -2
- data/spec/models/score_only_response_fraud_score_spec.rb +2 -2
- data/spec/models/score_only_response_spec.rb +2 -2
- data/spec/models/secondary_transaction_spec.rb +5 -17
- data/spec/models/secure3d_authentication_request_spec.rb +41 -0
- data/spec/models/{payment_card_authentication_result_spec.rb → secure3d_authentication_result_spec.rb} +11 -15
- data/spec/models/secure3d_authentication_verification_request_spec.rb +71 -0
- data/spec/models/secure3d_response_spec.rb +2 -2
- data/spec/models/sepa_mandate_spec.rb +2 -2
- data/spec/models/sepa_payment_method_spec.rb +41 -0
- data/spec/models/sepa_sale_transaction_spec.rb +77 -0
- data/spec/models/sepa_spec.rb +2 -2
- data/spec/models/shipping_spec.rb +2 -2
- data/spec/models/soft_descriptor_spec.rb +3 -3
- data/spec/models/split_shipment_spec.rb +2 -2
- data/spec/models/stored_credential_spec.rb +2 -2
- data/spec/models/sub_merchant_data_spec.rb +2 -2
- data/spec/models/{card_verifications_transaction_spec.rb → sub_merchant_split_spec.rb} +10 -10
- data/spec/models/transaction_error_response_spec.rb +10 -4
- data/spec/models/transaction_origin_spec.rb +2 -2
- data/spec/models/transaction_response_spec.rb +10 -4
- data/spec/models/transaction_spec.rb +4 -4
- data/spec/models/transaction_type_spec.rb +2 -2
- data/spec/models/{authentication_request_spec.rb → union_pay_authentication_request_spec.rb} +9 -13
- data/spec/models/union_pay_authentication_verification_request_spec.rb +65 -0
- data/spec/models/use_payment_token_spec.rb +53 -0
- data/spec/models/void_transaction_spec.rb +53 -0
- data/spec/spec_helper.rb +2 -2
- metadata +195 -42
- data/docs/AuthenticationRequest.md +0 -9
- data/docs/AuthenticationResponseVerification.md +0 -11
- data/docs/AuthenticationResponseVerificationRequest.md +0 -11
- data/docs/BasketItem.md +0 -11
- data/docs/CardVerificationsTransaction.md +0 -9
- data/docs/PaymentCardAuthenticationResult.md +0 -12
- data/docs/PaymentTokenization.md +0 -16
- data/docs/PrimaryTransactionAdditionalDetails.md +0 -16
- data/docs/ReferencedOrder.md +0 -9
- data/spec/models/referenced_order_spec.rb +0 -47
- data/spec/models/secondary_transaction_additional_details_spec.rb +0 -41
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Payment Gateway API Specification.
|
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
|
-
OpenAPI spec version: 6.
|
6
|
+
OpenAPI spec version: 6.6.0.20190329.001
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: unset
|
@@ -21,34 +21,34 @@ module OpenapiClient
|
|
21
21
|
end
|
22
22
|
# Update a 3DSecure or UnionPay payment and continue processing.
|
23
23
|
# Use this to handle a 3DSecure redirect response or UnionPay authentication, updating the transaction and continuing processing.
|
24
|
-
# @param content_type
|
24
|
+
# @param content_type Content type.
|
25
25
|
# @param client_request_id A client-generated ID for request tracking and signature creation, unique per request. This is also used for idempotency control. We recommend 128-bit UUID format.
|
26
|
-
# @param api_key
|
26
|
+
# @param api_key Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
27
27
|
# @param timestamp Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
28
|
-
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId
|
29
|
-
# @param
|
28
|
+
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId.
|
29
|
+
# @param authentication_verification_request Accepted request types: Secure3dAuthenticationVerificationRequest and UnionPayAuthenticationVerificationRequest.
|
30
30
|
# @param [Hash] opts the optional parameters
|
31
|
-
# @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
|
32
|
-
# @option opts [String] :region
|
31
|
+
# @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.
|
32
|
+
# @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.
|
33
33
|
# @return [TransactionResponse]
|
34
|
-
def finalize_secure_transaction(content_type, client_request_id, api_key, timestamp, transaction_id,
|
35
|
-
data, _status_code, _headers = finalize_secure_transaction_with_http_info(content_type, client_request_id, api_key, timestamp, transaction_id,
|
34
|
+
def finalize_secure_transaction(content_type, client_request_id, api_key, timestamp, transaction_id, authentication_verification_request, opts = {})
|
35
|
+
data, _status_code, _headers = finalize_secure_transaction_with_http_info(content_type, client_request_id, api_key, timestamp, transaction_id, authentication_verification_request, opts)
|
36
36
|
data
|
37
37
|
end
|
38
38
|
|
39
39
|
# Update a 3DSecure or UnionPay payment and continue processing.
|
40
40
|
# Use this to handle a 3DSecure redirect response or UnionPay authentication, updating the transaction and continuing processing.
|
41
|
-
# @param content_type
|
41
|
+
# @param content_type Content type.
|
42
42
|
# @param client_request_id 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
|
-
# @param api_key
|
43
|
+
# @param api_key Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
44
44
|
# @param timestamp Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
45
|
-
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId
|
46
|
-
# @param
|
45
|
+
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId.
|
46
|
+
# @param authentication_verification_request Accepted request types: Secure3dAuthenticationVerificationRequest and UnionPayAuthenticationVerificationRequest.
|
47
47
|
# @param [Hash] opts the optional parameters
|
48
|
-
# @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
|
49
|
-
# @option opts [String] :region
|
48
|
+
# @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.
|
49
|
+
# @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.
|
50
50
|
# @return [Array<(TransactionResponse, Fixnum, Hash)>] TransactionResponse data, response status code and response headers
|
51
|
-
def finalize_secure_transaction_with_http_info(content_type, client_request_id, api_key, timestamp, transaction_id,
|
51
|
+
def finalize_secure_transaction_with_http_info(content_type, client_request_id, api_key, timestamp, transaction_id, authentication_verification_request, opts = {})
|
52
52
|
if @api_client.config.debugging
|
53
53
|
@api_client.config.logger.debug 'Calling API: PaymentApi.finalize_secure_transaction ...'
|
54
54
|
end
|
@@ -76,12 +76,12 @@ module OpenapiClient
|
|
76
76
|
if @api_client.config.client_side_validation && transaction_id.nil?
|
77
77
|
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling PaymentApi.finalize_secure_transaction"
|
78
78
|
end
|
79
|
-
# verify the required parameter '
|
80
|
-
if @api_client.config.client_side_validation &&
|
81
|
-
fail ArgumentError, "Missing the required parameter '
|
79
|
+
# verify the required parameter 'authentication_verification_request' is set
|
80
|
+
if @api_client.config.client_side_validation && authentication_verification_request.nil?
|
81
|
+
fail ArgumentError, "Missing the required parameter 'authentication_verification_request' when calling PaymentApi.finalize_secure_transaction"
|
82
82
|
end
|
83
83
|
# resource path
|
84
|
-
local_var_path = '/
|
84
|
+
local_var_path = '/payments/{transaction-id}'.sub('{' + 'transaction-id' + '}', transaction_id.to_s)
|
85
85
|
|
86
86
|
# query parameters
|
87
87
|
query_params = {}
|
@@ -103,7 +103,7 @@ module OpenapiClient
|
|
103
103
|
form_params = {}
|
104
104
|
|
105
105
|
# http body (model)
|
106
|
-
post_body = @api_client.object_to_http_body(
|
106
|
+
post_body = @api_client.object_to_http_body(authentication_verification_request)
|
107
107
|
auth_names = []
|
108
108
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
109
109
|
:header_params => header_params,
|
@@ -120,143 +120,40 @@ module OpenapiClient
|
|
120
120
|
return data, status_code, headers
|
121
121
|
end
|
122
122
|
|
123
|
-
# Capture/complete a transaction.
|
124
|
-
# Used to capture/complete an existing transaction. Partial postauths are allowed.
|
125
|
-
# @param content_type content type
|
126
|
-
# @param client_request_id 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.
|
127
|
-
# @param api_key
|
128
|
-
# @param timestamp Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
129
|
-
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId
|
130
|
-
# @param secondary_transaction
|
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 The region where client wants to process the transaction
|
134
|
-
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app
|
135
|
-
# @return [TransactionResponse]
|
136
|
-
def perform_payment_post_authorisation(content_type, client_request_id, api_key, timestamp, transaction_id, secondary_transaction, opts = {})
|
137
|
-
data, _status_code, _headers = perform_payment_post_authorisation_with_http_info(content_type, client_request_id, api_key, timestamp, transaction_id, secondary_transaction, opts)
|
138
|
-
data
|
139
|
-
end
|
140
|
-
|
141
|
-
# Capture/complete a transaction.
|
142
|
-
# Used to capture/complete an existing transaction. Partial postauths are allowed.
|
143
|
-
# @param content_type content type
|
144
|
-
# @param client_request_id 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.
|
145
|
-
# @param api_key
|
146
|
-
# @param timestamp Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
147
|
-
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId
|
148
|
-
# @param secondary_transaction
|
149
|
-
# @param [Hash] opts the optional parameters
|
150
|
-
# @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.
|
151
|
-
# @option opts [String] :region The region where client wants to process the transaction
|
152
|
-
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app
|
153
|
-
# @return [Array<(TransactionResponse, Fixnum, Hash)>] TransactionResponse data, response status code and response headers
|
154
|
-
def perform_payment_post_authorisation_with_http_info(content_type, client_request_id, api_key, timestamp, transaction_id, secondary_transaction, opts = {})
|
155
|
-
if @api_client.config.debugging
|
156
|
-
@api_client.config.logger.debug 'Calling API: PaymentApi.perform_payment_post_authorisation ...'
|
157
|
-
end
|
158
|
-
# verify the required parameter 'content_type' is set
|
159
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
160
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling PaymentApi.perform_payment_post_authorisation"
|
161
|
-
end
|
162
|
-
# verify enum value
|
163
|
-
if @api_client.config.client_side_validation && !['application/json'].include?(content_type)
|
164
|
-
fail ArgumentError, "invalid value for 'content_type', must be one of application/json"
|
165
|
-
end
|
166
|
-
# verify the required parameter 'client_request_id' is set
|
167
|
-
if @api_client.config.client_side_validation && client_request_id.nil?
|
168
|
-
fail ArgumentError, "Missing the required parameter 'client_request_id' when calling PaymentApi.perform_payment_post_authorisation"
|
169
|
-
end
|
170
|
-
# verify the required parameter 'api_key' is set
|
171
|
-
if @api_client.config.client_side_validation && api_key.nil?
|
172
|
-
fail ArgumentError, "Missing the required parameter 'api_key' when calling PaymentApi.perform_payment_post_authorisation"
|
173
|
-
end
|
174
|
-
# verify the required parameter 'timestamp' is set
|
175
|
-
if @api_client.config.client_side_validation && timestamp.nil?
|
176
|
-
fail ArgumentError, "Missing the required parameter 'timestamp' when calling PaymentApi.perform_payment_post_authorisation"
|
177
|
-
end
|
178
|
-
# verify the required parameter 'transaction_id' is set
|
179
|
-
if @api_client.config.client_side_validation && transaction_id.nil?
|
180
|
-
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling PaymentApi.perform_payment_post_authorisation"
|
181
|
-
end
|
182
|
-
# verify the required parameter 'secondary_transaction' is set
|
183
|
-
if @api_client.config.client_side_validation && secondary_transaction.nil?
|
184
|
-
fail ArgumentError, "Missing the required parameter 'secondary_transaction' when calling PaymentApi.perform_payment_post_authorisation"
|
185
|
-
end
|
186
|
-
# resource path
|
187
|
-
local_var_path = '/v1/payments/{transaction-id}/postauth'.sub('{' + 'transaction-id' + '}', transaction_id.to_s)
|
188
|
-
|
189
|
-
# query parameters
|
190
|
-
query_params = {}
|
191
|
-
query_params[:'storeId'] = opts[:'store_id'] if !opts[:'store_id'].nil?
|
192
|
-
|
193
|
-
# header parameters
|
194
|
-
header_params = {}
|
195
|
-
# HTTP header 'Accept' (if needed)
|
196
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
197
|
-
# HTTP header 'Content-Type'
|
198
|
-
# header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
199
|
-
# header_params[:'Content-Type'] = content_type
|
200
|
-
header_params[:'Client-Request-Id'] = client_request_id
|
201
|
-
header_params[:'Api-Key'] = api_key
|
202
|
-
header_params[:'Timestamp'] = timestamp
|
203
|
-
header_params[:'Message-Signature'] = opts[:'message_signature'] if !opts[:'message_signature'].nil?
|
204
|
-
header_params[:'Region'] = opts[:'region'] if !opts[:'region'].nil?
|
205
|
-
|
206
|
-
# form parameters
|
207
|
-
form_params = {}
|
208
|
-
|
209
|
-
# http body (model)
|
210
|
-
post_body = @api_client.object_to_http_body(secondary_transaction)
|
211
|
-
auth_names = []
|
212
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
213
|
-
:header_params => header_params,
|
214
|
-
:query_params => query_params,
|
215
|
-
:form_params => form_params,
|
216
|
-
:body => post_body,
|
217
|
-
:auth_names => auth_names,
|
218
|
-
:return_type => 'TransactionResponse',
|
219
|
-
:default_error_type => 'ErrorResponse')
|
220
|
-
if @api_client.config.debugging
|
221
|
-
@api_client.config.logger.debug "API called: PaymentApi#perform_payment_post_authorisation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
222
|
-
end
|
223
|
-
return data, status_code, headers
|
224
|
-
end
|
225
|
-
|
226
123
|
# Generate a primary transaction.
|
227
|
-
# Use this to originate a financial transaction
|
228
|
-
# @param content_type
|
124
|
+
# Use this to originate a financial transaction like a sale, preauthorization, or credit.
|
125
|
+
# @param content_type Content type.
|
229
126
|
# @param client_request_id 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.
|
230
|
-
# @param api_key
|
127
|
+
# @param api_key Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
231
128
|
# @param timestamp Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
232
|
-
# @param primary_transaction
|
129
|
+
# @param primary_transaction Accepted request types: AliPaySaleTransaction, ChinaPnRSaleTransaction, PaymentCardCreditTransaction, PaymentCardForcedTicketTransaction, PaymentCardSaleTransaction, PaymentCardPreAuthTransaction, PaymentCardPayerAuthTransaction, PaymentTokenCreditTransaction, PaymentTokenPreAuthTransaction, PaymentTokenSaleTransaction, PaypalCreditTransaction, and SepaSaleTransaction.
|
233
130
|
# @param [Hash] opts the optional parameters
|
234
|
-
# @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
|
235
|
-
# @option opts [String] :region
|
131
|
+
# @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.
|
132
|
+
# @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.
|
236
133
|
# @return [TransactionResponse]
|
237
|
-
def
|
238
|
-
data, _status_code, _headers =
|
134
|
+
def submit_primary_transaction(content_type, client_request_id, api_key, timestamp, primary_transaction, opts = {})
|
135
|
+
data, _status_code, _headers = submit_primary_transaction_with_http_info(content_type, client_request_id, api_key, timestamp, primary_transaction, opts)
|
239
136
|
data
|
240
137
|
end
|
241
138
|
|
242
139
|
# Generate a primary transaction.
|
243
|
-
# Use this to originate a financial transaction
|
244
|
-
# @param content_type
|
140
|
+
# Use this to originate a financial transaction like a sale, preauthorization, or credit.
|
141
|
+
# @param content_type Content type.
|
245
142
|
# @param client_request_id 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.
|
246
|
-
# @param api_key
|
143
|
+
# @param api_key Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
247
144
|
# @param timestamp Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
248
|
-
# @param primary_transaction
|
145
|
+
# @param primary_transaction Accepted request types: AliPaySaleTransaction, ChinaPnRSaleTransaction, PaymentCardCreditTransaction, PaymentCardForcedTicketTransaction, PaymentCardSaleTransaction, PaymentCardPreAuthTransaction, PaymentCardPayerAuthTransaction, PaymentTokenCreditTransaction, PaymentTokenPreAuthTransaction, PaymentTokenSaleTransaction, PaypalCreditTransaction, and SepaSaleTransaction.
|
249
146
|
# @param [Hash] opts the optional parameters
|
250
|
-
# @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
|
251
|
-
# @option opts [String] :region
|
147
|
+
# @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.
|
148
|
+
# @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.
|
252
149
|
# @return [Array<(TransactionResponse, Fixnum, Hash)>] TransactionResponse data, response status code and response headers
|
253
|
-
def
|
150
|
+
def submit_primary_transaction_with_http_info(content_type, client_request_id, api_key, timestamp, primary_transaction, opts = {})
|
254
151
|
if @api_client.config.debugging
|
255
|
-
@api_client.config.logger.debug 'Calling API: PaymentApi.
|
152
|
+
@api_client.config.logger.debug 'Calling API: PaymentApi.submit_primary_transaction ...'
|
256
153
|
end
|
257
154
|
# verify the required parameter 'content_type' is set
|
258
155
|
if @api_client.config.client_side_validation && content_type.nil?
|
259
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling PaymentApi.
|
156
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling PaymentApi.submit_primary_transaction"
|
260
157
|
end
|
261
158
|
# verify enum value
|
262
159
|
if @api_client.config.client_side_validation && !['application/json'].include?(content_type)
|
@@ -264,22 +161,22 @@ module OpenapiClient
|
|
264
161
|
end
|
265
162
|
# verify the required parameter 'client_request_id' is set
|
266
163
|
if @api_client.config.client_side_validation && client_request_id.nil?
|
267
|
-
fail ArgumentError, "Missing the required parameter 'client_request_id' when calling PaymentApi.
|
164
|
+
fail ArgumentError, "Missing the required parameter 'client_request_id' when calling PaymentApi.submit_primary_transaction"
|
268
165
|
end
|
269
166
|
# verify the required parameter 'api_key' is set
|
270
167
|
if @api_client.config.client_side_validation && api_key.nil?
|
271
|
-
fail ArgumentError, "Missing the required parameter 'api_key' when calling PaymentApi.
|
168
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling PaymentApi.submit_primary_transaction"
|
272
169
|
end
|
273
170
|
# verify the required parameter 'timestamp' is set
|
274
171
|
if @api_client.config.client_side_validation && timestamp.nil?
|
275
|
-
fail ArgumentError, "Missing the required parameter 'timestamp' when calling PaymentApi.
|
172
|
+
fail ArgumentError, "Missing the required parameter 'timestamp' when calling PaymentApi.submit_primary_transaction"
|
276
173
|
end
|
277
174
|
# verify the required parameter 'primary_transaction' is set
|
278
175
|
if @api_client.config.client_side_validation && primary_transaction.nil?
|
279
|
-
fail ArgumentError, "Missing the required parameter 'primary_transaction' when calling PaymentApi.
|
176
|
+
fail ArgumentError, "Missing the required parameter 'primary_transaction' when calling PaymentApi.submit_primary_transaction"
|
280
177
|
end
|
281
178
|
# resource path
|
282
|
-
local_var_path = '/
|
179
|
+
local_var_path = '/payments'
|
283
180
|
|
284
181
|
# query parameters
|
285
182
|
query_params = {}
|
@@ -313,49 +210,49 @@ module OpenapiClient
|
|
313
210
|
:default_error_type => 'ErrorResponse',
|
314
211
|
:error_type => 'TransactionErrorResponse')
|
315
212
|
if @api_client.config.debugging
|
316
|
-
@api_client.config.logger.debug "API called: PaymentApi#
|
213
|
+
@api_client.config.logger.debug "API called: PaymentApi#submit_primary_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
317
214
|
end
|
318
215
|
return data, status_code, headers
|
319
216
|
end
|
320
217
|
|
321
|
-
#
|
322
|
-
# Use this to return
|
323
|
-
# @param content_type
|
218
|
+
# Perform a secondary transaction.
|
219
|
+
# Use this to perform a void, postAuth or return secondary transaction. Partial postAuths and returns are allowed.
|
220
|
+
# @param content_type Content type.
|
324
221
|
# @param client_request_id 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.
|
325
|
-
# @param api_key
|
222
|
+
# @param api_key Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
326
223
|
# @param timestamp Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
327
|
-
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId
|
328
|
-
# @param secondary_transaction
|
224
|
+
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId.
|
225
|
+
# @param secondary_transaction Accepted request types: PostAuthTransaction, VoidTransaction, and ReturnTransaction.
|
329
226
|
# @param [Hash] opts the optional parameters
|
330
|
-
# @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
|
331
|
-
# @option opts [String] :region
|
332
|
-
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app
|
227
|
+
# @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.
|
228
|
+
# @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.
|
229
|
+
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app.
|
333
230
|
# @return [TransactionResponse]
|
334
|
-
def
|
335
|
-
data, _status_code, _headers =
|
231
|
+
def submit_secondary_transaction(content_type, client_request_id, api_key, timestamp, transaction_id, secondary_transaction, opts = {})
|
232
|
+
data, _status_code, _headers = submit_secondary_transaction_with_http_info(content_type, client_request_id, api_key, timestamp, transaction_id, secondary_transaction, opts)
|
336
233
|
data
|
337
234
|
end
|
338
235
|
|
339
|
-
#
|
340
|
-
# Use this to return
|
341
|
-
# @param content_type
|
236
|
+
# Perform a secondary transaction.
|
237
|
+
# Use this to perform a void, postAuth or return secondary transaction. Partial postAuths and returns are allowed.
|
238
|
+
# @param content_type Content type.
|
342
239
|
# @param client_request_id 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.
|
343
|
-
# @param api_key
|
240
|
+
# @param api_key Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
344
241
|
# @param timestamp Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
345
|
-
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId
|
346
|
-
# @param secondary_transaction
|
242
|
+
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId.
|
243
|
+
# @param secondary_transaction Accepted request types: PostAuthTransaction, VoidTransaction, and ReturnTransaction.
|
347
244
|
# @param [Hash] opts the optional parameters
|
348
|
-
# @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
|
349
|
-
# @option opts [String] :region
|
350
|
-
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app
|
245
|
+
# @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.
|
246
|
+
# @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.
|
247
|
+
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app.
|
351
248
|
# @return [Array<(TransactionResponse, Fixnum, Hash)>] TransactionResponse data, response status code and response headers
|
352
|
-
def
|
249
|
+
def submit_secondary_transaction_with_http_info(content_type, client_request_id, api_key, timestamp, transaction_id, secondary_transaction, opts = {})
|
353
250
|
if @api_client.config.debugging
|
354
|
-
@api_client.config.logger.debug 'Calling API: PaymentApi.
|
251
|
+
@api_client.config.logger.debug 'Calling API: PaymentApi.submit_secondary_transaction ...'
|
355
252
|
end
|
356
253
|
# verify the required parameter 'content_type' is set
|
357
254
|
if @api_client.config.client_side_validation && content_type.nil?
|
358
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling PaymentApi.
|
255
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling PaymentApi.submit_secondary_transaction"
|
359
256
|
end
|
360
257
|
# verify enum value
|
361
258
|
if @api_client.config.client_side_validation && !['application/json'].include?(content_type)
|
@@ -363,26 +260,26 @@ module OpenapiClient
|
|
363
260
|
end
|
364
261
|
# verify the required parameter 'client_request_id' is set
|
365
262
|
if @api_client.config.client_side_validation && client_request_id.nil?
|
366
|
-
fail ArgumentError, "Missing the required parameter 'client_request_id' when calling PaymentApi.
|
263
|
+
fail ArgumentError, "Missing the required parameter 'client_request_id' when calling PaymentApi.submit_secondary_transaction"
|
367
264
|
end
|
368
265
|
# verify the required parameter 'api_key' is set
|
369
266
|
if @api_client.config.client_side_validation && api_key.nil?
|
370
|
-
fail ArgumentError, "Missing the required parameter 'api_key' when calling PaymentApi.
|
267
|
+
fail ArgumentError, "Missing the required parameter 'api_key' when calling PaymentApi.submit_secondary_transaction"
|
371
268
|
end
|
372
269
|
# verify the required parameter 'timestamp' is set
|
373
270
|
if @api_client.config.client_side_validation && timestamp.nil?
|
374
|
-
fail ArgumentError, "Missing the required parameter 'timestamp' when calling PaymentApi.
|
271
|
+
fail ArgumentError, "Missing the required parameter 'timestamp' when calling PaymentApi.submit_secondary_transaction"
|
375
272
|
end
|
376
273
|
# verify the required parameter 'transaction_id' is set
|
377
274
|
if @api_client.config.client_side_validation && transaction_id.nil?
|
378
|
-
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling PaymentApi.
|
275
|
+
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling PaymentApi.submit_secondary_transaction"
|
379
276
|
end
|
380
277
|
# verify the required parameter 'secondary_transaction' is set
|
381
278
|
if @api_client.config.client_side_validation && secondary_transaction.nil?
|
382
|
-
fail ArgumentError, "Missing the required parameter 'secondary_transaction' when calling PaymentApi.
|
279
|
+
fail ArgumentError, "Missing the required parameter 'secondary_transaction' when calling PaymentApi.submit_secondary_transaction"
|
383
280
|
end
|
384
281
|
# resource path
|
385
|
-
local_var_path = '/
|
282
|
+
local_var_path = '/payments/{transaction-id}'.sub('{' + 'transaction-id' + '}', transaction_id.to_s)
|
386
283
|
|
387
284
|
# query parameters
|
388
285
|
query_params = {}
|
@@ -417,22 +314,22 @@ module OpenapiClient
|
|
417
314
|
:default_error_type => 'ErrorResponse',
|
418
315
|
:error_type => 'TransactionErrorResponse')
|
419
316
|
if @api_client.config.debugging
|
420
|
-
@api_client.config.logger.debug "API called: PaymentApi#
|
317
|
+
@api_client.config.logger.debug "API called: PaymentApi#submit_secondary_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
421
318
|
end
|
422
319
|
return data, status_code, headers
|
423
320
|
end
|
424
321
|
|
425
322
|
# Retrieve the state of a transaction.
|
426
323
|
# Use this query to get the current state of an existing transaction.
|
427
|
-
# @param content_type
|
324
|
+
# @param content_type Content type.
|
428
325
|
# @param client_request_id 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.
|
429
|
-
# @param api_key
|
326
|
+
# @param api_key Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
430
327
|
# @param timestamp Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
431
|
-
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId
|
328
|
+
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId.
|
432
329
|
# @param [Hash] opts the optional parameters
|
433
|
-
# @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
|
434
|
-
# @option opts [String] :region
|
435
|
-
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app
|
330
|
+
# @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.
|
331
|
+
# @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.
|
332
|
+
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app.
|
436
333
|
# @return [TransactionResponse]
|
437
334
|
def transaction_inquiry(content_type, client_request_id, api_key, timestamp, transaction_id, opts = {})
|
438
335
|
data, _status_code, _headers = transaction_inquiry_with_http_info(content_type, client_request_id, api_key, timestamp, transaction_id, opts)
|
@@ -441,15 +338,15 @@ module OpenapiClient
|
|
441
338
|
|
442
339
|
# Retrieve the state of a transaction.
|
443
340
|
# Use this query to get the current state of an existing transaction.
|
444
|
-
# @param content_type
|
341
|
+
# @param content_type Content type.
|
445
342
|
# @param client_request_id 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.
|
446
|
-
# @param api_key
|
343
|
+
# @param api_key Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
|
447
344
|
# @param timestamp Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
448
|
-
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId
|
345
|
+
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId.
|
449
346
|
# @param [Hash] opts the optional parameters
|
450
|
-
# @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
|
451
|
-
# @option opts [String] :region
|
452
|
-
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app
|
347
|
+
# @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.
|
348
|
+
# @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.
|
349
|
+
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app.
|
453
350
|
# @return [Array<(TransactionResponse, Fixnum, Hash)>] TransactionResponse data, response status code and response headers
|
454
351
|
def transaction_inquiry_with_http_info(content_type, client_request_id, api_key, timestamp, transaction_id, opts = {})
|
455
352
|
if @api_client.config.debugging
|
@@ -480,7 +377,7 @@ module OpenapiClient
|
|
480
377
|
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling PaymentApi.transaction_inquiry"
|
481
378
|
end
|
482
379
|
# resource path
|
483
|
-
local_var_path = '/
|
380
|
+
local_var_path = '/payments/{transaction-id}'.sub('{' + 'transaction-id' + '}', transaction_id.to_s)
|
484
381
|
|
485
382
|
# query parameters
|
486
383
|
query_params = {}
|
@@ -518,101 +415,5 @@ module OpenapiClient
|
|
518
415
|
return data, status_code, headers
|
519
416
|
end
|
520
417
|
|
521
|
-
# Reverse a previous action on an existing transaction.
|
522
|
-
# Use this to reverse a postauth/completion, credit, preauth, or sale.
|
523
|
-
# @param content_type content type
|
524
|
-
# @param client_request_id 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.
|
525
|
-
# @param api_key
|
526
|
-
# @param timestamp Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
527
|
-
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId
|
528
|
-
# @param [Hash] opts the optional parameters
|
529
|
-
# @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.
|
530
|
-
# @option opts [String] :region The region where client wants to process the transaction
|
531
|
-
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app
|
532
|
-
# @return [TransactionResponse]
|
533
|
-
def void_transaction(content_type, client_request_id, api_key, timestamp, transaction_id, opts = {})
|
534
|
-
data, _status_code, _headers = void_transaction_with_http_info(content_type, client_request_id, api_key, timestamp, transaction_id, opts)
|
535
|
-
data
|
536
|
-
end
|
537
|
-
|
538
|
-
# Reverse a previous action on an existing transaction.
|
539
|
-
# Use this to reverse a postauth/completion, credit, preauth, or sale.
|
540
|
-
# @param content_type content type
|
541
|
-
# @param client_request_id 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.
|
542
|
-
# @param api_key
|
543
|
-
# @param timestamp Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
544
|
-
# @param transaction_id Gateway transaction identifier as returned in the parameter ipgTransactionId
|
545
|
-
# @param [Hash] opts the optional parameters
|
546
|
-
# @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.
|
547
|
-
# @option opts [String] :region The region where client wants to process the transaction
|
548
|
-
# @option opts [String] :store_id An optional outlet ID for clients that support multiple stores in the same developer app
|
549
|
-
# @return [Array<(TransactionResponse, Fixnum, Hash)>] TransactionResponse data, response status code and response headers
|
550
|
-
def void_transaction_with_http_info(content_type, client_request_id, api_key, timestamp, transaction_id, opts = {})
|
551
|
-
if @api_client.config.debugging
|
552
|
-
@api_client.config.logger.debug 'Calling API: PaymentApi.void_transaction ...'
|
553
|
-
end
|
554
|
-
# verify the required parameter 'content_type' is set
|
555
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
556
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling PaymentApi.void_transaction"
|
557
|
-
end
|
558
|
-
# verify enum value
|
559
|
-
if @api_client.config.client_side_validation && !['application/json'].include?(content_type)
|
560
|
-
fail ArgumentError, "invalid value for 'content_type', must be one of application/json"
|
561
|
-
end
|
562
|
-
# verify the required parameter 'client_request_id' is set
|
563
|
-
if @api_client.config.client_side_validation && client_request_id.nil?
|
564
|
-
fail ArgumentError, "Missing the required parameter 'client_request_id' when calling PaymentApi.void_transaction"
|
565
|
-
end
|
566
|
-
# verify the required parameter 'api_key' is set
|
567
|
-
if @api_client.config.client_side_validation && api_key.nil?
|
568
|
-
fail ArgumentError, "Missing the required parameter 'api_key' when calling PaymentApi.void_transaction"
|
569
|
-
end
|
570
|
-
# verify the required parameter 'timestamp' is set
|
571
|
-
if @api_client.config.client_side_validation && timestamp.nil?
|
572
|
-
fail ArgumentError, "Missing the required parameter 'timestamp' when calling PaymentApi.void_transaction"
|
573
|
-
end
|
574
|
-
# verify the required parameter 'transaction_id' is set
|
575
|
-
if @api_client.config.client_side_validation && transaction_id.nil?
|
576
|
-
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling PaymentApi.void_transaction"
|
577
|
-
end
|
578
|
-
# resource path
|
579
|
-
local_var_path = '/v1/payments/{transaction-id}/void'.sub('{' + 'transaction-id' + '}', transaction_id.to_s)
|
580
|
-
|
581
|
-
# query parameters
|
582
|
-
query_params = {}
|
583
|
-
query_params[:'storeId'] = opts[:'store_id'] if !opts[:'store_id'].nil?
|
584
|
-
|
585
|
-
# header parameters
|
586
|
-
header_params = {}
|
587
|
-
# HTTP header 'Accept' (if needed)
|
588
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
589
|
-
# header_params[:'Content-Type'] = content_type
|
590
|
-
header_params[:'Client-Request-Id'] = client_request_id
|
591
|
-
header_params[:'Api-Key'] = api_key
|
592
|
-
header_params[:'Timestamp'] = timestamp
|
593
|
-
header_params[:'Message-Signature'] = opts[:'message_signature'] if !opts[:'message_signature'].nil?
|
594
|
-
header_params[:'Region'] = opts[:'region'] if !opts[:'region'].nil?
|
595
|
-
|
596
|
-
# form parameters
|
597
|
-
form_params = {}
|
598
|
-
|
599
|
-
# http body (model)
|
600
|
-
post_body = nil
|
601
|
-
auth_names = []
|
602
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
603
|
-
:header_params => header_params,
|
604
|
-
:query_params => query_params,
|
605
|
-
:form_params => form_params,
|
606
|
-
:body => post_body,
|
607
|
-
:auth_names => auth_names,
|
608
|
-
:return_type => 'TransactionResponse',
|
609
|
-
:default_error_type => 'ErrorResponse',
|
610
|
-
:error_type => 'TransactionErrorResponse')
|
611
|
-
if @api_client.config.debugging
|
612
|
-
@api_client.config.logger.debug "API called: PaymentApi#void_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
613
|
-
end
|
614
|
-
return data, status_code, headers
|
615
|
-
end
|
616
|
-
|
617
418
|
end
|
618
419
|
end
|