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
@@ -0,0 +1,233 @@
|
|
1
|
+
=begin
|
2
|
+
#Payment Gateway API Specification.
|
3
|
+
|
4
|
+
#The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
|
5
|
+
|
6
|
+
OpenAPI spec version: 6.6.0.20190329.001
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: unset
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module OpenapiClient
|
16
|
+
# Payment token usage details.
|
17
|
+
class UsePaymentToken
|
18
|
+
# Client-supplied payment token value.
|
19
|
+
attr_accessor :value
|
20
|
+
|
21
|
+
attr_accessor :function
|
22
|
+
|
23
|
+
# Card verification value/number.
|
24
|
+
attr_accessor :security_code
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'value' => :'value',
|
30
|
+
:'function' => :'function',
|
31
|
+
:'security_code' => :'securityCode'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'value' => :'String',
|
39
|
+
:'function' => :'CardFunction',
|
40
|
+
:'security_code' => :'String'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# Initializes the object
|
45
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
46
|
+
def initialize(attributes = {})
|
47
|
+
return unless attributes.is_a?(Hash)
|
48
|
+
|
49
|
+
# convert string to symbol for hash key
|
50
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
51
|
+
|
52
|
+
if attributes.has_key?(:'value')
|
53
|
+
self.value = attributes[:'value']
|
54
|
+
end
|
55
|
+
|
56
|
+
if attributes.has_key?(:'function')
|
57
|
+
self.function = attributes[:'function']
|
58
|
+
end
|
59
|
+
|
60
|
+
if attributes.has_key?(:'securityCode')
|
61
|
+
self.security_code = attributes[:'securityCode']
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
66
|
+
# @return Array for valid properties with the reasons
|
67
|
+
def list_invalid_properties
|
68
|
+
invalid_properties = Array.new
|
69
|
+
if @value.nil?
|
70
|
+
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
71
|
+
end
|
72
|
+
|
73
|
+
if !@security_code.nil? && @security_code.to_s.length > 4
|
74
|
+
invalid_properties.push('invalid value for "security_code", the character length must be smaller than or equal to 4.')
|
75
|
+
end
|
76
|
+
|
77
|
+
if !@security_code.nil? && @security_code.to_s.length < 3
|
78
|
+
invalid_properties.push('invalid value for "security_code", the character length must be great than or equal to 3.')
|
79
|
+
end
|
80
|
+
|
81
|
+
invalid_properties
|
82
|
+
end
|
83
|
+
|
84
|
+
# Check to see if the all the properties in the model are valid
|
85
|
+
# @return true if the model is valid
|
86
|
+
def valid?
|
87
|
+
return false if @value.nil?
|
88
|
+
return false if !@security_code.nil? && @security_code.to_s.length > 4
|
89
|
+
return false if !@security_code.nil? && @security_code.to_s.length < 3
|
90
|
+
true
|
91
|
+
end
|
92
|
+
|
93
|
+
# Custom attribute writer method with validation
|
94
|
+
# @param [Object] security_code Value to be assigned
|
95
|
+
def security_code=(security_code)
|
96
|
+
if !security_code.nil? && security_code.to_s.length > 4
|
97
|
+
fail ArgumentError, 'invalid value for "security_code", the character length must be smaller than or equal to 4.'
|
98
|
+
end
|
99
|
+
|
100
|
+
if !security_code.nil? && security_code.to_s.length < 3
|
101
|
+
fail ArgumentError, 'invalid value for "security_code", the character length must be great than or equal to 3.'
|
102
|
+
end
|
103
|
+
|
104
|
+
@security_code = security_code
|
105
|
+
end
|
106
|
+
|
107
|
+
# Checks equality by comparing each attribute.
|
108
|
+
# @param [Object] Object to be compared
|
109
|
+
def ==(o)
|
110
|
+
return true if self.equal?(o)
|
111
|
+
self.class == o.class &&
|
112
|
+
value == o.value &&
|
113
|
+
function == o.function &&
|
114
|
+
security_code == o.security_code
|
115
|
+
end
|
116
|
+
|
117
|
+
# @see the `==` method
|
118
|
+
# @param [Object] Object to be compared
|
119
|
+
def eql?(o)
|
120
|
+
self == o
|
121
|
+
end
|
122
|
+
|
123
|
+
# Calculates hash code according to all attributes.
|
124
|
+
# @return [Fixnum] Hash code
|
125
|
+
def hash
|
126
|
+
[value, function, security_code].hash
|
127
|
+
end
|
128
|
+
|
129
|
+
# Builds the object from hash
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
131
|
+
# @return [Object] Returns the model itself
|
132
|
+
def build_from_hash(attributes)
|
133
|
+
return nil unless attributes.is_a?(Hash)
|
134
|
+
self.class.openapi_types.each_pair do |key, type|
|
135
|
+
if type =~ /\AArray<(.*)>/i
|
136
|
+
# check to ensure the input is an array given that the the attribute
|
137
|
+
# is documented as an array but the input is not
|
138
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
139
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
140
|
+
end
|
141
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
142
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
143
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
144
|
+
end
|
145
|
+
|
146
|
+
self
|
147
|
+
end
|
148
|
+
|
149
|
+
# Deserializes the data based on type
|
150
|
+
# @param string type Data type
|
151
|
+
# @param string value Value to be deserialized
|
152
|
+
# @return [Object] Deserialized data
|
153
|
+
def _deserialize(type, value)
|
154
|
+
case type.to_sym
|
155
|
+
when :DateTime
|
156
|
+
DateTime.parse(value)
|
157
|
+
when :Date
|
158
|
+
Date.parse(value)
|
159
|
+
when :String
|
160
|
+
value.to_s
|
161
|
+
when :Integer
|
162
|
+
value.to_i
|
163
|
+
when :Float
|
164
|
+
value.to_f
|
165
|
+
when :BOOLEAN
|
166
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
167
|
+
true
|
168
|
+
else
|
169
|
+
false
|
170
|
+
end
|
171
|
+
when :Object
|
172
|
+
# generic object (usually a Hash), return directly
|
173
|
+
value
|
174
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
175
|
+
inner_type = Regexp.last_match[:inner_type]
|
176
|
+
value.map { |v| _deserialize(inner_type, v) }
|
177
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
178
|
+
k_type = Regexp.last_match[:k_type]
|
179
|
+
v_type = Regexp.last_match[:v_type]
|
180
|
+
{}.tap do |hash|
|
181
|
+
value.each do |k, v|
|
182
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
183
|
+
end
|
184
|
+
end
|
185
|
+
else # model
|
186
|
+
temp_model = OpenapiClient.const_get(type).new
|
187
|
+
temp_model.build_from_hash(value)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
# Returns the string representation of the object
|
192
|
+
# @return [String] String presentation of the object
|
193
|
+
def to_s
|
194
|
+
to_hash.to_s
|
195
|
+
end
|
196
|
+
|
197
|
+
# to_body is an alias to to_hash (backward compatibility)
|
198
|
+
# @return [Hash] Returns the object in the form of hash
|
199
|
+
def to_body
|
200
|
+
to_hash
|
201
|
+
end
|
202
|
+
|
203
|
+
# Returns the object in the form of hash
|
204
|
+
# @return [Hash] Returns the object in the form of hash
|
205
|
+
def to_hash
|
206
|
+
hash = {}
|
207
|
+
self.class.attribute_map.each_pair do |attr, param|
|
208
|
+
value = self.send(attr)
|
209
|
+
next if value.nil?
|
210
|
+
hash[param] = _to_hash(value)
|
211
|
+
end
|
212
|
+
hash
|
213
|
+
end
|
214
|
+
|
215
|
+
# Outputs non-array value in the form of hash
|
216
|
+
# For object, use to_hash. Otherwise, just return the value
|
217
|
+
# @param [Object] value Any valid value
|
218
|
+
# @return [Hash] Returns the value in the form of hash
|
219
|
+
def _to_hash(value)
|
220
|
+
if value.is_a?(Array)
|
221
|
+
value.compact.map { |v| _to_hash(v) }
|
222
|
+
elsif value.is_a?(Hash)
|
223
|
+
{}.tap do |hash|
|
224
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
225
|
+
end
|
226
|
+
elsif value.respond_to? :to_hash
|
227
|
+
value.to_hash
|
228
|
+
else
|
229
|
+
value
|
230
|
+
end
|
231
|
+
end
|
232
|
+
end
|
233
|
+
end
|
@@ -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
|
@@ -13,26 +13,32 @@ OpenAPI Generator version: unset
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
|
-
#
|
17
|
-
class
|
18
|
-
#
|
16
|
+
# Request to perform void transaction.
|
17
|
+
class VoidTransaction
|
18
|
+
# Object name of the secondary transaction request.
|
19
|
+
attr_accessor :request_type
|
20
|
+
|
21
|
+
# An optional outlet ID for clients that support multiple stores in the same developer app.
|
19
22
|
attr_accessor :store_id
|
20
23
|
|
21
|
-
|
24
|
+
# Comment for the secondary transaction.
|
25
|
+
attr_accessor :comments
|
22
26
|
|
23
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
28
|
def self.attribute_map
|
25
29
|
{
|
30
|
+
:'request_type' => :'requestType',
|
26
31
|
:'store_id' => :'storeId',
|
27
|
-
:'
|
32
|
+
:'comments' => :'comments'
|
28
33
|
}
|
29
34
|
end
|
30
35
|
|
31
36
|
# Attribute type mapping.
|
32
37
|
def self.openapi_types
|
33
38
|
{
|
39
|
+
:'request_type' => :'String',
|
34
40
|
:'store_id' => :'String',
|
35
|
-
:'
|
41
|
+
:'comments' => :'String'
|
36
42
|
}
|
37
43
|
end
|
38
44
|
|
@@ -44,12 +50,16 @@ module OpenapiClient
|
|
44
50
|
# convert string to symbol for hash key
|
45
51
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
52
|
|
53
|
+
if attributes.has_key?(:'requestType')
|
54
|
+
self.request_type = attributes[:'requestType']
|
55
|
+
end
|
56
|
+
|
47
57
|
if attributes.has_key?(:'storeId')
|
48
58
|
self.store_id = attributes[:'storeId']
|
49
59
|
end
|
50
60
|
|
51
|
-
if attributes.has_key?(:'
|
52
|
-
self.
|
61
|
+
if attributes.has_key?(:'comments')
|
62
|
+
self.comments = attributes[:'comments']
|
53
63
|
end
|
54
64
|
end
|
55
65
|
|
@@ -57,12 +67,12 @@ module OpenapiClient
|
|
57
67
|
# @return Array for valid properties with the reasons
|
58
68
|
def list_invalid_properties
|
59
69
|
invalid_properties = Array.new
|
60
|
-
if
|
61
|
-
invalid_properties.push('invalid value for "
|
70
|
+
if @request_type.nil?
|
71
|
+
invalid_properties.push('invalid value for "request_type", request_type cannot be nil.')
|
62
72
|
end
|
63
73
|
|
64
|
-
if
|
65
|
-
invalid_properties.push('invalid value for "
|
74
|
+
if !@store_id.nil? && @store_id.to_s.length > 20
|
75
|
+
invalid_properties.push('invalid value for "store_id", the character length must be smaller than or equal to 20.')
|
66
76
|
end
|
67
77
|
|
68
78
|
invalid_properties
|
@@ -71,8 +81,8 @@ module OpenapiClient
|
|
71
81
|
# Check to see if the all the properties in the model are valid
|
72
82
|
# @return true if the model is valid
|
73
83
|
def valid?
|
84
|
+
return false if @request_type.nil?
|
74
85
|
return false if !@store_id.nil? && @store_id.to_s.length > 20
|
75
|
-
return false if @payment_method.nil?
|
76
86
|
true
|
77
87
|
end
|
78
88
|
|
@@ -91,8 +101,9 @@ module OpenapiClient
|
|
91
101
|
def ==(o)
|
92
102
|
return true if self.equal?(o)
|
93
103
|
self.class == o.class &&
|
104
|
+
request_type == o.request_type &&
|
94
105
|
store_id == o.store_id &&
|
95
|
-
|
106
|
+
comments == o.comments
|
96
107
|
end
|
97
108
|
|
98
109
|
# @see the `==` method
|
@@ -104,7 +115,7 @@ module OpenapiClient
|
|
104
115
|
# Calculates hash code according to all attributes.
|
105
116
|
# @return [Fixnum] Hash code
|
106
117
|
def hash
|
107
|
-
[store_id,
|
118
|
+
[request_type, store_id, comments].hash
|
108
119
|
end
|
109
120
|
|
110
121
|
# Builds the object from hash
|
@@ -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
|
@@ -11,5 +11,5 @@ OpenAPI Generator version: unset
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module OpenapiClient
|
14
|
-
VERSION = '1.
|
14
|
+
VERSION = '1.2.0'
|
15
15
|
end
|
data/lib/openapi_client.rb
CHANGED
@@ -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
|
@@ -19,41 +19,52 @@ require 'openapi_client/configuration'
|
|
19
19
|
# Models
|
20
20
|
require 'openapi_client/models/avs_response'
|
21
21
|
require 'openapi_client/models/access_token_response'
|
22
|
+
require 'openapi_client/models/account_updater_response'
|
22
23
|
require 'openapi_client/models/additional_amount_rate'
|
24
|
+
require 'openapi_client/models/additional_details'
|
23
25
|
require 'openapi_client/models/additional_transaction_details'
|
24
26
|
require 'openapi_client/models/address'
|
25
27
|
require 'openapi_client/models/airline'
|
26
28
|
require 'openapi_client/models/airline_ancillary_service_category'
|
27
29
|
require 'openapi_client/models/airline_travel_route'
|
28
30
|
require 'openapi_client/models/ali_pay'
|
31
|
+
require 'openapi_client/models/ali_pay_payment_method'
|
32
|
+
require 'openapi_client/models/ali_pay_sale_transaction'
|
29
33
|
require 'openapi_client/models/amount'
|
30
34
|
require 'openapi_client/models/amount_components'
|
31
|
-
require 'openapi_client/models/
|
32
|
-
require 'openapi_client/models/
|
33
|
-
require 'openapi_client/models/
|
35
|
+
require 'openapi_client/models/authentication'
|
36
|
+
require 'openapi_client/models/authentication_redirect'
|
37
|
+
require 'openapi_client/models/authentication_redirect_params'
|
38
|
+
require 'openapi_client/models/authentication_verification_request'
|
34
39
|
require 'openapi_client/models/basic_response'
|
35
|
-
require 'openapi_client/models/basket_item'
|
36
40
|
require 'openapi_client/models/billing'
|
37
41
|
require 'openapi_client/models/billing_address'
|
38
42
|
require 'openapi_client/models/billing_address_phone'
|
39
43
|
require 'openapi_client/models/car_rental'
|
40
44
|
require 'openapi_client/models/car_rental_extra_charges'
|
41
45
|
require 'openapi_client/models/card'
|
46
|
+
require 'openapi_client/models/card_function'
|
42
47
|
require 'openapi_client/models/card_info'
|
43
48
|
require 'openapi_client/models/card_info_lookup_request'
|
44
49
|
require 'openapi_client/models/card_info_lookup_response'
|
45
50
|
require 'openapi_client/models/card_verification_request'
|
46
|
-
require 'openapi_client/models/card_verifications_transaction'
|
47
51
|
require 'openapi_client/models/china_domestic'
|
52
|
+
require 'openapi_client/models/china_domestic_payment_method'
|
53
|
+
require 'openapi_client/models/china_pn_r_sale_transaction'
|
48
54
|
require 'openapi_client/models/client_locale'
|
49
55
|
require 'openapi_client/models/contact'
|
56
|
+
require 'openapi_client/models/create_payment_token'
|
57
|
+
require 'openapi_client/models/currency_conversion'
|
50
58
|
require 'openapi_client/models/customer'
|
51
59
|
require 'openapi_client/models/customer_address'
|
52
60
|
require 'openapi_client/models/customer_address_phone'
|
61
|
+
require 'openapi_client/models/dcc_exchange_rate_request'
|
53
62
|
require 'openapi_client/models/dcc'
|
54
63
|
require 'openapi_client/models/device'
|
55
64
|
require 'openapi_client/models/device_networks'
|
56
65
|
require 'openapi_client/models/document'
|
66
|
+
require 'openapi_client/models/dynamic_pricing'
|
67
|
+
require 'openapi_client/models/dynamic_pricing_exchange_rate_request'
|
57
68
|
require 'openapi_client/models/error'
|
58
69
|
require 'openapi_client/models/error_details'
|
59
70
|
require 'openapi_client/models/error_response'
|
@@ -76,17 +87,31 @@ require 'openapi_client/models/order'
|
|
76
87
|
require 'openapi_client/models/order_error_response'
|
77
88
|
require 'openapi_client/models/order_response'
|
78
89
|
require 'openapi_client/models/pay_pal'
|
90
|
+
require 'openapi_client/models/pay_pal_payment_method'
|
79
91
|
require 'openapi_client/models/payment'
|
80
92
|
require 'openapi_client/models/payment_card'
|
81
|
-
require 'openapi_client/models/
|
93
|
+
require 'openapi_client/models/payment_card_credit_transaction'
|
94
|
+
require 'openapi_client/models/payment_card_forced_ticket_transaction'
|
95
|
+
require 'openapi_client/models/payment_card_payer_auth_transaction'
|
96
|
+
require 'openapi_client/models/payment_card_payment_method'
|
97
|
+
require 'openapi_client/models/payment_card_payment_tokenization_request'
|
98
|
+
require 'openapi_client/models/payment_card_pre_auth_transaction'
|
99
|
+
require 'openapi_client/models/payment_card_sale_transaction'
|
82
100
|
require 'openapi_client/models/payment_facilitator'
|
83
101
|
require 'openapi_client/models/payment_issuer_response'
|
84
102
|
require 'openapi_client/models/payment_method'
|
103
|
+
require 'openapi_client/models/payment_method_details'
|
104
|
+
require 'openapi_client/models/payment_method_payment_schedules_request'
|
105
|
+
require 'openapi_client/models/payment_method_type'
|
85
106
|
require 'openapi_client/models/payment_pay_method'
|
86
107
|
require 'openapi_client/models/payment_schedules_error_response'
|
87
108
|
require 'openapi_client/models/payment_schedules_request'
|
88
109
|
require 'openapi_client/models/payment_schedules_response'
|
89
|
-
require 'openapi_client/models/
|
110
|
+
require 'openapi_client/models/payment_token_credit_transaction'
|
111
|
+
require 'openapi_client/models/payment_token_details'
|
112
|
+
require 'openapi_client/models/payment_token_payment_method'
|
113
|
+
require 'openapi_client/models/payment_token_pre_auth_transaction'
|
114
|
+
require 'openapi_client/models/payment_token_sale_transaction'
|
90
115
|
require 'openapi_client/models/payment_tokenization_error_response'
|
91
116
|
require 'openapi_client/models/payment_tokenization_request'
|
92
117
|
require 'openapi_client/models/payment_tokenization_response'
|
@@ -96,8 +121,9 @@ require 'openapi_client/models/payment_url_response'
|
|
96
121
|
require 'openapi_client/models/payment_verification3ds'
|
97
122
|
require 'openapi_client/models/payment_verification_avs'
|
98
123
|
require 'openapi_client/models/payment_verification_cvv'
|
124
|
+
require 'openapi_client/models/paypal_credit_transaction'
|
125
|
+
require 'openapi_client/models/post_auth_transaction'
|
99
126
|
require 'openapi_client/models/primary_transaction'
|
100
|
-
require 'openapi_client/models/primary_transaction_additional_details'
|
101
127
|
require 'openapi_client/models/processor_data'
|
102
128
|
require 'openapi_client/models/purchase_cards'
|
103
129
|
require 'openapi_client/models/purchase_cards_level2'
|
@@ -105,27 +131,39 @@ require 'openapi_client/models/purchase_cards_level3'
|
|
105
131
|
require 'openapi_client/models/purchase_cards_level3_line_items'
|
106
132
|
require 'openapi_client/models/recurring_payment_details'
|
107
133
|
require 'openapi_client/models/recurring_payment_details_response'
|
108
|
-
require 'openapi_client/models/
|
134
|
+
require 'openapi_client/models/referenced_order_payment_schedules_request'
|
135
|
+
require 'openapi_client/models/referenced_order_payment_tokenization_request'
|
136
|
+
require 'openapi_client/models/response_amount_components'
|
109
137
|
require 'openapi_client/models/response_type'
|
138
|
+
require 'openapi_client/models/return_transaction'
|
110
139
|
require 'openapi_client/models/score_only_request'
|
111
140
|
require 'openapi_client/models/score_only_response'
|
112
141
|
require 'openapi_client/models/score_only_response_fraud_score'
|
113
142
|
require 'openapi_client/models/score_only_response_fraud_score_explanations'
|
114
143
|
require 'openapi_client/models/secondary_transaction'
|
115
|
-
require 'openapi_client/models/
|
144
|
+
require 'openapi_client/models/secure3d_authentication_request'
|
145
|
+
require 'openapi_client/models/secure3d_authentication_result'
|
146
|
+
require 'openapi_client/models/secure3d_authentication_verification_request'
|
116
147
|
require 'openapi_client/models/secure3d_response'
|
117
148
|
require 'openapi_client/models/sepa'
|
118
149
|
require 'openapi_client/models/sepa_mandate'
|
150
|
+
require 'openapi_client/models/sepa_payment_method'
|
151
|
+
require 'openapi_client/models/sepa_sale_transaction'
|
119
152
|
require 'openapi_client/models/shipping'
|
120
153
|
require 'openapi_client/models/soft_descriptor'
|
121
154
|
require 'openapi_client/models/split_shipment'
|
122
155
|
require 'openapi_client/models/stored_credential'
|
123
156
|
require 'openapi_client/models/sub_merchant_data'
|
157
|
+
require 'openapi_client/models/sub_merchant_split'
|
124
158
|
require 'openapi_client/models/transaction'
|
125
159
|
require 'openapi_client/models/transaction_error_response'
|
126
160
|
require 'openapi_client/models/transaction_origin'
|
127
161
|
require 'openapi_client/models/transaction_response'
|
128
162
|
require 'openapi_client/models/transaction_type'
|
163
|
+
require 'openapi_client/models/union_pay_authentication_request'
|
164
|
+
require 'openapi_client/models/union_pay_authentication_verification_request'
|
165
|
+
require 'openapi_client/models/use_payment_token'
|
166
|
+
require 'openapi_client/models/void_transaction'
|
129
167
|
|
130
168
|
# APIs
|
131
169
|
require 'openapi_client/api/authentication_api'
|
data/lib/simple/gateway.rb
CHANGED
@@ -27,7 +27,7 @@ module SimpleClient
|
|
27
27
|
def request_access_token
|
28
28
|
signature_service = get_signature_service
|
29
29
|
message_signature = signature_service.sign
|
30
|
-
return @authentication_api.
|
30
|
+
return @authentication_api.authentication_access_tokens_post(
|
31
31
|
CONTENT_TYPE,
|
32
32
|
signature_service.client_request_id,
|
33
33
|
get_api_key,
|
@@ -42,7 +42,7 @@ module SimpleClient
|
|
42
42
|
opts[:region] = region if region
|
43
43
|
signature_service = get_signature_service
|
44
44
|
opts[:message_signature] = signature_service.sign(payload)
|
45
|
-
return @payment_api.
|
45
|
+
return @payment_api.submit_primary_transaction(
|
46
46
|
CONTENT_TYPE,
|
47
47
|
signature_service.client_request_id,
|
48
48
|
get_api_key,
|
@@ -52,30 +52,13 @@ module SimpleClient
|
|
52
52
|
)
|
53
53
|
end
|
54
54
|
|
55
|
-
def
|
55
|
+
def secondary_payment_transaction(transaction_id:, payload:, store_id: nil, region: nil)
|
56
56
|
opts = {}
|
57
57
|
opts[:store_id] = store_id if store_id
|
58
58
|
opts[:region] = region if region
|
59
59
|
signature_service = get_signature_service
|
60
60
|
opts[:message_signature] = signature_service.sign(payload)
|
61
|
-
return @payment_api.
|
62
|
-
CONTENT_TYPE,
|
63
|
-
signature_service.client_request_id,
|
64
|
-
get_api_key,
|
65
|
-
signature_service.timestamp,
|
66
|
-
transaction_id,
|
67
|
-
payload,
|
68
|
-
opts
|
69
|
-
)
|
70
|
-
end
|
71
|
-
|
72
|
-
def return_transaction(transaction_id:, payload:, store_id: nil, region: nil)
|
73
|
-
opts = {}
|
74
|
-
opts[:store_id] = store_id if store_id
|
75
|
-
opts[:region] = region if region
|
76
|
-
signature_service = get_signature_service
|
77
|
-
opts[:message_signature] = signature_service.sign(payload)
|
78
|
-
return @payment_api.return_transaction(
|
61
|
+
return @payment_api.submit_secondary_transaction(
|
79
62
|
CONTENT_TYPE,
|
80
63
|
signature_service.client_request_id,
|
81
64
|
get_api_key,
|
@@ -102,23 +85,7 @@ module SimpleClient
|
|
102
85
|
)
|
103
86
|
end
|
104
87
|
|
105
|
-
def
|
106
|
-
opts = {}
|
107
|
-
opts[:store_id] = store_id if store_id
|
108
|
-
opts[:region] = region if region
|
109
|
-
signature_service = get_signature_service
|
110
|
-
opts[:message_signature] = signature_service.sign
|
111
|
-
return @payment_api.void_transaction(
|
112
|
-
CONTENT_TYPE,
|
113
|
-
signature_service.client_request_id,
|
114
|
-
get_api_key,
|
115
|
-
signature_service.timestamp,
|
116
|
-
transaction_id,
|
117
|
-
opts
|
118
|
-
)
|
119
|
-
end
|
120
|
-
|
121
|
-
def update_transaction(transaction_id:, payload:, region: nil)
|
88
|
+
def finalize_secure_transaction(transaction_id:, payload:, region: nil)
|
122
89
|
opts = {}
|
123
90
|
opts[:region] = region if region
|
124
91
|
signature_service = get_signature_service
|
@@ -152,30 +119,12 @@ module SimpleClient
|
|
152
119
|
)
|
153
120
|
end
|
154
121
|
|
155
|
-
def
|
156
|
-
opts = {}
|
157
|
-
opts[:store_id] = store_id if store_id
|
158
|
-
opts[:region] = region if region
|
159
|
-
signature_service = get_signature_service
|
160
|
-
opts[:message_signature] = signature_service.sign(payload)
|
161
|
-
return @order_api.order_post_auth(
|
162
|
-
CONTENT_TYPE,
|
163
|
-
signature_service.client_request_id,
|
164
|
-
get_api_key,
|
165
|
-
signature_service.timestamp,
|
166
|
-
order_id,
|
167
|
-
payload,
|
168
|
-
opts
|
169
|
-
)
|
170
|
-
end
|
171
|
-
|
172
|
-
def return_transaction_by_order(order_id:, payload:, store_id: nil, region: nil)
|
122
|
+
def secondary_payment_transaction_by_order(order_id:, payload:, region: nil)
|
173
123
|
opts = {}
|
174
|
-
opts[:store_id] = store_id if store_id
|
175
124
|
opts[:region] = region if region
|
176
125
|
signature_service = get_signature_service
|
177
126
|
opts[:message_signature] = signature_service.sign(payload)
|
178
|
-
return @order_api.
|
127
|
+
return @order_api.submit_secondary_transaction_from_order(
|
179
128
|
CONTENT_TYPE,
|
180
129
|
signature_service.client_request_id,
|
181
130
|
get_api_key,
|
@@ -282,7 +231,7 @@ module SimpleClient
|
|
282
231
|
)
|
283
232
|
end
|
284
233
|
|
285
|
-
def update_payment_schedule(
|
234
|
+
def update_payment_schedule(order_id:, payload:, store_id: nil, region: nil)
|
286
235
|
opts = {}
|
287
236
|
opts[:store_id] = store_id if store_id
|
288
237
|
opts[:region] = region if region
|
data/lib/simple_client.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
require_relative 'simple/gateway'
|
2
|
+
require_relative 'simple/client_context'
|
3
|
+
require_relative 'simple/merchant_credentials'
|
4
|
+
require_relative 'simple/signature'
|