first_data_gateway 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +79 -0
- data/README.md +69 -39
- data/docs/AVSResponse.md +2 -2
- data/docs/AccessTokenResponse.md +2 -2
- data/docs/AccountUpdaterResponse.md +12 -0
- data/docs/AdditionalAmountRate.md +2 -2
- data/docs/AdditionalDetails.md +10 -0
- data/docs/AdditionalTransactionDetails.md +3 -3
- data/docs/Address.md +7 -7
- data/docs/Airline.md +12 -12
- data/docs/AirlineAncillaryServiceCategory.md +1 -1
- data/docs/AirlineTravelRoute.md +4 -4
- data/docs/AliPay.md +2 -2
- data/docs/{SecondaryTransactionAdditionalDetails.md → AliPayPaymentMethod.md} +2 -2
- data/docs/AliPaySaleTransaction.md +14 -0
- data/docs/Amount.md +2 -2
- data/docs/AmountComponents.md +6 -7
- data/docs/Authentication.md +8 -0
- data/docs/AuthenticationApi.md +12 -12
- data/docs/AuthenticationRedirect.md +10 -0
- data/docs/AuthenticationRedirectParams.md +10 -0
- data/docs/AuthenticationVerificationRequest.md +11 -0
- data/docs/BasicResponse.md +1 -1
- data/docs/Billing.md +3 -5
- data/docs/BillingAddress.md +4 -4
- data/docs/BillingAddressPhone.md +1 -1
- data/docs/CarRental.md +6 -6
- data/docs/CarRentalExtraCharges.md +1 -1
- data/docs/Card.md +6 -6
- data/docs/CardFunction.md +7 -0
- data/docs/CardInfo.md +2 -2
- data/docs/CardInfoLookupApi.md +14 -14
- data/docs/CardInfoLookupResponse.md +1 -1
- data/docs/CardVerificationApi.md +12 -12
- data/docs/CardVerificationRequest.md +1 -0
- data/docs/ChinaDomesticPaymentMethod.md +9 -0
- data/docs/ChinaPnRSaleTransaction.md +14 -0
- data/docs/ClientLocale.md +2 -2
- data/docs/Contact.md +4 -4
- data/docs/CreatePaymentToken.md +10 -0
- data/docs/CurrencyConversion.md +9 -0
- data/docs/CurrencyConversionApi.md +15 -15
- data/docs/Customer.md +6 -6
- data/docs/CustomerAddress.md +3 -3
- data/docs/CustomerAddressPhone.md +1 -1
- data/docs/DCCExchangeRateRequest.md +11 -0
- data/docs/Dcc.md +2 -1
- data/docs/Device.md +2 -2
- data/docs/DeviceNetworks.md +1 -1
- data/docs/Document.md +2 -2
- data/docs/DynamicPricing.md +11 -0
- data/docs/DynamicPricingExchangeRateRequest.md +11 -0
- data/docs/ErrorResponse.md +1 -1
- data/docs/ExchangeRateRequest.md +2 -4
- data/docs/ExchangeRateResponse.md +11 -11
- data/docs/Expiration.md +2 -2
- data/docs/FraudDetectApi.md +12 -12
- data/docs/FraudOrderItems.md +1 -1
- data/docs/FraudOrderShipToAddress.md +6 -6
- data/docs/Frequency.md +2 -2
- data/docs/InstallmentOptions.md +5 -3
- data/docs/Lodging.md +5 -5
- data/docs/MerchantLocationMerchantAddress.md +6 -6
- data/docs/Order.md +5 -0
- data/docs/OrderApi.md +36 -102
- data/docs/OrderErrorResponse.md +4 -5
- data/docs/OrderResponse.md +4 -5
- data/docs/PayPal.md +1 -1
- data/docs/PayPalPaymentMethod.md +8 -0
- data/docs/PaymentApi.md +67 -193
- data/docs/PaymentCard.md +8 -11
- data/docs/PaymentCardCreditTransaction.md +15 -0
- data/docs/PaymentCardForcedTicketTransaction.md +15 -0
- data/docs/PaymentCardPayerAuthTransaction.md +15 -0
- data/docs/PaymentCardPaymentMethod.md +9 -0
- data/docs/PaymentCardPaymentTokenizationRequest.md +13 -0
- data/docs/PaymentCardPreAuthTransaction.md +18 -0
- data/docs/PaymentCardSaleTransaction.md +18 -0
- data/docs/PaymentFacilitator.md +4 -4
- data/docs/PaymentMethod.md +0 -7
- data/docs/PaymentMethodDetails.md +9 -0
- data/docs/PaymentMethodPaymentSchedulesRequest.md +24 -0
- data/docs/PaymentMethodType.md +7 -0
- data/docs/PaymentPayMethod.md +1 -1
- data/docs/PaymentSchedulesApi.md +58 -58
- data/docs/PaymentSchedulesErrorResponse.md +1 -1
- data/docs/PaymentSchedulesRequest.md +5 -6
- data/docs/PaymentSchedulesResponse.md +1 -1
- data/docs/PaymentTokenApi.md +23 -23
- data/docs/PaymentTokenCreditTransaction.md +15 -0
- data/docs/PaymentTokenDetails.md +14 -0
- data/docs/PaymentTokenPaymentMethod.md +9 -0
- data/docs/PaymentTokenPreAuthTransaction.md +17 -0
- data/docs/PaymentTokenSaleTransaction.md +17 -0
- data/docs/PaymentTokenizationErrorResponse.md +8 -8
- data/docs/PaymentTokenizationRequest.md +4 -3
- data/docs/PaymentTokenizationResponse.md +8 -8
- data/docs/PaymentURLApi.md +12 -12
- data/docs/PaymentUrlErrorResponse.md +3 -3
- data/docs/PaymentUrlRequest.md +3 -3
- data/docs/PaymentUrlResponse.md +3 -3
- data/docs/PaymentVerification3ds.md +3 -3
- data/docs/PaymentVerificationAvs.md +3 -3
- data/docs/PaymentVerificationCvv.md +3 -3
- data/docs/PaypalCreditTransaction.md +14 -0
- data/docs/PostAuthTransaction.md +14 -0
- data/docs/PrimaryTransaction.md +3 -12
- data/docs/ProcessorData.md +8 -6
- data/docs/PurchaseCardsLevel2.md +3 -3
- data/docs/PurchaseCardsLevel3.md +1 -1
- data/docs/PurchaseCardsLevel3LineItems.md +8 -8
- data/docs/RecurringPaymentDetails.md +2 -2
- data/docs/RecurringPaymentDetailsResponse.md +4 -5
- data/docs/ReferencedOrderPaymentSchedulesRequest.md +24 -0
- data/docs/ReferencedOrderPaymentTokenizationRequest.md +13 -0
- data/docs/ResponseAmountComponents.md +14 -0
- data/docs/ReturnTransaction.md +13 -0
- data/docs/ScoreOnlyRequest.md +1 -1
- data/docs/ScoreOnlyResponse.md +3 -3
- data/docs/ScoreOnlyResponseFraudScore.md +1 -1
- data/docs/ScoreOnlyResponseFraudScoreExplanations.md +3 -3
- data/docs/SecondaryTransaction.md +3 -5
- data/docs/Secure3dAuthenticationRequest.md +8 -0
- data/docs/Secure3dAuthenticationResult.md +12 -0
- data/docs/Secure3dAuthenticationVerificationRequest.md +13 -0
- data/docs/Secure3dResponse.md +1 -1
- data/docs/Sepa.md +4 -4
- data/docs/SepaMandate.md +2 -2
- data/docs/SepaPaymentMethod.md +8 -0
- data/docs/SepaSaleTransaction.md +14 -0
- data/docs/Shipping.md +1 -1
- data/docs/SoftDescriptor.md +2 -2
- data/docs/SplitShipment.md +1 -1
- data/docs/StoredCredential.md +4 -4
- data/docs/SubMerchantData.md +4 -4
- data/docs/SubMerchantSplit.md +9 -0
- data/docs/Transaction.md +4 -4
- data/docs/TransactionErrorResponse.md +11 -10
- data/docs/TransactionResponse.md +11 -10
- data/docs/UnionPayAuthenticationRequest.md +9 -0
- data/docs/UnionPayAuthenticationVerificationRequest.md +12 -0
- data/docs/UsePaymentToken.md +10 -0
- data/docs/VoidTransaction.md +10 -0
- data/first_data_gateway.gemspec +3 -2
- data/lib/openapi_client/api/authentication_api.rb +18 -18
- data/lib/openapi_client/api/card_info_lookup_api.rb +15 -15
- data/lib/openapi_client/api/card_verification_api.rb +13 -13
- data/lib/openapi_client/api/currency_conversion_api.rb +17 -17
- data/lib/openapi_client/api/fraud_detect_api.rb +13 -17
- data/lib/openapi_client/api/order_api.rb +45 -153
- data/lib/openapi_client/api/payment_api.rb +88 -287
- data/lib/openapi_client/api/payment_schedules_api.rb +61 -63
- data/lib/openapi_client/api/payment_token_api.rb +24 -24
- data/lib/openapi_client/api/payment_url_api.rb +13 -13
- data/lib/openapi_client/api_client.rb +2 -2
- data/lib/openapi_client/api_error.rb +2 -2
- data/lib/openapi_client/configuration.rb +4 -4
- data/lib/openapi_client/models/access_token_response.rb +5 -5
- data/lib/openapi_client/models/account_updater_response.rb +225 -0
- data/lib/openapi_client/models/additional_amount_rate.rb +15 -4
- data/lib/openapi_client/models/{primary_transaction_additional_details.rb → additional_details.rb} +11 -113
- data/lib/openapi_client/models/additional_transaction_details.rb +6 -6
- data/lib/openapi_client/models/address.rb +9 -9
- data/lib/openapi_client/models/airline.rb +15 -15
- data/lib/openapi_client/models/airline_ancillary_service_category.rb +7 -2
- data/lib/openapi_client/models/airline_travel_route.rb +7 -6
- data/lib/openapi_client/models/ali_pay.rb +4 -4
- data/lib/openapi_client/models/{referenced_order.rb → ali_pay_payment_method.rb} +16 -20
- data/lib/openapi_client/models/ali_pay_sale_transaction.rb +286 -0
- data/lib/openapi_client/models/amount.rb +5 -5
- data/lib/openapi_client/models/amount_components.rb +13 -23
- data/lib/openapi_client/models/authentication.rb +190 -0
- data/lib/openapi_client/models/{authentication_request.rb → authentication_redirect.rb} +24 -20
- data/lib/openapi_client/models/authentication_redirect_params.rb +205 -0
- data/lib/openapi_client/models/authentication_verification_request.rb +234 -0
- data/lib/openapi_client/models/avs_response.rb +4 -2
- data/lib/openapi_client/models/basic_response.rb +2 -7
- data/lib/openapi_client/models/billing.rb +7 -76
- data/lib/openapi_client/models/billing_address.rb +7 -7
- data/lib/openapi_client/models/billing_address_phone.rb +4 -4
- data/lib/openapi_client/models/car_rental.rb +9 -9
- data/lib/openapi_client/models/car_rental_extra_charges.rb +3 -3
- data/lib/openapi_client/models/card.rb +9 -8
- data/lib/openapi_client/models/card_function.rb +33 -0
- data/lib/openapi_client/models/card_info.rb +4 -17
- data/lib/openapi_client/models/card_info_lookup_request.rb +3 -3
- data/lib/openapi_client/models/card_info_lookup_response.rb +2 -7
- data/lib/openapi_client/models/card_verification_request.rb +32 -7
- data/lib/openapi_client/models/china_domestic.rb +2 -2
- data/lib/openapi_client/models/{authentication_response_verification.rb → china_domestic_payment_method.rb} +33 -48
- data/lib/openapi_client/models/china_pn_r_sale_transaction.rb +286 -0
- data/lib/openapi_client/models/client_locale.rb +5 -5
- data/lib/openapi_client/models/contact.rb +7 -6
- data/lib/openapi_client/models/create_payment_token.rb +209 -0
- data/lib/openapi_client/models/{authentication_response_verification_request.rb → currency_conversion.rb} +29 -35
- data/lib/openapi_client/models/customer.rb +9 -9
- data/lib/openapi_client/models/customer_address.rb +6 -6
- data/lib/openapi_client/models/customer_address_phone.rb +4 -4
- data/lib/openapi_client/models/dcc.rb +24 -4
- data/lib/openapi_client/models/dcc_exchange_rate_request.rb +273 -0
- data/lib/openapi_client/models/device.rb +4 -3
- data/lib/openapi_client/models/device_networks.rb +4 -3
- data/lib/openapi_client/models/document.rb +4 -4
- data/lib/openapi_client/models/dynamic_pricing.rb +235 -0
- data/lib/openapi_client/models/dynamic_pricing_exchange_rate_request.rb +273 -0
- data/lib/openapi_client/models/error.rb +2 -2
- data/lib/openapi_client/models/error_details.rb +2 -2
- data/lib/openapi_client/models/error_response.rb +2 -7
- data/lib/openapi_client/models/exchange_rate_request.rb +26 -103
- data/lib/openapi_client/models/exchange_rate_response.rb +20 -25
- data/lib/openapi_client/models/expiration.rb +5 -5
- data/lib/openapi_client/models/fraud_order.rb +2 -2
- data/lib/openapi_client/models/fraud_order_items.rb +4 -2
- data/lib/openapi_client/models/fraud_order_ship_to_address.rb +8 -8
- data/lib/openapi_client/models/frequency.rb +5 -5
- data/lib/openapi_client/models/industry_specific_extensions.rb +3 -3
- data/lib/openapi_client/models/installment_options.rb +63 -9
- data/lib/openapi_client/models/lodging.rb +8 -8
- data/lib/openapi_client/models/lodging_extra_charges.rb +2 -2
- data/lib/openapi_client/models/loyalty.rb +2 -2
- data/lib/openapi_client/models/merchant.rb +2 -2
- data/lib/openapi_client/models/merchant_location.rb +2 -2
- data/lib/openapi_client/models/merchant_location_merchant_address.rb +9 -9
- data/lib/openapi_client/models/order.rb +52 -7
- data/lib/openapi_client/models/order_error_response.rb +6 -21
- data/lib/openapi_client/models/order_response.rb +7 -22
- data/lib/openapi_client/models/pay_pal.rb +3 -3
- data/lib/openapi_client/models/pay_pal_payment_method.rb +189 -0
- data/lib/openapi_client/models/payment.rb +2 -2
- data/lib/openapi_client/models/payment_card.rb +38 -58
- data/lib/openapi_client/models/payment_card_credit_transaction.rb +295 -0
- data/lib/openapi_client/models/payment_card_forced_ticket_transaction.rb +320 -0
- data/lib/openapi_client/models/payment_card_payer_auth_transaction.rb +295 -0
- data/lib/openapi_client/models/payment_card_payment_method.rb +198 -0
- data/lib/openapi_client/models/payment_card_payment_tokenization_request.rb +264 -0
- data/lib/openapi_client/models/payment_card_pre_auth_transaction.rb +325 -0
- data/lib/openapi_client/models/payment_card_sale_transaction.rb +325 -0
- data/lib/openapi_client/models/payment_facilitator.rb +7 -7
- data/lib/openapi_client/models/payment_issuer_response.rb +2 -2
- data/lib/openapi_client/models/payment_method.rb +5 -108
- data/lib/openapi_client/models/{basket_item.rb → payment_method_details.rb} +17 -38
- data/lib/openapi_client/models/payment_method_payment_schedules_request.rb +426 -0
- data/lib/openapi_client/models/payment_method_type.rb +47 -0
- data/lib/openapi_client/models/payment_pay_method.rb +4 -4
- data/lib/openapi_client/models/payment_schedules_error_response.rb +2 -7
- data/lib/openapi_client/models/payment_schedules_request.rb +41 -30
- data/lib/openapi_client/models/payment_schedules_response.rb +2 -7
- data/lib/openapi_client/models/payment_token_credit_transaction.rb +295 -0
- data/lib/openapi_client/models/{payment_tokenization.rb → payment_token_details.rb} +18 -96
- data/lib/openapi_client/models/payment_token_payment_method.rb +198 -0
- data/lib/openapi_client/models/payment_token_pre_auth_transaction.rb +316 -0
- data/lib/openapi_client/models/payment_token_sale_transaction.rb +316 -0
- data/lib/openapi_client/models/payment_tokenization_error_response.rb +10 -15
- data/lib/openapi_client/models/payment_tokenization_request.rb +60 -61
- data/lib/openapi_client/models/payment_tokenization_response.rb +10 -15
- data/lib/openapi_client/models/payment_url_error_response.rb +4 -9
- data/lib/openapi_client/models/payment_url_request.rb +11 -16
- data/lib/openapi_client/models/payment_url_response.rb +4 -9
- data/lib/openapi_client/models/payment_verification3ds.rb +5 -5
- data/lib/openapi_client/models/payment_verification_avs.rb +5 -5
- data/lib/openapi_client/models/payment_verification_cvv.rb +5 -5
- data/lib/openapi_client/models/paypal_credit_transaction.rb +286 -0
- data/lib/openapi_client/models/post_auth_transaction.rb +266 -0
- data/lib/openapi_client/models/primary_transaction.rb +30 -118
- data/lib/openapi_client/models/processor_data.rb +48 -7
- data/lib/openapi_client/models/purchase_cards.rb +3 -2
- data/lib/openapi_client/models/purchase_cards_level2.rb +6 -5
- data/lib/openapi_client/models/purchase_cards_level3.rb +9 -3
- data/lib/openapi_client/models/purchase_cards_level3_line_items.rb +16 -16
- data/lib/openapi_client/models/recurring_payment_details.rb +15 -15
- data/lib/openapi_client/models/recurring_payment_details_response.rb +6 -21
- data/lib/openapi_client/models/referenced_order_payment_schedules_request.rb +427 -0
- data/lib/openapi_client/models/referenced_order_payment_tokenization_request.rb +265 -0
- data/lib/openapi_client/models/response_amount_components.rb +245 -0
- data/lib/openapi_client/models/response_type.rb +2 -2
- data/lib/openapi_client/models/return_transaction.rb +257 -0
- data/lib/openapi_client/models/score_only_request.rb +4 -4
- data/lib/openapi_client/models/score_only_response.rb +6 -5
- data/lib/openapi_client/models/score_only_response_fraud_score.rb +4 -3
- data/lib/openapi_client/models/score_only_response_fraud_score_explanations.rb +5 -2
- data/lib/openapi_client/models/secondary_transaction.rb +45 -40
- data/lib/openapi_client/models/secure3d_authentication_request.rb +190 -0
- data/lib/openapi_client/models/{payment_card_authentication_result.rb → secure3d_authentication_result.rb} +34 -41
- data/lib/openapi_client/models/secure3d_authentication_verification_request.rb +264 -0
- data/lib/openapi_client/models/secure3d_response.rb +4 -3
- data/lib/openapi_client/models/sepa.rb +6 -6
- data/lib/openapi_client/models/sepa_mandate.rb +5 -5
- data/lib/openapi_client/models/{secondary_transaction_additional_details.rb → sepa_payment_method.rb} +16 -10
- data/lib/openapi_client/models/sepa_sale_transaction.rb +286 -0
- data/lib/openapi_client/models/shipping.rb +4 -3
- data/lib/openapi_client/models/soft_descriptor.rb +15 -15
- data/lib/openapi_client/models/split_shipment.rb +4 -4
- data/lib/openapi_client/models/stored_credential.rb +7 -7
- data/lib/openapi_client/models/sub_merchant_data.rb +7 -7
- data/lib/openapi_client/models/sub_merchant_split.rb +233 -0
- data/lib/openapi_client/models/transaction.rb +18 -18
- data/lib/openapi_client/models/transaction_error_response.rb +28 -24
- data/lib/openapi_client/models/transaction_origin.rb +2 -2
- data/lib/openapi_client/models/transaction_response.rb +32 -28
- data/lib/openapi_client/models/transaction_type.rb +2 -2
- data/lib/openapi_client/models/union_pay_authentication_request.rb +224 -0
- data/lib/openapi_client/models/union_pay_authentication_verification_request.rb +249 -0
- data/lib/openapi_client/models/use_payment_token.rb +233 -0
- data/lib/openapi_client/models/{card_verifications_transaction.rb → void_transaction.rb} +28 -17
- data/lib/openapi_client/version.rb +3 -3
- data/lib/openapi_client.rb +50 -12
- data/lib/simple/gateway.rb +8 -59
- data/lib/simple_client.rb +4 -4
- data/spec/api/authentication_api_spec.rb +7 -7
- data/spec/api/card_info_lookup_api_spec.rb +8 -8
- data/spec/api/card_verification_api_spec.rb +7 -7
- data/spec/api/currency_conversion_api_spec.rb +9 -9
- data/spec/api/fraud_detect_api_spec.rb +7 -7
- data/spec/api/order_api_spec.rb +19 -40
- data/spec/api/payment_api_spec.rb +33 -72
- data/spec/api/payment_schedules_api_spec.rb +29 -29
- data/spec/api/payment_token_api_spec.rb +12 -12
- data/spec/api/payment_url_api_spec.rb +7 -7
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +5 -5
- data/spec/models/access_token_response_spec.rb +2 -2
- data/spec/models/account_updater_response_spec.rb +65 -0
- data/spec/models/additional_amount_rate_spec.rb +2 -2
- data/spec/models/additional_details_spec.rb +53 -0
- data/spec/models/additional_transaction_details_spec.rb +2 -2
- data/spec/models/address_spec.rb +2 -2
- data/spec/models/airline_ancillary_service_category_spec.rb +2 -2
- data/spec/models/airline_spec.rb +2 -2
- data/spec/models/airline_travel_route_spec.rb +2 -2
- data/spec/models/ali_pay_payment_method_spec.rb +41 -0
- data/spec/models/ali_pay_sale_transaction_spec.rb +77 -0
- data/spec/models/ali_pay_spec.rb +2 -2
- data/spec/models/amount_components_spec.rb +2 -8
- data/spec/models/amount_spec.rb +2 -2
- data/spec/models/authentication_redirect_params_spec.rb +53 -0
- data/spec/models/{authentication_response_verification_spec.rb → authentication_redirect_spec.rb} +11 -17
- data/spec/models/authentication_spec.rb +41 -0
- data/spec/models/{authentication_response_verification_request_spec.rb → authentication_verification_request_spec.rb} +11 -11
- data/spec/models/avs_response_spec.rb +2 -2
- data/spec/models/basic_response_spec.rb +2 -2
- data/spec/models/billing_address_phone_spec.rb +2 -2
- data/spec/models/billing_address_spec.rb +2 -2
- data/spec/models/billing_spec.rb +2 -18
- data/spec/models/car_rental_extra_charges_spec.rb +2 -2
- data/spec/models/car_rental_spec.rb +2 -2
- data/spec/models/card_function_spec.rb +35 -0
- data/spec/models/card_info_lookup_request_spec.rb +2 -2
- data/spec/models/card_info_lookup_response_spec.rb +2 -2
- data/spec/models/card_info_spec.rb +2 -6
- data/spec/models/card_spec.rb +2 -2
- data/spec/models/card_verification_request_spec.rb +8 -2
- data/spec/models/china_domestic_payment_method_spec.rb +51 -0
- data/spec/models/china_domestic_spec.rb +2 -2
- data/spec/models/china_pn_r_sale_transaction_spec.rb +77 -0
- data/spec/models/client_locale_spec.rb +2 -2
- data/spec/models/contact_spec.rb +2 -2
- data/spec/models/create_payment_token_spec.rb +53 -0
- data/spec/models/currency_conversion_spec.rb +47 -0
- data/spec/models/customer_address_phone_spec.rb +2 -2
- data/spec/models/customer_address_spec.rb +2 -2
- data/spec/models/customer_spec.rb +2 -2
- data/spec/models/dcc_exchange_rate_request_spec.rb +59 -0
- data/spec/models/dcc_spec.rb +8 -2
- data/spec/models/device_networks_spec.rb +2 -2
- data/spec/models/device_spec.rb +2 -2
- data/spec/models/document_spec.rb +2 -2
- data/spec/models/dynamic_pricing_exchange_rate_request_spec.rb +59 -0
- data/spec/models/{basket_item_spec.rb → dynamic_pricing_spec.rb} +12 -12
- data/spec/models/error_details_spec.rb +2 -2
- data/spec/models/error_response_spec.rb +2 -2
- data/spec/models/error_spec.rb +2 -2
- data/spec/models/exchange_rate_request_spec.rb +4 -20
- data/spec/models/exchange_rate_response_spec.rb +3 -3
- data/spec/models/expiration_spec.rb +2 -2
- data/spec/models/fraud_order_items_spec.rb +2 -2
- data/spec/models/fraud_order_ship_to_address_spec.rb +2 -2
- data/spec/models/fraud_order_spec.rb +2 -2
- data/spec/models/frequency_spec.rb +2 -2
- data/spec/models/industry_specific_extensions_spec.rb +2 -2
- data/spec/models/installment_options_spec.rb +18 -2
- data/spec/models/lodging_extra_charges_spec.rb +2 -2
- data/spec/models/lodging_spec.rb +2 -2
- data/spec/models/loyalty_spec.rb +2 -2
- data/spec/models/merchant_location_merchant_address_spec.rb +2 -2
- data/spec/models/merchant_location_spec.rb +2 -2
- data/spec/models/merchant_spec.rb +2 -2
- data/spec/models/order_error_response_spec.rb +2 -8
- data/spec/models/order_response_spec.rb +2 -8
- data/spec/models/order_spec.rb +32 -2
- data/spec/models/pay_pal_payment_method_spec.rb +41 -0
- data/spec/models/pay_pal_spec.rb +2 -2
- data/spec/models/payment_card_credit_transaction_spec.rb +83 -0
- data/spec/models/{primary_transaction_additional_details_spec.rb → payment_card_forced_ticket_transaction_spec.rb} +16 -22
- data/spec/models/payment_card_payer_auth_transaction_spec.rb +83 -0
- data/spec/models/payment_card_payment_method_spec.rb +47 -0
- data/spec/models/payment_card_payment_tokenization_request_spec.rb +71 -0
- data/spec/models/payment_card_pre_auth_transaction_spec.rb +101 -0
- data/spec/models/payment_card_sale_transaction_spec.rb +101 -0
- data/spec/models/payment_card_spec.rb +3 -21
- data/spec/models/payment_facilitator_spec.rb +2 -2
- data/spec/models/payment_issuer_response_spec.rb +2 -2
- data/spec/models/payment_method_details_spec.rb +47 -0
- data/spec/models/payment_method_payment_schedules_request_spec.rb +137 -0
- data/spec/models/payment_method_spec.rb +2 -48
- data/spec/models/payment_method_type_spec.rb +35 -0
- data/spec/models/payment_pay_method_spec.rb +2 -2
- data/spec/models/payment_schedules_error_response_spec.rb +2 -2
- data/spec/models/payment_schedules_request_spec.rb +5 -11
- data/spec/models/payment_schedules_response_spec.rb +2 -2
- data/spec/models/payment_spec.rb +2 -2
- data/spec/models/payment_token_credit_transaction_spec.rb +83 -0
- data/spec/models/{payment_tokenization_spec.rb → payment_token_details_spec.rb} +9 -25
- data/spec/models/payment_token_payment_method_spec.rb +47 -0
- data/spec/models/payment_token_pre_auth_transaction_spec.rb +95 -0
- data/spec/models/payment_token_sale_transaction_spec.rb +95 -0
- data/spec/models/payment_tokenization_error_response_spec.rb +2 -2
- data/spec/models/payment_tokenization_request_spec.rb +12 -10
- data/spec/models/payment_tokenization_response_spec.rb +2 -2
- data/spec/models/payment_url_error_response_spec.rb +2 -2
- data/spec/models/payment_url_request_spec.rb +3 -3
- data/spec/models/payment_url_response_spec.rb +2 -2
- data/spec/models/payment_verification3ds_spec.rb +2 -2
- data/spec/models/payment_verification_avs_spec.rb +2 -2
- data/spec/models/payment_verification_cvv_spec.rb +2 -2
- data/spec/models/paypal_credit_transaction_spec.rb +77 -0
- data/spec/models/post_auth_transaction_spec.rb +77 -0
- data/spec/models/primary_transaction_spec.rb +5 -59
- data/spec/models/processor_data_spec.rb +14 -2
- data/spec/models/purchase_cards_level2_spec.rb +2 -2
- data/spec/models/purchase_cards_level3_line_items_spec.rb +3 -3
- data/spec/models/purchase_cards_level3_spec.rb +2 -2
- data/spec/models/purchase_cards_spec.rb +2 -2
- data/spec/models/recurring_payment_details_response_spec.rb +2 -8
- data/spec/models/recurring_payment_details_spec.rb +4 -4
- data/spec/models/referenced_order_payment_schedules_request_spec.rb +137 -0
- data/spec/models/referenced_order_payment_tokenization_request_spec.rb +71 -0
- data/spec/models/response_amount_components_spec.rb +77 -0
- data/spec/models/response_type_spec.rb +2 -2
- data/spec/models/return_transaction_spec.rb +71 -0
- data/spec/models/score_only_request_spec.rb +2 -2
- data/spec/models/score_only_response_fraud_score_explanations_spec.rb +2 -2
- data/spec/models/score_only_response_fraud_score_spec.rb +2 -2
- data/spec/models/score_only_response_spec.rb +2 -2
- data/spec/models/secondary_transaction_spec.rb +5 -17
- data/spec/models/secure3d_authentication_request_spec.rb +41 -0
- data/spec/models/{payment_card_authentication_result_spec.rb → secure3d_authentication_result_spec.rb} +11 -15
- data/spec/models/secure3d_authentication_verification_request_spec.rb +71 -0
- data/spec/models/secure3d_response_spec.rb +2 -2
- data/spec/models/sepa_mandate_spec.rb +2 -2
- data/spec/models/sepa_payment_method_spec.rb +41 -0
- data/spec/models/sepa_sale_transaction_spec.rb +77 -0
- data/spec/models/sepa_spec.rb +2 -2
- data/spec/models/shipping_spec.rb +2 -2
- data/spec/models/soft_descriptor_spec.rb +3 -3
- data/spec/models/split_shipment_spec.rb +2 -2
- data/spec/models/stored_credential_spec.rb +2 -2
- data/spec/models/sub_merchant_data_spec.rb +2 -2
- data/spec/models/{card_verifications_transaction_spec.rb → sub_merchant_split_spec.rb} +10 -10
- data/spec/models/transaction_error_response_spec.rb +10 -4
- data/spec/models/transaction_origin_spec.rb +2 -2
- data/spec/models/transaction_response_spec.rb +10 -4
- data/spec/models/transaction_spec.rb +4 -4
- data/spec/models/transaction_type_spec.rb +2 -2
- data/spec/models/{authentication_request_spec.rb → union_pay_authentication_request_spec.rb} +9 -13
- data/spec/models/union_pay_authentication_verification_request_spec.rb +65 -0
- data/spec/models/use_payment_token_spec.rb +53 -0
- data/spec/models/void_transaction_spec.rb +53 -0
- data/spec/spec_helper.rb +2 -2
- metadata +195 -42
- data/docs/AuthenticationRequest.md +0 -9
- data/docs/AuthenticationResponseVerification.md +0 -11
- data/docs/AuthenticationResponseVerificationRequest.md +0 -11
- data/docs/BasketItem.md +0 -11
- data/docs/CardVerificationsTransaction.md +0 -9
- data/docs/PaymentCardAuthenticationResult.md +0 -12
- data/docs/PaymentTokenization.md +0 -16
- data/docs/PrimaryTransactionAdditionalDetails.md +0 -16
- data/docs/ReferencedOrder.md +0 -9
- data/spec/models/referenced_order_spec.rb +0 -47
- data/spec/models/secondary_transaction_additional_details_spec.rb +0 -41
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Payment Gateway API Specification.
|
3
3
|
|
4
|
-
#
|
4
|
+
#The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
|
5
5
|
|
6
|
-
OpenAPI spec version: 6.
|
6
|
+
OpenAPI spec version: 6.6.0.20190329.001
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: unset
|
@@ -13,80 +13,44 @@ OpenAPI Generator version: unset
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
|
-
#
|
16
|
+
# Provides shared fields for all PrimaryTransaction request types. Abstract class, do not use this class directly, use one of its children.
|
17
17
|
class PrimaryTransaction
|
18
|
-
|
18
|
+
# Object name of the primary transaction request.
|
19
|
+
attr_accessor :request_type
|
19
20
|
|
20
21
|
# An optional outlet ID for clients that support multiple stores in the same app.
|
21
22
|
attr_accessor :store_id
|
22
23
|
|
23
|
-
# The unique merchant transaction ID from the
|
24
|
+
# The unique merchant transaction ID from the request header, if supplied.
|
24
25
|
attr_accessor :merchant_transaction_id
|
25
26
|
|
26
|
-
attr_accessor :
|
27
|
-
|
28
|
-
attr_accessor :amount
|
27
|
+
attr_accessor :transaction_amount
|
29
28
|
|
30
|
-
attr_accessor :
|
29
|
+
attr_accessor :transaction_origin
|
31
30
|
|
32
31
|
attr_accessor :order
|
33
32
|
|
34
|
-
# Required for some payment methods (for example, Klarna)
|
35
|
-
attr_accessor :basket_items
|
36
|
-
|
37
|
-
attr_accessor :split_shipment
|
38
|
-
|
39
|
-
attr_accessor :additional_details
|
40
|
-
|
41
|
-
attr_accessor :industry_specific_extensions
|
42
|
-
|
43
|
-
attr_accessor :stored_credentials
|
44
|
-
|
45
|
-
attr_accessor :purchase_card
|
46
|
-
|
47
|
-
attr_accessor :payment_facilitator
|
48
|
-
|
49
|
-
attr_accessor :soft_descriptor
|
50
|
-
|
51
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
34
|
def self.attribute_map
|
53
35
|
{
|
54
|
-
:'
|
36
|
+
:'request_type' => :'requestType',
|
55
37
|
:'store_id' => :'storeId',
|
56
38
|
:'merchant_transaction_id' => :'merchantTransactionId',
|
39
|
+
:'transaction_amount' => :'transactionAmount',
|
57
40
|
:'transaction_origin' => :'transactionOrigin',
|
58
|
-
:'
|
59
|
-
:'payment_method' => :'paymentMethod',
|
60
|
-
:'order' => :'order',
|
61
|
-
:'basket_items' => :'basketItems',
|
62
|
-
:'split_shipment' => :'splitShipment',
|
63
|
-
:'additional_details' => :'additionalDetails',
|
64
|
-
:'industry_specific_extensions' => :'industrySpecificExtensions',
|
65
|
-
:'stored_credentials' => :'storedCredentials',
|
66
|
-
:'purchase_card' => :'purchaseCard',
|
67
|
-
:'payment_facilitator' => :'paymentFacilitator',
|
68
|
-
:'soft_descriptor' => :'softDescriptor'
|
41
|
+
:'order' => :'order'
|
69
42
|
}
|
70
43
|
end
|
71
44
|
|
72
45
|
# Attribute type mapping.
|
73
46
|
def self.openapi_types
|
74
47
|
{
|
75
|
-
:'
|
48
|
+
:'request_type' => :'String',
|
76
49
|
:'store_id' => :'String',
|
77
50
|
:'merchant_transaction_id' => :'String',
|
51
|
+
:'transaction_amount' => :'Amount',
|
78
52
|
:'transaction_origin' => :'TransactionOrigin',
|
79
|
-
:'
|
80
|
-
:'payment_method' => :'PaymentMethod',
|
81
|
-
:'order' => :'Order',
|
82
|
-
:'basket_items' => :'Array<BasketItem>',
|
83
|
-
:'split_shipment' => :'SplitShipment',
|
84
|
-
:'additional_details' => :'PrimaryTransactionAdditionalDetails',
|
85
|
-
:'industry_specific_extensions' => :'IndustrySpecificExtensions',
|
86
|
-
:'stored_credentials' => :'StoredCredential',
|
87
|
-
:'purchase_card' => :'PurchaseCards',
|
88
|
-
:'payment_facilitator' => :'PaymentFacilitator',
|
89
|
-
:'soft_descriptor' => :'SoftDescriptor'
|
53
|
+
:'order' => :'Order'
|
90
54
|
}
|
91
55
|
end
|
92
56
|
|
@@ -98,8 +62,8 @@ module OpenapiClient
|
|
98
62
|
# convert string to symbol for hash key
|
99
63
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
100
64
|
|
101
|
-
if attributes.has_key?(:'
|
102
|
-
self.
|
65
|
+
if attributes.has_key?(:'requestType')
|
66
|
+
self.request_type = attributes[:'requestType']
|
103
67
|
end
|
104
68
|
|
105
69
|
if attributes.has_key?(:'storeId')
|
@@ -110,63 +74,25 @@ module OpenapiClient
|
|
110
74
|
self.merchant_transaction_id = attributes[:'merchantTransactionId']
|
111
75
|
end
|
112
76
|
|
113
|
-
if attributes.has_key?(:'
|
114
|
-
self.
|
77
|
+
if attributes.has_key?(:'transactionAmount')
|
78
|
+
self.transaction_amount = attributes[:'transactionAmount']
|
115
79
|
end
|
116
80
|
|
117
|
-
if attributes.has_key?(:'
|
118
|
-
self.
|
119
|
-
end
|
120
|
-
|
121
|
-
if attributes.has_key?(:'paymentMethod')
|
122
|
-
self.payment_method = attributes[:'paymentMethod']
|
81
|
+
if attributes.has_key?(:'transactionOrigin')
|
82
|
+
self.transaction_origin = attributes[:'transactionOrigin']
|
123
83
|
end
|
124
84
|
|
125
85
|
if attributes.has_key?(:'order')
|
126
86
|
self.order = attributes[:'order']
|
127
87
|
end
|
128
|
-
|
129
|
-
if attributes.has_key?(:'basketItems')
|
130
|
-
if (value = attributes[:'basketItems']).is_a?(Array)
|
131
|
-
self.basket_items = value
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
if attributes.has_key?(:'splitShipment')
|
136
|
-
self.split_shipment = attributes[:'splitShipment']
|
137
|
-
end
|
138
|
-
|
139
|
-
if attributes.has_key?(:'additionalDetails')
|
140
|
-
self.additional_details = attributes[:'additionalDetails']
|
141
|
-
end
|
142
|
-
|
143
|
-
if attributes.has_key?(:'industrySpecificExtensions')
|
144
|
-
self.industry_specific_extensions = attributes[:'industrySpecificExtensions']
|
145
|
-
end
|
146
|
-
|
147
|
-
if attributes.has_key?(:'storedCredentials')
|
148
|
-
self.stored_credentials = attributes[:'storedCredentials']
|
149
|
-
end
|
150
|
-
|
151
|
-
if attributes.has_key?(:'purchaseCard')
|
152
|
-
self.purchase_card = attributes[:'purchaseCard']
|
153
|
-
end
|
154
|
-
|
155
|
-
if attributes.has_key?(:'paymentFacilitator')
|
156
|
-
self.payment_facilitator = attributes[:'paymentFacilitator']
|
157
|
-
end
|
158
|
-
|
159
|
-
if attributes.has_key?(:'softDescriptor')
|
160
|
-
self.soft_descriptor = attributes[:'softDescriptor']
|
161
|
-
end
|
162
88
|
end
|
163
89
|
|
164
90
|
# Show invalid properties with the reasons. Usually used together with valid?
|
165
91
|
# @return Array for valid properties with the reasons
|
166
92
|
def list_invalid_properties
|
167
93
|
invalid_properties = Array.new
|
168
|
-
if @
|
169
|
-
invalid_properties.push('invalid value for "
|
94
|
+
if @request_type.nil?
|
95
|
+
invalid_properties.push('invalid value for "request_type", request_type cannot be nil.')
|
170
96
|
end
|
171
97
|
|
172
98
|
if !@store_id.nil? && @store_id.to_s.length > 20
|
@@ -177,12 +103,8 @@ module OpenapiClient
|
|
177
103
|
invalid_properties.push('invalid value for "merchant_transaction_id", the character length must be smaller than or equal to 40.')
|
178
104
|
end
|
179
105
|
|
180
|
-
if @
|
181
|
-
invalid_properties.push('invalid value for "
|
182
|
-
end
|
183
|
-
|
184
|
-
if @payment_method.nil?
|
185
|
-
invalid_properties.push('invalid value for "payment_method", payment_method cannot be nil.')
|
106
|
+
if @transaction_amount.nil?
|
107
|
+
invalid_properties.push('invalid value for "transaction_amount", transaction_amount cannot be nil.')
|
186
108
|
end
|
187
109
|
|
188
110
|
invalid_properties
|
@@ -191,11 +113,10 @@ module OpenapiClient
|
|
191
113
|
# Check to see if the all the properties in the model are valid
|
192
114
|
# @return true if the model is valid
|
193
115
|
def valid?
|
194
|
-
return false if @
|
116
|
+
return false if @request_type.nil?
|
195
117
|
return false if !@store_id.nil? && @store_id.to_s.length > 20
|
196
118
|
return false if !@merchant_transaction_id.nil? && @merchant_transaction_id.to_s.length > 40
|
197
|
-
return false if @
|
198
|
-
return false if @payment_method.nil?
|
119
|
+
return false if @transaction_amount.nil?
|
199
120
|
true
|
200
121
|
end
|
201
122
|
|
@@ -224,21 +145,12 @@ module OpenapiClient
|
|
224
145
|
def ==(o)
|
225
146
|
return true if self.equal?(o)
|
226
147
|
self.class == o.class &&
|
227
|
-
|
148
|
+
request_type == o.request_type &&
|
228
149
|
store_id == o.store_id &&
|
229
150
|
merchant_transaction_id == o.merchant_transaction_id &&
|
151
|
+
transaction_amount == o.transaction_amount &&
|
230
152
|
transaction_origin == o.transaction_origin &&
|
231
|
-
|
232
|
-
payment_method == o.payment_method &&
|
233
|
-
order == o.order &&
|
234
|
-
basket_items == o.basket_items &&
|
235
|
-
split_shipment == o.split_shipment &&
|
236
|
-
additional_details == o.additional_details &&
|
237
|
-
industry_specific_extensions == o.industry_specific_extensions &&
|
238
|
-
stored_credentials == o.stored_credentials &&
|
239
|
-
purchase_card == o.purchase_card &&
|
240
|
-
payment_facilitator == o.payment_facilitator &&
|
241
|
-
soft_descriptor == o.soft_descriptor
|
153
|
+
order == o.order
|
242
154
|
end
|
243
155
|
|
244
156
|
# @see the `==` method
|
@@ -250,7 +162,7 @@ module OpenapiClient
|
|
250
162
|
# Calculates hash code according to all attributes.
|
251
163
|
# @return [Fixnum] Hash code
|
252
164
|
def hash
|
253
|
-
[
|
165
|
+
[request_type, store_id, merchant_transaction_id, transaction_amount, transaction_origin, order].hash
|
254
166
|
end
|
255
167
|
|
256
168
|
# 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,22 +13,34 @@ OpenAPI Generator version: unset
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
|
-
# Model for processor data
|
16
|
+
# Model for processor data.
|
17
17
|
class ProcessorData
|
18
|
+
# Reference transaction ID.
|
18
19
|
attr_accessor :reference_number
|
19
20
|
|
21
|
+
# Code returned to confirm transaction.
|
20
22
|
attr_accessor :authorization_code
|
21
23
|
|
24
|
+
# Response code from endpoints.
|
22
25
|
attr_accessor :response_code
|
23
26
|
|
27
|
+
# Network used for transaction.
|
28
|
+
attr_accessor :network
|
29
|
+
|
30
|
+
# Raw response code from issuer.
|
24
31
|
attr_accessor :association_response_code
|
25
32
|
|
33
|
+
# Message returned from endpoints.
|
26
34
|
attr_accessor :response_message
|
27
35
|
|
28
36
|
attr_accessor :avs_response
|
29
37
|
|
38
|
+
# Code returned for CVV.
|
30
39
|
attr_accessor :security_code_response
|
31
40
|
|
41
|
+
# Code to map merchant advice code to ISO specification.
|
42
|
+
attr_accessor :merchant_advice_code_indicator
|
43
|
+
|
32
44
|
class EnumAttributeValidator
|
33
45
|
attr_reader :datatype
|
34
46
|
attr_reader :allowable_values
|
@@ -57,10 +69,12 @@ module OpenapiClient
|
|
57
69
|
:'reference_number' => :'referenceNumber',
|
58
70
|
:'authorization_code' => :'authorizationCode',
|
59
71
|
:'response_code' => :'responseCode',
|
72
|
+
:'network' => :'network',
|
60
73
|
:'association_response_code' => :'associationResponseCode',
|
61
74
|
:'response_message' => :'responseMessage',
|
62
75
|
:'avs_response' => :'avsResponse',
|
63
|
-
:'security_code_response' => :'securityCodeResponse'
|
76
|
+
:'security_code_response' => :'securityCodeResponse',
|
77
|
+
:'merchant_advice_code_indicator' => :'merchantAdviceCodeIndicator'
|
64
78
|
}
|
65
79
|
end
|
66
80
|
|
@@ -70,10 +84,12 @@ module OpenapiClient
|
|
70
84
|
:'reference_number' => :'String',
|
71
85
|
:'authorization_code' => :'String',
|
72
86
|
:'response_code' => :'String',
|
87
|
+
:'network' => :'String',
|
73
88
|
:'association_response_code' => :'String',
|
74
89
|
:'response_message' => :'String',
|
75
90
|
:'avs_response' => :'AVSResponse',
|
76
|
-
:'security_code_response' => :'String'
|
91
|
+
:'security_code_response' => :'String',
|
92
|
+
:'merchant_advice_code_indicator' => :'String'
|
77
93
|
}
|
78
94
|
end
|
79
95
|
|
@@ -97,6 +113,10 @@ module OpenapiClient
|
|
97
113
|
self.response_code = attributes[:'responseCode']
|
98
114
|
end
|
99
115
|
|
116
|
+
if attributes.has_key?(:'network')
|
117
|
+
self.network = attributes[:'network']
|
118
|
+
end
|
119
|
+
|
100
120
|
if attributes.has_key?(:'associationResponseCode')
|
101
121
|
self.association_response_code = attributes[:'associationResponseCode']
|
102
122
|
end
|
@@ -112,12 +132,20 @@ module OpenapiClient
|
|
112
132
|
if attributes.has_key?(:'securityCodeResponse')
|
113
133
|
self.security_code_response = attributes[:'securityCodeResponse']
|
114
134
|
end
|
135
|
+
|
136
|
+
if attributes.has_key?(:'merchantAdviceCodeIndicator')
|
137
|
+
self.merchant_advice_code_indicator = attributes[:'merchantAdviceCodeIndicator']
|
138
|
+
end
|
115
139
|
end
|
116
140
|
|
117
141
|
# Show invalid properties with the reasons. Usually used together with valid?
|
118
142
|
# @return Array for valid properties with the reasons
|
119
143
|
def list_invalid_properties
|
120
144
|
invalid_properties = Array.new
|
145
|
+
if !@merchant_advice_code_indicator.nil? && @merchant_advice_code_indicator !~ Regexp.new(/[0-9]{2}/)
|
146
|
+
invalid_properties.push('invalid value for "merchant_advice_code_indicator", must conform to the pattern /[0-9]{2}/.')
|
147
|
+
end
|
148
|
+
|
121
149
|
invalid_properties
|
122
150
|
end
|
123
151
|
|
@@ -126,6 +154,7 @@ module OpenapiClient
|
|
126
154
|
def valid?
|
127
155
|
security_code_response_validator = EnumAttributeValidator.new('String', ['MATCHED', 'NOT_MATCHED', 'NOT_PROCESSED', 'NOT_PRESENT', 'NOT_CERTIFIED'])
|
128
156
|
return false unless security_code_response_validator.valid?(@security_code_response)
|
157
|
+
return false if !@merchant_advice_code_indicator.nil? && @merchant_advice_code_indicator !~ Regexp.new(/[0-9]{2}/)
|
129
158
|
true
|
130
159
|
end
|
131
160
|
|
@@ -139,6 +168,16 @@ module OpenapiClient
|
|
139
168
|
@security_code_response = security_code_response
|
140
169
|
end
|
141
170
|
|
171
|
+
# Custom attribute writer method with validation
|
172
|
+
# @param [Object] merchant_advice_code_indicator Value to be assigned
|
173
|
+
def merchant_advice_code_indicator=(merchant_advice_code_indicator)
|
174
|
+
if !merchant_advice_code_indicator.nil? && merchant_advice_code_indicator !~ Regexp.new(/[0-9]{2}/)
|
175
|
+
fail ArgumentError, 'invalid value for "merchant_advice_code_indicator", must conform to the pattern /[0-9]{2}/.'
|
176
|
+
end
|
177
|
+
|
178
|
+
@merchant_advice_code_indicator = merchant_advice_code_indicator
|
179
|
+
end
|
180
|
+
|
142
181
|
# Checks equality by comparing each attribute.
|
143
182
|
# @param [Object] Object to be compared
|
144
183
|
def ==(o)
|
@@ -147,10 +186,12 @@ module OpenapiClient
|
|
147
186
|
reference_number == o.reference_number &&
|
148
187
|
authorization_code == o.authorization_code &&
|
149
188
|
response_code == o.response_code &&
|
189
|
+
network == o.network &&
|
150
190
|
association_response_code == o.association_response_code &&
|
151
191
|
response_message == o.response_message &&
|
152
192
|
avs_response == o.avs_response &&
|
153
|
-
security_code_response == o.security_code_response
|
193
|
+
security_code_response == o.security_code_response &&
|
194
|
+
merchant_advice_code_indicator == o.merchant_advice_code_indicator
|
154
195
|
end
|
155
196
|
|
156
197
|
# @see the `==` method
|
@@ -162,7 +203,7 @@ module OpenapiClient
|
|
162
203
|
# Calculates hash code according to all attributes.
|
163
204
|
# @return [Fixnum] Hash code
|
164
205
|
def hash
|
165
|
-
[reference_number, authorization_code, response_code, association_response_code, response_message, avs_response, security_code_response].hash
|
206
|
+
[reference_number, authorization_code, response_code, network, association_response_code, response_message, avs_response, security_code_response, merchant_advice_code_indicator].hash
|
166
207
|
end
|
167
208
|
|
168
209
|
# 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,6 +13,7 @@ OpenAPI Generator version: unset
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
|
+
# Purchase card details.
|
16
17
|
class PurchaseCards
|
17
18
|
attr_accessor :level2
|
18
19
|
|
@@ -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,14 +13,15 @@ OpenAPI Generator version: unset
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
|
+
# Level 2 data for monitoring and controlling corporate expenditures.
|
16
17
|
class PurchaseCardsLevel2
|
17
|
-
# Customer
|
18
|
+
# Customer code/customer reference ID.
|
18
19
|
attr_accessor :customer_reference_id
|
19
20
|
|
20
|
-
# Purchase
|
21
|
+
# Purchase identifier/merchant-related data.
|
21
22
|
attr_accessor :supplier_invoice_number
|
22
23
|
|
23
|
-
# Merchant VAT registration/
|
24
|
+
# Merchant VAT registration/single business reference number/merchant tax ID or corporation VAT number.
|
24
25
|
attr_accessor :supplier_vat_registration_number
|
25
26
|
|
26
27
|
attr_accessor :total_discount_amount_and_rate
|
@@ -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,8 +13,9 @@ OpenAPI Generator version: unset
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
|
+
# Level 3 data for monitoring and controlling corporate expenditures.
|
16
17
|
class PurchaseCardsLevel3
|
17
|
-
#
|
18
|
+
# Line items.
|
18
19
|
attr_accessor :line_items
|
19
20
|
|
20
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -50,12 +51,17 @@ module OpenapiClient
|
|
50
51
|
# @return Array for valid properties with the reasons
|
51
52
|
def list_invalid_properties
|
52
53
|
invalid_properties = Array.new
|
54
|
+
if @line_items.nil?
|
55
|
+
invalid_properties.push('invalid value for "line_items", line_items cannot be nil.')
|
56
|
+
end
|
57
|
+
|
53
58
|
invalid_properties
|
54
59
|
end
|
55
60
|
|
56
61
|
# Check to see if the all the properties in the model are valid
|
57
62
|
# @return true if the model is valid
|
58
63
|
def valid?
|
64
|
+
return false if @line_items.nil?
|
59
65
|
true
|
60
66
|
end
|
61
67
|
|
@@ -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
|
@@ -14,29 +14,29 @@ require 'date'
|
|
14
14
|
|
15
15
|
module OpenapiClient
|
16
16
|
class PurchaseCardsLevel3LineItems
|
17
|
-
# The commodity code used to classify the item purchased
|
17
|
+
# The commodity code used to classify the item purchased.
|
18
18
|
attr_accessor :commodity_code
|
19
19
|
|
20
|
-
# Merchant product identifier/
|
20
|
+
# Merchant product identifier/the Universal Product Code (UPC) of the item purchased.
|
21
21
|
attr_accessor :product_code
|
22
22
|
|
23
|
-
# The description
|
23
|
+
# The description.
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
|
-
# The quantity
|
26
|
+
# The quantity.
|
27
27
|
attr_accessor :quantity
|
28
28
|
|
29
|
-
# The unit of measure
|
29
|
+
# The unit of measure.
|
30
30
|
attr_accessor :unit_measure
|
31
31
|
|
32
|
-
# Rate amount in 3 decimal 12 bytes total digit
|
32
|
+
# Rate amount in 3 decimal 12 bytes total digit.
|
33
33
|
attr_accessor :unit_price
|
34
34
|
|
35
|
-
attr_accessor :
|
35
|
+
attr_accessor :vat_amount_and_rate
|
36
36
|
|
37
37
|
attr_accessor :discount_amount_and_rate
|
38
38
|
|
39
|
-
# Rate amount in 3 decimal 12 bytes total digit
|
39
|
+
# Rate amount in 3 decimal 12 bytes total digit.
|
40
40
|
attr_accessor :line_item_total
|
41
41
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -48,7 +48,7 @@ module OpenapiClient
|
|
48
48
|
:'quantity' => :'quantity',
|
49
49
|
:'unit_measure' => :'unitMeasure',
|
50
50
|
:'unit_price' => :'unitPrice',
|
51
|
-
:'
|
51
|
+
:'vat_amount_and_rate' => :'vatAmountAndRate',
|
52
52
|
:'discount_amount_and_rate' => :'discountAmountAndRate',
|
53
53
|
:'line_item_total' => :'lineItemTotal'
|
54
54
|
}
|
@@ -63,7 +63,7 @@ module OpenapiClient
|
|
63
63
|
:'quantity' => :'Integer',
|
64
64
|
:'unit_measure' => :'String',
|
65
65
|
:'unit_price' => :'Float',
|
66
|
-
:'
|
66
|
+
:'vat_amount_and_rate' => :'AdditionalAmountRate',
|
67
67
|
:'discount_amount_and_rate' => :'AdditionalAmountRate',
|
68
68
|
:'line_item_total' => :'Float'
|
69
69
|
}
|
@@ -101,8 +101,8 @@ module OpenapiClient
|
|
101
101
|
self.unit_price = attributes[:'unitPrice']
|
102
102
|
end
|
103
103
|
|
104
|
-
if attributes.has_key?(:'
|
105
|
-
self.
|
104
|
+
if attributes.has_key?(:'vatAmountAndRate')
|
105
|
+
self.vat_amount_and_rate = attributes[:'vatAmountAndRate']
|
106
106
|
end
|
107
107
|
|
108
108
|
if attributes.has_key?(:'discountAmountAndRate')
|
@@ -213,7 +213,7 @@ module OpenapiClient
|
|
213
213
|
quantity == o.quantity &&
|
214
214
|
unit_measure == o.unit_measure &&
|
215
215
|
unit_price == o.unit_price &&
|
216
|
-
|
216
|
+
vat_amount_and_rate == o.vat_amount_and_rate &&
|
217
217
|
discount_amount_and_rate == o.discount_amount_and_rate &&
|
218
218
|
line_item_total == o.line_item_total
|
219
219
|
end
|
@@ -227,7 +227,7 @@ module OpenapiClient
|
|
227
227
|
# Calculates hash code according to all attributes.
|
228
228
|
# @return [Fixnum] Hash code
|
229
229
|
def hash
|
230
|
-
[commodity_code, product_code, description, quantity, unit_measure, unit_price,
|
230
|
+
[commodity_code, product_code, description, quantity, unit_measure, unit_price, vat_amount_and_rate, discount_amount_and_rate, line_item_total].hash
|
231
231
|
end
|
232
232
|
|
233
233
|
# 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
|
@@ -33,9 +33,9 @@ module OpenapiClient
|
|
33
33
|
# Date of next transaction process attempt.
|
34
34
|
attr_accessor :next_attempt_date
|
35
35
|
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :transaction_amount
|
37
37
|
|
38
|
-
attr_accessor :
|
38
|
+
attr_accessor :payment_method_details
|
39
39
|
|
40
40
|
attr_accessor :frequency
|
41
41
|
|
@@ -82,8 +82,8 @@ module OpenapiClient
|
|
82
82
|
:'creation_date' => :'creationDate',
|
83
83
|
:'start_date' => :'startDate',
|
84
84
|
:'next_attempt_date' => :'nextAttemptDate',
|
85
|
-
:'
|
86
|
-
:'
|
85
|
+
:'transaction_amount' => :'transactionAmount',
|
86
|
+
:'payment_method_details' => :'paymentMethodDetails',
|
87
87
|
:'frequency' => :'frequency',
|
88
88
|
:'number_of_payments' => :'numberOfPayments',
|
89
89
|
:'run_count' => :'runCount',
|
@@ -101,8 +101,8 @@ module OpenapiClient
|
|
101
101
|
:'creation_date' => :'String',
|
102
102
|
:'start_date' => :'String',
|
103
103
|
:'next_attempt_date' => :'String',
|
104
|
-
:'
|
105
|
-
:'
|
104
|
+
:'transaction_amount' => :'Amount',
|
105
|
+
:'payment_method_details' => :'PaymentMethodDetails',
|
106
106
|
:'frequency' => :'Frequency',
|
107
107
|
:'number_of_payments' => :'Integer',
|
108
108
|
:'run_count' => :'Integer',
|
@@ -143,12 +143,12 @@ module OpenapiClient
|
|
143
143
|
self.next_attempt_date = attributes[:'nextAttemptDate']
|
144
144
|
end
|
145
145
|
|
146
|
-
if attributes.has_key?(:'
|
147
|
-
self.
|
146
|
+
if attributes.has_key?(:'transactionAmount')
|
147
|
+
self.transaction_amount = attributes[:'transactionAmount']
|
148
148
|
end
|
149
149
|
|
150
|
-
if attributes.has_key?(:'
|
151
|
-
self.
|
150
|
+
if attributes.has_key?(:'paymentMethodDetails')
|
151
|
+
self.payment_method_details = attributes[:'paymentMethodDetails']
|
152
152
|
end
|
153
153
|
|
154
154
|
if attributes.has_key?(:'frequency')
|
@@ -271,8 +271,8 @@ module OpenapiClient
|
|
271
271
|
creation_date == o.creation_date &&
|
272
272
|
start_date == o.start_date &&
|
273
273
|
next_attempt_date == o.next_attempt_date &&
|
274
|
-
|
275
|
-
|
274
|
+
transaction_amount == o.transaction_amount &&
|
275
|
+
payment_method_details == o.payment_method_details &&
|
276
276
|
frequency == o.frequency &&
|
277
277
|
number_of_payments == o.number_of_payments &&
|
278
278
|
run_count == o.run_count &&
|
@@ -289,7 +289,7 @@ module OpenapiClient
|
|
289
289
|
# Calculates hash code according to all attributes.
|
290
290
|
# @return [Fixnum] Hash code
|
291
291
|
def hash
|
292
|
-
[store_id, purchase_order_number, invoice_number, creation_date, start_date, next_attempt_date,
|
292
|
+
[store_id, purchase_order_number, invoice_number, creation_date, start_date, next_attempt_date, transaction_amount, payment_method_details, frequency, number_of_payments, run_count, state, comments].hash
|
293
293
|
end
|
294
294
|
|
295
295
|
# Builds the object from hash
|