first_data_gateway 1.0.3 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/README.md +144 -65
- data/Rakefile +2 -0
- data/docs/AVSResponse.md +9 -0
- data/docs/AccessTokenResponse.md +2 -3
- data/docs/AdditionalAmountRate.md +9 -0
- data/docs/AdditionalTransactionDetails.md +10 -0
- data/docs/Address.md +5 -5
- data/docs/Airline.md +14 -14
- data/docs/AirlineAncillaryServiceCategory.md +2 -2
- data/docs/AirlineTravelRoute.md +8 -8
- data/docs/AliPay.md +11 -0
- data/docs/Amount.md +2 -2
- data/docs/AmountComponents.md +8 -8
- data/docs/AuthenticationApi.md +19 -24
- data/docs/AuthenticationRequest.md +9 -0
- data/docs/AuthenticationResponseVerification.md +5 -4
- data/docs/AuthenticationResponseVerificationRequest.md +11 -0
- data/docs/BasicResponse.md +10 -0
- data/docs/BasketItem.md +2 -2
- data/docs/Billing.md +6 -5
- data/docs/BillingAddress.md +17 -0
- data/docs/BillingAddressPhone.md +9 -0
- data/docs/CarRental.md +9 -9
- data/docs/CarRentalExtraCharges.md +2 -2
- data/docs/Card.md +15 -0
- data/docs/CardInfo.md +13 -0
- data/docs/CardInfoLookupApi.md +68 -0
- data/docs/CardInfoLookupRequest.md +9 -0
- data/docs/CardInfoLookupResponse.md +12 -0
- data/docs/CardVerificationApi.md +68 -0
- data/docs/CardVerificationRequest.md +9 -0
- data/docs/CardVerificationsTransaction.md +2 -2
- data/docs/ChinaDomestic.md +15 -0
- data/docs/ClientLocale.md +3 -3
- data/docs/Contact.md +5 -5
- data/docs/CurrencyConversionApi.md +68 -0
- data/docs/Customer.md +19 -0
- data/docs/CustomerAddress.md +14 -0
- data/docs/CustomerAddressPhone.md +9 -0
- data/docs/Dcc.md +9 -0
- data/docs/Device.md +19 -0
- data/docs/DeviceNetworks.md +21 -0
- data/docs/Document.md +9 -0
- data/docs/Error.md +1 -1
- data/docs/ErrorDetails.md +1 -1
- data/docs/ErrorResponse.md +4 -4
- data/docs/ExchangeRateRequest.md +12 -0
- data/docs/ExchangeRateResponse.md +21 -0
- data/docs/Expiration.md +3 -3
- data/docs/FraudDetectApi.md +68 -0
- data/docs/FraudOrder.md +10 -0
- data/docs/FraudOrderItems.md +15 -0
- data/docs/FraudOrderShipToAddress.md +14 -0
- data/docs/Frequency.md +3 -3
- data/docs/IndustrySpecificExtensions.md +1 -1
- data/docs/InstallmentOptions.md +1 -1
- data/docs/Lodging.md +3 -3
- data/docs/LodgingExtraCharges.md +1 -1
- data/docs/Loyalty.md +10 -0
- data/docs/Merchant.md +11 -0
- data/docs/MerchantLocation.md +12 -0
- data/docs/MerchantLocationMerchantAddress.md +13 -0
- data/docs/Order.md +2 -2
- data/docs/OrderApi.md +107 -55
- data/docs/OrderErrorResponse.md +19 -0
- data/docs/OrderResponse.md +18 -0
- data/docs/PayPal.md +1 -1
- data/docs/Payment.md +18 -0
- data/docs/PaymentApi.md +164 -124
- data/docs/PaymentCard.md +10 -6
- data/docs/PaymentCardAuthenticationResult.md +1 -1
- data/docs/PaymentFacilitator.md +12 -0
- data/docs/PaymentIssuerResponse.md +10 -0
- data/docs/PaymentMethod.md +5 -2
- data/docs/PaymentPayMethod.md +13 -0
- data/docs/PaymentSchedulesApi.md +256 -0
- data/docs/PaymentSchedulesErrorResponse.md +14 -0
- data/docs/PaymentSchedulesRequest.md +10 -7
- data/docs/PaymentSchedulesResponse.md +7 -5
- data/docs/PaymentTokenApi.md +134 -0
- data/docs/PaymentTokenization.md +16 -0
- data/docs/PaymentTokenizationErrorResponse.md +19 -0
- data/docs/PaymentTokenizationRequest.md +11 -0
- data/docs/PaymentTokenizationResponse.md +18 -0
- data/docs/PaymentURLApi.md +68 -0
- data/docs/PaymentUrlErrorResponse.md +15 -0
- data/docs/PaymentUrlRequest.md +13 -3
- data/docs/PaymentUrlResponse.md +6 -5
- data/docs/PaymentVerification3ds.md +10 -0
- data/docs/PaymentVerificationAvs.md +10 -0
- data/docs/PaymentVerificationCvv.md +10 -0
- data/docs/PrimaryTransaction.md +7 -3
- data/docs/PrimaryTransactionAdditionalDetails.md +7 -5
- data/docs/ProcessorData.md +8 -4
- data/docs/PurchaseCards.md +9 -0
- data/docs/PurchaseCardsLevel2.md +12 -0
- data/docs/PurchaseCardsLevel3.md +8 -0
- data/docs/PurchaseCardsLevel3LineItems.md +16 -0
- data/docs/RecurringPaymentDetails.md +20 -0
- data/docs/RecurringPaymentDetailsResponse.md +19 -0
- data/docs/ReferencedOrder.md +9 -0
- data/docs/ResponseType.md +1 -1
- data/docs/ScoreOnlyRequest.md +21 -0
- data/docs/ScoreOnlyResponse.md +13 -0
- data/docs/ScoreOnlyResponseFraudScore.md +10 -0
- data/docs/ScoreOnlyResponseFraudScoreExplanations.md +10 -0
- data/docs/SecondaryTransaction.md +4 -1
- data/docs/SecondaryTransactionAdditionalDetails.md +8 -0
- data/docs/Secure3dResponse.md +8 -0
- data/docs/Sepa.md +1 -1
- data/docs/SepaMandate.md +3 -3
- data/docs/Shipping.md +1 -1
- data/docs/SoftDescriptor.md +9 -0
- data/docs/SplitShipment.md +3 -3
- data/docs/StoredCredential.md +4 -4
- data/docs/SubMerchantData.md +13 -0
- data/docs/Transaction.md +19 -0
- data/docs/TransactionErrorResponse.md +13 -11
- data/docs/TransactionOrigin.md +7 -0
- data/docs/TransactionResponse.md +13 -11
- data/docs/TransactionType.md +1 -1
- data/first_data_gateway.gemspec +9 -9
- data/git_push.sh +2 -2
- data/lib/openapi_client/.DS_Store +0 -0
- data/lib/{swagger_client → openapi_client}/api/authentication_api.rb +22 -27
- data/lib/openapi_client/api/card_info_lookup_api.rb +117 -0
- data/lib/openapi_client/api/card_verification_api.rb +117 -0
- data/lib/openapi_client/api/currency_conversion_api.rb +117 -0
- data/lib/openapi_client/api/fraud_detect_api.rb +122 -0
- data/lib/openapi_client/api/order_api.rb +327 -0
- data/lib/{swagger_client → openapi_client}/api/payment_api.rb +212 -111
- data/lib/openapi_client/api/payment_schedules_api.rb +411 -0
- data/lib/openapi_client/api/payment_token_api.rb +218 -0
- data/lib/openapi_client/api/payment_url_api.rb +117 -0
- data/lib/{swagger_client → openapi_client}/api_client.rb +50 -38
- data/lib/{swagger_client → openapi_client}/api_error.rb +6 -6
- data/lib/{swagger_client → openapi_client}/configuration.rb +49 -7
- data/lib/openapi_client/models/.DS_Store +0 -0
- data/lib/{swagger_client → openapi_client}/models/access_token_response.rb +20 -33
- data/lib/{swagger_client/models/secondary_transaction.rb → openapi_client/models/additional_amount_rate.rb} +25 -28
- data/lib/{swagger_client/models/primary_transaction_additional_details.rb → openapi_client/models/additional_transaction_details.rb} +68 -62
- data/lib/{swagger_client → openapi_client}/models/address.rb +33 -44
- data/lib/{swagger_client → openapi_client}/models/airline.rb +48 -47
- data/lib/{swagger_client → openapi_client}/models/airline_ancillary_service_category.rb +18 -21
- data/lib/{swagger_client → openapi_client}/models/airline_travel_route.rb +39 -42
- data/lib/openapi_client/models/ali_pay.rb +326 -0
- data/lib/{swagger_client → openapi_client}/models/amount.rb +18 -21
- data/lib/{swagger_client → openapi_client}/models/amount_components.rb +22 -19
- data/lib/{swagger_client/models/transaction_response_authentication_redirect.rb → openapi_client/models/authentication_request.rb} +33 -38
- data/lib/{swagger_client → openapi_client}/models/authentication_response_verification.rb +43 -30
- data/lib/{swagger_client/models/payment_url_request.rb → openapi_client/models/authentication_response_verification_request.rb} +35 -56
- data/lib/openapi_client/models/avs_response.rb +239 -0
- data/lib/openapi_client/models/basic_response.rb +209 -0
- data/lib/{swagger_client → openapi_client}/models/basket_item.rb +16 -20
- data/lib/{swagger_client → openapi_client}/models/billing.rb +65 -25
- data/lib/openapi_client/models/billing_address.rb +279 -0
- data/lib/{swagger_client/models/transaction_response_authentication_redirect_params.rb → openapi_client/models/billing_address_phone.rb} +31 -42
- data/lib/{swagger_client → openapi_client}/models/car_rental.rb +31 -31
- data/lib/{swagger_client → openapi_client}/models/car_rental_extra_charges.rb +18 -21
- data/lib/openapi_client/models/card.rb +254 -0
- data/lib/{swagger_client/models/payment_card.rb → openapi_client/models/card_info.rb} +68 -81
- data/lib/openapi_client/models/card_info_lookup_request.rb +214 -0
- data/lib/openapi_client/models/card_info_lookup_response.rb +265 -0
- data/lib/openapi_client/models/card_verification_request.rb +198 -0
- data/lib/{swagger_client → openapi_client}/models/card_verifications_transaction.rb +31 -20
- data/lib/openapi_client/models/china_domestic.rb +386 -0
- data/lib/{swagger_client → openapi_client}/models/client_locale.rb +19 -23
- data/lib/{swagger_client → openapi_client}/models/contact.rb +26 -31
- data/lib/openapi_client/models/customer.rb +333 -0
- data/lib/openapi_client/models/customer_address.rb +259 -0
- data/lib/openapi_client/models/customer_address_phone.rb +195 -0
- data/lib/openapi_client/models/dcc.rb +200 -0
- data/lib/openapi_client/models/device.rb +340 -0
- data/lib/openapi_client/models/device_networks.rb +353 -0
- data/lib/{swagger_client/models/payment_card_authentication_request.rb → openapi_client/models/document.rb} +62 -26
- data/lib/{swagger_client → openapi_client}/models/error.rb +14 -18
- data/lib/{swagger_client → openapi_client}/models/error_details.rb +14 -19
- data/lib/{swagger_client → openapi_client}/models/error_response.rb +22 -22
- data/lib/openapi_client/models/exchange_rate_request.rb +307 -0
- data/lib/openapi_client/models/exchange_rate_response.rb +319 -0
- data/lib/{swagger_client → openapi_client}/models/expiration.rb +18 -20
- data/lib/openapi_client/models/fraud_order.rb +206 -0
- data/lib/openapi_client/models/fraud_order_items.rb +253 -0
- data/lib/openapi_client/models/fraud_order_ship_to_address.rb +245 -0
- data/lib/{swagger_client → openapi_client}/models/frequency.rb +27 -30
- data/lib/{swagger_client → openapi_client}/models/industry_specific_extensions.rb +15 -19
- data/lib/{swagger_client → openapi_client}/models/installment_options.rb +22 -28
- data/lib/{swagger_client → openapi_client}/models/lodging.rb +19 -22
- data/lib/{swagger_client → openapi_client}/models/lodging_extra_charges.rb +17 -21
- data/lib/openapi_client/models/loyalty.rb +205 -0
- data/lib/openapi_client/models/merchant.rb +219 -0
- data/lib/openapi_client/models/merchant_location.rb +224 -0
- data/lib/openapi_client/models/merchant_location_merchant_address.rb +250 -0
- data/lib/{swagger_client/models/processor_data.rb → openapi_client/models/order.rb} +49 -47
- data/lib/openapi_client/models/order_error_response.rb +296 -0
- data/lib/openapi_client/models/order_response.rb +287 -0
- data/lib/{swagger_client → openapi_client}/models/pay_pal.rb +19 -23
- data/lib/openapi_client/models/payment.rb +346 -0
- data/lib/openapi_client/models/payment_card.rb +363 -0
- data/lib/{swagger_client → openapi_client}/models/payment_card_authentication_result.rb +32 -37
- data/lib/openapi_client/models/payment_facilitator.rb +292 -0
- data/lib/openapi_client/models/payment_issuer_response.rb +249 -0
- data/lib/openapi_client/models/payment_method.rb +278 -0
- data/lib/openapi_client/models/payment_pay_method.rb +278 -0
- data/lib/openapi_client/models/payment_schedules_error_response.rb +281 -0
- data/lib/{swagger_client → openapi_client}/models/payment_schedules_request.rb +83 -80
- data/lib/openapi_client/models/payment_schedules_response.rb +272 -0
- data/lib/openapi_client/models/payment_tokenization.rb +327 -0
- data/lib/openapi_client/models/payment_tokenization_error_response.rb +329 -0
- data/lib/{swagger_client/models/payment_method.rb → openapi_client/models/payment_tokenization_request.rb} +34 -37
- data/lib/openapi_client/models/payment_tokenization_response.rb +319 -0
- data/lib/openapi_client/models/payment_url_error_response.rb +292 -0
- data/lib/openapi_client/models/payment_url_request.rb +335 -0
- data/lib/{swagger_client → openapi_client}/models/payment_url_response.rb +35 -38
- data/lib/openapi_client/models/payment_verification3ds.rb +215 -0
- data/lib/openapi_client/models/payment_verification_avs.rb +215 -0
- data/lib/openapi_client/models/payment_verification_cvv.rb +215 -0
- data/lib/{swagger_client → openapi_client}/models/primary_transaction.rb +93 -31
- data/lib/openapi_client/models/primary_transaction_additional_details.rb +352 -0
- data/lib/openapi_client/models/processor_data.rb +272 -0
- data/lib/openapi_client/models/purchase_cards.rb +192 -0
- data/lib/openapi_client/models/purchase_cards_level2.rb +267 -0
- data/lib/openapi_client/models/purchase_cards_level3.rb +186 -0
- data/lib/openapi_client/models/purchase_cards_level3_line_items.rb +337 -0
- data/lib/openapi_client/models/recurring_payment_details.rb +399 -0
- data/lib/openapi_client/models/recurring_payment_details_response.rb +296 -0
- data/lib/{swagger_client/models/order.rb → openapi_client/models/referenced_order.rb} +23 -36
- data/lib/openapi_client/models/response_type.rb +37 -0
- data/lib/openapi_client/models/score_only_request.rb +389 -0
- data/lib/{swagger_client/models/payment_schedules_response.rb → openapi_client/models/score_only_response.rb} +56 -56
- data/lib/openapi_client/models/score_only_response_fraud_score.rb +208 -0
- data/lib/openapi_client/models/score_only_response_fraud_score_explanations.rb +201 -0
- data/lib/openapi_client/models/secondary_transaction.rb +220 -0
- data/lib/openapi_client/models/secondary_transaction_additional_details.rb +183 -0
- data/lib/openapi_client/models/secure3d_response.rb +184 -0
- data/lib/{swagger_client → openapi_client}/models/sepa.rb +30 -35
- data/lib/{swagger_client → openapi_client}/models/sepa_mandate.rb +32 -35
- data/lib/{swagger_client → openapi_client}/models/shipping.rb +17 -22
- data/lib/openapi_client/models/soft_descriptor.rb +215 -0
- data/lib/{swagger_client → openapi_client}/models/split_shipment.rb +17 -21
- data/lib/{swagger_client → openapi_client}/models/stored_credential.rb +28 -32
- data/lib/openapi_client/models/sub_merchant_data.rb +302 -0
- data/lib/openapi_client/models/transaction.rb +337 -0
- data/lib/{swagger_client → openapi_client}/models/transaction_error_response.rb +110 -80
- data/lib/openapi_client/models/transaction_origin.rb +32 -0
- data/lib/{swagger_client → openapi_client}/models/transaction_response.rb +112 -82
- data/lib/openapi_client/models/transaction_type.rb +36 -0
- data/lib/openapi_client/version.rb +15 -0
- data/lib/openapi_client.rb +158 -0
- data/lib/simple/client_context.rb +2 -2
- data/lib/simple/gateway.rb +274 -37
- data/spec/api/authentication_api_spec.rb +12 -12
- data/spec/api/card_info_lookup_api_spec.rb +53 -0
- data/spec/api/card_verification_api_spec.rb +53 -0
- data/spec/api/currency_conversion_api_spec.rb +53 -0
- data/spec/api/fraud_detect_api_spec.rb +53 -0
- data/spec/api/order_api_spec.rb +44 -23
- data/spec/api/payment_api_spec.rb +50 -26
- data/spec/api/payment_schedules_api_spec.rb +111 -0
- data/spec/api/payment_token_api_spec.rb +74 -0
- data/spec/api/payment_url_api_spec.rb +53 -0
- data/spec/api_client_spec.rb +66 -66
- data/spec/configuration_spec.rb +15 -15
- data/spec/models/access_token_response_spec.rb +16 -23
- data/spec/models/additional_amount_rate_spec.rb +47 -0
- data/spec/models/additional_transaction_details_spec.rb +53 -0
- data/spec/models/address_spec.rb +16 -17
- data/spec/models/airline_ancillary_service_category_spec.rb +14 -15
- data/spec/models/airline_spec.rb +27 -28
- data/spec/models/airline_travel_route_spec.rb +22 -23
- data/spec/models/ali_pay_spec.rb +63 -0
- data/spec/models/amount_components_spec.rb +16 -17
- data/spec/models/amount_spec.rb +12 -13
- data/spec/models/authentication_request_spec.rb +51 -0
- data/spec/models/authentication_response_verification_request_spec.rb +59 -0
- data/spec/models/authentication_response_verification_spec.rb +23 -18
- data/spec/models/avs_response_spec.rb +55 -0
- data/spec/models/basic_response_spec.rb +53 -0
- data/spec/models/basket_item_spec.rb +13 -14
- data/spec/models/billing_address_phone_spec.rb +47 -0
- data/spec/models/billing_address_spec.rb +95 -0
- data/spec/models/billing_spec.rb +25 -20
- data/spec/models/car_rental_extra_charges_spec.rb +14 -15
- data/spec/models/car_rental_spec.rb +17 -18
- data/spec/models/card_info_lookup_request_spec.rb +47 -0
- data/spec/models/card_info_lookup_response_spec.rb +69 -0
- data/spec/models/card_info_spec.rb +79 -0
- data/spec/models/card_spec.rb +83 -0
- data/spec/models/card_verification_request_spec.rb +47 -0
- data/spec/models/card_verifications_transaction_spec.rb +11 -12
- data/spec/models/china_domestic_spec.rb +83 -0
- data/spec/models/client_locale_spec.rb +11 -12
- data/spec/models/contact_spec.rb +13 -14
- data/spec/models/customer_address_phone_spec.rb +47 -0
- data/spec/models/customer_address_spec.rb +77 -0
- data/spec/models/customer_spec.rb +111 -0
- data/spec/models/dcc_spec.rb +47 -0
- data/spec/models/device_networks_spec.rb +123 -0
- data/spec/models/device_spec.rb +111 -0
- data/spec/models/document_spec.rb +51 -0
- data/spec/models/error_details_spec.rb +11 -12
- data/spec/models/error_response_spec.rb +13 -14
- data/spec/models/error_spec.rb +12 -13
- data/spec/models/exchange_rate_request_spec.rb +69 -0
- data/spec/models/exchange_rate_response_spec.rb +119 -0
- data/spec/models/expiration_spec.rb +11 -12
- data/spec/models/fraud_order_items_spec.rb +83 -0
- data/spec/models/fraud_order_ship_to_address_spec.rb +77 -0
- data/spec/models/fraud_order_spec.rb +53 -0
- data/spec/models/frequency_spec.rb +15 -16
- data/spec/models/industry_specific_extensions_spec.rb +12 -13
- data/spec/models/installment_options_spec.rb +12 -13
- data/spec/models/lodging_extra_charges_spec.rb +14 -15
- data/spec/models/lodging_spec.rb +14 -15
- data/spec/models/loyalty_spec.rb +53 -0
- data/spec/models/merchant_location_merchant_address_spec.rb +71 -0
- data/spec/models/merchant_location_spec.rb +65 -0
- data/spec/models/merchant_spec.rb +59 -0
- data/spec/models/order_error_response_spec.rb +107 -0
- data/spec/models/order_response_spec.rb +101 -0
- data/spec/models/order_spec.rb +12 -13
- data/spec/models/pay_pal_spec.rb +10 -11
- data/spec/models/payment_card_authentication_result_spec.rb +26 -27
- data/spec/models/payment_card_spec.rb +41 -22
- data/spec/models/payment_facilitator_spec.rb +65 -0
- data/spec/models/payment_issuer_response_spec.rb +57 -0
- data/spec/models/payment_method_spec.rb +35 -18
- data/spec/models/payment_pay_method_spec.rb +75 -0
- data/spec/models/payment_schedules_error_response_spec.rb +81 -0
- data/spec/models/payment_schedules_request_spec.rb +43 -30
- data/spec/models/payment_schedules_response_spec.rb +30 -19
- data/spec/models/payment_spec.rb +109 -0
- data/spec/models/payment_tokenization_error_response_spec.rb +111 -0
- data/spec/models/payment_tokenization_request_spec.rb +63 -0
- data/spec/models/payment_tokenization_response_spec.rb +105 -0
- data/spec/models/payment_tokenization_spec.rb +93 -0
- data/spec/models/payment_url_error_response_spec.rb +87 -0
- data/spec/models/payment_url_request_spec.rb +73 -14
- data/spec/models/payment_url_response_spec.rb +25 -20
- data/spec/models/payment_verification3ds_spec.rb +53 -0
- data/spec/models/payment_verification_avs_spec.rb +53 -0
- data/spec/models/payment_verification_cvv_spec.rb +53 -0
- data/spec/models/primary_transaction_additional_details_spec.rb +28 -17
- data/spec/models/primary_transaction_spec.rb +45 -22
- data/spec/models/processor_data_spec.rb +41 -14
- data/spec/models/purchase_cards_level2_spec.rb +65 -0
- data/spec/models/purchase_cards_level3_line_items_spec.rb +89 -0
- data/spec/models/purchase_cards_level3_spec.rb +41 -0
- data/spec/models/purchase_cards_spec.rb +47 -0
- data/spec/models/recurring_payment_details_response_spec.rb +107 -0
- data/spec/models/recurring_payment_details_spec.rb +117 -0
- data/spec/models/referenced_order_spec.rb +47 -0
- data/spec/models/response_type_spec.rb +9 -10
- data/spec/models/score_only_request_spec.rb +127 -0
- data/spec/models/score_only_response_fraud_score_explanations_spec.rb +53 -0
- data/spec/models/score_only_response_fraud_score_spec.rb +53 -0
- data/spec/models/score_only_response_spec.rb +75 -0
- data/spec/models/secondary_transaction_additional_details_spec.rb +41 -0
- data/spec/models/secondary_transaction_spec.rb +29 -12
- data/spec/models/secure3d_response_spec.rb +41 -0
- data/spec/models/sepa_mandate_spec.rb +17 -18
- data/spec/models/sepa_spec.rb +14 -15
- data/spec/models/shipping_spec.rb +12 -13
- data/spec/models/soft_descriptor_spec.rb +47 -0
- data/spec/models/split_shipment_spec.rb +11 -12
- data/spec/models/stored_credential_spec.rb +21 -22
- data/spec/models/sub_merchant_data_spec.rb +71 -0
- data/spec/models/transaction_error_response_spec.rb +62 -51
- data/spec/models/transaction_origin_spec.rb +35 -0
- data/spec/models/transaction_response_spec.rb +61 -50
- data/spec/models/transaction_spec.rb +115 -0
- data/spec/models/transaction_type_spec.rb +9 -10
- data/spec/spec_helper.rb +6 -6
- metadata +339 -69
- data/docs/PaymentCardAuthenticationRequest.md +0 -8
- data/docs/TransactionResponseAuthenticationRedirect.md +0 -10
- data/docs/TransactionResponseAuthenticationRedirectParams.md +0 -10
- data/lib/swagger_client/api/order_api.rb +0 -229
- data/lib/swagger_client/models/response_type.rb +0 -37
- data/lib/swagger_client/models/transaction_type.rb +0 -36
- data/lib/swagger_client/version.rb +0 -15
- data/lib/swagger_client.rb +0 -91
- data/spec/models/payment_card_authentication_request_spec.rb +0 -46
- data/spec/models/transaction_response_authentication_redirect_params_spec.rb +0 -54
- data/spec/models/transaction_response_authentication_redirect_spec.rb +0 -58
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29ff2358687430e14c53f86baf7743aea07165d9
|
4
|
+
data.tar.gz: efe8f9154570a01b50bf9f3592e6f64958cfdf48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e46e3408cf457c9675b886266d6b63a39b9e012b9448436fc537d80c877ba96ff3693b4b6f23ee0f5bfbc4708fafa40d4ec3f3ba923b122e61aa1842f903d836
|
7
|
+
data.tar.gz: 540be560924d0ee4079e6974a989a05f351468c61499bb0c0ddc5d20dc7c9a4a5b065994ac46588892d23876aa3603200da5d79784799be2cca4fd6ef286f624
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
# FirstApiClient
|
2
2
|
|
3
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
4
|
+
|
3
5
|
## Installation
|
4
6
|
|
5
7
|
### Install the gem
|
6
8
|
|
7
9
|
```shell
|
8
|
-
gem install
|
10
|
+
gem install first_data_gateway
|
9
11
|
```
|
10
|
-
(for development, run `gem install --dev
|
12
|
+
(for development, run `gem install --dev first_data_gateway` to install the development dependencies)
|
11
13
|
|
12
14
|
Then add the gem to your Gemfile:
|
13
15
|
|
14
|
-
gem '
|
16
|
+
gem 'first_data_gateway', '~> 1.1.0'
|
15
17
|
|
16
18
|
### Install from Git
|
17
19
|
|
18
20
|
Add the following in the Gemfile:
|
19
21
|
|
20
|
-
gem '
|
22
|
+
gem 'first_data_gateway', :git => 'https://github.com/GBSEcom/Ruby.git'
|
21
23
|
|
22
24
|
## Getting Started
|
23
|
-
|
24
25
|
```ruby
|
25
|
-
|
26
|
-
require 'swagger_client'
|
26
|
+
require 'openapi_client'
|
27
27
|
require 'simple_client'
|
28
28
|
|
29
29
|
api_key = "Your API Key here"
|
@@ -56,68 +56,147 @@ p JSON.generate(result.to_hash)
|
|
56
56
|
|
57
57
|
## Documentation for API Endpoints
|
58
58
|
|
59
|
-
All URIs are relative to *https://
|
59
|
+
All URIs are relative to *https://cert.api.firstdata.com/gateway*
|
60
60
|
|
61
61
|
Class | Method | HTTP request | Description
|
62
62
|
------------ | ------------- | ------------- | -------------
|
63
|
-
*
|
64
|
-
*
|
65
|
-
*
|
66
|
-
*
|
67
|
-
*
|
68
|
-
*
|
69
|
-
*
|
70
|
-
*
|
63
|
+
*OpenapiClient::AuthenticationApi* | [**v1_authentication_access_tokens_post**](docs/AuthenticationApi.md#v1_authentication_access_tokens_post) | **POST** /v1/authentication/access-tokens | Generate an access token for user authentication.
|
64
|
+
*OpenapiClient::CardInfoLookupApi* | [**card_info_lookup**](docs/CardInfoLookupApi.md#card_info_lookup) | **POST** /v1/card-information | Card information lookUp
|
65
|
+
*OpenapiClient::CardVerificationApi* | [**verify_card**](docs/CardVerificationApi.md#verify_card) | **POST** /v1/card-verification | Verify a payment card.
|
66
|
+
*OpenapiClient::CurrencyConversionApi* | [**get_exchange_rate**](docs/CurrencyConversionApi.md#get_exchange_rate) | **POST** /v1/exchange-rates | Generate dynamic currency conversion transactions
|
67
|
+
*OpenapiClient::FraudDetectApi* | [**score_only**](docs/FraudDetectApi.md#score_only) | **POST** /v1/fraud/score-only | Score a transaction for fraud.
|
68
|
+
*OpenapiClient::OrderApi* | [**order_inquiry**](docs/OrderApi.md#order_inquiry) | **GET** /v1/orders/{order-id} | Retrieve the state of an order
|
69
|
+
*OpenapiClient::OrderApi* | [**order_post_auth**](docs/OrderApi.md#order_post_auth) | **POST** /v1/orders/{order-id}/postauth | Capture/complete an already existing order.
|
70
|
+
*OpenapiClient::OrderApi* | [**order_return_transaction**](docs/OrderApi.md#order_return_transaction) | **POST** /v1/orders/{order-id}/return | Return/refund an order.
|
71
|
+
*OpenapiClient::PaymentApi* | [**finalize_secure_transaction**](docs/PaymentApi.md#finalize_secure_transaction) | **PATCH** /v1/payments/{transaction-id} | Update a 3DSecure or UnionPay payment and continue processing.
|
72
|
+
*OpenapiClient::PaymentApi* | [**perform_payment_post_authorisation**](docs/PaymentApi.md#perform_payment_post_authorisation) | **POST** /v1/payments/{transaction-id}/postauth | Capture/complete a transaction.
|
73
|
+
*OpenapiClient::PaymentApi* | [**primary_payment_transaction**](docs/PaymentApi.md#primary_payment_transaction) | **POST** /v1/payments | Generate a primary transaction.
|
74
|
+
*OpenapiClient::PaymentApi* | [**return_transaction**](docs/PaymentApi.md#return_transaction) | **POST** /v1/payments/{transaction-id}/return | Return/refund a transaction.
|
75
|
+
*OpenapiClient::PaymentApi* | [**transaction_inquiry**](docs/PaymentApi.md#transaction_inquiry) | **GET** /v1/payments/{transaction-id} | Retrieve the state of a transaction.
|
76
|
+
*OpenapiClient::PaymentApi* | [**void_transaction**](docs/PaymentApi.md#void_transaction) | **POST** /v1/payments/{transaction-id}/void | Reverse a previous action on an existing transaction.
|
77
|
+
*OpenapiClient::PaymentSchedulesApi* | [**cancel_payment_schedule**](docs/PaymentSchedulesApi.md#cancel_payment_schedule) | **DELETE** /v1/payment-schedules/{order-id} | Cancel a gateway payment schedule.
|
78
|
+
*OpenapiClient::PaymentSchedulesApi* | [**create_payment_schedule**](docs/PaymentSchedulesApi.md#create_payment_schedule) | **POST** /v1/payment-schedules | Use this to create a gateway payment schedule.
|
79
|
+
*OpenapiClient::PaymentSchedulesApi* | [**inquiry_payment_schedule**](docs/PaymentSchedulesApi.md#inquiry_payment_schedule) | **GET** /v1/payment-schedules/{order-id} | View a gateway payment schedule.
|
80
|
+
*OpenapiClient::PaymentSchedulesApi* | [**update_payment_schedule**](docs/PaymentSchedulesApi.md#update_payment_schedule) | **PATCH** /v1/payment-schedules/{order-id} | Update a gateway payment schedule.
|
81
|
+
*OpenapiClient::PaymentTokenApi* | [**create_payment_token**](docs/PaymentTokenApi.md#create_payment_token) | **POST** /v1/payment-tokens | Create a payment token from a payment card.
|
82
|
+
*OpenapiClient::PaymentTokenApi* | [**delete_payment_token**](docs/PaymentTokenApi.md#delete_payment_token) | **DELETE** /v1/payment-tokens/{token-id} | Delete a payment token.
|
83
|
+
*OpenapiClient::PaymentURLApi* | [**create_payment_url**](docs/PaymentURLApi.md#create_payment_url) | **POST** /v1/payment-url | Create a payment URL.
|
71
84
|
|
72
85
|
|
73
86
|
## Documentation for Models
|
74
87
|
|
75
|
-
- [
|
76
|
-
- [
|
77
|
-
- [
|
78
|
-
- [
|
79
|
-
- [
|
80
|
-
- [
|
81
|
-
- [
|
82
|
-
- [
|
83
|
-
- [
|
84
|
-
- [
|
85
|
-
- [
|
86
|
-
- [
|
87
|
-
- [
|
88
|
-
- [
|
89
|
-
- [
|
90
|
-
- [
|
91
|
-
- [
|
92
|
-
- [
|
93
|
-
- [
|
94
|
-
- [
|
95
|
-
- [
|
96
|
-
- [
|
97
|
-
- [
|
98
|
-
- [
|
99
|
-
- [
|
100
|
-
- [
|
101
|
-
- [
|
102
|
-
- [
|
103
|
-
- [
|
104
|
-
- [
|
105
|
-
- [
|
106
|
-
- [
|
107
|
-
- [
|
108
|
-
- [
|
109
|
-
- [
|
110
|
-
- [
|
111
|
-
- [
|
112
|
-
- [
|
113
|
-
- [
|
114
|
-
- [
|
115
|
-
- [
|
116
|
-
- [
|
117
|
-
- [
|
118
|
-
- [
|
119
|
-
- [
|
120
|
-
- [
|
121
|
-
- [
|
122
|
-
- [
|
123
|
-
- [
|
88
|
+
- [OpenapiClient::AVSResponse](docs/AVSResponse.md)
|
89
|
+
- [OpenapiClient::AccessTokenResponse](docs/AccessTokenResponse.md)
|
90
|
+
- [OpenapiClient::AdditionalAmountRate](docs/AdditionalAmountRate.md)
|
91
|
+
- [OpenapiClient::AdditionalTransactionDetails](docs/AdditionalTransactionDetails.md)
|
92
|
+
- [OpenapiClient::Address](docs/Address.md)
|
93
|
+
- [OpenapiClient::Airline](docs/Airline.md)
|
94
|
+
- [OpenapiClient::AirlineAncillaryServiceCategory](docs/AirlineAncillaryServiceCategory.md)
|
95
|
+
- [OpenapiClient::AirlineTravelRoute](docs/AirlineTravelRoute.md)
|
96
|
+
- [OpenapiClient::AliPay](docs/AliPay.md)
|
97
|
+
- [OpenapiClient::Amount](docs/Amount.md)
|
98
|
+
- [OpenapiClient::AmountComponents](docs/AmountComponents.md)
|
99
|
+
- [OpenapiClient::AuthenticationRequest](docs/AuthenticationRequest.md)
|
100
|
+
- [OpenapiClient::AuthenticationResponseVerification](docs/AuthenticationResponseVerification.md)
|
101
|
+
- [OpenapiClient::AuthenticationResponseVerificationRequest](docs/AuthenticationResponseVerificationRequest.md)
|
102
|
+
- [OpenapiClient::BasicResponse](docs/BasicResponse.md)
|
103
|
+
- [OpenapiClient::BasketItem](docs/BasketItem.md)
|
104
|
+
- [OpenapiClient::Billing](docs/Billing.md)
|
105
|
+
- [OpenapiClient::BillingAddress](docs/BillingAddress.md)
|
106
|
+
- [OpenapiClient::BillingAddressPhone](docs/BillingAddressPhone.md)
|
107
|
+
- [OpenapiClient::CarRental](docs/CarRental.md)
|
108
|
+
- [OpenapiClient::CarRentalExtraCharges](docs/CarRentalExtraCharges.md)
|
109
|
+
- [OpenapiClient::Card](docs/Card.md)
|
110
|
+
- [OpenapiClient::CardInfo](docs/CardInfo.md)
|
111
|
+
- [OpenapiClient::CardInfoLookupRequest](docs/CardInfoLookupRequest.md)
|
112
|
+
- [OpenapiClient::CardInfoLookupResponse](docs/CardInfoLookupResponse.md)
|
113
|
+
- [OpenapiClient::CardVerificationRequest](docs/CardVerificationRequest.md)
|
114
|
+
- [OpenapiClient::CardVerificationsTransaction](docs/CardVerificationsTransaction.md)
|
115
|
+
- [OpenapiClient::ChinaDomestic](docs/ChinaDomestic.md)
|
116
|
+
- [OpenapiClient::ClientLocale](docs/ClientLocale.md)
|
117
|
+
- [OpenapiClient::Contact](docs/Contact.md)
|
118
|
+
- [OpenapiClient::Customer](docs/Customer.md)
|
119
|
+
- [OpenapiClient::CustomerAddress](docs/CustomerAddress.md)
|
120
|
+
- [OpenapiClient::CustomerAddressPhone](docs/CustomerAddressPhone.md)
|
121
|
+
- [OpenapiClient::Dcc](docs/Dcc.md)
|
122
|
+
- [OpenapiClient::Device](docs/Device.md)
|
123
|
+
- [OpenapiClient::DeviceNetworks](docs/DeviceNetworks.md)
|
124
|
+
- [OpenapiClient::Document](docs/Document.md)
|
125
|
+
- [OpenapiClient::Error](docs/Error.md)
|
126
|
+
- [OpenapiClient::ErrorDetails](docs/ErrorDetails.md)
|
127
|
+
- [OpenapiClient::ErrorResponse](docs/ErrorResponse.md)
|
128
|
+
- [OpenapiClient::ExchangeRateRequest](docs/ExchangeRateRequest.md)
|
129
|
+
- [OpenapiClient::ExchangeRateResponse](docs/ExchangeRateResponse.md)
|
130
|
+
- [OpenapiClient::Expiration](docs/Expiration.md)
|
131
|
+
- [OpenapiClient::FraudOrder](docs/FraudOrder.md)
|
132
|
+
- [OpenapiClient::FraudOrderItems](docs/FraudOrderItems.md)
|
133
|
+
- [OpenapiClient::FraudOrderShipToAddress](docs/FraudOrderShipToAddress.md)
|
134
|
+
- [OpenapiClient::Frequency](docs/Frequency.md)
|
135
|
+
- [OpenapiClient::IndustrySpecificExtensions](docs/IndustrySpecificExtensions.md)
|
136
|
+
- [OpenapiClient::InstallmentOptions](docs/InstallmentOptions.md)
|
137
|
+
- [OpenapiClient::Lodging](docs/Lodging.md)
|
138
|
+
- [OpenapiClient::LodgingExtraCharges](docs/LodgingExtraCharges.md)
|
139
|
+
- [OpenapiClient::Loyalty](docs/Loyalty.md)
|
140
|
+
- [OpenapiClient::Merchant](docs/Merchant.md)
|
141
|
+
- [OpenapiClient::MerchantLocation](docs/MerchantLocation.md)
|
142
|
+
- [OpenapiClient::MerchantLocationMerchantAddress](docs/MerchantLocationMerchantAddress.md)
|
143
|
+
- [OpenapiClient::Order](docs/Order.md)
|
144
|
+
- [OpenapiClient::OrderErrorResponse](docs/OrderErrorResponse.md)
|
145
|
+
- [OpenapiClient::OrderResponse](docs/OrderResponse.md)
|
146
|
+
- [OpenapiClient::PayPal](docs/PayPal.md)
|
147
|
+
- [OpenapiClient::Payment](docs/Payment.md)
|
148
|
+
- [OpenapiClient::PaymentCard](docs/PaymentCard.md)
|
149
|
+
- [OpenapiClient::PaymentCardAuthenticationResult](docs/PaymentCardAuthenticationResult.md)
|
150
|
+
- [OpenapiClient::PaymentFacilitator](docs/PaymentFacilitator.md)
|
151
|
+
- [OpenapiClient::PaymentIssuerResponse](docs/PaymentIssuerResponse.md)
|
152
|
+
- [OpenapiClient::PaymentMethod](docs/PaymentMethod.md)
|
153
|
+
- [OpenapiClient::PaymentPayMethod](docs/PaymentPayMethod.md)
|
154
|
+
- [OpenapiClient::PaymentSchedulesErrorResponse](docs/PaymentSchedulesErrorResponse.md)
|
155
|
+
- [OpenapiClient::PaymentSchedulesRequest](docs/PaymentSchedulesRequest.md)
|
156
|
+
- [OpenapiClient::PaymentSchedulesResponse](docs/PaymentSchedulesResponse.md)
|
157
|
+
- [OpenapiClient::PaymentTokenization](docs/PaymentTokenization.md)
|
158
|
+
- [OpenapiClient::PaymentTokenizationErrorResponse](docs/PaymentTokenizationErrorResponse.md)
|
159
|
+
- [OpenapiClient::PaymentTokenizationRequest](docs/PaymentTokenizationRequest.md)
|
160
|
+
- [OpenapiClient::PaymentTokenizationResponse](docs/PaymentTokenizationResponse.md)
|
161
|
+
- [OpenapiClient::PaymentUrlErrorResponse](docs/PaymentUrlErrorResponse.md)
|
162
|
+
- [OpenapiClient::PaymentUrlRequest](docs/PaymentUrlRequest.md)
|
163
|
+
- [OpenapiClient::PaymentUrlResponse](docs/PaymentUrlResponse.md)
|
164
|
+
- [OpenapiClient::PaymentVerification3ds](docs/PaymentVerification3ds.md)
|
165
|
+
- [OpenapiClient::PaymentVerificationAvs](docs/PaymentVerificationAvs.md)
|
166
|
+
- [OpenapiClient::PaymentVerificationCvv](docs/PaymentVerificationCvv.md)
|
167
|
+
- [OpenapiClient::PrimaryTransaction](docs/PrimaryTransaction.md)
|
168
|
+
- [OpenapiClient::PrimaryTransactionAdditionalDetails](docs/PrimaryTransactionAdditionalDetails.md)
|
169
|
+
- [OpenapiClient::ProcessorData](docs/ProcessorData.md)
|
170
|
+
- [OpenapiClient::PurchaseCards](docs/PurchaseCards.md)
|
171
|
+
- [OpenapiClient::PurchaseCardsLevel2](docs/PurchaseCardsLevel2.md)
|
172
|
+
- [OpenapiClient::PurchaseCardsLevel3](docs/PurchaseCardsLevel3.md)
|
173
|
+
- [OpenapiClient::PurchaseCardsLevel3LineItems](docs/PurchaseCardsLevel3LineItems.md)
|
174
|
+
- [OpenapiClient::RecurringPaymentDetails](docs/RecurringPaymentDetails.md)
|
175
|
+
- [OpenapiClient::RecurringPaymentDetailsResponse](docs/RecurringPaymentDetailsResponse.md)
|
176
|
+
- [OpenapiClient::ReferencedOrder](docs/ReferencedOrder.md)
|
177
|
+
- [OpenapiClient::ResponseType](docs/ResponseType.md)
|
178
|
+
- [OpenapiClient::ScoreOnlyRequest](docs/ScoreOnlyRequest.md)
|
179
|
+
- [OpenapiClient::ScoreOnlyResponse](docs/ScoreOnlyResponse.md)
|
180
|
+
- [OpenapiClient::ScoreOnlyResponseFraudScore](docs/ScoreOnlyResponseFraudScore.md)
|
181
|
+
- [OpenapiClient::ScoreOnlyResponseFraudScoreExplanations](docs/ScoreOnlyResponseFraudScoreExplanations.md)
|
182
|
+
- [OpenapiClient::SecondaryTransaction](docs/SecondaryTransaction.md)
|
183
|
+
- [OpenapiClient::SecondaryTransactionAdditionalDetails](docs/SecondaryTransactionAdditionalDetails.md)
|
184
|
+
- [OpenapiClient::Secure3dResponse](docs/Secure3dResponse.md)
|
185
|
+
- [OpenapiClient::Sepa](docs/Sepa.md)
|
186
|
+
- [OpenapiClient::SepaMandate](docs/SepaMandate.md)
|
187
|
+
- [OpenapiClient::Shipping](docs/Shipping.md)
|
188
|
+
- [OpenapiClient::SoftDescriptor](docs/SoftDescriptor.md)
|
189
|
+
- [OpenapiClient::SplitShipment](docs/SplitShipment.md)
|
190
|
+
- [OpenapiClient::StoredCredential](docs/StoredCredential.md)
|
191
|
+
- [OpenapiClient::SubMerchantData](docs/SubMerchantData.md)
|
192
|
+
- [OpenapiClient::Transaction](docs/Transaction.md)
|
193
|
+
- [OpenapiClient::TransactionErrorResponse](docs/TransactionErrorResponse.md)
|
194
|
+
- [OpenapiClient::TransactionOrigin](docs/TransactionOrigin.md)
|
195
|
+
- [OpenapiClient::TransactionResponse](docs/TransactionResponse.md)
|
196
|
+
- [OpenapiClient::TransactionType](docs/TransactionType.md)
|
197
|
+
|
198
|
+
|
199
|
+
## Documentation for Authorization
|
200
|
+
|
201
|
+
All endpoints do not require authorization.
|
202
|
+
|
data/Rakefile
CHANGED
data/docs/AVSResponse.md
ADDED
data/docs/AccessTokenResponse.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
#
|
1
|
+
# OpenapiClient::AccessTokenResponse
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**access_token** | **String** | Access
|
6
|
+
**access_token** | **String** | Access token for authentication | [optional]
|
7
7
|
**client_request_id** | **String** | Echoes back the value from the request header for tracking | [optional]
|
8
|
-
**api_trace_id** | **String** | Request identifier in API. Use this to request logs from support. | [optional]
|
9
8
|
**request_status** | **String** | The result of the requested operation. If this is anything other than 'SUCCESS', please refer to the 400s HTTP error codes. See ErrorResponse object for details. | [optional]
|
10
9
|
|
11
10
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# OpenapiClient::AdditionalAmountRate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**amount** | **Float** | Rate amount in 3 decimal 12 bytes total digit | [optional]
|
7
|
+
**rate** | **Float** | Rate amount in 3 decimal 12 bytes total digit | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# OpenapiClient::AdditionalTransactionDetails
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**comments** | **String** | Comment for the payment | [optional]
|
7
|
+
**invoice_number** | **String** | Invoice number | [optional]
|
8
|
+
**purchase_order_number** | **String** | Purchase order number | [optional]
|
9
|
+
|
10
|
+
|
data/docs/Address.md
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
#
|
1
|
+
# OpenapiClient::Address
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**company** | **String** |
|
7
|
-
**address1** | **String** |
|
8
|
-
**address2** | **String** |
|
6
|
+
**company** | **String** | Company name associated with the address | [optional]
|
7
|
+
**address1** | **String** | First line of the street address | [optional]
|
8
|
+
**address2** | **String** | Second line of the street address | [optional]
|
9
9
|
**city** | **String** | City or Locality | [optional]
|
10
10
|
**region** | **String** | State or Province | [optional]
|
11
11
|
**postal_code** | **String** | ZIP code or postal code | [optional]
|
12
|
-
**country** | **String** |
|
12
|
+
**country** | **String** | ISO-3166-1 ALPHA-2, ALPHA-3 or numeric | [optional]
|
13
13
|
|
14
14
|
|
data/docs/Airline.md
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
#
|
1
|
+
# OpenapiClient::Airline
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**passenger_name** | **String** |
|
7
|
-
**ticket_number** | **String** |
|
8
|
-
**issuing_carrier** | **String** |
|
9
|
-
**carrier_name** | **String** |
|
10
|
-
**travel_agency_iata_code** | **String** |
|
11
|
-
**travel_agency_name** | **String** |
|
12
|
-
**airline_plan_number** | **String** |
|
13
|
-
**airline_invoice_number** | **String** |
|
14
|
-
**reservation_system** | **String** |
|
15
|
-
**restricted** | **BOOLEAN** |
|
16
|
-
**travel_route** | [**Array<AirlineTravelRoute>**](AirlineTravelRoute.md) |
|
17
|
-
**related_ticket_number** | **String** |
|
6
|
+
**passenger_name** | **String** | The passenger name associated with the transaction | [optional]
|
7
|
+
**ticket_number** | **String** | The airline ticket number associated with the transaction | [optional]
|
8
|
+
**issuing_carrier** | **String** | The carrier that issued the ticket | [optional]
|
9
|
+
**carrier_name** | **String** | The carrier associated with the transaction | [optional]
|
10
|
+
**travel_agency_iata_code** | **String** | The IATA code associated with the travel agency | [optional]
|
11
|
+
**travel_agency_name** | **String** | The business name of the travel agency | [optional]
|
12
|
+
**airline_plan_number** | **String** | The airline plan number associated with the transaction | [optional]
|
13
|
+
**airline_invoice_number** | **String** | The invoice number used by the airline | [optional]
|
14
|
+
**reservation_system** | **String** | The reservation system used to create the ticket | [optional]
|
15
|
+
**restricted** | **BOOLEAN** | Whether or not the transaction is associated with a restricted class fare | [optional]
|
16
|
+
**travel_route** | [**Array<AirlineTravelRoute>**](AirlineTravelRoute.md) | Array containing up to 4 items that describe the route associated with the transaction | [optional]
|
17
|
+
**related_ticket_number** | **String** | The number of any other tickets associated with the transaction ticket. | [optional]
|
18
18
|
**ancillary_service_category** | [**Array<AirlineAncillaryServiceCategory>**](AirlineAncillaryServiceCategory.md) | Identify the purchase of ancillary goods or services with a false value. If this element is not provided, the transaction is assumed to be a purchase of an airline ticket. | [optional]
|
19
|
-
**ticket_purchase** | **BOOLEAN** |
|
19
|
+
**ticket_purchase** | **BOOLEAN** | Identifies if the transaction is a ticket purchase | [optional]
|
20
20
|
|
21
21
|
|
@@ -1,8 +1,8 @@
|
|
1
|
-
#
|
1
|
+
# OpenapiClient::AirlineAncillaryServiceCategory
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**service_category** | **String** |
|
6
|
+
**service_category** | **String** | Identifies the service purchased in the transaction if not a base ticket | [optional]
|
7
7
|
|
8
8
|
|
data/docs/AirlineTravelRoute.md
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
#
|
1
|
+
# OpenapiClient::AirlineTravelRoute
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**departure_date** | **Date** | Date of departure | [optional]
|
7
|
-
**origin** | **String** |
|
8
|
-
**destination** | **String** |
|
9
|
-
**carrier_code** | **String** |
|
10
|
-
**service_class** | **String** |
|
11
|
-
**stopover_type** | **String** |
|
12
|
-
**fare_basis_code** | **String** |
|
7
|
+
**origin** | **String** | The IATA code for the departure airport. | [optional]
|
8
|
+
**destination** | **String** | The IATA code for the destination airport. | [optional]
|
9
|
+
**carrier_code** | **String** | The IATA code for the carrier. | [optional]
|
10
|
+
**service_class** | **String** | The airline code for the service class of the ticket. | [optional]
|
11
|
+
**stopover_type** | **String** | Indicates whether the route is direct or not. | [optional]
|
12
|
+
**fare_basis_code** | **String** | The airline fare basis code. | [optional]
|
13
13
|
**departure_tax** | **Float** | | [optional]
|
14
|
-
**flight_number** | **String** |
|
14
|
+
**flight_number** | **String** | The airline flight number associated with the ticket. | [optional]
|
15
15
|
|
16
16
|
|
data/docs/AliPay.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# OpenapiClient::AliPay
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**payment_data_type** | **String** | Use this to indicate the type of machine-readable payment data for scanning. |
|
7
|
+
**payment_data** | **String** | Use this to send payment related information, such as customer identity ID. |
|
8
|
+
**order_title** | **String** | Use this to send an order title that shows up in the statement |
|
9
|
+
**order_details** | **String** | Use this to send order details that show up in the statement |
|
10
|
+
|
11
|
+
|
data/docs/Amount.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# OpenapiClient::Amount
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**total** | **Float** |
|
6
|
+
**total** | **Float** | Amount in total |
|
7
7
|
**currency** | **String** | ISO 4217 currency code (http://en.wikipedia.org/wiki/ISO_4217). |
|
8
8
|
**components** | [**AmountComponents**](AmountComponents.md) | | [optional]
|
9
9
|
|
data/docs/AmountComponents.md
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
#
|
1
|
+
# OpenapiClient::AmountComponents
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**subtotal** | **Float** |
|
7
|
-
**vat_amount** | **Float** |
|
8
|
-
**local_tax** | **Float** |
|
9
|
-
**shipping** | **Float** |
|
10
|
-
**cashback** | **Float** |
|
11
|
-
**tip** | **Float** |
|
12
|
-
**convenience_fee** | **Float** |
|
6
|
+
**subtotal** | **Float** | Subtotal amount | [optional]
|
7
|
+
**vat_amount** | **Float** | Value-added tax amount | [optional]
|
8
|
+
**local_tax** | **Float** | Local tax amount | [optional]
|
9
|
+
**shipping** | **Float** | Shipping amount | [optional]
|
10
|
+
**cashback** | **Float** | Cashback amount | [optional]
|
11
|
+
**tip** | **Float** | Tip amount | [optional]
|
12
|
+
**convenience_fee** | **Float** | Amount added for proccessing or handling fees, field must not be present in requests. | [optional]
|
13
13
|
|
14
14
|
|
data/docs/AuthenticationApi.md
CHANGED
@@ -1,43 +1,38 @@
|
|
1
|
-
#
|
1
|
+
# OpenapiClient::AuthenticationApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://cert.api.firstdata.com/gateway*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**v1_authentication_access_tokens_post**](AuthenticationApi.md#v1_authentication_access_tokens_post) | **POST** /v1/authentication/access-tokens | Generate an access token for user authentication
|
7
|
+
[**v1_authentication_access_tokens_post**](AuthenticationApi.md#v1_authentication_access_tokens_post) | **POST** /v1/authentication/access-tokens | Generate an access token for user authentication.
|
8
8
|
|
9
9
|
|
10
10
|
# **v1_authentication_access_tokens_post**
|
11
|
-
> AccessTokenResponse v1_authentication_access_tokens_post(content_type, client_request_id, api_key, timestamp,
|
11
|
+
> AccessTokenResponse v1_authentication_access_tokens_post(content_type, client_request_id, api_key, timestamp, opts)
|
12
12
|
|
13
|
-
Generate an access token for user authentication
|
13
|
+
Generate an access token for user authentication.
|
14
14
|
|
15
|
-
This is the access token generation call for authorizing subsequent financial transactions. A valid access token is required for web client requests.
|
15
|
+
This is the access token generation call for authorizing subsequent financial transactions. A valid access token is required for web client requests.
|
16
16
|
|
17
17
|
### Example
|
18
18
|
```ruby
|
19
19
|
# load the gem
|
20
|
-
require '
|
21
|
-
|
22
|
-
api_instance =
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
timestamp = 789 # Integer | Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
31
|
-
|
32
|
-
opts = {
|
33
|
-
message_signature: "message_signature_example", # String | 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.
|
20
|
+
require 'openapi_client'
|
21
|
+
|
22
|
+
api_instance = OpenapiClient::AuthenticationApi.new
|
23
|
+
content_type = 'application/json' # String | content type
|
24
|
+
client_request_id = 'client_request_id_example' # String | A client-generated ID for request tracking and signature creation, unique per request. This is also used for idempotency control. We recommend 128-bit UUID format.
|
25
|
+
api_key = 'api_key_example' # String |
|
26
|
+
timestamp = 56 # Integer | Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
|
27
|
+
opts = {
|
28
|
+
message_signature: 'message_signature_example' # String | 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.
|
34
29
|
}
|
35
30
|
|
36
31
|
begin
|
37
|
-
#Generate an access token for user authentication
|
38
|
-
result = api_instance.v1_authentication_access_tokens_post(content_type, client_request_id, api_key, timestamp,
|
32
|
+
#Generate an access token for user authentication.
|
33
|
+
result = api_instance.v1_authentication_access_tokens_post(content_type, client_request_id, api_key, timestamp, opts)
|
39
34
|
p result
|
40
|
-
rescue
|
35
|
+
rescue OpenapiClient::ApiError => e
|
41
36
|
puts "Exception when calling AuthenticationApi->v1_authentication_access_tokens_post: #{e}"
|
42
37
|
end
|
43
38
|
```
|
@@ -46,7 +41,7 @@ end
|
|
46
41
|
|
47
42
|
Name | Type | Description | Notes
|
48
43
|
------------- | ------------- | ------------- | -------------
|
49
|
-
**content_type** | **String**| content type | [default to application/json]
|
44
|
+
**content_type** | **String**| content type | [default to 'application/json']
|
50
45
|
**client_request_id** | **String**| A client-generated ID for request tracking and signature creation, unique per request. This is also used for idempotency control. We recommend 128-bit UUID format. |
|
51
46
|
**api_key** | **String**| |
|
52
47
|
**timestamp** | **Integer**| Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins). |
|
@@ -62,7 +57,7 @@ No authorization required
|
|
62
57
|
|
63
58
|
### HTTP request headers
|
64
59
|
|
65
|
-
- **Content-Type**:
|
60
|
+
- **Content-Type**: Not defined
|
66
61
|
- **Accept**: application/json
|
67
62
|
|
68
63
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# OpenapiClient::AuthenticationRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**type** | **String** | Indicates what kind of authentication scheme the merchant wants to use on the card. |
|
7
|
+
**sms_phone_number** | **String** | Use this to enter the customer mobile number for SMS verification | [optional]
|
8
|
+
|
9
|
+
|
@@ -1,10 +1,11 @@
|
|
1
|
-
#
|
1
|
+
# OpenapiClient::AuthenticationResponseVerification
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**type** | **String** | |
|
7
|
-
**
|
8
|
-
**
|
6
|
+
**type** | **String** | |
|
7
|
+
**sms_verification_code** | **String** | Use this to enter the customer mobile number for SMS verification. | [optional]
|
8
|
+
**merchant_data** | **String** | | [optional]
|
9
|
+
**pa_res** | **String** | Payer authentication result from Payment Authentication Response (PaRes) | [optional]
|
9
10
|
|
10
11
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# OpenapiClient::AuthenticationResponseVerificationRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**store_id** | **String** | | [optional]
|
7
|
+
**security_code** | **String** | Card Security Code if required by merchant. | [optional]
|
8
|
+
**authentication_response_verification** | [**AuthenticationResponseVerification**](AuthenticationResponseVerification.md) | | [optional]
|
9
|
+
**amount** | [**Amount**](Amount.md) | | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# OpenapiClient::BasicResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**client_request_id** | **String** | Echoes back the value in the request header for tracking. | [optional]
|
7
|
+
**api_trace_id** | **String** | Request identifier in API, can be used to request logs from the support team. | [optional]
|
8
|
+
**response_type** | [**ResponseType**](ResponseType.md) | |
|
9
|
+
|
10
|
+
|
data/docs/BasketItem.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
#
|
1
|
+
# OpenapiClient::BasketItem
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**id** | **String** | Item ID | [optional]
|
7
|
-
**description** | **String** |
|
7
|
+
**description** | **String** | Item in the basket | [optional]
|
8
8
|
**unit_price** | [**Amount**](Amount.md) | | [optional]
|
9
9
|
**count** | **Integer** | Total quantity of items | [optional]
|
10
10
|
|