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,225 @@
|
|
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
|
+
# Details related to updated account information.
|
17
|
+
class AccountUpdaterResponse
|
18
|
+
# Account updater replacement PAN or TransArmor token.
|
19
|
+
attr_accessor :updated_card
|
20
|
+
|
21
|
+
# Updated value of token.
|
22
|
+
attr_accessor :updated_token
|
23
|
+
|
24
|
+
# New account number expiration date in MMYY format.
|
25
|
+
attr_accessor :updated_expiration_date
|
26
|
+
|
27
|
+
# Status of the updated account. An account may have closed (C), the expiry date may have changed (E), the account may have changed (A), or the cardholder should be contacted (Q).
|
28
|
+
attr_accessor :updated_account_status
|
29
|
+
|
30
|
+
# Code for the error encountered when updating account.
|
31
|
+
attr_accessor :updated_account_error_code
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'updated_card' => :'updatedCard',
|
37
|
+
:'updated_token' => :'updatedToken',
|
38
|
+
:'updated_expiration_date' => :'updatedExpirationDate',
|
39
|
+
:'updated_account_status' => :'updatedAccountStatus',
|
40
|
+
:'updated_account_error_code' => :'updatedAccountErrorCode'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# Attribute type mapping.
|
45
|
+
def self.openapi_types
|
46
|
+
{
|
47
|
+
:'updated_card' => :'String',
|
48
|
+
:'updated_token' => :'String',
|
49
|
+
:'updated_expiration_date' => :'String',
|
50
|
+
:'updated_account_status' => :'String',
|
51
|
+
:'updated_account_error_code' => :'String'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
+
def initialize(attributes = {})
|
58
|
+
return unless attributes.is_a?(Hash)
|
59
|
+
|
60
|
+
# convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
62
|
+
|
63
|
+
if attributes.has_key?(:'updatedCard')
|
64
|
+
self.updated_card = attributes[:'updatedCard']
|
65
|
+
end
|
66
|
+
|
67
|
+
if attributes.has_key?(:'updatedToken')
|
68
|
+
self.updated_token = attributes[:'updatedToken']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'updatedExpirationDate')
|
72
|
+
self.updated_expiration_date = attributes[:'updatedExpirationDate']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'updatedAccountStatus')
|
76
|
+
self.updated_account_status = attributes[:'updatedAccountStatus']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.has_key?(:'updatedAccountErrorCode')
|
80
|
+
self.updated_account_error_code = attributes[:'updatedAccountErrorCode']
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
85
|
+
# @return Array for valid properties with the reasons
|
86
|
+
def list_invalid_properties
|
87
|
+
invalid_properties = Array.new
|
88
|
+
invalid_properties
|
89
|
+
end
|
90
|
+
|
91
|
+
# Check to see if the all the properties in the model are valid
|
92
|
+
# @return true if the model is valid
|
93
|
+
def valid?
|
94
|
+
true
|
95
|
+
end
|
96
|
+
|
97
|
+
# Checks equality by comparing each attribute.
|
98
|
+
# @param [Object] Object to be compared
|
99
|
+
def ==(o)
|
100
|
+
return true if self.equal?(o)
|
101
|
+
self.class == o.class &&
|
102
|
+
updated_card == o.updated_card &&
|
103
|
+
updated_token == o.updated_token &&
|
104
|
+
updated_expiration_date == o.updated_expiration_date &&
|
105
|
+
updated_account_status == o.updated_account_status &&
|
106
|
+
updated_account_error_code == o.updated_account_error_code
|
107
|
+
end
|
108
|
+
|
109
|
+
# @see the `==` method
|
110
|
+
# @param [Object] Object to be compared
|
111
|
+
def eql?(o)
|
112
|
+
self == o
|
113
|
+
end
|
114
|
+
|
115
|
+
# Calculates hash code according to all attributes.
|
116
|
+
# @return [Fixnum] Hash code
|
117
|
+
def hash
|
118
|
+
[updated_card, updated_token, updated_expiration_date, updated_account_status, updated_account_error_code].hash
|
119
|
+
end
|
120
|
+
|
121
|
+
# Builds the object from hash
|
122
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
123
|
+
# @return [Object] Returns the model itself
|
124
|
+
def build_from_hash(attributes)
|
125
|
+
return nil unless attributes.is_a?(Hash)
|
126
|
+
self.class.openapi_types.each_pair do |key, type|
|
127
|
+
if type =~ /\AArray<(.*)>/i
|
128
|
+
# check to ensure the input is an array given that the the attribute
|
129
|
+
# is documented as an array but the input is not
|
130
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
131
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
132
|
+
end
|
133
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
134
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
135
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
136
|
+
end
|
137
|
+
|
138
|
+
self
|
139
|
+
end
|
140
|
+
|
141
|
+
# Deserializes the data based on type
|
142
|
+
# @param string type Data type
|
143
|
+
# @param string value Value to be deserialized
|
144
|
+
# @return [Object] Deserialized data
|
145
|
+
def _deserialize(type, value)
|
146
|
+
case type.to_sym
|
147
|
+
when :DateTime
|
148
|
+
DateTime.parse(value)
|
149
|
+
when :Date
|
150
|
+
Date.parse(value)
|
151
|
+
when :String
|
152
|
+
value.to_s
|
153
|
+
when :Integer
|
154
|
+
value.to_i
|
155
|
+
when :Float
|
156
|
+
value.to_f
|
157
|
+
when :BOOLEAN
|
158
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
159
|
+
true
|
160
|
+
else
|
161
|
+
false
|
162
|
+
end
|
163
|
+
when :Object
|
164
|
+
# generic object (usually a Hash), return directly
|
165
|
+
value
|
166
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
167
|
+
inner_type = Regexp.last_match[:inner_type]
|
168
|
+
value.map { |v| _deserialize(inner_type, v) }
|
169
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
170
|
+
k_type = Regexp.last_match[:k_type]
|
171
|
+
v_type = Regexp.last_match[:v_type]
|
172
|
+
{}.tap do |hash|
|
173
|
+
value.each do |k, v|
|
174
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
else # model
|
178
|
+
temp_model = OpenapiClient.const_get(type).new
|
179
|
+
temp_model.build_from_hash(value)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
# Returns the string representation of the object
|
184
|
+
# @return [String] String presentation of the object
|
185
|
+
def to_s
|
186
|
+
to_hash.to_s
|
187
|
+
end
|
188
|
+
|
189
|
+
# to_body is an alias to to_hash (backward compatibility)
|
190
|
+
# @return [Hash] Returns the object in the form of hash
|
191
|
+
def to_body
|
192
|
+
to_hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Returns the object in the form of hash
|
196
|
+
# @return [Hash] Returns the object in the form of hash
|
197
|
+
def to_hash
|
198
|
+
hash = {}
|
199
|
+
self.class.attribute_map.each_pair do |attr, param|
|
200
|
+
value = self.send(attr)
|
201
|
+
next if value.nil?
|
202
|
+
hash[param] = _to_hash(value)
|
203
|
+
end
|
204
|
+
hash
|
205
|
+
end
|
206
|
+
|
207
|
+
# Outputs non-array value in the form of hash
|
208
|
+
# For object, use to_hash. Otherwise, just return the value
|
209
|
+
# @param [Object] value Any valid value
|
210
|
+
# @return [Hash] Returns the value in the form of hash
|
211
|
+
def _to_hash(value)
|
212
|
+
if value.is_a?(Array)
|
213
|
+
value.compact.map { |v| _to_hash(v) }
|
214
|
+
elsif value.is_a?(Hash)
|
215
|
+
{}.tap do |hash|
|
216
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
217
|
+
end
|
218
|
+
elsif value.respond_to? :to_hash
|
219
|
+
value.to_hash
|
220
|
+
else
|
221
|
+
value
|
222
|
+
end
|
223
|
+
end
|
224
|
+
end
|
225
|
+
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,11 +13,12 @@ OpenAPI Generator version: unset
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
|
+
# Rate and corresponding amount being applied to purchase cards, for instance in the form of taxes or discounts.
|
16
17
|
class AdditionalAmountRate
|
17
|
-
#
|
18
|
+
# Amount in 3 decimal 12 bytes total digit.
|
18
19
|
attr_accessor :amount
|
19
20
|
|
20
|
-
# Rate
|
21
|
+
# Rate in 3 decimal 12 bytes total digit.
|
21
22
|
attr_accessor :rate
|
22
23
|
|
23
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -57,12 +58,22 @@ module OpenapiClient
|
|
57
58
|
# @return Array for valid properties with the reasons
|
58
59
|
def list_invalid_properties
|
59
60
|
invalid_properties = Array.new
|
61
|
+
if @amount.nil?
|
62
|
+
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
63
|
+
end
|
64
|
+
|
65
|
+
if @rate.nil?
|
66
|
+
invalid_properties.push('invalid value for "rate", rate cannot be nil.')
|
67
|
+
end
|
68
|
+
|
60
69
|
invalid_properties
|
61
70
|
end
|
62
71
|
|
63
72
|
# Check to see if the all the properties in the model are valid
|
64
73
|
# @return true if the model is valid
|
65
74
|
def valid?
|
75
|
+
return false if @amount.nil?
|
76
|
+
return false if @rate.nil?
|
66
77
|
true
|
67
78
|
end
|
68
79
|
|
data/lib/openapi_client/models/{primary_transaction_additional_details.rb → additional_details.rb}
RENAMED
@@ -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,59 +13,32 @@ OpenAPI Generator version: unset
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
# Comments for the payment
|
16
|
+
# Merchant supplied tracking numbers.
|
17
|
+
class AdditionalDetails
|
18
|
+
# Comments for the payment.
|
21
19
|
attr_accessor :comments
|
22
20
|
|
23
|
-
#
|
24
|
-
attr_accessor :dynamic_merchant_name
|
25
|
-
|
26
|
-
# Invoice number
|
21
|
+
# Invoice number.
|
27
22
|
attr_accessor :invoice_number
|
28
23
|
|
29
|
-
# Purchase order number
|
24
|
+
# Purchase order number.
|
30
25
|
attr_accessor :purchase_order_number
|
31
26
|
|
32
|
-
# Valid values are 'FIRST', 'REPEAT' and 'STANDING_INSTRUCTION'.
|
33
|
-
attr_accessor :recurring_type
|
34
|
-
|
35
|
-
attr_accessor :installment_options
|
36
|
-
|
37
|
-
# Use this field to override merchant configured MCC value
|
38
|
-
attr_accessor :mcc
|
39
|
-
|
40
|
-
attr_accessor :dcc
|
41
|
-
|
42
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
28
|
def self.attribute_map
|
44
29
|
{
|
45
|
-
:'reference_number' => :'referenceNumber',
|
46
30
|
:'comments' => :'comments',
|
47
|
-
:'dynamic_merchant_name' => :'dynamicMerchantName',
|
48
31
|
:'invoice_number' => :'invoiceNumber',
|
49
|
-
:'purchase_order_number' => :'purchaseOrderNumber'
|
50
|
-
:'recurring_type' => :'recurringType',
|
51
|
-
:'installment_options' => :'installmentOptions',
|
52
|
-
:'mcc' => :'mcc',
|
53
|
-
:'dcc' => :'dcc'
|
32
|
+
:'purchase_order_number' => :'purchaseOrderNumber'
|
54
33
|
}
|
55
34
|
end
|
56
35
|
|
57
36
|
# Attribute type mapping.
|
58
37
|
def self.openapi_types
|
59
38
|
{
|
60
|
-
:'reference_number' => :'String',
|
61
39
|
:'comments' => :'String',
|
62
|
-
:'dynamic_merchant_name' => :'String',
|
63
40
|
:'invoice_number' => :'String',
|
64
|
-
:'purchase_order_number' => :'String'
|
65
|
-
:'recurring_type' => :'String',
|
66
|
-
:'installment_options' => :'InstallmentOptions',
|
67
|
-
:'mcc' => :'String',
|
68
|
-
:'dcc' => :'Dcc'
|
41
|
+
:'purchase_order_number' => :'String'
|
69
42
|
}
|
70
43
|
end
|
71
44
|
|
@@ -77,18 +50,10 @@ module OpenapiClient
|
|
77
50
|
# convert string to symbol for hash key
|
78
51
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
79
52
|
|
80
|
-
if attributes.has_key?(:'referenceNumber')
|
81
|
-
self.reference_number = attributes[:'referenceNumber']
|
82
|
-
end
|
83
|
-
|
84
53
|
if attributes.has_key?(:'comments')
|
85
54
|
self.comments = attributes[:'comments']
|
86
55
|
end
|
87
56
|
|
88
|
-
if attributes.has_key?(:'dynamicMerchantName')
|
89
|
-
self.dynamic_merchant_name = attributes[:'dynamicMerchantName']
|
90
|
-
end
|
91
|
-
|
92
57
|
if attributes.has_key?(:'invoiceNumber')
|
93
58
|
self.invoice_number = attributes[:'invoiceNumber']
|
94
59
|
end
|
@@ -96,40 +61,16 @@ module OpenapiClient
|
|
96
61
|
if attributes.has_key?(:'purchaseOrderNumber')
|
97
62
|
self.purchase_order_number = attributes[:'purchaseOrderNumber']
|
98
63
|
end
|
99
|
-
|
100
|
-
if attributes.has_key?(:'recurringType')
|
101
|
-
self.recurring_type = attributes[:'recurringType']
|
102
|
-
end
|
103
|
-
|
104
|
-
if attributes.has_key?(:'installmentOptions')
|
105
|
-
self.installment_options = attributes[:'installmentOptions']
|
106
|
-
end
|
107
|
-
|
108
|
-
if attributes.has_key?(:'mcc')
|
109
|
-
self.mcc = attributes[:'mcc']
|
110
|
-
end
|
111
|
-
|
112
|
-
if attributes.has_key?(:'dcc')
|
113
|
-
self.dcc = attributes[:'dcc']
|
114
|
-
end
|
115
64
|
end
|
116
65
|
|
117
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
118
67
|
# @return Array for valid properties with the reasons
|
119
68
|
def list_invalid_properties
|
120
69
|
invalid_properties = Array.new
|
121
|
-
if !@reference_number.nil? && @reference_number.to_s.length > 8
|
122
|
-
invalid_properties.push('invalid value for "reference_number", the character length must be smaller than or equal to 8.')
|
123
|
-
end
|
124
|
-
|
125
70
|
if !@comments.nil? && @comments.to_s.length > 1024
|
126
71
|
invalid_properties.push('invalid value for "comments", the character length must be smaller than or equal to 1024.')
|
127
72
|
end
|
128
73
|
|
129
|
-
if !@dynamic_merchant_name.nil? && @dynamic_merchant_name.to_s.length > 100
|
130
|
-
invalid_properties.push('invalid value for "dynamic_merchant_name", the character length must be smaller than or equal to 100.')
|
131
|
-
end
|
132
|
-
|
133
74
|
if !@invoice_number.nil? && @invoice_number.to_s.length > 48
|
134
75
|
invalid_properties.push('invalid value for "invoice_number", the character length must be smaller than or equal to 48.')
|
135
76
|
end
|
@@ -138,35 +79,18 @@ module OpenapiClient
|
|
138
79
|
invalid_properties.push('invalid value for "purchase_order_number", the character length must be smaller than or equal to 128.')
|
139
80
|
end
|
140
81
|
|
141
|
-
if !@mcc.nil? && @mcc.to_s.length > 4
|
142
|
-
invalid_properties.push('invalid value for "mcc", the character length must be smaller than or equal to 4.')
|
143
|
-
end
|
144
|
-
|
145
82
|
invalid_properties
|
146
83
|
end
|
147
84
|
|
148
85
|
# Check to see if the all the properties in the model are valid
|
149
86
|
# @return true if the model is valid
|
150
87
|
def valid?
|
151
|
-
return false if !@reference_number.nil? && @reference_number.to_s.length > 8
|
152
88
|
return false if !@comments.nil? && @comments.to_s.length > 1024
|
153
|
-
return false if !@dynamic_merchant_name.nil? && @dynamic_merchant_name.to_s.length > 100
|
154
89
|
return false if !@invoice_number.nil? && @invoice_number.to_s.length > 48
|
155
90
|
return false if !@purchase_order_number.nil? && @purchase_order_number.to_s.length > 128
|
156
|
-
return false if !@mcc.nil? && @mcc.to_s.length > 4
|
157
91
|
true
|
158
92
|
end
|
159
93
|
|
160
|
-
# Custom attribute writer method with validation
|
161
|
-
# @param [Object] reference_number Value to be assigned
|
162
|
-
def reference_number=(reference_number)
|
163
|
-
if !reference_number.nil? && reference_number.to_s.length > 8
|
164
|
-
fail ArgumentError, 'invalid value for "reference_number", the character length must be smaller than or equal to 8.'
|
165
|
-
end
|
166
|
-
|
167
|
-
@reference_number = reference_number
|
168
|
-
end
|
169
|
-
|
170
94
|
# Custom attribute writer method with validation
|
171
95
|
# @param [Object] comments Value to be assigned
|
172
96
|
def comments=(comments)
|
@@ -177,16 +101,6 @@ module OpenapiClient
|
|
177
101
|
@comments = comments
|
178
102
|
end
|
179
103
|
|
180
|
-
# Custom attribute writer method with validation
|
181
|
-
# @param [Object] dynamic_merchant_name Value to be assigned
|
182
|
-
def dynamic_merchant_name=(dynamic_merchant_name)
|
183
|
-
if !dynamic_merchant_name.nil? && dynamic_merchant_name.to_s.length > 100
|
184
|
-
fail ArgumentError, 'invalid value for "dynamic_merchant_name", the character length must be smaller than or equal to 100.'
|
185
|
-
end
|
186
|
-
|
187
|
-
@dynamic_merchant_name = dynamic_merchant_name
|
188
|
-
end
|
189
|
-
|
190
104
|
# Custom attribute writer method with validation
|
191
105
|
# @param [Object] invoice_number Value to be assigned
|
192
106
|
def invoice_number=(invoice_number)
|
@@ -207,30 +121,14 @@ module OpenapiClient
|
|
207
121
|
@purchase_order_number = purchase_order_number
|
208
122
|
end
|
209
123
|
|
210
|
-
# Custom attribute writer method with validation
|
211
|
-
# @param [Object] mcc Value to be assigned
|
212
|
-
def mcc=(mcc)
|
213
|
-
if !mcc.nil? && mcc.to_s.length > 4
|
214
|
-
fail ArgumentError, 'invalid value for "mcc", the character length must be smaller than or equal to 4.'
|
215
|
-
end
|
216
|
-
|
217
|
-
@mcc = mcc
|
218
|
-
end
|
219
|
-
|
220
124
|
# Checks equality by comparing each attribute.
|
221
125
|
# @param [Object] Object to be compared
|
222
126
|
def ==(o)
|
223
127
|
return true if self.equal?(o)
|
224
128
|
self.class == o.class &&
|
225
|
-
reference_number == o.reference_number &&
|
226
129
|
comments == o.comments &&
|
227
|
-
dynamic_merchant_name == o.dynamic_merchant_name &&
|
228
130
|
invoice_number == o.invoice_number &&
|
229
|
-
purchase_order_number == o.purchase_order_number
|
230
|
-
recurring_type == o.recurring_type &&
|
231
|
-
installment_options == o.installment_options &&
|
232
|
-
mcc == o.mcc &&
|
233
|
-
dcc == o.dcc
|
131
|
+
purchase_order_number == o.purchase_order_number
|
234
132
|
end
|
235
133
|
|
236
134
|
# @see the `==` method
|
@@ -242,7 +140,7 @@ module OpenapiClient
|
|
242
140
|
# Calculates hash code according to all attributes.
|
243
141
|
# @return [Fixnum] Hash code
|
244
142
|
def hash
|
245
|
-
[
|
143
|
+
[comments, invoice_number, purchase_order_number].hash
|
246
144
|
end
|
247
145
|
|
248
146
|
# 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
|
@@ -13,15 +13,15 @@ OpenAPI Generator version: unset
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
|
-
# Additional details
|
16
|
+
# Additional transaction details for transaction response.
|
17
17
|
class AdditionalTransactionDetails
|
18
|
-
# Comment for the payment
|
18
|
+
# Comment for the payment.
|
19
19
|
attr_accessor :comments
|
20
20
|
|
21
|
-
# Invoice number
|
21
|
+
# Invoice number.
|
22
22
|
attr_accessor :invoice_number
|
23
23
|
|
24
|
-
# Purchase order number
|
24
|
+
# Purchase order number.
|
25
25
|
attr_accessor :purchase_order_number
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -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
|
@@ -15,25 +15,25 @@ require 'date'
|
|
15
15
|
module OpenapiClient
|
16
16
|
# Model for address information.
|
17
17
|
class Address
|
18
|
-
# Company name associated with the address
|
18
|
+
# Company name associated with the address.
|
19
19
|
attr_accessor :company
|
20
20
|
|
21
|
-
# First line of the street address
|
21
|
+
# First line of the street address.
|
22
22
|
attr_accessor :address1
|
23
23
|
|
24
|
-
# Second line of the street address
|
24
|
+
# Second line of the street address.
|
25
25
|
attr_accessor :address2
|
26
26
|
|
27
|
-
# City or
|
27
|
+
# City or locality.
|
28
28
|
attr_accessor :city
|
29
29
|
|
30
|
-
# State or
|
30
|
+
# State or province.
|
31
31
|
attr_accessor :region
|
32
32
|
|
33
|
-
# ZIP code or postal code
|
33
|
+
# ZIP code or postal code.
|
34
34
|
attr_accessor :postal_code
|
35
35
|
|
36
|
-
# ISO-3166-1 ALPHA-2, ALPHA-3 or
|
36
|
+
# ISO-3166-1 ALPHA-2, ALPHA-3, numeric or full country name. In the case of PaySecure endpoints, pass the country code in an ISO format.
|
37
37
|
attr_accessor :country
|
38
38
|
|
39
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -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,39 +13,39 @@ OpenAPI Generator version: unset
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
|
-
# Additional data specific to the airline industry
|
16
|
+
# Additional data specific to the airline industry.
|
17
17
|
class Airline
|
18
|
-
# The passenger name associated with the transaction
|
18
|
+
# The passenger name associated with the transaction.
|
19
19
|
attr_accessor :passenger_name
|
20
20
|
|
21
|
-
# The airline ticket number associated with the transaction
|
21
|
+
# The airline ticket number associated with the transaction.
|
22
22
|
attr_accessor :ticket_number
|
23
23
|
|
24
|
-
# The carrier that issued the ticket
|
24
|
+
# The carrier that issued the ticket.
|
25
25
|
attr_accessor :issuing_carrier
|
26
26
|
|
27
|
-
# The carrier associated with the transaction
|
27
|
+
# The carrier associated with the transaction.
|
28
28
|
attr_accessor :carrier_name
|
29
29
|
|
30
|
-
# The IATA code associated with the travel agency
|
30
|
+
# The IATA code associated with the travel agency.
|
31
31
|
attr_accessor :travel_agency_iata_code
|
32
32
|
|
33
|
-
# The business name of the travel agency
|
33
|
+
# The business name of the travel agency.
|
34
34
|
attr_accessor :travel_agency_name
|
35
35
|
|
36
|
-
# The airline plan number associated with the transaction
|
36
|
+
# The airline plan number associated with the transaction.
|
37
37
|
attr_accessor :airline_plan_number
|
38
38
|
|
39
|
-
# The invoice number used by the airline
|
39
|
+
# The invoice number used by the airline.
|
40
40
|
attr_accessor :airline_invoice_number
|
41
41
|
|
42
|
-
# The reservation system used to create the ticket
|
42
|
+
# The reservation system used to create the ticket.
|
43
43
|
attr_accessor :reservation_system
|
44
44
|
|
45
|
-
#
|
45
|
+
# If the transaction is associated with a restricted class fare.
|
46
46
|
attr_accessor :restricted
|
47
47
|
|
48
|
-
# Array containing up to 4 items that describe the route associated with the transaction
|
48
|
+
# Array containing up to 4 items that describe the route associated with the transaction.
|
49
49
|
attr_accessor :travel_route
|
50
50
|
|
51
51
|
# The number of any other tickets associated with the transaction ticket.
|
@@ -54,7 +54,7 @@ module OpenapiClient
|
|
54
54
|
# 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.
|
55
55
|
attr_accessor :ancillary_service_category
|
56
56
|
|
57
|
-
# Identifies if the transaction is a ticket purchase
|
57
|
+
# Identifies if the transaction is a ticket purchase.
|
58
58
|
attr_accessor :ticket_purchase
|
59
59
|
|
60
60
|
class EnumAttributeValidator
|
@@ -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
|
@@ -70,12 +70,17 @@ module OpenapiClient
|
|
70
70
|
# @return Array for valid properties with the reasons
|
71
71
|
def list_invalid_properties
|
72
72
|
invalid_properties = Array.new
|
73
|
+
if @service_category.nil?
|
74
|
+
invalid_properties.push('invalid value for "service_category", service_category cannot be nil.')
|
75
|
+
end
|
76
|
+
|
73
77
|
invalid_properties
|
74
78
|
end
|
75
79
|
|
76
80
|
# Check to see if the all the properties in the model are valid
|
77
81
|
# @return true if the model is valid
|
78
82
|
def valid?
|
83
|
+
return false if @service_category.nil?
|
79
84
|
service_category_validator = EnumAttributeValidator.new('String', ['BUNDLED_SERVICE', 'BAGGAGE_FEE', 'CHANGE_FEE', 'CARGO', 'CARBON_OFFSET', 'FREQUENT_FLYER', 'GIFT_CARD', 'GROUND_TRANSPORT', 'IN_FLIGHT_ENTERTAINMENT', 'LOUNGE', 'MEDICAL', 'MEAL_BEVERAGE', 'OTHER', 'PASSENGER_ASSIST_FEE', 'PETS', 'SEAT_FEES', 'STANDBY', 'SERVICE_FEE', 'STORE', 'TRAVEL_SERVICE', 'UNACCOMPANIED_TRAVEL', 'UPGRADES', 'WI_FI'])
|
80
85
|
return false unless service_category_validator.valid?(@service_category)
|
81
86
|
true
|