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
|
@@ -4,23 +4,40 @@ module CheckoutSdk
|
|
|
4
4
|
module Accounts
|
|
5
5
|
# @!attribute reference
|
|
6
6
|
# @return [String]
|
|
7
|
-
# @!attribute
|
|
8
|
-
# @return [
|
|
7
|
+
# @!attribute is_draft
|
|
8
|
+
# @return [Boolean]
|
|
9
9
|
# @!attribute profile
|
|
10
10
|
# @return [Profile]
|
|
11
|
+
# @!attribute contact_details
|
|
12
|
+
# @return [ContactDetails]
|
|
11
13
|
# @!attribute company
|
|
12
14
|
# @return [Company]
|
|
15
|
+
# @!attribute processing_details
|
|
16
|
+
# @return [ProcessingDetails]
|
|
13
17
|
# @!attribute individual
|
|
14
18
|
# @return [Individual]
|
|
15
19
|
# @!attribute documents
|
|
16
20
|
# @return [OnboardSubEntityDocuments]
|
|
21
|
+
# @!attribute additional_info
|
|
22
|
+
# @return [AdditionalInfo]
|
|
23
|
+
# @!attribute seller_category
|
|
24
|
+
# @return [String] Identifier of a seller category configured on the platform
|
|
25
|
+
# during onboarding. Used for US ISV onboarding variants.
|
|
26
|
+
# @!attribute submitter
|
|
27
|
+
# @return [Submitter] Captures evidence of the end-user's consent to onboarding.
|
|
28
|
+
# Used for US ISV onboarding variants.
|
|
17
29
|
class OnboardEntity
|
|
18
30
|
attr_accessor :reference,
|
|
19
|
-
:
|
|
31
|
+
:is_draft,
|
|
20
32
|
:profile,
|
|
33
|
+
:contact_details,
|
|
21
34
|
:company,
|
|
35
|
+
:processing_details,
|
|
22
36
|
:individual,
|
|
23
|
-
:documents
|
|
37
|
+
:documents,
|
|
38
|
+
:additional_info,
|
|
39
|
+
:seller_category,
|
|
40
|
+
:submitter
|
|
24
41
|
end
|
|
25
42
|
end
|
|
26
43
|
end
|
|
@@ -2,16 +2,43 @@
|
|
|
2
2
|
|
|
3
3
|
module CheckoutSdk
|
|
4
4
|
module Accounts
|
|
5
|
-
# @!attribute
|
|
6
|
-
# @return [
|
|
5
|
+
# @!attribute identity_verification
|
|
6
|
+
# @return [EntityIdentificationDocument]
|
|
7
7
|
# @!attribute company_verification
|
|
8
8
|
# @return [CompanyVerification]
|
|
9
|
+
# @!attribute articles_of_association
|
|
10
|
+
# @return [ArticlesOfAssociationType]
|
|
11
|
+
# @!attribute bank_verification
|
|
12
|
+
# @return [BankVerification]
|
|
13
|
+
# @!attribute shareholder_structure
|
|
14
|
+
# @return [ShareholderStructure]
|
|
15
|
+
# @!attribute proof_of_legality
|
|
16
|
+
# @return [ProofOfLegality]
|
|
17
|
+
# @!attribute proof_of_principal_address
|
|
18
|
+
# @return [ProofOfPrincipalAddress]
|
|
19
|
+
# @!attribute additional_document1
|
|
20
|
+
# @return [AdditionalDocument]
|
|
21
|
+
# @!attribute additional_document2
|
|
22
|
+
# @return [AdditionalDocument]
|
|
23
|
+
# @!attribute additional_document3
|
|
24
|
+
# @return [AdditionalDocument]
|
|
9
25
|
# @!attribute tax_verification
|
|
10
26
|
# @return [TaxVerification]
|
|
27
|
+
# @!attribute financial_verification
|
|
28
|
+
# @return [FinancialVerification]
|
|
11
29
|
class OnboardSubEntityDocuments
|
|
12
|
-
attr_accessor :
|
|
30
|
+
attr_accessor :identity_verification,
|
|
13
31
|
:company_verification,
|
|
14
|
-
:
|
|
32
|
+
:articles_of_association,
|
|
33
|
+
:bank_verification,
|
|
34
|
+
:shareholder_structure,
|
|
35
|
+
:proof_of_legality,
|
|
36
|
+
:proof_of_principal_address,
|
|
37
|
+
:additional_document1,
|
|
38
|
+
:additional_document2,
|
|
39
|
+
:additional_document3,
|
|
40
|
+
:tax_verification,
|
|
41
|
+
:financial_verification
|
|
15
42
|
end
|
|
16
43
|
end
|
|
17
44
|
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Accounts
|
|
5
|
+
# @!attribute settlement_country
|
|
6
|
+
# @return [String]
|
|
7
|
+
# @!attribute target_countries
|
|
8
|
+
# @return [Array(String)]
|
|
9
|
+
# @!attribute annual_processing_volume
|
|
10
|
+
# @return [Integer]
|
|
11
|
+
# @!attribute average_transaction_value
|
|
12
|
+
# @return [Integer]
|
|
13
|
+
# @!attribute highest_transaction_value
|
|
14
|
+
# @return [Integer]
|
|
15
|
+
# @!attribute currency
|
|
16
|
+
# @return [CheckoutSdk::Common::Currency]
|
|
17
|
+
class ProcessingDetails
|
|
18
|
+
attr_accessor :settlement_country,
|
|
19
|
+
:target_countries,
|
|
20
|
+
:annual_processing_volume,
|
|
21
|
+
:average_transaction_value,
|
|
22
|
+
:highest_transaction_value,
|
|
23
|
+
:currency
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Accounts
|
|
5
|
+
# @!attribute type
|
|
6
|
+
# @return [ProofOfPrincipalAddressType]
|
|
7
|
+
# @!attribute front
|
|
8
|
+
# @return [String]
|
|
9
|
+
class ProofOfPrincipalAddress
|
|
10
|
+
attr_reader :type,
|
|
11
|
+
:front
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Accounts
|
|
5
|
+
# Request body for POST /accounts/entities/{id}/reserve-rules.
|
|
6
|
+
# Extends {ReserveRuleUpdateRequest} with `valid_from`.
|
|
7
|
+
#
|
|
8
|
+
# @!attribute valid_from
|
|
9
|
+
# @return [String] ISO-8601 timestamp; must be at least 15 minutes in the future.
|
|
10
|
+
class ReserveRuleCreateRequest < ReserveRuleUpdateRequest
|
|
11
|
+
attr_accessor :valid_from
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Accounts
|
|
5
|
+
# The length of time a rolling reserve collateral balance is held for.
|
|
6
|
+
#
|
|
7
|
+
# @!attribute weeks
|
|
8
|
+
# @return [Integer] Min 2, max 104.
|
|
9
|
+
class ReserveRuleHoldingDuration
|
|
10
|
+
attr_accessor :weeks
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Accounts
|
|
5
|
+
# Request body for PUT /accounts/entities/{entityId}/reserve-rules/{id}.
|
|
6
|
+
#
|
|
7
|
+
# @!attribute type
|
|
8
|
+
# @return [String] Reserve rule type (e.g. "rolling").
|
|
9
|
+
# @!attribute rolling
|
|
10
|
+
# @return [RollingReserveRule]
|
|
11
|
+
class ReserveRuleUpdateRequest
|
|
12
|
+
attr_accessor :type, :rolling
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Accounts
|
|
5
|
+
# Rolling reserve rule parameters.
|
|
6
|
+
#
|
|
7
|
+
# @!attribute percentage
|
|
8
|
+
# @return [Float] Min 0, max 100.
|
|
9
|
+
# @!attribute holding_duration
|
|
10
|
+
# @return [ReserveRuleHoldingDuration]
|
|
11
|
+
class RollingReserveRule
|
|
12
|
+
attr_accessor :percentage, :holding_duration
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Accounts
|
|
5
|
+
# @!attribute type
|
|
6
|
+
# @return [ShareholderStructureType]
|
|
7
|
+
# @!attribute front
|
|
8
|
+
# @return [String]
|
|
9
|
+
class ShareholderStructure
|
|
10
|
+
attr_accessor :type,
|
|
11
|
+
:front
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module Accounts
|
|
5
|
+
# Captures evidence of the end-user's consent to onboarding.
|
|
6
|
+
#
|
|
7
|
+
# @!attribute ip_address
|
|
8
|
+
# @return [String] IP address of the end-user submitting the onboarding request.
|
|
9
|
+
class Submitter
|
|
10
|
+
attr_accessor :ip_address
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'checkout_sdk/agentic_commerce/delegated_payment_method_card'
|
|
4
|
+
require 'checkout_sdk/agentic_commerce/delegated_payment_allowance'
|
|
5
|
+
require 'checkout_sdk/agentic_commerce/delegated_payment_billing_address'
|
|
6
|
+
require 'checkout_sdk/agentic_commerce/delegated_payment_risk_signal'
|
|
7
|
+
require 'checkout_sdk/agentic_commerce/delegated_payment_request'
|
|
8
|
+
require 'checkout_sdk/agentic_commerce/agentic_commerce_client'
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module AgenticCommerce
|
|
5
|
+
# Client for the Agentic Commerce Protocol API (Beta).
|
|
6
|
+
# Used by AI agents to create delegated payment tokens scoped to a single purchase.
|
|
7
|
+
class AgenticCommerceClient < Client
|
|
8
|
+
AGENTIC_COMMERCE = 'agentic_commerce'
|
|
9
|
+
DELEGATE_PAYMENT = 'delegate_payment'
|
|
10
|
+
private_constant :AGENTIC_COMMERCE, :DELEGATE_PAYMENT
|
|
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)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Create a delegated payment token.
|
|
19
|
+
# @param [Hash, DelegatedPaymentRequest] delegated_payment_request
|
|
20
|
+
# @param [String] idempotency_key Optional
|
|
21
|
+
def create_delegated_payment_token(delegated_payment_request, idempotency_key = nil)
|
|
22
|
+
api_client.invoke_post(
|
|
23
|
+
build_path(AGENTIC_COMMERCE, DELEGATE_PAYMENT),
|
|
24
|
+
sdk_authorization,
|
|
25
|
+
delegated_payment_request,
|
|
26
|
+
idempotency_key
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module AgenticCommerce
|
|
5
|
+
# Spend-limit allowance attached to a delegated payment.
|
|
6
|
+
#
|
|
7
|
+
# @!attribute reason
|
|
8
|
+
# @return [String] e.g. "purchase".
|
|
9
|
+
# @!attribute max_amount
|
|
10
|
+
# @return [Integer] Maximum amount in the minor currency unit.
|
|
11
|
+
# @!attribute currency
|
|
12
|
+
# @return [String] {CheckoutSdk::Common::Currency}
|
|
13
|
+
# @!attribute checkout_session_id
|
|
14
|
+
# @return [String]
|
|
15
|
+
# @!attribute merchant_id
|
|
16
|
+
# @return [String]
|
|
17
|
+
# @!attribute expires_at
|
|
18
|
+
# @return [String] RFC 3339 timestamp.
|
|
19
|
+
class DelegatedPaymentAllowance
|
|
20
|
+
attr_accessor :reason,
|
|
21
|
+
:max_amount,
|
|
22
|
+
:currency,
|
|
23
|
+
:checkout_session_id,
|
|
24
|
+
:merchant_id,
|
|
25
|
+
:expires_at
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module AgenticCommerce
|
|
5
|
+
# Billing address required for delegated payments. Mirrors swagger
|
|
6
|
+
# `DelegatedPaymentBillingAddress`. Required: `name`, `line_one`, `city`,
|
|
7
|
+
# `postal_code`, `country`.
|
|
8
|
+
#
|
|
9
|
+
# @!attribute name
|
|
10
|
+
# @return [String] Full customer name. [Required]
|
|
11
|
+
# @!attribute line_one
|
|
12
|
+
# @return [String] First line of the street address. [Required]
|
|
13
|
+
# @!attribute line_two
|
|
14
|
+
# @return [String] Second line of the street address.
|
|
15
|
+
# @!attribute city
|
|
16
|
+
# @return [String] [Required]
|
|
17
|
+
# @!attribute state
|
|
18
|
+
# @return [String] State / region.
|
|
19
|
+
# @!attribute postal_code
|
|
20
|
+
# @return [String] Postal/ZIP code. [Required]
|
|
21
|
+
# @!attribute country
|
|
22
|
+
# @return [String] ISO 3166-1 alpha-2. [Required]
|
|
23
|
+
class DelegatedPaymentBillingAddress
|
|
24
|
+
attr_accessor :name,
|
|
25
|
+
:line_one,
|
|
26
|
+
:line_two,
|
|
27
|
+
:city,
|
|
28
|
+
:state,
|
|
29
|
+
:postal_code,
|
|
30
|
+
:country
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module AgenticCommerce
|
|
5
|
+
# Card payment-method block used inside a {DelegatedPaymentRequest}.
|
|
6
|
+
# Mirrors swagger `DelegatedPaymentMethodCard`. Required fields per spec:
|
|
7
|
+
# `type`, `card_number_type`, `number`, `metadata`.
|
|
8
|
+
#
|
|
9
|
+
# @!attribute type
|
|
10
|
+
# @return [String] Always "card".
|
|
11
|
+
# @!attribute card_number_type
|
|
12
|
+
# @return [String] Either "fpan" or "network_token".
|
|
13
|
+
# @!attribute number
|
|
14
|
+
# @return [String] The full card number.
|
|
15
|
+
# @!attribute exp_month
|
|
16
|
+
# @return [String] Two-digit expiry month (MM).
|
|
17
|
+
# @!attribute exp_year
|
|
18
|
+
# @return [String] Four-digit expiry year (YYYY).
|
|
19
|
+
# @!attribute name
|
|
20
|
+
# @return [String] Cardholder name.
|
|
21
|
+
# @!attribute cvc
|
|
22
|
+
# @return [String] Card verification code.
|
|
23
|
+
# @!attribute cryptogram
|
|
24
|
+
# @return [String] Cryptogram for network-token transactions.
|
|
25
|
+
# @!attribute eci_value
|
|
26
|
+
# @return [String] ECI / Security Level Indicator value.
|
|
27
|
+
# @!attribute checks_performed
|
|
28
|
+
# @return [Array<String>] Verification checks performed on the card.
|
|
29
|
+
# @!attribute iin
|
|
30
|
+
# @return [String] Issuer Identification Number (BIN).
|
|
31
|
+
# @!attribute display_card_funding_type
|
|
32
|
+
# @return [String] "credit", "debit", or "prepaid".
|
|
33
|
+
# @!attribute display_wallet_type
|
|
34
|
+
# @return [String] Wallet type for display.
|
|
35
|
+
# @!attribute display_brand
|
|
36
|
+
# @return [String] Card brand for display (e.g. "Visa").
|
|
37
|
+
# @!attribute display_last4
|
|
38
|
+
# @return [String] Last four digits for display.
|
|
39
|
+
# @!attribute metadata
|
|
40
|
+
# @return [Hash{String => String}] Key-value pairs; required per swagger.
|
|
41
|
+
class DelegatedPaymentMethodCard
|
|
42
|
+
attr_accessor :type,
|
|
43
|
+
:card_number_type,
|
|
44
|
+
:number,
|
|
45
|
+
:exp_month,
|
|
46
|
+
:exp_year,
|
|
47
|
+
:name,
|
|
48
|
+
:cvc,
|
|
49
|
+
:cryptogram,
|
|
50
|
+
:eci_value,
|
|
51
|
+
:checks_performed,
|
|
52
|
+
:iin,
|
|
53
|
+
:display_card_funding_type,
|
|
54
|
+
:display_wallet_type,
|
|
55
|
+
:display_brand,
|
|
56
|
+
:display_last4,
|
|
57
|
+
:metadata
|
|
58
|
+
|
|
59
|
+
def initialize
|
|
60
|
+
@type = 'card'
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module AgenticCommerce
|
|
5
|
+
# Request body for POST /agentic_commerce/delegate_payment.
|
|
6
|
+
#
|
|
7
|
+
# @!attribute payment_method
|
|
8
|
+
# @return [DelegatedPaymentMethodCard]
|
|
9
|
+
# @!attribute allowance
|
|
10
|
+
# @return [DelegatedPaymentAllowance]
|
|
11
|
+
# @!attribute billing_address
|
|
12
|
+
# @return [DelegatedPaymentBillingAddress]
|
|
13
|
+
# @!attribute risk_signals
|
|
14
|
+
# @return [Array<DelegatedPaymentRiskSignal>]
|
|
15
|
+
# @!attribute metadata
|
|
16
|
+
# @return [Hash{String => String}] Free-form key/value metadata.
|
|
17
|
+
class DelegatedPaymentRequest
|
|
18
|
+
attr_accessor :payment_method,
|
|
19
|
+
:allowance,
|
|
20
|
+
:billing_address,
|
|
21
|
+
:risk_signals,
|
|
22
|
+
:metadata
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CheckoutSdk
|
|
4
|
+
module AgenticCommerce
|
|
5
|
+
# Risk signal attached to a delegated payment request. Mirrors swagger
|
|
6
|
+
# `DelegatedPaymentRiskSignal`. All three fields are required per spec.
|
|
7
|
+
#
|
|
8
|
+
# @!attribute type
|
|
9
|
+
# @return [String] Risk signal type. [Required]
|
|
10
|
+
# @!attribute score
|
|
11
|
+
# @return [Integer] Risk score. [Required]
|
|
12
|
+
# @!attribute action
|
|
13
|
+
# @return [String] Action taken based on the risk assessment. [Required]
|
|
14
|
+
class DelegatedPaymentRiskSignal
|
|
15
|
+
attr_accessor :type,
|
|
16
|
+
:score,
|
|
17
|
+
:action
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|