stripe 18.1.0.pre.beta.1 → 18.2.0.pre.alpha.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/lib/data/ca-certificates.crt +682 -518
- data/lib/stripe/api_requestor.rb +2 -0
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +3 -0
- data/lib/stripe/event_types.rb +360 -0
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +86 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +86 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +84 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +84 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +78 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +91 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +82 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +82 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +60 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
- data/lib/stripe/events/v2_iam_api_key_created_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_expired_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +38 -0
- data/lib/stripe/events/v2_iam_api_key_updated_event.rb +20 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +40 -0
- data/lib/stripe/params/account_create_params.rb +82 -28
- data/lib/stripe/params/account_external_account_create_params.rb +2 -2
- data/lib/stripe/params/account_external_account_update_params.rb +2 -2
- data/lib/stripe/params/account_notice_update_params.rb +1 -1
- data/lib/stripe/params/account_person_create_params.rb +42 -10
- data/lib/stripe/params/account_person_update_params.rb +42 -10
- data/lib/stripe/params/account_session_create_params.rb +17 -0
- data/lib/stripe/params/account_update_params.rb +81 -27
- data/lib/stripe/params/application_fee_refund_create_params.rb +1 -1
- data/lib/stripe/params/application_fee_refund_update_params.rb +1 -1
- data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
- data/lib/stripe/params/billing/alert_create_params.rb +121 -1
- data/lib/stripe/params/billing/alert_list_params.rb +4 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +5 -1
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +15 -3
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +2 -2
- data/lib/stripe/params/billing/credit_grant_create_params.rb +31 -4
- data/lib/stripe/params/billing/credit_grant_list_params.rb +1 -1
- data/lib/stripe/params/billing/meter_create_params.rb +4 -0
- data/lib/stripe/params/billing/meter_event_create_params.rb +1 -1
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +7 -3
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +7 -3
- data/lib/stripe/params/billing_portal/session_create_params.rb +7 -7
- data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
- data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
- data/lib/stripe/params/charge_capture_params.rb +9 -9
- data/lib/stripe/params/charge_create_params.rb +12 -12
- data/lib/stripe/params/charge_search_params.rb +1 -1
- data/lib/stripe/params/charge_update_params.rb +10 -10
- data/lib/stripe/params/checkout/session_create_params.rb +133 -42
- data/lib/stripe/params/checkout/session_update_params.rb +27 -15
- data/lib/stripe/params/climate/order_create_params.rb +1 -1
- data/lib/stripe/params/climate/order_update_params.rb +1 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +6 -6
- data/lib/stripe/params/coupon_create_params.rb +1 -1
- data/lib/stripe/params/coupon_update_params.rb +1 -1
- data/lib/stripe/params/credit_note_create_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_params.rb +1 -1
- data/lib/stripe/params/credit_note_update_params.rb +1 -1
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +2 -2
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +11 -1
- data/lib/stripe/params/customer_balance_transaction_update_params.rb +1 -1
- data/lib/stripe/params/customer_cash_balance_update_params.rb +1 -1
- data/lib/stripe/params/customer_create_params.rb +5 -5
- data/lib/stripe/params/customer_fund_cash_balance_params.rb +2 -2
- data/lib/stripe/params/customer_payment_source_create_params.rb +2 -2
- data/lib/stripe/params/customer_payment_source_update_params.rb +2 -2
- data/lib/stripe/params/customer_search_params.rb +1 -1
- data/lib/stripe/params/customer_update_params.rb +7 -7
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +138 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
- data/lib/stripe/params/dispute_update_params.rb +3 -3
- data/lib/stripe/params/external_account_create_params.rb +2 -2
- data/lib/stripe/params/external_account_update_params.rb +2 -2
- data/lib/stripe/params/file_create_params.rb +3 -3
- data/lib/stripe/params/file_link_create_params.rb +1 -1
- data/lib/stripe/params/file_link_update_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_list_params.rb +3 -3
- data/lib/stripe/params/financial_connections/session_create_params.rb +3 -3
- data/lib/stripe/params/forwarding/request_create_params.rb +1 -1
- data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
- data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +6 -6
- data/lib/stripe/params/identity/verification_session_list_params.rb +3 -3
- data/lib/stripe/params/identity/verification_session_update_params.rb +5 -5
- data/lib/stripe/params/invoice_add_lines_params.rb +21 -9
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -1
- data/lib/stripe/params/invoice_create_params.rb +37 -13
- data/lib/stripe/params/invoice_create_preview_params.rb +158 -39
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +1 -1
- data/lib/stripe/params/invoice_item_create_params.rb +8 -8
- data/lib/stripe/params/invoice_item_list_params.rb +2 -2
- data/lib/stripe/params/invoice_item_update_params.rb +6 -6
- data/lib/stripe/params/invoice_line_item_update_params.rb +20 -8
- data/lib/stripe/params/invoice_list_params.rb +6 -2
- data/lib/stripe/params/invoice_remove_lines_params.rb +1 -1
- data/lib/stripe/params/invoice_search_params.rb +1 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +21 -9
- data/lib/stripe/params/invoice_update_params.rb +34 -10
- data/lib/stripe/params/issuing/authorization_approve_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_create_params.rb +5 -5
- data/lib/stripe/params/issuing/authorization_decline_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_increment_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_reverse_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_update_params.rb +1 -1
- data/lib/stripe/params/issuing/card_create_params.rb +7 -7
- data/lib/stripe/params/issuing/card_list_params.rb +34 -1
- data/lib/stripe/params/issuing/card_update_params.rb +6 -6
- data/lib/stripe/params/issuing/cardholder_create_params.rb +11 -11
- data/lib/stripe/params/issuing/cardholder_update_params.rb +10 -10
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +5 -5
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +1 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +5 -5
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +4 -4
- data/lib/stripe/params/issuing/dispute_create_params.rb +2 -2
- data/lib/stripe/params/issuing/dispute_submit_params.rb +1 -1
- data/lib/stripe/params/issuing/dispute_update_params.rb +2 -2
- data/lib/stripe/params/issuing/personalization_design_create_params.rb +1 -1
- data/lib/stripe/params/issuing/personalization_design_update_params.rb +1 -1
- data/lib/stripe/params/issuing/program_create_params.rb +21 -0
- data/lib/stripe/params/issuing/program_list_params.rb +24 -0
- data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/program_update_params.rb +21 -0
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_refund_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_update_params.rb +1 -1
- data/lib/stripe/params/mandate_list_params.rb +1 -1
- data/lib/stripe/params/margin_create_params.rb +1 -1
- data/lib/stripe/params/margin_update_params.rb +1 -1
- data/lib/stripe/params/order_create_params.rb +12 -12
- data/lib/stripe/params/order_update_params.rb +12 -12
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +1 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +18 -18
- data/lib/stripe/params/payment_intent_confirm_params.rb +77 -39
- data/lib/stripe/params/payment_intent_create_params.rb +105 -54
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +4 -4
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +10 -10
- data/lib/stripe/params/payment_intent_list_params.rb +1 -1
- data/lib/stripe/params/payment_intent_search_params.rb +1 -1
- data/lib/stripe/params/payment_intent_update_params.rb +74 -40
- data/lib/stripe/params/payment_link_create_params.rb +32 -20
- data/lib/stripe/params/payment_link_update_params.rb +9 -9
- data/lib/stripe/params/payment_method_attach_params.rb +1 -1
- data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +40 -40
- data/lib/stripe/params/payment_method_configuration_update_params.rb +40 -40
- data/lib/stripe/params/payment_method_create_params.rb +4 -4
- data/lib/stripe/params/payment_method_update_params.rb +2 -2
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +2 -2
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +3 -3
- data/lib/stripe/params/payment_record_report_payment_params.rb +4 -4
- data/lib/stripe/params/payment_record_report_refund_params.rb +3 -3
- data/lib/stripe/params/payout_create_params.rb +1 -1
- data/lib/stripe/params/payout_reverse_params.rb +1 -1
- data/lib/stripe/params/payout_update_params.rb +1 -1
- data/lib/stripe/params/plan_create_params.rb +4 -4
- data/lib/stripe/params/plan_update_params.rb +2 -2
- data/lib/stripe/params/price_create_params.rb +6 -6
- data/lib/stripe/params/price_search_params.rb +1 -1
- data/lib/stripe/params/price_update_params.rb +3 -3
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +60 -0
- data/lib/stripe/params/product_create_params.rb +21 -8
- data/lib/stripe/params/product_feature_create_params.rb +1 -1
- data/lib/stripe/params/product_list_params.rb +1 -1
- data/lib/stripe/params/product_search_params.rb +1 -1
- data/lib/stripe/params/product_update_params.rb +18 -5
- data/lib/stripe/params/promotion_code_create_params.rb +3 -3
- data/lib/stripe/params/promotion_code_list_params.rb +1 -1
- data/lib/stripe/params/promotion_code_update_params.rb +1 -1
- data/lib/stripe/params/quote_create_params.rb +231 -11
- data/lib/stripe/params/quote_list_params.rb +2 -2
- data/lib/stripe/params/quote_update_params.rb +231 -11
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
- data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/account_evaluation_update_params.rb +18 -0
- data/lib/stripe/params/radar/value_list_create_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_update_params.rb +1 -1
- data/lib/stripe/params/refund_create_params.rb +2 -2
- data/lib/stripe/params/refund_update_params.rb +1 -1
- data/lib/stripe/params/reporting/report_run_create_params.rb +2 -2
- data/lib/stripe/params/setup_intent_confirm_params.rb +35 -6
- data/lib/stripe/params/setup_intent_create_params.rb +41 -12
- data/lib/stripe/params/setup_intent_update_params.rb +38 -9
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_update_params.rb +15 -0
- data/lib/stripe/params/shipping_rate_create_params.rb +2 -2
- data/lib/stripe/params/shipping_rate_update_params.rb +1 -1
- data/lib/stripe/params/source_create_params.rb +3 -3
- data/lib/stripe/params/source_update_params.rb +3 -3
- data/lib/stripe/params/subscription_create_params.rb +62 -22
- data/lib/stripe/params/subscription_item_create_params.rb +26 -10
- data/lib/stripe/params/subscription_item_delete_params.rb +2 -2
- data/lib/stripe/params/subscription_item_update_params.rb +26 -10
- data/lib/stripe/params/subscription_list_params.rb +3 -3
- data/lib/stripe/params/subscription_resume_params.rb +2 -2
- data/lib/stripe/params/subscription_schedule_amend_params.rb +42 -3
- data/lib/stripe/params/subscription_schedule_create_params.rb +85 -17
- data/lib/stripe/params/subscription_schedule_update_params.rb +85 -17
- data/lib/stripe/params/subscription_search_params.rb +1 -1
- data/lib/stripe/params/subscription_update_params.rb +60 -20
- data/lib/stripe/params/tax/association_find_params.rb +1 -1
- data/lib/stripe/params/tax/calculation_create_params.rb +7 -7
- data/lib/stripe/params/tax/settings_update_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_create_reversal_params.rb +9 -9
- data/lib/stripe/params/tax_id_create_params.rb +2 -2
- data/lib/stripe/params/tax_id_list_params.rb +2 -2
- data/lib/stripe/params/tax_rate_create_params.rb +1 -1
- data/lib/stripe/params/tax_rate_update_params.rb +1 -1
- data/lib/stripe/params/terminal/location_create_params.rb +2 -2
- data/lib/stripe/params/terminal/location_update_params.rb +2 -2
- data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_create_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +3 -3
- data/lib/stripe/params/terminal/reader_update_params.rb +1 -1
- data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +6 -6
- data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +5 -5
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +1 -1
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_update_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -1
- data/lib/stripe/params/token_create_params.rb +86 -22
- data/lib/stripe/params/topup_create_params.rb +2 -2
- data/lib/stripe/params/topup_update_params.rb +1 -1
- data/lib/stripe/params/transfer_create_params.rb +7 -3
- data/lib/stripe/params/transfer_reversal_create_params.rb +1 -1
- data/lib/stripe/params/transfer_reversal_update_params.rb +1 -1
- data/lib/stripe/params/transfer_update_params.rb +1 -1
- data/lib/stripe/params/treasury/credit_reversal_create_params.rb +1 -1
- data/lib/stripe/params/treasury/debit_reversal_create_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -1
- data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +2 -2
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +5 -5
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +3 -3
- data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +8 -1
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +4 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +4 -1
- data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
- data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_create_params.rb +425 -0
- data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
- data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
- data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
- data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
- data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
- data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
- data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +278 -0
- data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +758 -29
- data/lib/stripe/params/v2/core/account_link_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +267 -9
- data/lib/stripe/params/v2/core/account_update_params.rb +750 -35
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +5 -5
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
- data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
- data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
- data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
- data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +4 -1
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +12 -1
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +20 -1
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +16 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +19 -1
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +16 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +57 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +161 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +46 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +31 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +39 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +94 -0
- data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
- data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +94 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +11 -0
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
- data/lib/stripe/params/webhook_endpoint_create_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_update_params.rb +1 -1
- data/lib/stripe/params.rb +125 -0
- data/lib/stripe/resources/account.rb +27 -27
- data/lib/stripe/resources/account_link.rb +1 -1
- data/lib/stripe/resources/account_notice.rb +6 -6
- data/lib/stripe/resources/account_session.rb +29 -2
- data/lib/stripe/resources/application_fee.rb +2 -0
- data/lib/stripe/resources/application_fee_refund.rb +2 -2
- data/lib/stripe/resources/apps/secret.rb +1 -1
- data/lib/stripe/resources/balance.rb +85 -2
- data/lib/stripe/resources/balance_settings.rb +1 -1
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/balance_transfer.rb +139 -0
- data/lib/stripe/resources/bank_account.rb +10 -10
- data/lib/stripe/resources/billing/alert.rb +106 -2
- data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +2 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +84 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
- data/lib/stripe/resources/billing/credit_grant.rb +60 -4
- data/lib/stripe/resources/billing/meter.rb +2 -0
- data/lib/stripe/resources/billing/meter_event.rb +1 -1
- data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +5 -3
- data/lib/stripe/resources/billing_portal/session.rb +6 -6
- data/lib/stripe/resources/capability.rb +16 -16
- data/lib/stripe/resources/capital/financing_offer.rb +43 -2
- data/lib/stripe/resources/capital/financing_summary.rb +7 -4
- data/lib/stripe/resources/card.rb +20 -3
- data/lib/stripe/resources/cash_balance.rb +2 -2
- data/lib/stripe/resources/charge.rb +65 -35
- data/lib/stripe/resources/checkout/session.rb +111 -19
- data/lib/stripe/resources/climate/order.rb +1 -1
- data/lib/stripe/resources/confirmation_token.rb +29 -11
- data/lib/stripe/resources/coupon.rb +3 -3
- data/lib/stripe/resources/credit_note.rb +5 -5
- data/lib/stripe/resources/credit_note_line_item.rb +1 -1
- data/lib/stripe/resources/customer.rb +8 -8
- data/lib/stripe/resources/customer_balance_transaction.rb +6 -6
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +10 -10
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +479 -0
- data/lib/stripe/resources/discount.rb +5 -3
- data/lib/stripe/resources/dispute.rb +5 -5
- data/lib/stripe/resources/entitlements/active_entitlement.rb +1 -1
- data/lib/stripe/resources/event.rb +1 -1
- data/lib/stripe/resources/exchange_rate.rb +2 -2
- data/lib/stripe/resources/file.rb +4 -4
- data/lib/stripe/resources/file_link.rb +1 -1
- data/lib/stripe/resources/financial_connections/account.rb +3 -3
- data/lib/stripe/resources/financial_connections/session.rb +2 -2
- data/lib/stripe/resources/forwarding/request.rb +1 -1
- data/lib/stripe/resources/funding_instructions.rb +14 -14
- data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
- data/lib/stripe/resources/identity/verification_report.rb +13 -9
- data/lib/stripe/resources/identity/verification_session.rb +11 -11
- data/lib/stripe/resources/invoice.rb +79 -31
- data/lib/stripe/resources/invoice_item.rb +112 -8
- data/lib/stripe/resources/invoice_line_item.rb +111 -5
- data/lib/stripe/resources/invoice_payment.rb +1 -1
- data/lib/stripe/resources/invoice_rendering_template.rb +1 -1
- data/lib/stripe/resources/issuing/authorization.rb +20 -20
- data/lib/stripe/resources/issuing/card.rb +16 -12
- data/lib/stripe/resources/issuing/cardholder.rb +14 -14
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +5 -5
- data/lib/stripe/resources/issuing/dispute.rb +7 -7
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +1 -1
- data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
- data/lib/stripe/resources/issuing/program.rb +69 -0
- data/lib/stripe/resources/issuing/settlement.rb +2 -2
- data/lib/stripe/resources/issuing/token.rb +1 -1
- data/lib/stripe/resources/issuing/transaction.rb +13 -13
- data/lib/stripe/resources/line_item.rb +3 -3
- data/lib/stripe/resources/login_link.rb +1 -1
- data/lib/stripe/resources/margin.rb +1 -1
- data/lib/stripe/resources/order.rb +13 -13
- data/lib/stripe/resources/payment_attempt_record.rb +80 -22
- data/lib/stripe/resources/payment_intent.rb +161 -58
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +3 -3
- data/lib/stripe/resources/payment_link.rb +7 -7
- data/lib/stripe/resources/payment_method.rb +51 -13
- data/lib/stripe/resources/payment_method_balance.rb +68 -0
- data/lib/stripe/resources/payment_method_configuration.rb +4 -4
- data/lib/stripe/resources/payment_method_domain.rb +1 -1
- data/lib/stripe/resources/payment_record.rb +82 -22
- data/lib/stripe/resources/payout.rb +7 -7
- data/lib/stripe/resources/person.rb +59 -23
- data/lib/stripe/resources/plan.rb +5 -5
- data/lib/stripe/resources/price.rb +6 -6
- data/lib/stripe/resources/product.rb +9 -9
- data/lib/stripe/resources/product_catalog/trial_offer.rb +101 -0
- data/lib/stripe/resources/promotion_code.rb +4 -4
- data/lib/stripe/resources/quote.rb +253 -16
- data/lib/stripe/resources/quote_line.rb +9 -3
- data/lib/stripe/resources/quote_preview_invoice.rb +77 -29
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +102 -8
- data/lib/stripe/resources/radar/account_evaluation.rb +116 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +1 -1
- data/lib/stripe/resources/radar/value_list.rb +2 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -1
- data/lib/stripe/resources/refund.rb +3 -3
- data/lib/stripe/resources/reporting/report_run.rb +3 -3
- data/lib/stripe/resources/reporting/report_type.rb +3 -3
- data/lib/stripe/resources/reversal.rb +4 -4
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +17 -17
- data/lib/stripe/resources/setup_intent.rb +59 -19
- data/lib/stripe/resources/shared_payment/granted_token.rb +126 -0
- data/lib/stripe/resources/shipping_rate.rb +3 -3
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +1 -1
- data/lib/stripe/resources/source.rb +8 -8
- data/lib/stripe/resources/source_mandate_notification.rb +3 -3
- data/lib/stripe/resources/subscription.rb +66 -15
- data/lib/stripe/resources/subscription_item.rb +31 -8
- data/lib/stripe/resources/subscription_schedule.rb +103 -9
- data/lib/stripe/resources/tax/association.rb +3 -3
- data/lib/stripe/resources/tax/calculation.rb +12 -12
- data/lib/stripe/resources/tax/calculation_line_item.rb +7 -7
- data/lib/stripe/resources/tax/registration.rb +3 -3
- data/lib/stripe/resources/tax/settings.rb +2 -2
- data/lib/stripe/resources/tax/transaction.rb +9 -9
- data/lib/stripe/resources/tax/transaction_line_item.rb +5 -5
- data/lib/stripe/resources/tax_id.rb +4 -4
- data/lib/stripe/resources/tax_rate.rb +1 -1
- data/lib/stripe/resources/terminal/connection_token.rb +1 -1
- data/lib/stripe/resources/terminal/location.rb +3 -3
- data/lib/stripe/resources/terminal/reader.rb +10 -10
- data/lib/stripe/resources/token.rb +4 -4
- data/lib/stripe/resources/topup.rb +3 -3
- data/lib/stripe/resources/transfer.rb +9 -5
- data/lib/stripe/resources/transit_balance.rb +45 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +3 -3
- data/lib/stripe/resources/treasury/debit_reversal.rb +3 -3
- data/lib/stripe/resources/treasury/financial_account.rb +1 -1
- data/lib/stripe/resources/treasury/inbound_transfer.rb +5 -5
- data/lib/stripe/resources/treasury/outbound_payment.rb +6 -6
- data/lib/stripe/resources/treasury/outbound_transfer.rb +5 -5
- data/lib/stripe/resources/treasury/received_credit.rb +10 -10
- data/lib/stripe/resources/treasury/received_debit.rb +7 -7
- data/lib/stripe/resources/treasury/transaction.rb +11 -11
- data/lib/stripe/resources/treasury/transaction_entry.rb +11 -11
- data/lib/stripe/resources/v2/billing/cadence.rb +46 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
- data/lib/stripe/resources/v2/billing/intent.rb +86 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +483 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +274 -0
- data/lib/stripe/resources/v2/core/account.rb +1227 -253
- data/lib/stripe/resources/v2/core/account_link.rb +11 -11
- data/lib/stripe/resources/v2/core/account_person.rb +10 -10
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
- data/lib/stripe/resources/v2/core/event.rb +50 -1
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +21 -1
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +23 -1
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +15 -1
- data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +16 -1
- data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +83 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +52 -3
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +50 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +63 -3
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +48 -2
- data/lib/stripe/resources/v2/money_management/payout_method.rb +49 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +52 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +73 -1
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +65 -1
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +49 -1
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +186 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +92 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +78 -0
- data/lib/stripe/resources/v2/reporting/report.rb +116 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
- data/lib/stripe/resources/v2/tax/manual_rule.rb +115 -0
- data/lib/stripe/resources/webhook_endpoint.rb +1 -1
- data/lib/stripe/resources.rb +133 -0
- data/lib/stripe/services/balance_transfer_service.rb +17 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +1 -1
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
- data/lib/stripe/services/delegated_checkout_service.rb +13 -0
- data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
- data/lib/stripe/services/identity_service.rb +2 -1
- data/lib/stripe/services/issuing/program_service.rb +52 -0
- data/lib/stripe/services/issuing_service.rb +2 -1
- data/lib/stripe/services/payment_method_service.rb +12 -1
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
- data/lib/stripe/services/product_catalog_service.rb +13 -0
- data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment_service.rb +13 -0
- data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
- data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +5 -1
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
- data/lib/stripe/services/v2/billing_service.rb +14 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_service.rb +0 -4
- data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -2
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +2 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +2 -0
- data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
- data/lib/stripe/services/v2/money_management_service.rb +5 -1
- data/lib/stripe/services/v2/payment_service.rb +17 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +72 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +45 -0
- data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
- data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
- data/lib/stripe/services/v2/reporting_service.rb +16 -0
- data/lib/stripe/services/v2/tax/manual_rule_service.rb +65 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2/test_helper_service.rb +2 -1
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
- data/lib/stripe/services/v2_services.rb +5 -1
- data/lib/stripe/services.rb +47 -0
- data/lib/stripe/stripe_object.rb +30 -1
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +24028 -3406
- metadata +307 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
# The `Charge` object represents a single attempt to move money into your Stripe account.
|
|
6
|
-
# PaymentIntent confirmation is the most common way to create Charges, but [Account Debits](https://stripe.com/
|
|
6
|
+
# PaymentIntent confirmation is the most common way to create Charges, but [Account Debits](https://docs.stripe.com/connect/account-debits) may also create Charges.
|
|
7
7
|
# Some legacy payment flows create Charges directly, which is not recommended for new integrations.
|
|
8
8
|
class Charge < APIResource
|
|
9
9
|
extend Stripe::APIOperations::Create
|
|
@@ -31,7 +31,7 @@ module Stripe
|
|
|
31
31
|
attr_reader :line2
|
|
32
32
|
# ZIP or postal code.
|
|
33
33
|
attr_reader :postal_code
|
|
34
|
-
# State, county, province, or region.
|
|
34
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
35
35
|
attr_reader :state
|
|
36
36
|
|
|
37
37
|
def self.inner_class_types
|
|
@@ -139,15 +139,15 @@ module Stripe
|
|
|
139
139
|
@field_remappings = {}
|
|
140
140
|
end
|
|
141
141
|
end
|
|
142
|
-
# An enumerated value providing a more detailed explanation on [how to proceed with an error](https://stripe.com/
|
|
142
|
+
# An enumerated value providing a more detailed explanation on [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines).
|
|
143
143
|
attr_reader :advice_code
|
|
144
144
|
# For charges declined by the network, a 2 digit code which indicates the advice returned by the network on how to proceed with an error.
|
|
145
145
|
attr_reader :network_advice_code
|
|
146
146
|
# For charges declined by the network, an alphanumeric code which indicates the reason the charge failed.
|
|
147
147
|
attr_reader :network_decline_code
|
|
148
|
-
# Possible values are `approved_by_network`, `declined_by_network`, `not_sent_to_network`, and `reversed_after_approval`. The value `reversed_after_approval` indicates the payment was [blocked by Stripe](https://stripe.com/
|
|
148
|
+
# Possible values are `approved_by_network`, `declined_by_network`, `not_sent_to_network`, and `reversed_after_approval`. The value `reversed_after_approval` indicates the payment was [blocked by Stripe](https://docs.stripe.com/declines#blocked-payments) after bank authorization, and may temporarily appear as "pending" on a cardholder's statement.
|
|
149
149
|
attr_reader :network_status
|
|
150
|
-
# An enumerated value providing a more detailed explanation of the outcome's `type`. Charges blocked by Radar's default block rule have the value `highest_risk_level`. Charges placed in review by Radar's default review rule have the value `elevated_risk_level`. Charges blocked because the payment is unlikely to be authorized have the value `low_probability_of_authorization`. Charges authorized, blocked, or placed in review by custom rules have the value `rule`. See [understanding declines](https://stripe.com/
|
|
150
|
+
# An enumerated value providing a more detailed explanation of the outcome's `type`. Charges blocked by Radar's default block rule have the value `highest_risk_level`. Charges placed in review by Radar's default review rule have the value `elevated_risk_level`. Charges blocked because the payment is unlikely to be authorized have the value `low_probability_of_authorization`. Charges authorized, blocked, or placed in review by custom rules have the value `rule`. See [understanding declines](https://docs.stripe.com/declines) for more details.
|
|
151
151
|
attr_reader :reason
|
|
152
152
|
# Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated payments are `normal`, `elevated`, `highest`. For non-card payments, and card-based payments predating the public assignment of risk levels, this field will have the value `not_assessed`. In the event of an error in the evaluation, this field will have the value `unknown`. This field is only available with Radar.
|
|
153
153
|
attr_reader :risk_level
|
|
@@ -157,7 +157,7 @@ module Stripe
|
|
|
157
157
|
attr_reader :rule
|
|
158
158
|
# A human-readable description of the outcome type and reason, designed for you (the recipient of the payment), not your customer.
|
|
159
159
|
attr_reader :seller_message
|
|
160
|
-
# Possible values are `authorized`, `manual_review`, `issuer_declined`, `blocked`, and `invalid`. See [understanding declines](https://stripe.com/
|
|
160
|
+
# Possible values are `authorized`, `manual_review`, `issuer_declined`, `blocked`, and `invalid`. See [understanding declines](https://docs.stripe.com/declines) and [Radar reviews](https://docs.stripe.com/radar/reviews) for details.
|
|
161
161
|
attr_reader :type
|
|
162
162
|
|
|
163
163
|
def self.inner_class_types
|
|
@@ -215,6 +215,8 @@ module Stripe
|
|
|
215
215
|
class AcssDebit < ::Stripe::StripeObject
|
|
216
216
|
# Name of the bank associated with the bank account.
|
|
217
217
|
attr_reader :bank_name
|
|
218
|
+
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
219
|
+
attr_reader :expected_debit_date
|
|
218
220
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
219
221
|
attr_reader :fingerprint
|
|
220
222
|
# Institution number of the bank account
|
|
@@ -236,9 +238,9 @@ module Stripe
|
|
|
236
238
|
end
|
|
237
239
|
|
|
238
240
|
class Affirm < ::Stripe::StripeObject
|
|
239
|
-
# ID of the [location](https://stripe.com/
|
|
241
|
+
# ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
|
|
240
242
|
attr_reader :location
|
|
241
|
-
# ID of the [reader](https://stripe.com/
|
|
243
|
+
# ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
|
|
242
244
|
attr_reader :reader
|
|
243
245
|
# The Affirm transaction ID associated with this payment.
|
|
244
246
|
attr_reader :transaction_id
|
|
@@ -367,6 +369,8 @@ module Stripe
|
|
|
367
369
|
class AuBecsDebit < ::Stripe::StripeObject
|
|
368
370
|
# Bank-State-Branch number of the bank account.
|
|
369
371
|
attr_reader :bsb_number
|
|
372
|
+
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
373
|
+
attr_reader :expected_debit_date
|
|
370
374
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
371
375
|
attr_reader :fingerprint
|
|
372
376
|
# Last four digits of the bank account number.
|
|
@@ -384,6 +388,8 @@ module Stripe
|
|
|
384
388
|
end
|
|
385
389
|
|
|
386
390
|
class BacsDebit < ::Stripe::StripeObject
|
|
391
|
+
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
392
|
+
attr_reader :expected_debit_date
|
|
387
393
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
388
394
|
attr_reader :fingerprint
|
|
389
395
|
# Last four digits of the bank account number.
|
|
@@ -471,6 +477,19 @@ module Stripe
|
|
|
471
477
|
end
|
|
472
478
|
|
|
473
479
|
class Card < ::Stripe::StripeObject
|
|
480
|
+
class Benefits < ::Stripe::StripeObject
|
|
481
|
+
# Issuer of the benefit card utilized on this payment
|
|
482
|
+
attr_reader :issuer
|
|
483
|
+
|
|
484
|
+
def self.inner_class_types
|
|
485
|
+
@inner_class_types = {}
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
def self.field_remappings
|
|
489
|
+
@field_remappings = {}
|
|
490
|
+
end
|
|
491
|
+
end
|
|
492
|
+
|
|
474
493
|
class Checks < ::Stripe::StripeObject
|
|
475
494
|
# If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
476
495
|
attr_reader :address_line1_check
|
|
@@ -696,7 +715,7 @@ module Stripe
|
|
|
696
715
|
attr_reader :line2
|
|
697
716
|
# ZIP or postal code.
|
|
698
717
|
attr_reader :postal_code
|
|
699
|
-
# State, county, province, or region.
|
|
718
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
700
719
|
attr_reader :state
|
|
701
720
|
|
|
702
721
|
def self.inner_class_types
|
|
@@ -719,7 +738,7 @@ module Stripe
|
|
|
719
738
|
attr_reader :line2
|
|
720
739
|
# ZIP or postal code.
|
|
721
740
|
attr_reader :postal_code
|
|
722
|
-
# State, county, province, or region.
|
|
741
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
723
742
|
attr_reader :state
|
|
724
743
|
|
|
725
744
|
def self.inner_class_types
|
|
@@ -773,7 +792,7 @@ module Stripe
|
|
|
773
792
|
attr_reader :line2
|
|
774
793
|
# ZIP or postal code.
|
|
775
794
|
attr_reader :postal_code
|
|
776
|
-
# State, county, province, or region.
|
|
795
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
777
796
|
attr_reader :state
|
|
778
797
|
|
|
779
798
|
def self.inner_class_types
|
|
@@ -796,7 +815,7 @@ module Stripe
|
|
|
796
815
|
attr_reader :line2
|
|
797
816
|
# ZIP or postal code.
|
|
798
817
|
attr_reader :postal_code
|
|
799
|
-
# State, county, province, or region.
|
|
818
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
800
819
|
attr_reader :state
|
|
801
820
|
|
|
802
821
|
def self.inner_class_types
|
|
@@ -868,6 +887,8 @@ module Stripe
|
|
|
868
887
|
attr_reader :amount_requested
|
|
869
888
|
# Authorization code on the charge.
|
|
870
889
|
attr_reader :authorization_code
|
|
890
|
+
# Attribute for field benefits
|
|
891
|
+
attr_reader :benefits
|
|
871
892
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
872
893
|
attr_reader :brand
|
|
873
894
|
# When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.
|
|
@@ -898,7 +919,7 @@ module Stripe
|
|
|
898
919
|
attr_reader :incremental_authorization
|
|
899
920
|
# Installment details for this payment.
|
|
900
921
|
#
|
|
901
|
-
# For more information, see the [installments integration guide](https://stripe.com/
|
|
922
|
+
# For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
|
|
902
923
|
attr_reader :installments
|
|
903
924
|
# The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
|
904
925
|
attr_reader :issuer
|
|
@@ -929,6 +950,7 @@ module Stripe
|
|
|
929
950
|
|
|
930
951
|
def self.inner_class_types
|
|
931
952
|
@inner_class_types = {
|
|
953
|
+
benefits: Benefits,
|
|
932
954
|
checks: Checks,
|
|
933
955
|
decremental_authorization: DecrementalAuthorization,
|
|
934
956
|
extended_authorization: ExtendedAuthorization,
|
|
@@ -1035,7 +1057,7 @@ module Stripe
|
|
|
1035
1057
|
attr_reader :generated_card
|
|
1036
1058
|
# Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
|
1037
1059
|
attr_reader :iin
|
|
1038
|
-
# Whether this [PaymentIntent](https://stripe.com/
|
|
1060
|
+
# Whether this [PaymentIntent](https://docs.stripe.com/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
|
|
1039
1061
|
attr_reader :incremental_authorization_supported
|
|
1040
1062
|
# The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
|
1041
1063
|
attr_reader :issuer
|
|
@@ -1213,7 +1235,7 @@ module Stripe
|
|
|
1213
1235
|
end
|
|
1214
1236
|
|
|
1215
1237
|
class Ideal < ::Stripe::StripeObject
|
|
1216
|
-
# The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
1238
|
+
# The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
1217
1239
|
attr_reader :bank
|
|
1218
1240
|
# The Bank Identifier Code of the customer's bank.
|
|
1219
1241
|
attr_reader :bic
|
|
@@ -1513,6 +1535,8 @@ module Stripe
|
|
|
1513
1535
|
attr_reader :bank_name
|
|
1514
1536
|
# The numeric code for the bank account's bank branch.
|
|
1515
1537
|
attr_reader :branch_code
|
|
1538
|
+
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
1539
|
+
attr_reader :expected_debit_date
|
|
1516
1540
|
# Last four digits of the bank account number.
|
|
1517
1541
|
attr_reader :last4
|
|
1518
1542
|
# The suffix of the bank account number.
|
|
@@ -1585,9 +1609,9 @@ module Stripe
|
|
|
1585
1609
|
end
|
|
1586
1610
|
|
|
1587
1611
|
class Paynow < ::Stripe::StripeObject
|
|
1588
|
-
# ID of the [location](https://stripe.com/
|
|
1612
|
+
# ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
|
|
1589
1613
|
attr_reader :location
|
|
1590
|
-
# ID of the [reader](https://stripe.com/
|
|
1614
|
+
# ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
|
|
1591
1615
|
attr_reader :reader
|
|
1592
1616
|
# Reference number associated with this PayNow payment
|
|
1593
1617
|
attr_reader :reference
|
|
@@ -1628,7 +1652,7 @@ module Stripe
|
|
|
1628
1652
|
attr_reader :line2
|
|
1629
1653
|
# ZIP or postal code.
|
|
1630
1654
|
attr_reader :postal_code
|
|
1631
|
-
# State, county, province, or region.
|
|
1655
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1632
1656
|
attr_reader :state
|
|
1633
1657
|
|
|
1634
1658
|
def self.inner_class_types
|
|
@@ -1651,7 +1675,7 @@ module Stripe
|
|
|
1651
1675
|
attr_reader :line2
|
|
1652
1676
|
# ZIP or postal code.
|
|
1653
1677
|
attr_reader :postal_code
|
|
1654
|
-
# State, county, province, or region.
|
|
1678
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1655
1679
|
attr_reader :state
|
|
1656
1680
|
|
|
1657
1681
|
def self.inner_class_types
|
|
@@ -1889,11 +1913,13 @@ module Stripe
|
|
|
1889
1913
|
attr_reader :branch_code
|
|
1890
1914
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
1891
1915
|
attr_reader :country
|
|
1916
|
+
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
1917
|
+
attr_reader :expected_debit_date
|
|
1892
1918
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
1893
1919
|
attr_reader :fingerprint
|
|
1894
1920
|
# Last four characters of the IBAN.
|
|
1895
1921
|
attr_reader :last4
|
|
1896
|
-
# Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://stripe.com/
|
|
1922
|
+
# Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve).
|
|
1897
1923
|
attr_reader :mandate
|
|
1898
1924
|
|
|
1899
1925
|
def self.inner_class_types
|
|
@@ -2005,6 +2031,8 @@ module Stripe
|
|
|
2005
2031
|
attr_reader :account_type
|
|
2006
2032
|
# Name of the bank associated with the bank account.
|
|
2007
2033
|
attr_reader :bank_name
|
|
2034
|
+
# Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
2035
|
+
attr_reader :expected_debit_date
|
|
2008
2036
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
2009
2037
|
attr_reader :fingerprint
|
|
2010
2038
|
# Last four digits of the bank account number.
|
|
@@ -2038,9 +2066,9 @@ module Stripe
|
|
|
2038
2066
|
class WechatPay < ::Stripe::StripeObject
|
|
2039
2067
|
# Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
|
|
2040
2068
|
attr_reader :fingerprint
|
|
2041
|
-
# ID of the [location](https://stripe.com/
|
|
2069
|
+
# ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to.
|
|
2042
2070
|
attr_reader :location
|
|
2043
|
-
# ID of the [reader](https://stripe.com/
|
|
2071
|
+
# ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
|
|
2044
2072
|
attr_reader :reader
|
|
2045
2073
|
# Transaction ID of this particular WeChat Pay transaction.
|
|
2046
2074
|
attr_reader :transaction_id
|
|
@@ -2183,7 +2211,7 @@ module Stripe
|
|
|
2183
2211
|
attr_reader :swish
|
|
2184
2212
|
# Attribute for field twint
|
|
2185
2213
|
attr_reader :twint
|
|
2186
|
-
# The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/
|
|
2214
|
+
# The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type) for the full list of possible types.
|
|
2187
2215
|
# An additional hash is included on `payment_method_details` with a name matching this value.
|
|
2188
2216
|
# It contains information specific to the payment method.
|
|
2189
2217
|
attr_reader :type
|
|
@@ -2286,7 +2314,7 @@ module Stripe
|
|
|
2286
2314
|
end
|
|
2287
2315
|
|
|
2288
2316
|
class RadarOptions < ::Stripe::StripeObject
|
|
2289
|
-
# A [Radar Session](https://stripe.com/
|
|
2317
|
+
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
2290
2318
|
attr_reader :session
|
|
2291
2319
|
|
|
2292
2320
|
def self.inner_class_types
|
|
@@ -2310,7 +2338,7 @@ module Stripe
|
|
|
2310
2338
|
attr_reader :line2
|
|
2311
2339
|
# ZIP or postal code.
|
|
2312
2340
|
attr_reader :postal_code
|
|
2313
|
-
# State, county, province, or region.
|
|
2341
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2314
2342
|
attr_reader :state
|
|
2315
2343
|
|
|
2316
2344
|
def self.inner_class_types
|
|
@@ -2355,7 +2383,9 @@ module Stripe
|
|
|
2355
2383
|
@field_remappings = {}
|
|
2356
2384
|
end
|
|
2357
2385
|
end
|
|
2358
|
-
#
|
|
2386
|
+
# Funds that are in transit and destined for another balance or another connected account.
|
|
2387
|
+
attr_reader :allocated_funds
|
|
2388
|
+
# Amount intended to be collected by this payment. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
|
2359
2389
|
attr_reader :amount
|
|
2360
2390
|
# Amount in cents (or local equivalent) captured (can be less than the amount attribute on the charge if a partial capture was made).
|
|
2361
2391
|
attr_reader :amount_captured
|
|
@@ -2363,9 +2393,9 @@ module Stripe
|
|
|
2363
2393
|
attr_reader :amount_refunded
|
|
2364
2394
|
# ID of the Connect application that created the charge.
|
|
2365
2395
|
attr_reader :application
|
|
2366
|
-
# The application fee (if any) for the charge. [See the Connect documentation](https://stripe.com/
|
|
2396
|
+
# The application fee (if any) for the charge. [See the Connect documentation](https://docs.stripe.com/connect/direct-charges#collect-fees) for details.
|
|
2367
2397
|
attr_reader :application_fee
|
|
2368
|
-
# The amount of the application fee (if any) requested for the charge. [See the Connect documentation](https://stripe.com/
|
|
2398
|
+
# The amount of the application fee (if any) requested for the charge. [See the Connect documentation](https://docs.stripe.com/connect/direct-charges#collect-fees) for details.
|
|
2369
2399
|
attr_reader :application_fee_amount
|
|
2370
2400
|
# Authorization code on the charge.
|
|
2371
2401
|
attr_reader :authorization_code
|
|
@@ -2389,7 +2419,7 @@ module Stripe
|
|
|
2389
2419
|
attr_reader :disputed
|
|
2390
2420
|
# ID of the balance transaction that describes the reversal of the balance on your account due to payment failure.
|
|
2391
2421
|
attr_reader :failure_balance_transaction
|
|
2392
|
-
# Error code explaining reason for charge failure if available (see [the errors section](https://stripe.com/
|
|
2422
|
+
# Error code explaining reason for charge failure if available (see [the errors section](https://docs.stripe.com/error-codes) for a list of codes).
|
|
2393
2423
|
attr_reader :failure_code
|
|
2394
2424
|
# Message to user further explaining reason for charge failure if available.
|
|
2395
2425
|
attr_reader :failure_message
|
|
@@ -2401,13 +2431,13 @@ module Stripe
|
|
|
2401
2431
|
attr_reader :level3
|
|
2402
2432
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
2403
2433
|
attr_reader :livemode
|
|
2404
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
2434
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
2405
2435
|
attr_reader :metadata
|
|
2406
2436
|
# String representing the object's type. Objects of the same type share the same value.
|
|
2407
2437
|
attr_reader :object
|
|
2408
|
-
# The account (if any) the charge was made on behalf of without triggering an automatic transfer. See the [Connect documentation](https://stripe.com/
|
|
2438
|
+
# The account (if any) the charge was made on behalf of without triggering an automatic transfer. See the [Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers) for details.
|
|
2409
2439
|
attr_reader :on_behalf_of
|
|
2410
|
-
# Details about whether the payment was accepted, and why. See [understanding declines](https://stripe.com/
|
|
2440
|
+
# Details about whether the payment was accepted, and why. See [understanding declines](https://docs.stripe.com/declines) for details.
|
|
2411
2441
|
attr_reader :outcome
|
|
2412
2442
|
# `true` if the charge succeeded, or was successfully authorized for later capture.
|
|
2413
2443
|
attr_reader :paid
|
|
@@ -2419,7 +2449,7 @@ module Stripe
|
|
|
2419
2449
|
attr_reader :payment_method_details
|
|
2420
2450
|
# Attribute for field presentment_details
|
|
2421
2451
|
attr_reader :presentment_details
|
|
2422
|
-
# Options to configure Radar. See [Radar Session](https://stripe.com/
|
|
2452
|
+
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
2423
2453
|
attr_reader :radar_options
|
|
2424
2454
|
# This is the email address that the receipt for this charge was sent to.
|
|
2425
2455
|
attr_reader :receipt_email
|
|
@@ -2449,9 +2479,9 @@ module Stripe
|
|
|
2449
2479
|
attr_reader :status
|
|
2450
2480
|
# ID of the transfer to the `destination` account (only applicable if the charge was created using the `destination` parameter).
|
|
2451
2481
|
attr_reader :transfer
|
|
2452
|
-
# An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://stripe.com/
|
|
2482
|
+
# An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details.
|
|
2453
2483
|
attr_reader :transfer_data
|
|
2454
|
-
# A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/
|
|
2484
|
+
# A string that identifies this transaction as part of a group. See the [Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options) for details.
|
|
2455
2485
|
attr_reader :transfer_group
|
|
2456
2486
|
|
|
2457
2487
|
# Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
|
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Checkout
|
|
6
6
|
# A Checkout Session represents your customer's session as they pay for
|
|
7
|
-
# one-time purchases or subscriptions through [Checkout](https://stripe.com/
|
|
8
|
-
# or [Payment Links](https://stripe.com/
|
|
7
|
+
# one-time purchases or subscriptions through [Checkout](https://docs.stripe.com/payments/checkout)
|
|
8
|
+
# or [Payment Links](https://docs.stripe.com/payments/payment-links). We recommend creating a
|
|
9
9
|
# new Session each time your customer attempts to pay.
|
|
10
10
|
#
|
|
11
11
|
# Once payment is successful, the Checkout Session will contain a reference
|
|
12
|
-
# to the [Customer](https://stripe.com/
|
|
13
|
-
# [PaymentIntent](https://stripe.com/
|
|
14
|
-
# [Subscription](https://stripe.com/
|
|
12
|
+
# to the [Customer](https://docs.stripe.com/api/customers), and either the successful
|
|
13
|
+
# [PaymentIntent](https://docs.stripe.com/api/payment_intents) or an active
|
|
14
|
+
# [Subscription](https://docs.stripe.com/api/subscriptions).
|
|
15
15
|
#
|
|
16
16
|
# You can create a Checkout Session on your server and redirect to its URL
|
|
17
17
|
# to begin Checkout.
|
|
18
18
|
#
|
|
19
|
-
# Related guide: [Checkout quickstart](https://stripe.com/
|
|
19
|
+
# Related guide: [Checkout quickstart](https://docs.stripe.com/checkout/quickstart)
|
|
20
20
|
class Session < APIResource
|
|
21
21
|
extend Stripe::APIOperations::Create
|
|
22
22
|
extend Stripe::APIOperations::List
|
|
@@ -177,7 +177,7 @@ module Stripe
|
|
|
177
177
|
attr_reader :line2
|
|
178
178
|
# ZIP or postal code.
|
|
179
179
|
attr_reader :postal_code
|
|
180
|
-
# State, county, province, or region.
|
|
180
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
181
181
|
attr_reader :state
|
|
182
182
|
|
|
183
183
|
def self.inner_class_types
|
|
@@ -501,7 +501,7 @@ module Stripe
|
|
|
501
501
|
attr_reader :line2
|
|
502
502
|
# ZIP or postal code.
|
|
503
503
|
attr_reader :postal_code
|
|
504
|
-
# State, county, province, or region.
|
|
504
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
505
505
|
attr_reader :state
|
|
506
506
|
|
|
507
507
|
def self.inner_class_types
|
|
@@ -625,7 +625,7 @@ module Stripe
|
|
|
625
625
|
attr_reader :footer
|
|
626
626
|
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
627
627
|
attr_reader :issuer
|
|
628
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
628
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
629
629
|
attr_reader :metadata
|
|
630
630
|
# Options for invoice PDF rendering.
|
|
631
631
|
attr_reader :rendering_options
|
|
@@ -1040,7 +1040,7 @@ module Stripe
|
|
|
1040
1040
|
attr_reader :request_multicapture
|
|
1041
1041
|
# Request ability to [overcapture](/payments/overcapture) for this CheckoutSession.
|
|
1042
1042
|
attr_reader :request_overcapture
|
|
1043
|
-
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/
|
|
1043
|
+
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1044
1044
|
attr_reader :request_three_d_secure
|
|
1045
1045
|
# Attribute for field restrictions
|
|
1046
1046
|
attr_reader :restrictions
|
|
@@ -2119,10 +2119,10 @@ module Stripe
|
|
|
2119
2119
|
class Discount < ::Stripe::StripeObject
|
|
2120
2120
|
# The amount discounted.
|
|
2121
2121
|
attr_reader :amount
|
|
2122
|
-
# A discount represents the actual application of a [coupon](https://stripe.com
|
|
2122
|
+
# A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
|
|
2123
2123
|
# It contains information about when the discount began, when it will end, and what it is applied to.
|
|
2124
2124
|
#
|
|
2125
|
-
# Related guide: [Applying discounts to subscriptions](https://stripe.com/
|
|
2125
|
+
# Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
|
|
2126
2126
|
attr_reader :discount
|
|
2127
2127
|
|
|
2128
2128
|
def self.inner_class_types
|
|
@@ -2209,6 +2209,95 @@ module Stripe
|
|
|
2209
2209
|
@field_remappings = {}
|
|
2210
2210
|
end
|
|
2211
2211
|
end
|
|
2212
|
+
|
|
2213
|
+
class CheckoutItem < ::Stripe::StripeObject
|
|
2214
|
+
class PricingPlanSubscriptionItem < ::Stripe::StripeObject
|
|
2215
|
+
class ComponentConfigurations < ::Stripe::StripeObject
|
|
2216
|
+
class LicenseFeeComponent < ::Stripe::StripeObject
|
|
2217
|
+
# Attribute for field quantity
|
|
2218
|
+
attr_reader :quantity
|
|
2219
|
+
|
|
2220
|
+
def self.inner_class_types
|
|
2221
|
+
@inner_class_types = {}
|
|
2222
|
+
end
|
|
2223
|
+
|
|
2224
|
+
def self.field_remappings
|
|
2225
|
+
@field_remappings = {}
|
|
2226
|
+
end
|
|
2227
|
+
end
|
|
2228
|
+
# Attribute for field type
|
|
2229
|
+
attr_reader :type
|
|
2230
|
+
# Attribute for field license_fee_component
|
|
2231
|
+
attr_reader :license_fee_component
|
|
2232
|
+
|
|
2233
|
+
def self.inner_class_types
|
|
2234
|
+
@inner_class_types = { license_fee_component: LicenseFeeComponent }
|
|
2235
|
+
end
|
|
2236
|
+
|
|
2237
|
+
def self.field_remappings
|
|
2238
|
+
@field_remappings = {}
|
|
2239
|
+
end
|
|
2240
|
+
end
|
|
2241
|
+
# Attribute for field pricing_plan
|
|
2242
|
+
attr_reader :pricing_plan
|
|
2243
|
+
# Attribute for field pricing_plan_version
|
|
2244
|
+
attr_reader :pricing_plan_version
|
|
2245
|
+
# Attribute for field metadata
|
|
2246
|
+
attr_reader :metadata
|
|
2247
|
+
# Attribute for field component_configurations
|
|
2248
|
+
attr_reader :component_configurations
|
|
2249
|
+
# Attribute for field pricing_plan_subscription
|
|
2250
|
+
attr_reader :pricing_plan_subscription
|
|
2251
|
+
# Attribute for field billing_cadence
|
|
2252
|
+
attr_reader :billing_cadence
|
|
2253
|
+
|
|
2254
|
+
def self.inner_class_types
|
|
2255
|
+
@inner_class_types = { component_configurations: ComponentConfigurations }
|
|
2256
|
+
end
|
|
2257
|
+
|
|
2258
|
+
def self.field_remappings
|
|
2259
|
+
@field_remappings = {}
|
|
2260
|
+
end
|
|
2261
|
+
end
|
|
2262
|
+
|
|
2263
|
+
class RateCardSubscriptionItem < ::Stripe::StripeObject
|
|
2264
|
+
# Attribute for field rate_card
|
|
2265
|
+
attr_reader :rate_card
|
|
2266
|
+
# Attribute for field metadata
|
|
2267
|
+
attr_reader :metadata
|
|
2268
|
+
# Attribute for field rate_card_version
|
|
2269
|
+
attr_reader :rate_card_version
|
|
2270
|
+
# Attribute for field billing_cadence
|
|
2271
|
+
attr_reader :billing_cadence
|
|
2272
|
+
# Attribute for field rate_card_subscription
|
|
2273
|
+
attr_reader :rate_card_subscription
|
|
2274
|
+
|
|
2275
|
+
def self.inner_class_types
|
|
2276
|
+
@inner_class_types = {}
|
|
2277
|
+
end
|
|
2278
|
+
|
|
2279
|
+
def self.field_remappings
|
|
2280
|
+
@field_remappings = {}
|
|
2281
|
+
end
|
|
2282
|
+
end
|
|
2283
|
+
# Attribute for field type
|
|
2284
|
+
attr_reader :type
|
|
2285
|
+
# Attribute for field rate_card_subscription_item
|
|
2286
|
+
attr_reader :rate_card_subscription_item
|
|
2287
|
+
# Attribute for field pricing_plan_subscription_item
|
|
2288
|
+
attr_reader :pricing_plan_subscription_item
|
|
2289
|
+
|
|
2290
|
+
def self.inner_class_types
|
|
2291
|
+
@inner_class_types = {
|
|
2292
|
+
rate_card_subscription_item: RateCardSubscriptionItem,
|
|
2293
|
+
pricing_plan_subscription_item: PricingPlanSubscriptionItem,
|
|
2294
|
+
}
|
|
2295
|
+
end
|
|
2296
|
+
|
|
2297
|
+
def self.field_remappings
|
|
2298
|
+
@field_remappings = {}
|
|
2299
|
+
end
|
|
2300
|
+
end
|
|
2212
2301
|
# Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
|
|
2213
2302
|
attr_reader :adaptive_pricing
|
|
2214
2303
|
# When set, provides configuration for actions to take if this Checkout Session expires.
|
|
@@ -2232,7 +2321,7 @@ module Stripe
|
|
|
2232
2321
|
# Session with your internal systems.
|
|
2233
2322
|
attr_reader :client_reference_id
|
|
2234
2323
|
# The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. For `ui_mode: embedded`, the client secret is to be used when initializing Stripe.js embedded checkout.
|
|
2235
|
-
# For `ui_mode: custom`, use the client secret with [initCheckout](https://stripe.com/
|
|
2324
|
+
# For `ui_mode: custom`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end.
|
|
2236
2325
|
attr_reader :client_secret
|
|
2237
2326
|
# Information about the customer collected within the Checkout Session.
|
|
2238
2327
|
attr_reader :collected_information
|
|
@@ -2286,7 +2375,7 @@ module Stripe
|
|
|
2286
2375
|
attr_reader :livemode
|
|
2287
2376
|
# The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used.
|
|
2288
2377
|
attr_reader :locale
|
|
2289
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
2378
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
2290
2379
|
attr_reader :metadata
|
|
2291
2380
|
# The mode of the Checkout Session.
|
|
2292
2381
|
attr_reader :mode
|
|
@@ -2298,7 +2387,7 @@ module Stripe
|
|
|
2298
2387
|
attr_reader :optional_items
|
|
2299
2388
|
# Where the user is coming from. This informs the optimizations that are applied to the session.
|
|
2300
2389
|
attr_reader :origin_context
|
|
2301
|
-
# The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/
|
|
2390
|
+
# The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://docs.stripe.com/api/checkout/sessions/expire) instead.
|
|
2302
2391
|
attr_reader :payment_intent
|
|
2303
2392
|
# The ID of the Payment Link that created this Session.
|
|
2304
2393
|
attr_reader :payment_link
|
|
@@ -2324,13 +2413,13 @@ module Stripe
|
|
|
2324
2413
|
attr_reader :presentment_details
|
|
2325
2414
|
# The ID of the original expired Checkout Session that triggered the recovery flow.
|
|
2326
2415
|
attr_reader :recovered_from
|
|
2327
|
-
# This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/
|
|
2416
|
+
# This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
|
|
2328
2417
|
attr_reader :redirect_on_completion
|
|
2329
2418
|
# Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
|
|
2330
2419
|
attr_reader :return_url
|
|
2331
2420
|
# Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
|
|
2332
2421
|
attr_reader :saved_payment_method_options
|
|
2333
|
-
# The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/
|
|
2422
|
+
# The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://docs.stripe.com/api/checkout/sessions/expire) instead.
|
|
2334
2423
|
attr_reader :setup_intent
|
|
2335
2424
|
# When set, provides configuration for Checkout to collect a shipping address from a customer.
|
|
2336
2425
|
attr_reader :shipping_address_collection
|
|
@@ -2344,7 +2433,7 @@ module Stripe
|
|
|
2344
2433
|
# relevant text on the page, such as the submit button. `submit_type` can only be
|
|
2345
2434
|
# specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used.
|
|
2346
2435
|
attr_reader :submit_type
|
|
2347
|
-
# The ID of the [Subscription](https://stripe.com/
|
|
2436
|
+
# The ID of the [Subscription](https://docs.stripe.com/api/subscriptions) for Checkout Sessions in `subscription` mode.
|
|
2348
2437
|
attr_reader :subscription
|
|
2349
2438
|
# The URL the customer will be directed to after the payment or
|
|
2350
2439
|
# subscription creation is successful.
|
|
@@ -2355,11 +2444,13 @@ module Stripe
|
|
|
2355
2444
|
attr_reader :total_details
|
|
2356
2445
|
# The UI mode of the Session. Defaults to `hosted`.
|
|
2357
2446
|
attr_reader :ui_mode
|
|
2358
|
-
# The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://stripe.com/
|
|
2447
|
+
# The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.`
|
|
2359
2448
|
# This value is only present when the session is active.
|
|
2360
2449
|
attr_reader :url
|
|
2361
2450
|
# Wallet-specific configuration for this Checkout Session.
|
|
2362
2451
|
attr_reader :wallet_options
|
|
2452
|
+
# Attribute for field checkout_items
|
|
2453
|
+
attr_reader :checkout_items
|
|
2363
2454
|
|
|
2364
2455
|
# Creates a Checkout Session object.
|
|
2365
2456
|
def self.create(params = {}, opts = {})
|
|
@@ -2466,6 +2557,7 @@ module Stripe
|
|
|
2466
2557
|
tax_id_collection: TaxIdCollection,
|
|
2467
2558
|
total_details: TotalDetails,
|
|
2468
2559
|
wallet_options: WalletOptions,
|
|
2560
|
+
checkout_items: CheckoutItem,
|
|
2469
2561
|
}
|
|
2470
2562
|
end
|
|
2471
2563
|
|
|
@@ -100,7 +100,7 @@ module Stripe
|
|
|
100
100
|
attr_reader :id
|
|
101
101
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
102
102
|
attr_reader :livemode
|
|
103
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
103
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
104
104
|
attr_reader :metadata
|
|
105
105
|
# Quantity of carbon removal that is included in this order.
|
|
106
106
|
attr_reader :metric_tons
|