checkout_sdk 1.2.2 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.overcommit.yml +30 -0
- data/.rubocop.yml +15 -1
- data/.ruby-version +1 -0
- data/Gemfile +3 -1
- data/README.md +38 -0
- data/Rakefile +2 -2
- data/lib/checkout_sdk/accounts/account_holder.rb +10 -2
- data/lib/checkout_sdk/accounts/account_holder_corporate.rb +15 -0
- data/lib/checkout_sdk/accounts/account_holder_individual.rb +18 -0
- data/lib/checkout_sdk/accounts/accounts.rb +34 -1
- data/lib/checkout_sdk/accounts/accounts_client.rb +134 -1
- data/lib/checkout_sdk/accounts/additional_document.rb +11 -0
- data/lib/checkout_sdk/accounts/additional_info.rb +17 -0
- data/lib/checkout_sdk/accounts/articles_of_association_type.rb +10 -0
- data/lib/checkout_sdk/accounts/bank_verification.rb +14 -0
- data/lib/checkout_sdk/accounts/bank_verification_type.rb +9 -0
- data/lib/checkout_sdk/accounts/company.rb +7 -1
- data/lib/checkout_sdk/accounts/contact_details.rb +4 -1
- data/lib/checkout_sdk/accounts/date_of_incorporation.rb +14 -0
- data/lib/checkout_sdk/accounts/entity_files_request.rb +13 -0
- data/lib/checkout_sdk/accounts/entity_requirement_priority.rb +12 -0
- data/lib/checkout_sdk/accounts/entity_requirement_reason.rb +11 -0
- data/lib/checkout_sdk/accounts/entity_requirement_update_request.rb +22 -0
- data/lib/checkout_sdk/accounts/entity_requirement_update_status.rb +12 -0
- data/lib/checkout_sdk/accounts/financial_verification.rb +14 -0
- data/lib/checkout_sdk/accounts/financial_verification_type.rb +9 -0
- data/lib/checkout_sdk/accounts/instrument_details_ach.rb +21 -0
- data/lib/checkout_sdk/accounts/{headers.rb → invitee.rb} +3 -3
- data/lib/checkout_sdk/accounts/onboard_entity.rb +21 -4
- data/lib/checkout_sdk/accounts/onboard_sub_entity_documents.rb +31 -4
- data/lib/checkout_sdk/accounts/processing_details.rb +26 -0
- data/lib/checkout_sdk/accounts/proof_of_legality.rb +14 -0
- data/lib/checkout_sdk/accounts/proof_of_legality_type.rb +9 -0
- data/lib/checkout_sdk/accounts/proof_of_principal_address.rb +14 -0
- data/lib/checkout_sdk/accounts/proof_of_principal_address_type.rb +9 -0
- data/lib/checkout_sdk/accounts/reserve_rule_create_request.rb +14 -0
- data/lib/checkout_sdk/accounts/reserve_rule_holding_duration.rb +13 -0
- data/lib/checkout_sdk/accounts/reserve_rule_update_request.rb +15 -0
- data/lib/checkout_sdk/accounts/rolling_reserve_rule.rb +15 -0
- data/lib/checkout_sdk/accounts/schedule_frequency_daily.rb +1 -1
- data/lib/checkout_sdk/accounts/schedule_frequency_monthly.rb +1 -1
- data/lib/checkout_sdk/accounts/schedule_frequency_weekly.rb +1 -1
- data/lib/checkout_sdk/accounts/shareholder_structure.rb +14 -0
- data/lib/checkout_sdk/accounts/shareholder_structure_type.rb +9 -0
- data/lib/checkout_sdk/accounts/submitter.rb +13 -0
- data/lib/checkout_sdk/agentic_commerce/agentic_commerce.rb +8 -0
- data/lib/checkout_sdk/agentic_commerce/agentic_commerce_client.rb +31 -0
- data/lib/checkout_sdk/agentic_commerce/delegated_payment_allowance.rb +28 -0
- data/lib/checkout_sdk/agentic_commerce/delegated_payment_billing_address.rb +33 -0
- data/lib/checkout_sdk/agentic_commerce/delegated_payment_method_card.rb +64 -0
- data/lib/checkout_sdk/agentic_commerce/delegated_payment_request.rb +25 -0
- data/lib/checkout_sdk/agentic_commerce/delegated_payment_risk_signal.rb +20 -0
- data/lib/checkout_sdk/api_client.rb +81 -62
- data/lib/checkout_sdk/apm/ideal/ideal_client.rb +1 -1
- data/lib/checkout_sdk/apm/previous/klarna/klarna_client.rb +1 -1
- data/lib/checkout_sdk/apm/previous/sepa/sepa_client.rb +1 -1
- data/lib/checkout_sdk/balances/balance_values.rb +28 -0
- data/lib/checkout_sdk/balances/balances.rb +4 -0
- data/lib/checkout_sdk/balances/balances_query.rb +32 -0
- data/lib/checkout_sdk/balances/collateral_breakdown.rb +16 -0
- data/lib/checkout_sdk/balances/currency_account_balance.rb +26 -0
- data/lib/checkout_sdk/checkout_api.rb +75 -1
- data/lib/checkout_sdk/checkout_oauth_sdk_builder.rb +12 -1
- data/lib/checkout_sdk/client.rb +2 -3
- data/lib/checkout_sdk/common/account_change_indicator_type.rb +12 -0
- data/lib/checkout_sdk/common/account_holder.rb +12 -9
- data/lib/checkout_sdk/common/account_password_change_indicator_type.rb +13 -0
- data/lib/checkout_sdk/common/account_type_card_product_type.rb +11 -0
- data/lib/checkout_sdk/common/cardholder_account_age_indicator_type.rb +13 -0
- data/lib/checkout_sdk/common/common.rb +7 -0
- data/lib/checkout_sdk/common/customer_retry.rb +11 -0
- data/lib/checkout_sdk/common/destination.rb +38 -0
- data/lib/checkout_sdk/common/headers.rb +16 -0
- data/lib/checkout_sdk/common/payment_source_type.rb +9 -0
- data/lib/checkout_sdk/common/product.rb +4 -1
- data/lib/checkout_sdk/compliance_requests/compliance_request_responded_field.rb +22 -0
- data/lib/checkout_sdk/compliance_requests/compliance_request_responded_fields.rb +15 -0
- data/lib/checkout_sdk/compliance_requests/compliance_requests.rb +6 -0
- data/lib/checkout_sdk/compliance_requests/compliance_requests_client.rb +34 -0
- data/lib/checkout_sdk/compliance_requests/compliance_response_request.rb +16 -0
- data/lib/checkout_sdk/customers/customers_client.rb +1 -1
- data/lib/checkout_sdk/disputes/dispute_status.rb +1 -0
- data/lib/checkout_sdk/disputes/disputes_client.rb +23 -2
- data/lib/checkout_sdk/disputes/disputes_query_filter.rb +49 -11
- data/lib/checkout_sdk/environment.rb +8 -1
- data/lib/checkout_sdk/environment_subdomain.rb +16 -12
- data/lib/checkout_sdk/error.rb +24 -8
- data/lib/checkout_sdk/financial/financial_client.rb +1 -1
- data/lib/checkout_sdk/forward/create_secret_request.rb +17 -0
- data/lib/checkout_sdk/forward/forward.rb +5 -0
- data/lib/checkout_sdk/forward/forward_client.rb +52 -0
- data/lib/checkout_sdk/forward/update_secret_request.rb +15 -0
- data/lib/checkout_sdk/identities/aml_screening/aml_screening_client.rb +29 -0
- data/lib/checkout_sdk/identities/aml_screening/aml_search_parameters.rb +15 -0
- data/lib/checkout_sdk/identities/aml_screening/aml_verification_request.rb +19 -0
- data/lib/checkout_sdk/identities/applicants/applicants_client.rb +43 -0
- data/lib/checkout_sdk/identities/applicants/create_applicant_request.rb +21 -0
- data/lib/checkout_sdk/identities/applicants/update_applicant_request.rb +18 -0
- data/lib/checkout_sdk/identities/face_authentication/face_authentication_attempt_request.rb +17 -0
- data/lib/checkout_sdk/identities/face_authentication/face_authentication_client.rb +82 -0
- data/lib/checkout_sdk/identities/face_authentication/face_authentication_request.rb +21 -0
- data/lib/checkout_sdk/identities/id_document_verification/id_document_verification_client.rb +77 -0
- data/lib/checkout_sdk/identities/id_document_verification/id_document_verification_request.rb +27 -0
- data/lib/checkout_sdk/identities/identities.rb +27 -0
- data/lib/checkout_sdk/identities/identity_verification/identity_verification_attempt_request.rb +17 -0
- data/lib/checkout_sdk/identities/identity_verification/identity_verification_client.rb +99 -0
- data/lib/checkout_sdk/identities/identity_verification/identity_verification_request.rb +21 -0
- data/lib/checkout_sdk/identities/identity_verification/idv_client_information.rb +17 -0
- data/lib/checkout_sdk/identities/identity_verification/idv_declared_data.rb +15 -0
- data/lib/checkout_sdk/instruments/base_instruments_client.rb +9 -0
- data/lib/checkout_sdk/instruments/create/instrument_bank_account.rb +1 -1
- data/lib/checkout_sdk/instruments/create/instrument_sepa.rb +1 -1
- data/lib/checkout_sdk/instruments/create/instrument_token.rb +1 -1
- data/lib/checkout_sdk/instruments/instruments_client.rb +1 -1
- data/lib/checkout_sdk/instruments/previous/instruments_client.rb +1 -1
- data/lib/checkout_sdk/instruments/update/update_instrument_bank_account.rb +1 -1
- data/lib/checkout_sdk/instruments/update/update_instrument_card.rb +1 -1
- data/lib/checkout_sdk/instruments/update/update_instrument_token.rb +1 -1
- data/lib/checkout_sdk/issuing/add_control_group_request.rb +19 -0
- data/lib/checkout_sdk/issuing/add_control_profile_request.rb +13 -0
- data/lib/checkout_sdk/issuing/amend_dispute_request.rb +31 -0
- data/lib/checkout_sdk/issuing/cardholder_access_token_request.rb +26 -0
- data/lib/checkout_sdk/issuing/create_dispute_request.rb +27 -0
- data/lib/checkout_sdk/issuing/escalate_dispute_request.rb +23 -0
- data/lib/checkout_sdk/issuing/issuing.rb +27 -0
- data/lib/checkout_sdk/issuing/issuing_address.rb +25 -0
- data/lib/checkout_sdk/issuing/issuing_client.rb +274 -14
- data/lib/checkout_sdk/issuing/issuing_dispute_fraud_details.rb +18 -0
- data/lib/checkout_sdk/issuing/issuing_dispute_fraud_type.rb +21 -0
- data/lib/checkout_sdk/issuing/issuing_phone_number.rb +16 -0
- data/lib/checkout_sdk/issuing/oob_authentication_request.rb +15 -0
- data/lib/checkout_sdk/issuing/oob_simulate_transaction_details.rb +19 -0
- data/lib/checkout_sdk/issuing/simulate_refund_request.rb +13 -0
- data/lib/checkout_sdk/issuing/submit_dispute_request.rb +21 -0
- data/lib/checkout_sdk/issuing/update_card_request.rb +27 -0
- data/lib/checkout_sdk/issuing/update_cardholder_request.rb +29 -0
- data/lib/checkout_sdk/issuing/update_control_profile_request.rb +13 -0
- data/lib/checkout_sdk/metadata/metadata_client.rb +1 -1
- data/lib/checkout_sdk/metadata/source/bin_metadata_source.rb +1 -1
- data/lib/checkout_sdk/metadata/source/card_metadata_source.rb +1 -1
- data/lib/checkout_sdk/metadata/source/id_metadata_source.rb +1 -1
- data/lib/checkout_sdk/metadata/source/token_metadata_source.rb +1 -1
- data/lib/checkout_sdk/network_tokens/network_token_cryptogram_request.rb +13 -0
- data/lib/checkout_sdk/network_tokens/network_token_source_card.rb +25 -0
- data/lib/checkout_sdk/network_tokens/network_token_source_id.rb +19 -0
- data/lib/checkout_sdk/network_tokens/network_tokens.rb +7 -0
- data/lib/checkout_sdk/network_tokens/network_tokens_client.rb +51 -0
- data/lib/checkout_sdk/network_tokens/provision_network_token_request.rb +14 -0
- data/lib/checkout_sdk/oauth_access_token.rb +6 -1
- data/lib/checkout_sdk/oauth_scopes.rb +4 -0
- data/lib/checkout_sdk/oauth_sdk_credentials.rb +2 -1
- data/lib/checkout_sdk/onboarding_simulator/onboarding_simulator.rb +6 -0
- data/lib/checkout_sdk/onboarding_simulator/onboarding_simulator_client.rb +72 -0
- data/lib/checkout_sdk/onboarding_simulator/simulator_entity_status.rb +16 -0
- data/lib/checkout_sdk/onboarding_simulator/simulator_set_requirements_due_request.rb +14 -0
- data/lib/checkout_sdk/onboarding_simulator/simulator_set_status_request.rb +13 -0
- data/lib/checkout_sdk/payment_methods/payment_methods.rb +4 -0
- data/lib/checkout_sdk/payment_methods/payment_methods_client.rb +24 -0
- data/lib/checkout_sdk/payment_methods/payment_methods_query.rb +13 -0
- data/lib/checkout_sdk/payments/apple_pay/apple_pay_certificate_request.rb +13 -0
- data/lib/checkout_sdk/payments/apple_pay/apple_pay_client.rb +44 -0
- data/lib/checkout_sdk/payments/apple_pay/apple_pay_enrollment_request.rb +13 -0
- data/lib/checkout_sdk/payments/apple_pay/apple_pay_signing_request.rb +13 -0
- data/lib/checkout_sdk/payments/applepay.rb +14 -0
- data/lib/checkout_sdk/payments/base_payments_client.rb +19 -0
- data/lib/checkout_sdk/payments/cancellation_request.rb +13 -0
- data/lib/checkout_sdk/payments/{sessions/card.rb → card.rb} +4 -1
- data/lib/checkout_sdk/payments/contexts/payment_contexts_client.rb +1 -1
- data/lib/checkout_sdk/payments/destination/bank_account_destination.rb +1 -1
- data/lib/checkout_sdk/payments/destination/card_destination.rb +1 -1
- data/lib/checkout_sdk/payments/destination/id_destination.rb +1 -1
- data/lib/checkout_sdk/payments/destination/token_destination.rb +1 -1
- data/lib/checkout_sdk/payments/exemption.rb +2 -0
- data/lib/checkout_sdk/payments/flow/flow_client.rb +59 -0
- data/lib/checkout_sdk/payments/google_pay/google_pay_client.rb +48 -0
- data/lib/checkout_sdk/payments/google_pay/google_pay_domain_request.rb +13 -0
- data/lib/checkout_sdk/payments/google_pay/google_pay_enrollment_request.rb +17 -0
- data/lib/checkout_sdk/payments/googlepay.rb +14 -0
- data/lib/checkout_sdk/payments/hosted/hosted_payment_instruction.rb +11 -0
- data/lib/checkout_sdk/payments/hosted/hosted_payments_client.rb +1 -1
- data/lib/checkout_sdk/payments/hosted/hosted_payments_session.rb +51 -23
- data/lib/checkout_sdk/payments/hosted/payment_purpose_type.rb +27 -0
- data/lib/checkout_sdk/payments/links/payment_link.rb +26 -1
- data/lib/checkout_sdk/payments/links/payments_links_client.rb +1 -1
- data/lib/checkout_sdk/payments/locale_type.rb +31 -0
- data/lib/checkout_sdk/payments/partial_authorization.rb +11 -0
- data/lib/checkout_sdk/payments/passenger.rb +20 -6
- data/lib/checkout_sdk/payments/payment_method_configuration.rb +17 -0
- data/lib/checkout_sdk/payments/payment_plan.rb +43 -0
- data/lib/checkout_sdk/payments/payment_request.rb +5 -1
- data/lib/checkout_sdk/payments/payments.rb +48 -4
- data/lib/checkout_sdk/payments/payments_client.rb +1 -1
- data/lib/checkout_sdk/payments/payments_search_request.rb +20 -0
- data/lib/checkout_sdk/payments/previous/destination/card_destination.rb +1 -1
- data/lib/checkout_sdk/payments/previous/destination/id_destination.rb +1 -1
- data/lib/checkout_sdk/payments/previous/destination/token_destination.rb +1 -1
- data/lib/checkout_sdk/payments/previous/payments_client.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/alipay_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/alma_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/bancontact_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/benefit_pay_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/boleto_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/eps_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/fawry_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/giropay_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/ideal_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/klarna_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/knet_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/multi_banco_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/oxxo_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/p24_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/pago_facil_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/paypal_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/poli_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/qpay_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/rapi_pago_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/apm/sofort_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/card_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/customer_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/d_local_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/id_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/network_token_source.rb +1 -1
- data/lib/checkout_sdk/payments/previous/source/token_source.rb +1 -1
- data/lib/checkout_sdk/payments/processing_data.rb +45 -0
- data/lib/checkout_sdk/payments/processing_settings.rb +14 -1
- data/lib/checkout_sdk/payments/product.rb +14 -1
- data/lib/checkout_sdk/payments/product_item_type.rb +11 -0
- data/lib/checkout_sdk/payments/product_sub_type.rb +13 -0
- data/lib/checkout_sdk/payments/refund_order.rb +53 -0
- data/lib/checkout_sdk/payments/refund_request.rb +11 -2
- data/lib/checkout_sdk/payments/sender/corporate_sender.rb +1 -1
- data/lib/checkout_sdk/payments/sender/government_sender.rb +4 -1
- data/lib/checkout_sdk/payments/sender/individual_sender.rb +4 -1
- data/lib/checkout_sdk/payments/sender/instrument_sender.rb +1 -1
- data/lib/checkout_sdk/payments/sessions/payment_sessions_client.rb +13 -1
- data/lib/checkout_sdk/payments/sessions/payment_sessions_request.rb +11 -1
- data/lib/checkout_sdk/payments/sessions/store_payment_details_type.rb +1 -0
- data/lib/checkout_sdk/payments/setups/account_funding_transaction_identification.rb +17 -0
- data/lib/checkout_sdk/payments/setups/account_funding_transaction_identification_type.rb +15 -0
- data/lib/checkout_sdk/payments/setups/account_funding_transaction_purpose.rb +29 -0
- data/lib/checkout_sdk/payments/setups/account_funding_transaction_recipient.rb +26 -0
- data/lib/checkout_sdk/payments/setups/account_funding_transaction_sender.rb +29 -0
- data/lib/checkout_sdk/payments/setups/bacs_payment_method.rb +41 -0
- data/lib/checkout_sdk/payments/setups/blik_payment_method.rb +20 -0
- data/lib/checkout_sdk/payments/setups/card_present_payment_method.rb +35 -0
- data/lib/checkout_sdk/payments/setups/pay_by_bank_payment_method.rb +24 -0
- data/lib/checkout_sdk/payments/setups/payment_setup_account_funding_transaction.rb +20 -0
- data/lib/checkout_sdk/payments/setups/payment_setups_client.rb +75 -0
- data/lib/checkout_sdk/payments/setups/stablecoin_payment_method.rb +16 -0
- data/lib/checkout_sdk/payments/source/apm/ach_source.rb +27 -0
- data/lib/checkout_sdk/payments/source/apm/after_pay_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/alma_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/bancontact_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/benefit_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/bizum_source.rb +15 -0
- data/lib/checkout_sdk/payments/source/apm/blik_source.rb +31 -0
- data/lib/checkout_sdk/payments/source/apm/cv_connect_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/eps_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/fawry_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/giropay_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/ideal_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/illicado_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/klarna_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/knet_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/mbway_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/multi_banco_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/octopus_source.rb +11 -0
- data/lib/checkout_sdk/payments/source/apm/p24_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/paypal_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/plaid_source.rb +17 -0
- data/lib/checkout_sdk/payments/source/apm/post_finance_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/qpay_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/sepa_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/sequra_source.rb +15 -0
- data/lib/checkout_sdk/payments/source/apm/sofort_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/stcpay_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/tamara_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/trustly_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/apm/we_chat_pay_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/bank_account_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/card_source.rb +5 -2
- data/lib/checkout_sdk/payments/source/currency_account_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/customer_source.rb +5 -2
- data/lib/checkout_sdk/payments/source/entity_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/id_source.rb +5 -2
- data/lib/checkout_sdk/payments/source/network_token_source.rb +8 -2
- data/lib/checkout_sdk/payments/source/provider_token_source.rb +1 -1
- data/lib/checkout_sdk/payments/source/token_source.rb +5 -2
- data/lib/checkout_sdk/reports/reports_client.rb +1 -1
- data/lib/checkout_sdk/risk/source/card_source.rb +1 -1
- data/lib/checkout_sdk/risk/source/customer_source.rb +1 -1
- data/lib/checkout_sdk/risk/source/id_source.rb +1 -1
- data/lib/checkout_sdk/risk/source/token_source.rb +1 -1
- data/lib/checkout_sdk/sessions/authentication_method.rb +3 -3
- data/lib/checkout_sdk/sessions/authentication_type.rb +3 -3
- data/lib/checkout_sdk/sessions/card_holder_account_info.rb +39 -3
- data/lib/checkout_sdk/sessions/channel/app_session.rb +1 -1
- data/lib/checkout_sdk/sessions/channel/browser_session.rb +5 -2
- data/lib/checkout_sdk/sessions/channel/channel_data_type.rb +1 -0
- data/lib/checkout_sdk/sessions/channel/merchant_initiated_session.rb +15 -0
- data/lib/checkout_sdk/sessions/channel/request_type.rb +19 -0
- data/lib/checkout_sdk/sessions/channel/sdk_interface_type.rb +2 -2
- data/lib/checkout_sdk/sessions/completion/hosted_completion_info.rb +1 -1
- data/lib/checkout_sdk/sessions/completion/non_hosted_completion_info.rb +1 -1
- data/lib/checkout_sdk/sessions/device_information.rb +17 -0
- data/lib/checkout_sdk/sessions/initial_transaction.rb +23 -0
- data/lib/checkout_sdk/sessions/installment.rb +5 -0
- data/lib/checkout_sdk/sessions/merchant_risk_info.rb +20 -2
- data/lib/checkout_sdk/sessions/optimization.rb +19 -0
- data/lib/checkout_sdk/sessions/optimized_properties.rb +17 -0
- data/lib/checkout_sdk/sessions/pre_order_purchase_indicator_type.rb +10 -0
- data/lib/checkout_sdk/sessions/recurring.rb +5 -0
- data/lib/checkout_sdk/sessions/reorder_items_indicator_type.rb +10 -0
- data/lib/checkout_sdk/sessions/session_request.rb +26 -2
- data/lib/checkout_sdk/sessions/sessions.rb +10 -0
- data/lib/checkout_sdk/sessions/sessions_client.rb +2 -2
- data/lib/checkout_sdk/sessions/source/card_source.rb +3 -2
- data/lib/checkout_sdk/sessions/source/id_source.rb +1 -1
- data/lib/checkout_sdk/sessions/source/network_token_source.rb +1 -1
- data/lib/checkout_sdk/sessions/source/token_source.rb +1 -1
- data/lib/checkout_sdk/sessions/three_ds_method_completion_request.rb +3 -1
- data/lib/checkout_sdk/sessions/three_ds_req_auth_method.rb +16 -0
- data/lib/checkout_sdk/sessions/three_ds_requestor_authentication_info.rb +17 -0
- data/lib/checkout_sdk/sessions/transaction_type.rb +3 -3
- data/lib/checkout_sdk/sources/sepa_source_request.rb +1 -1
- data/lib/checkout_sdk/sources/sources_client.rb +1 -1
- data/lib/checkout_sdk/standalone_account_updater/account_updater_card.rb +17 -0
- data/lib/checkout_sdk/standalone_account_updater/account_updater_instrument.rb +13 -0
- data/lib/checkout_sdk/standalone_account_updater/account_updater_request.rb +13 -0
- data/lib/checkout_sdk/standalone_account_updater/account_updater_source_options.rb +15 -0
- data/lib/checkout_sdk/standalone_account_updater/standalone_account_updater.rb +7 -0
- data/lib/checkout_sdk/standalone_account_updater/standalone_account_updater_client.rb +29 -0
- data/lib/checkout_sdk/tokens/apple_pay_token_request.rb +1 -1
- data/lib/checkout_sdk/tokens/google_pay_token_request.rb +1 -1
- data/lib/checkout_sdk/tokens/token_metadata_billing_address.rb +16 -0
- data/lib/checkout_sdk/tokens/token_metadata_response.rb +55 -0
- data/lib/checkout_sdk/tokens/tokens.rb +2 -0
- data/lib/checkout_sdk/tokens/tokens_client.rb +11 -0
- data/lib/checkout_sdk/transfers/create_transfer.rb +5 -5
- data/lib/checkout_sdk/transfers/transfer_source.rb +4 -1
- data/lib/checkout_sdk/transfers/transfers_client.rb +2 -2
- data/lib/checkout_sdk/version.rb +1 -1
- data/lib/checkout_sdk/workflows/entity_workflow_condition.rb +1 -1
- data/lib/checkout_sdk/workflows/event_workflow_condition.rb +1 -1
- data/lib/checkout_sdk/workflows/processing_channel_workflow_condition.rb +1 -1
- data/lib/checkout_sdk/workflows/webhook_workflow_action.rb +1 -1
- data/lib/checkout_sdk/workflows/workflows_client.rb +1 -1
- data/lib/checkout_sdk.rb +8 -0
- metadata +194 -19
- data/lib/checkout_sdk/payments/passenger_name.rb +0 -11
- data/lib/checkout_sdk/payments/sessions/payment_method_configuration.rb +0 -11
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Payments
|
|
5
|
+
# Client for Payment Flow API operations
|
|
6
|
+
# [Beta]
|
|
7
|
+
class FlowClient < Client
|
|
8
|
+
PAYMENT_SESSIONS_PATH = 'payment-sessions'
|
|
9
|
+
SUBMIT_PATH = 'submit'
|
|
10
|
+
COMPLETE_PATH = 'complete'
|
|
11
|
+
|
|
12
|
+
# @param [ApiClient] api_client
|
|
13
|
+
# @param [CheckoutConfiguration] configuration
|
|
14
|
+
def initialize(api_client, configuration)
|
|
15
|
+
super(api_client, configuration, CheckoutSdk::AuthorizationType::SECRET_KEY_OR_OAUTH)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Creates a Payment Session.
|
|
19
|
+
# Use this endpoint to set up a payment session before collecting payment details from your customer.
|
|
20
|
+
# [Beta]
|
|
21
|
+
#
|
|
22
|
+
# @param [Hash] request_payment_session_request
|
|
23
|
+
def request_payment_session(request_payment_session_request)
|
|
24
|
+
api_client.invoke_post(
|
|
25
|
+
build_path(PAYMENT_SESSIONS_PATH),
|
|
26
|
+
sdk_authorization,
|
|
27
|
+
request_payment_session_request
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Submits a Payment Session.
|
|
32
|
+
# Use this endpoint to submit payment details and process the payment for an existing session.
|
|
33
|
+
# [Beta]
|
|
34
|
+
#
|
|
35
|
+
# @param [String] id - The unique identifier of the Payment Session
|
|
36
|
+
# @param [Hash] submit_payment_session_request
|
|
37
|
+
def submit_payment_session(id, submit_payment_session_request)
|
|
38
|
+
api_client.invoke_post(
|
|
39
|
+
build_path(PAYMENT_SESSIONS_PATH, id, SUBMIT_PATH),
|
|
40
|
+
sdk_authorization,
|
|
41
|
+
submit_payment_session_request
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Creates and submits a Payment Session in a single request.
|
|
46
|
+
# Use this endpoint to create a payment session and immediately process the payment.
|
|
47
|
+
# [Beta]
|
|
48
|
+
#
|
|
49
|
+
# @param [Hash] request_payment_session_with_payment_request
|
|
50
|
+
def request_payment_session_with_payment(request_payment_session_with_payment_request)
|
|
51
|
+
api_client.invoke_post(
|
|
52
|
+
build_path(PAYMENT_SESSIONS_PATH, COMPLETE_PATH),
|
|
53
|
+
sdk_authorization,
|
|
54
|
+
request_payment_session_with_payment_request
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Payments
|
|
5
|
+
# Client for the Google Pay endpoints. All endpoints require OAuth.
|
|
6
|
+
class GooglePayClient < Client
|
|
7
|
+
GOOGLEPAY = 'googlepay'
|
|
8
|
+
ENROLLMENTS = 'enrollments'
|
|
9
|
+
DOMAIN = 'domain'
|
|
10
|
+
DOMAINS = 'domains'
|
|
11
|
+
STATE = 'state'
|
|
12
|
+
private_constant :GOOGLEPAY, :ENROLLMENTS, :DOMAIN, :DOMAINS, :STATE
|
|
13
|
+
|
|
14
|
+
# @param [ApiClient] api_client
|
|
15
|
+
# @param [CheckoutConfiguration] configuration
|
|
16
|
+
def initialize(api_client, configuration)
|
|
17
|
+
super(api_client, configuration, CheckoutSdk::AuthorizationType::OAUTH)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# @param [Hash, GooglePayEnrollmentRequest] enrollment_request
|
|
21
|
+
def enroll_entity(enrollment_request)
|
|
22
|
+
api_client.invoke_post(build_path(GOOGLEPAY, ENROLLMENTS),
|
|
23
|
+
sdk_authorization,
|
|
24
|
+
enrollment_request)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# @param [String] entity_id
|
|
28
|
+
# @param [Hash, GooglePayDomainRequest] domain_request
|
|
29
|
+
def register_domain(entity_id, domain_request)
|
|
30
|
+
api_client.invoke_post(build_path(GOOGLEPAY, ENROLLMENTS, entity_id, DOMAIN),
|
|
31
|
+
sdk_authorization,
|
|
32
|
+
domain_request)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# @param [String] entity_id
|
|
36
|
+
def get_registered_domains(entity_id)
|
|
37
|
+
api_client.invoke_get(build_path(GOOGLEPAY, ENROLLMENTS, entity_id, DOMAINS),
|
|
38
|
+
sdk_authorization)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# @param [String] entity_id
|
|
42
|
+
def get_enrollment_state(entity_id)
|
|
43
|
+
api_client.invoke_get(build_path(GOOGLEPAY, ENROLLMENTS, entity_id, STATE),
|
|
44
|
+
sdk_authorization)
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Payments
|
|
5
|
+
# Request body for POST /googlepay/enrollments/{entity_id}/domain.
|
|
6
|
+
#
|
|
7
|
+
# @!attribute web_domain
|
|
8
|
+
# @return [String] Web domain to register for the enrolled entity.
|
|
9
|
+
class GooglePayDomainRequest
|
|
10
|
+
attr_accessor :web_domain
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Payments
|
|
5
|
+
# Request body for POST /googlepay/enrollments.
|
|
6
|
+
#
|
|
7
|
+
# @!attribute entity_id
|
|
8
|
+
# @return [String] Entity to enroll.
|
|
9
|
+
# @!attribute email_address
|
|
10
|
+
# @return [String]
|
|
11
|
+
# @!attribute accept_terms_of_service
|
|
12
|
+
# @return [Boolean]
|
|
13
|
+
class GooglePayEnrollmentRequest
|
|
14
|
+
attr_accessor :entity_id, :email_address, :accept_terms_of_service
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Payments
|
|
5
|
+
# @!attribute account_holder
|
|
6
|
+
# @return [CheckoutSdk::Common::AccountHolder]
|
|
7
|
+
# @!attribute store_payment_details
|
|
8
|
+
# @return [String] {StorePaymentDetailsType}
|
|
9
|
+
class Googlepay
|
|
10
|
+
attr_accessor :account_holder,
|
|
11
|
+
:store_payment_details
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -8,7 +8,7 @@ module CheckoutSdk
|
|
|
8
8
|
# @param [ApiClient] api_client
|
|
9
9
|
# @param [CheckoutConfiguration] configuration
|
|
10
10
|
def initialize(api_client, configuration)
|
|
11
|
-
super
|
|
11
|
+
super(api_client, configuration, CheckoutSdk::AuthorizationType::SECRET_KEY)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
# @param [Hash, HostedPaymentsSession] hosted_payments_session
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'checkout_sdk/payments/payment_type'
|
|
4
|
+
|
|
3
5
|
module CheckoutSdk
|
|
4
6
|
module Payments
|
|
5
|
-
# @!attribute amount
|
|
6
|
-
# @return [Integer]
|
|
7
7
|
# @!attribute currency
|
|
8
8
|
# @return [String] {CheckoutSdk::Common::Currency}
|
|
9
|
+
# @!attribute billing
|
|
10
|
+
# @return [BillingInformation]
|
|
11
|
+
# @!attribute success_url
|
|
12
|
+
# @return [String]
|
|
13
|
+
# @!attribute cancel_url
|
|
14
|
+
# @return [String]
|
|
15
|
+
# @!attribute failure_url
|
|
16
|
+
# @return [String]
|
|
17
|
+
# @!attribute amount
|
|
18
|
+
# @return [Integer]
|
|
9
19
|
# @!attribute payment_type
|
|
10
20
|
# @return [String] {PaymentType}
|
|
11
21
|
# @!attribute payment_ip
|
|
@@ -16,12 +26,16 @@ module CheckoutSdk
|
|
|
16
26
|
# @return [String]
|
|
17
27
|
# @!attribute description
|
|
18
28
|
# @return [String]
|
|
29
|
+
# @!attribute display_name
|
|
30
|
+
# @return [String]
|
|
31
|
+
# @!attribute processing_channel_id
|
|
32
|
+
# @return [String]
|
|
33
|
+
# @!attribute amount_allocations
|
|
34
|
+
# @return [Array(CheckoutSdk::Common::AmountAllocations)]
|
|
19
35
|
# @!attribute customer
|
|
20
36
|
# @return [CheckoutSdk::Common::CustomerRequest]
|
|
21
37
|
# @!attribute shipping
|
|
22
38
|
# @return [ShippingDetails]
|
|
23
|
-
# @!attribute billing
|
|
24
|
-
# @return [BillingInformation]
|
|
25
39
|
# @!attribute recipient
|
|
26
40
|
# @return [PaymentRecipient]
|
|
27
41
|
# @!attribute processing
|
|
@@ -34,53 +48,67 @@ module CheckoutSdk
|
|
|
34
48
|
# @return [Array(CheckoutSdk::Common::Product)]
|
|
35
49
|
# @!attribute risk
|
|
36
50
|
# @return [RiskRequest]
|
|
37
|
-
# @!attribute
|
|
38
|
-
# @return [
|
|
39
|
-
# @!attribute
|
|
40
|
-
# @return [
|
|
41
|
-
# @!attribute failure_url
|
|
42
|
-
# @return [String]
|
|
51
|
+
# @!attribute customer_retry
|
|
52
|
+
# @return [PaymentRetryRequest]
|
|
53
|
+
# @!attribute sender
|
|
54
|
+
# @return [CheckoutSdk::Payments::Sender]
|
|
43
55
|
# @!attribute metadata
|
|
44
56
|
# @return [Hash(String=>Object)]
|
|
45
57
|
# @!attribute locale
|
|
46
|
-
# @return [String]
|
|
58
|
+
# @return [String] {LocaleType}
|
|
47
59
|
# @!attribute three_ds
|
|
48
60
|
# @return [ThreeDSRequest]
|
|
49
61
|
# @!attribute capture
|
|
50
62
|
# @return [TrueClass, FalseClass]
|
|
51
63
|
# @!attribute capture_on
|
|
52
64
|
# @return [Time]
|
|
53
|
-
# @!attribute
|
|
54
|
-
# @return [
|
|
55
|
-
# @!attribute
|
|
56
|
-
# @return [
|
|
65
|
+
# @!attribute instruction
|
|
66
|
+
# @return [HostedPaymentInstruction]
|
|
67
|
+
# @!attribute payment_method_configuration
|
|
68
|
+
# @return [PaymentMethodConfiguration]
|
|
69
|
+
# @!attribute payment_plan
|
|
70
|
+
# @return [PaymentPlan] [Optional] The information to process a recurring payment request.
|
|
71
|
+
# To be used when the payment_type is Recurring.
|
|
72
|
+
# @!attribute authorization_type
|
|
73
|
+
# @return [String] [Optional] {AuthorizationType} Enum: "Final" "Estimated". Default: "Final".
|
|
57
74
|
class HostedPaymentsSession
|
|
58
|
-
attr_accessor :
|
|
59
|
-
:
|
|
75
|
+
attr_accessor :currency,
|
|
76
|
+
:billing,
|
|
77
|
+
:success_url,
|
|
78
|
+
:cancel_url,
|
|
79
|
+
:failure_url,
|
|
80
|
+
:amount,
|
|
60
81
|
:payment_type,
|
|
61
82
|
:payment_ip,
|
|
62
83
|
:billing_descriptor,
|
|
63
84
|
:reference,
|
|
64
85
|
:description,
|
|
86
|
+
:display_name,
|
|
87
|
+
:processing_channel_id,
|
|
88
|
+
:amount_allocations,
|
|
65
89
|
:customer,
|
|
66
90
|
:shipping,
|
|
67
|
-
:billing,
|
|
68
91
|
:recipient,
|
|
69
92
|
:processing,
|
|
70
93
|
:allow_payment_methods,
|
|
71
94
|
:disabled_payment_methods,
|
|
72
95
|
:products,
|
|
73
96
|
:risk,
|
|
74
|
-
:
|
|
75
|
-
:
|
|
76
|
-
:failure_url,
|
|
97
|
+
:customer_retry,
|
|
98
|
+
:sender,
|
|
77
99
|
:metadata,
|
|
78
100
|
:locale,
|
|
79
101
|
:three_ds,
|
|
80
102
|
:capture,
|
|
81
103
|
:capture_on,
|
|
82
|
-
:
|
|
83
|
-
:
|
|
104
|
+
:instruction,
|
|
105
|
+
:payment_method_configuration,
|
|
106
|
+
:payment_plan,
|
|
107
|
+
:authorization_type
|
|
108
|
+
|
|
109
|
+
def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR)
|
|
110
|
+
@payment_type = payment_type
|
|
111
|
+
end
|
|
84
112
|
end
|
|
85
113
|
end
|
|
86
114
|
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Payments
|
|
5
|
+
class PaymentPurposeType
|
|
6
|
+
DONATIONS = 'donations'
|
|
7
|
+
EDUCATION = 'education'
|
|
8
|
+
EMERGENCY_NEED = 'emergency_need'
|
|
9
|
+
EXPATRIATION = 'expatriation'
|
|
10
|
+
FAMILY_SUPPORT = 'family_support'
|
|
11
|
+
FINANCIAL_SERVICES = 'financial_services'
|
|
12
|
+
GIFTS = 'gifts'
|
|
13
|
+
INCOME = 'income'
|
|
14
|
+
INSURANCE = 'insurance'
|
|
15
|
+
INVESTMENT = 'investment'
|
|
16
|
+
IT_SERVICES = 'it_services'
|
|
17
|
+
LEISURE = 'leisure'
|
|
18
|
+
LOAN_PAYMENT = 'loan_payment'
|
|
19
|
+
MEDICAL_TREATMENT = 'medical_treatment'
|
|
20
|
+
OTHER = 'other'
|
|
21
|
+
PENSION = 'pension'
|
|
22
|
+
ROYALTIES = 'royalties'
|
|
23
|
+
SAVINGS = 'savings'
|
|
24
|
+
TRAVEL_AND_TOURISM = 'travel_and_tourism'
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'checkout_sdk/payments/payment_type'
|
|
4
|
+
|
|
3
5
|
module CheckoutSdk
|
|
4
6
|
module Payments
|
|
5
7
|
# @!attribute amount
|
|
@@ -16,6 +18,8 @@ module CheckoutSdk
|
|
|
16
18
|
# @return [String]
|
|
17
19
|
# @!attribute description
|
|
18
20
|
# @return [String]
|
|
21
|
+
# @!attribute display_name
|
|
22
|
+
# @return [String]
|
|
19
23
|
# @!attribute processing_channel_id
|
|
20
24
|
# @return [String] - Not available on Previous.
|
|
21
25
|
# @!attribute amount_allocations
|
|
@@ -34,6 +38,8 @@ module CheckoutSdk
|
|
|
34
38
|
# @return [ProcessingSettings]
|
|
35
39
|
# @!attribute allow_payment_methods
|
|
36
40
|
# @return [Array(CheckoutSdk::Common::PaymentSourceType)]
|
|
41
|
+
# @!attribute disabled_payment_methods
|
|
42
|
+
# @return [Array(CheckoutSdk::Common::PaymentSourceType)]
|
|
37
43
|
# @!attribute products
|
|
38
44
|
# @return [Array(CheckoutSdk::Common::Product)]
|
|
39
45
|
# @!attribute metadata
|
|
@@ -42,6 +48,10 @@ module CheckoutSdk
|
|
|
42
48
|
# @return [ThreeDSRequest]
|
|
43
49
|
# @!attribute risk
|
|
44
50
|
# @return [RiskRequest]
|
|
51
|
+
# @!attribute customer_retry
|
|
52
|
+
# @return [CheckoutSdk::Common::CustomerRetry]
|
|
53
|
+
# @!attribute sender
|
|
54
|
+
# @return [CheckoutSdk::Payments::Sender]
|
|
45
55
|
# @!attribute return_url
|
|
46
56
|
# @return [String]
|
|
47
57
|
# @!attribute locale
|
|
@@ -50,6 +60,11 @@ module CheckoutSdk
|
|
|
50
60
|
# @return [TrueClass, FalseClass]
|
|
51
61
|
# @!attribute capture_on
|
|
52
62
|
# @return [Time]
|
|
63
|
+
# @!attribute payment_plan
|
|
64
|
+
# @return [PaymentPlan] [Optional] The information to process a recurring payment request.
|
|
65
|
+
# To be used when the payment_type is Recurring.
|
|
66
|
+
# @!attribute authorization_type
|
|
67
|
+
# @return [String] [Optional] {AuthorizationType} Enum: "Final" "Estimated". Default: "Final".
|
|
53
68
|
class PaymentLink
|
|
54
69
|
attr_accessor :amount,
|
|
55
70
|
:currency,
|
|
@@ -58,6 +73,7 @@ module CheckoutSdk
|
|
|
58
73
|
:billing_descriptor,
|
|
59
74
|
:reference,
|
|
60
75
|
:description,
|
|
76
|
+
:display_name,
|
|
61
77
|
:processing_channel_id,
|
|
62
78
|
:amount_allocations,
|
|
63
79
|
:expires_in,
|
|
@@ -67,14 +83,23 @@ module CheckoutSdk
|
|
|
67
83
|
:recipient,
|
|
68
84
|
:processing,
|
|
69
85
|
:allow_payment_methods,
|
|
86
|
+
:disabled_payment_methods,
|
|
70
87
|
:products,
|
|
71
88
|
:metadata,
|
|
72
89
|
:three_ds,
|
|
73
90
|
:risk,
|
|
91
|
+
:customer_retry,
|
|
92
|
+
:sender,
|
|
74
93
|
:return_url,
|
|
75
94
|
:locale,
|
|
76
95
|
:capture,
|
|
77
|
-
:capture_on
|
|
96
|
+
:capture_on,
|
|
97
|
+
:payment_plan,
|
|
98
|
+
:authorization_type
|
|
99
|
+
|
|
100
|
+
def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR)
|
|
101
|
+
@payment_type = payment_type
|
|
102
|
+
end
|
|
78
103
|
end
|
|
79
104
|
end
|
|
80
105
|
end
|
|
@@ -8,7 +8,7 @@ module CheckoutSdk
|
|
|
8
8
|
# @param [ApiClient] api_client
|
|
9
9
|
# @param [CheckoutConfiguration] configuration
|
|
10
10
|
def initialize(api_client, configuration)
|
|
11
|
-
super
|
|
11
|
+
super(api_client, configuration, CheckoutSdk::AuthorizationType::SECRET_KEY)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
# @param [Hash, PaymentLink] payment_link
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Payments
|
|
5
|
+
module LocaleType
|
|
6
|
+
AR = 'ar'
|
|
7
|
+
DA_DK = 'da-DK'
|
|
8
|
+
DE_DE = 'de-DE'
|
|
9
|
+
EL = 'el'
|
|
10
|
+
EN_GB = 'en-GB'
|
|
11
|
+
ES_ES = 'es-ES'
|
|
12
|
+
FI_FI = 'fi-FI'
|
|
13
|
+
FIL_PH = 'fil-PH'
|
|
14
|
+
FR_FR = 'fr-FR'
|
|
15
|
+
HI_IN = 'hi-IN'
|
|
16
|
+
ID_ID = 'id-ID'
|
|
17
|
+
IT_IT = 'it-IT'
|
|
18
|
+
JA_JP = 'ja-JP'
|
|
19
|
+
MS_MY = 'ms-MY'
|
|
20
|
+
NB_NO = 'nb-NO'
|
|
21
|
+
NL_NL = 'nl-NL'
|
|
22
|
+
PT_PT = 'pt-PT'
|
|
23
|
+
SV_SE = 'sv-SE'
|
|
24
|
+
TH_TH = 'th-TH'
|
|
25
|
+
VI_VN = 'vi-VN'
|
|
26
|
+
ZH_CN = 'zh-CN'
|
|
27
|
+
ZH_HK = 'zh-HK'
|
|
28
|
+
ZH_TW = 'zh-TW'
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -2,16 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
module CheckoutSdk
|
|
4
4
|
module Payments
|
|
5
|
-
#
|
|
5
|
+
# Contains information about a passenger on the flight
|
|
6
|
+
# (PaymentInterfacesProcessingAirlinePassengerData).
|
|
7
|
+
#
|
|
8
|
+
# @!attribute first_name
|
|
6
9
|
# @return [String]
|
|
7
|
-
# @!attribute
|
|
10
|
+
# @!attribute last_name
|
|
8
11
|
# @return [String]
|
|
9
|
-
# @!attribute
|
|
10
|
-
# @return [String]
|
|
12
|
+
# @!attribute date_of_birth
|
|
13
|
+
# @return [String] Format: YYYY-MM-DD
|
|
14
|
+
# @!attribute address
|
|
15
|
+
# @return [PassengerAddress]
|
|
11
16
|
class Passenger
|
|
12
|
-
attr_accessor :
|
|
17
|
+
attr_accessor :first_name,
|
|
18
|
+
:last_name,
|
|
13
19
|
:date_of_birth,
|
|
14
|
-
:
|
|
20
|
+
:address
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Partial address information for an airline passenger.
|
|
24
|
+
#
|
|
25
|
+
# @!attribute country
|
|
26
|
+
# @return [String] {CheckoutSdk::Common::Country}
|
|
27
|
+
class PassengerAddress
|
|
28
|
+
attr_accessor :country
|
|
15
29
|
end
|
|
16
30
|
end
|
|
17
31
|
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Payments
|
|
5
|
+
# @!attribute applepay
|
|
6
|
+
# @return [Applepay]
|
|
7
|
+
# @!attribute card
|
|
8
|
+
# @return [Card]
|
|
9
|
+
# @!attribute googlepay
|
|
10
|
+
# @return [Googlepay]
|
|
11
|
+
class PaymentMethodConfiguration
|
|
12
|
+
attr_accessor :applepay,
|
|
13
|
+
:card,
|
|
14
|
+
:googlepay
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Payments
|
|
5
|
+
# Details of a recurring subscription or installment plan associated with a payment.
|
|
6
|
+
#
|
|
7
|
+
# @!attribute amount_variability
|
|
8
|
+
# @return [String] Recurring-only. One of "Fixed" or "Variable".
|
|
9
|
+
# @!attribute financing
|
|
10
|
+
# @return [TrueClass, FalseClass] Installment-only.
|
|
11
|
+
# @!attribute amount
|
|
12
|
+
# @return [Integer] The amount to charge for each payment in the plan, in the minor currency unit.
|
|
13
|
+
# Required when source.type is "blik", amount_variability is "Fixed", and the recurring
|
|
14
|
+
# agreement is created without an initial payment (amount set to 0).
|
|
15
|
+
# @!attribute days_between_payments
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
# @!attribute total_number_of_payments
|
|
18
|
+
# @return [Integer]
|
|
19
|
+
# @!attribute current_payment_number
|
|
20
|
+
# @return [Integer]
|
|
21
|
+
# @!attribute expiry
|
|
22
|
+
# @return [String] ISO 8601 date-time
|
|
23
|
+
# @!attribute name
|
|
24
|
+
# @return [String] The name of the payment plan. Required when source.type is "blik".
|
|
25
|
+
# For Blik merchant-initiated requests using an external partner_agreement_id, this value
|
|
26
|
+
# is used as the Blik Alias Label. Max 35 characters.
|
|
27
|
+
# @!attribute start_date
|
|
28
|
+
# @return [String] The date on which the first payment will be taken, in YYYYMMDD format.
|
|
29
|
+
# Required when source.type is "blik" and the recurring agreement is created without an
|
|
30
|
+
# initial payment (amount set to 0).
|
|
31
|
+
class PaymentPlan
|
|
32
|
+
attr_accessor :amount_variability,
|
|
33
|
+
:financing,
|
|
34
|
+
:amount,
|
|
35
|
+
:days_between_payments,
|
|
36
|
+
:total_number_of_payments,
|
|
37
|
+
:current_payment_number,
|
|
38
|
+
:expiry,
|
|
39
|
+
:name,
|
|
40
|
+
:start_date
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -18,6 +18,8 @@ module CheckoutSdk
|
|
|
18
18
|
# @return [String]
|
|
19
19
|
# @!attribute description
|
|
20
20
|
# @return [String]
|
|
21
|
+
# @!attribute partial_authorization
|
|
22
|
+
# @return [PartialAuthorization]
|
|
21
23
|
# @!attribute authorization_type
|
|
22
24
|
# @return [String] {AuthorizationType}
|
|
23
25
|
# @!attribute capture
|
|
@@ -74,6 +76,7 @@ module CheckoutSdk
|
|
|
74
76
|
:merchant_initiated,
|
|
75
77
|
:reference,
|
|
76
78
|
:description,
|
|
79
|
+
:partial_authorization,
|
|
77
80
|
:authorization_type,
|
|
78
81
|
:capture,
|
|
79
82
|
:capture_on,
|
|
@@ -96,7 +99,8 @@ module CheckoutSdk
|
|
|
96
99
|
:items,
|
|
97
100
|
:retry,
|
|
98
101
|
:metadata,
|
|
99
|
-
:instruction
|
|
102
|
+
:instruction,
|
|
103
|
+
:fallback_source
|
|
100
104
|
end
|
|
101
105
|
end
|
|
102
106
|
end
|