stripe 18.1.0.pre.alpha.4 → 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 +56 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +19 -1
- 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_money_management_payout_method_created_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/object_types.rb +6 -0
- data/lib/stripe/params/account_create_params.rb +50 -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 +10 -10
- data/lib/stripe/params/account_person_update_params.rb +10 -10
- data/lib/stripe/params/account_session_create_params.rb +17 -0
- data/lib/stripe/params/account_update_params.rb +49 -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 +1 -1
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +2 -2
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +2 -2
- data/lib/stripe/params/billing/credit_grant_create_params.rb +2 -2
- data/lib/stripe/params/billing/credit_grant_list_params.rb +1 -1
- data/lib/stripe/params/billing/meter_event_create_params.rb +1 -1
- 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/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 +53 -41
- 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 +84 -1
- 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/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 +60 -60
- 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 +2 -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_update_params.rb +1 -1
- 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 +43 -39
- data/lib/stripe/params/payment_intent_create_params.rb +61 -57
- 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 +40 -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_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_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 +14 -14
- data/lib/stripe/params/quote_list_params.rb +2 -2
- data/lib/stripe/params/quote_update_params.rb +14 -14
- 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 +6 -6
- data/lib/stripe/params/setup_intent_create_params.rb +12 -12
- data/lib/stripe/params/setup_intent_update_params.rb +8 -8
- 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 +51 -27
- data/lib/stripe/params/subscription_item_create_params.rb +15 -15
- data/lib/stripe/params/subscription_item_delete_params.rb +2 -2
- data/lib/stripe/params/subscription_item_update_params.rb +15 -15
- 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 +10 -10
- data/lib/stripe/params/subscription_schedule_create_params.rb +31 -31
- data/lib/stripe/params/subscription_schedule_update_params.rb +31 -31
- data/lib/stripe/params/subscription_search_params.rb +1 -1
- data/lib/stripe/params/subscription_update_params.rb +49 -25
- 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/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 +22 -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 +3 -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/intent_create_params.rb +110 -40
- data/lib/stripe/params/v2/core/account_create_params.rb +36 -24
- data/lib/stripe/params/v2/core/account_link_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +8 -8
- data/lib/stripe/params/v2/core/account_update_params.rb +41 -29
- 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 +1 -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/financial_account_list_params.rb +4 -1
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +4 -1
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +4 -1
- 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/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/webhook_endpoint_create_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_update_params.rb +1 -1
- data/lib/stripe/params.rb +24 -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 +5 -5
- 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 +2 -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 +3 -3
- data/lib/stripe/resources/bank_account.rb +10 -10
- data/lib/stripe/resources/billing/alert.rb +2 -2
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -2
- data/lib/stripe/resources/billing/credit_grant.rb +3 -3
- data/lib/stripe/resources/billing/meter_event.rb +1 -1
- 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 +2 -2
- data/lib/stripe/resources/capital/financing_summary.rb +7 -4
- data/lib/stripe/resources/card.rb +2 -2
- data/lib/stripe/resources/cash_balance.rb +2 -2
- data/lib/stripe/resources/charge.rb +47 -35
- data/lib/stripe/resources/checkout/session.rb +19 -19
- data/lib/stripe/resources/climate/order.rb +1 -1
- data/lib/stripe/resources/confirmation_token.rb +11 -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 +63 -10
- data/lib/stripe/resources/discount.rb +5 -5
- 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 +1 -1
- data/lib/stripe/resources/identity/verification_report.rb +9 -9
- data/lib/stripe/resources/identity/verification_session.rb +11 -11
- data/lib/stripe/resources/invoice.rb +66 -34
- data/lib/stripe/resources/invoice_item.rb +9 -9
- data/lib/stripe/resources/invoice_line_item.rb +7 -7
- 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 +1 -1
- 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 +117 -74
- 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 +13 -13
- 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 +23 -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/promotion_code.rb +4 -4
- data/lib/stripe/resources/quote.rb +15 -15
- data/lib/stripe/resources/quote_line.rb +5 -5
- data/lib/stripe/resources/quote_preview_invoice.rb +64 -32
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +100 -100
- 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 +19 -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 +46 -14
- data/lib/stripe/resources/subscription_item.rb +22 -22
- data/lib/stripe/resources/subscription_schedule.rb +101 -101
- 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 +5 -5
- 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/intent_action.rb +139 -51
- data/lib/stripe/resources/v2/core/account.rb +174 -289
- 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/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/iam/api_key.rb +129 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +35 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +2 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +20 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -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/tax/manual_rule.rb +115 -0
- data/lib/stripe/resources/webhook_endpoint.rb +1 -1
- data/lib/stripe/resources.rb +19 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +1 -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/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 +2 -1
- data/lib/stripe/services/v1_services.rb +2 -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/iam/api_key_service.rb +76 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -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/payment_service.rb +3 -1
- 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/tax/manual_rule_service.rb +65 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2_services.rb +3 -1
- data/lib/stripe/services.rb +10 -0
- data/lib/stripe/stripe_object.rb +11 -3
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +6022 -3221
- metadata +55 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
# This object represents a customer of your business. Use it to [create recurring charges](https://stripe.com/
|
|
5
|
+
# This object represents a customer of your business. Use it to [create recurring charges](https://docs.stripe.com/invoicing/customer), [save payment](https://docs.stripe.com/payments/save-during-payment) and contact information,
|
|
6
6
|
# and track payments that belong to the same customer.
|
|
7
7
|
class Customer < APIResource
|
|
8
8
|
extend Stripe::APIOperations::Create
|
|
@@ -33,7 +33,7 @@ module Stripe
|
|
|
33
33
|
attr_reader :line2
|
|
34
34
|
# ZIP or postal code.
|
|
35
35
|
attr_reader :postal_code
|
|
36
|
-
# State, county, province, or region.
|
|
36
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
37
37
|
attr_reader :state
|
|
38
38
|
|
|
39
39
|
def self.inner_class_types
|
|
@@ -105,7 +105,7 @@ module Stripe
|
|
|
105
105
|
attr_reader :line2
|
|
106
106
|
# ZIP or postal code.
|
|
107
107
|
attr_reader :postal_code
|
|
108
|
-
# State, county, province, or region.
|
|
108
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
109
109
|
attr_reader :state
|
|
110
110
|
|
|
111
111
|
def self.inner_class_types
|
|
@@ -172,7 +172,7 @@ module Stripe
|
|
|
172
172
|
end
|
|
173
173
|
# The customer's address.
|
|
174
174
|
attr_reader :address
|
|
175
|
-
# The current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see [invoice_credit_balance](https://stripe.com/
|
|
175
|
+
# The current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see [invoice_credit_balance](https://docs.stripe.com/api/customers/object#customer_object-invoice_credit_balance).
|
|
176
176
|
attr_reader :balance
|
|
177
177
|
# The customer's business name.
|
|
178
178
|
attr_reader :business_name
|
|
@@ -182,15 +182,15 @@ module Stripe
|
|
|
182
182
|
attr_reader :created
|
|
183
183
|
# Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) the customer can be charged in for recurring billing purposes.
|
|
184
184
|
attr_reader :currency
|
|
185
|
-
#
|
|
185
|
+
# The ID of an Account representing a customer. You can use this ID with any v1 API that accepts a customer_account parameter.
|
|
186
186
|
attr_reader :customer_account
|
|
187
187
|
# ID of the default payment source for the customer.
|
|
188
188
|
#
|
|
189
|
-
# If you use payment methods created through the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/
|
|
189
|
+
# If you use payment methods created through the PaymentMethods API, see the [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) field instead.
|
|
190
190
|
attr_reader :default_source
|
|
191
191
|
# Tracks the most recent state change on any invoice belonging to the customer. Paying an invoice or marking it uncollectible via the API will set this field to false. An automatic payment failure or passing the `invoice.due_date` will set this field to `true`.
|
|
192
192
|
#
|
|
193
|
-
# If an invoice becomes uncollectible by [dunning](https://stripe.com/
|
|
193
|
+
# If an invoice becomes uncollectible by [dunning](https://docs.stripe.com/billing/automatic-collection), `delinquent` doesn't reset to `false`.
|
|
194
194
|
#
|
|
195
195
|
# If you care whether the customer has paid their most recent subscription invoice, use `subscription.status` instead. Paying or marking uncollectible any customer invoice regardless of whether it is the latest invoice for a subscription will always set this field to `false`.
|
|
196
196
|
attr_reader :delinquent
|
|
@@ -212,7 +212,7 @@ module Stripe
|
|
|
212
212
|
attr_reader :invoice_settings
|
|
213
213
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
214
214
|
attr_reader :livemode
|
|
215
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
215
|
+
# 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.
|
|
216
216
|
attr_reader :metadata
|
|
217
217
|
# The customer's full name or business name.
|
|
218
218
|
attr_reader :name
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
# Each customer has a [Balance](https://stripe.com/
|
|
5
|
+
# Each customer has a [Balance](https://docs.stripe.com/api/customers/object#customer_object-balance) value,
|
|
6
6
|
# which denotes a debit or credit that's automatically applied to their next invoice upon finalization.
|
|
7
|
-
# You may modify the value directly by using the [update customer API](https://stripe.com/
|
|
7
|
+
# You may modify the value directly by using the [update customer API](https://docs.stripe.com/api/customers/update),
|
|
8
8
|
# or by creating a Customer Balance Transaction, which increments or decrements the customer's `balance` by the specified `amount`.
|
|
9
9
|
#
|
|
10
|
-
# Related guide: [Customer balance](https://stripe.com/
|
|
10
|
+
# Related guide: [Customer balance](https://docs.stripe.com/billing/customer/balance)
|
|
11
11
|
class CustomerBalanceTransaction < APIResource
|
|
12
12
|
include Stripe::APIOperations::Save
|
|
13
13
|
|
|
@@ -28,7 +28,7 @@ module Stripe
|
|
|
28
28
|
attr_reader :currency
|
|
29
29
|
# The ID of the customer the transaction belongs to.
|
|
30
30
|
attr_reader :customer
|
|
31
|
-
#
|
|
31
|
+
# The ID of an Account representing a customer that the transaction belongs to.
|
|
32
32
|
attr_reader :customer_account
|
|
33
33
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
34
34
|
attr_reader :description
|
|
@@ -40,11 +40,11 @@ module Stripe
|
|
|
40
40
|
attr_reader :invoice
|
|
41
41
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
42
42
|
attr_reader :livemode
|
|
43
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
43
|
+
# 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.
|
|
44
44
|
attr_reader :metadata
|
|
45
45
|
# String representing the object's type. Objects of the same type share the same value.
|
|
46
46
|
attr_reader :object
|
|
47
|
-
# Transaction type: `adjustment`, `applied_to_invoice`, `credit_note`, `initial`, `invoice_overpaid`, `invoice_too_large`, `invoice_too_small`, `unspent_receiver_credit`, `unapplied_from_invoice`, `checkout_session_subscription_payment`, or `checkout_session_subscription_payment_canceled`. See the [Customer Balance page](https://stripe.com/
|
|
47
|
+
# Transaction type: `adjustment`, `applied_to_invoice`, `credit_note`, `initial`, `invoice_overpaid`, `invoice_too_large`, `invoice_too_small`, `unspent_receiver_credit`, `unapplied_from_invoice`, `checkout_session_subscription_payment`, or `checkout_session_subscription_payment_canceled`. See the [Customer Balance page](https://docs.stripe.com/billing/customer/balance#types) to learn more about transaction types.
|
|
48
48
|
attr_reader :type
|
|
49
49
|
|
|
50
50
|
def resource_url
|
|
@@ -13,9 +13,9 @@ module Stripe
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
class AdjustedForOverdraft < ::Stripe::StripeObject
|
|
16
|
-
# The [Balance Transaction](https://stripe.com/
|
|
16
|
+
# The [Balance Transaction](https://docs.stripe.com/api/balance_transactions/object) that corresponds to funds taken out of your Stripe balance.
|
|
17
17
|
attr_reader :balance_transaction
|
|
18
|
-
# The [Cash Balance Transaction](https://stripe.com/
|
|
18
|
+
# The [Cash Balance Transaction](https://docs.stripe.com/api/cash_balance_transactions/object) that brought the customer balance negative, triggering the clawback of funds.
|
|
19
19
|
attr_reader :linked_transaction
|
|
20
20
|
|
|
21
21
|
def self.inner_class_types
|
|
@@ -28,7 +28,7 @@ module Stripe
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
class AppliedToPayment < ::Stripe::StripeObject
|
|
31
|
-
# The [Payment Intent](https://stripe.com/
|
|
31
|
+
# The [Payment Intent](https://docs.stripe.com/api/payment_intents/object) that funds were applied to.
|
|
32
32
|
attr_reader :payment_intent
|
|
33
33
|
|
|
34
34
|
def self.inner_class_types
|
|
@@ -146,7 +146,7 @@ module Stripe
|
|
|
146
146
|
end
|
|
147
147
|
|
|
148
148
|
class RefundedFromPayment < ::Stripe::StripeObject
|
|
149
|
-
# The [Refund](https://stripe.com/
|
|
149
|
+
# The [Refund](https://docs.stripe.com/api/refunds/object) that moved these funds into the customer's cash balance.
|
|
150
150
|
attr_reader :refund
|
|
151
151
|
|
|
152
152
|
def self.inner_class_types
|
|
@@ -159,7 +159,7 @@ module Stripe
|
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
class TransferredToBalance < ::Stripe::StripeObject
|
|
162
|
-
# The [Balance Transaction](https://stripe.com/
|
|
162
|
+
# The [Balance Transaction](https://docs.stripe.com/api/balance_transactions/object) that corresponds to funds transferred to your Stripe balance.
|
|
163
163
|
attr_reader :balance_transaction
|
|
164
164
|
|
|
165
165
|
def self.inner_class_types
|
|
@@ -172,7 +172,7 @@ module Stripe
|
|
|
172
172
|
end
|
|
173
173
|
|
|
174
174
|
class UnappliedFromPayment < ::Stripe::StripeObject
|
|
175
|
-
# The [Payment Intent](https://stripe.com/
|
|
175
|
+
# The [Payment Intent](https://docs.stripe.com/api/payment_intents/object) that funds were unapplied from.
|
|
176
176
|
attr_reader :payment_intent
|
|
177
177
|
|
|
178
178
|
def self.inner_class_types
|
|
@@ -193,9 +193,9 @@ module Stripe
|
|
|
193
193
|
attr_reader :currency
|
|
194
194
|
# The customer whose available cash balance changed as a result of this transaction.
|
|
195
195
|
attr_reader :customer
|
|
196
|
-
#
|
|
196
|
+
# The ID of an Account representing a customer whose available cash balance changed as a result of this transaction.
|
|
197
197
|
attr_reader :customer_account
|
|
198
|
-
# The total available cash balance for the specified currency after this transaction was applied. Represented in the [smallest currency unit](https://stripe.com/
|
|
198
|
+
# The total available cash balance for the specified currency after this transaction was applied. Represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
199
199
|
attr_reader :ending_balance
|
|
200
200
|
# Attribute for field funded
|
|
201
201
|
attr_reader :funded
|
|
@@ -203,7 +203,7 @@ module Stripe
|
|
|
203
203
|
attr_reader :id
|
|
204
204
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
205
205
|
attr_reader :livemode
|
|
206
|
-
# The amount by which the cash balance changed, represented in the [smallest currency unit](https://stripe.com/
|
|
206
|
+
# The amount by which the cash balance changed, represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). A positive value represents funds being added to the cash balance, a negative value represents funds being removed from the cash balance.
|
|
207
207
|
attr_reader :net_amount
|
|
208
208
|
# String representing the object's type. Objects of the same type share the same value.
|
|
209
209
|
attr_reader :object
|
|
@@ -211,7 +211,7 @@ module Stripe
|
|
|
211
211
|
attr_reader :refunded_from_payment
|
|
212
212
|
# Attribute for field transferred_to_balance
|
|
213
213
|
attr_reader :transferred_to_balance
|
|
214
|
-
# The type of the cash balance transaction. New types may be added in future. See [Customer Balance](https://stripe.com/
|
|
214
|
+
# The type of the cash balance transaction. New types may be added in future. See [Customer Balance](https://docs.stripe.com/payments/customer-balance#types) to learn more about these types.
|
|
215
215
|
attr_reader :type
|
|
216
216
|
# Attribute for field unapplied_from_payment
|
|
217
217
|
attr_reader :unapplied_from_payment
|
|
@@ -139,6 +139,61 @@ module Stripe
|
|
|
139
139
|
end
|
|
140
140
|
|
|
141
141
|
class LineItemDetail < ::Stripe::StripeObject
|
|
142
|
+
class ProductDetails < ::Stripe::StripeObject
|
|
143
|
+
class CustomAttribute < ::Stripe::StripeObject
|
|
144
|
+
# The display name of the custom attribute.
|
|
145
|
+
attr_reader :display_name
|
|
146
|
+
# The value of the custom attribute.
|
|
147
|
+
attr_reader :value
|
|
148
|
+
|
|
149
|
+
def self.inner_class_types
|
|
150
|
+
@inner_class_types = {}
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
def self.field_remappings
|
|
154
|
+
@field_remappings = {}
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
class Disclosure < ::Stripe::StripeObject
|
|
159
|
+
# The content of the disclosure.
|
|
160
|
+
attr_reader :content
|
|
161
|
+
# The content type of the disclosure.
|
|
162
|
+
attr_reader :content_type
|
|
163
|
+
# The type of disclosure.
|
|
164
|
+
attr_reader :type
|
|
165
|
+
|
|
166
|
+
def self.inner_class_types
|
|
167
|
+
@inner_class_types = {}
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
def self.field_remappings
|
|
171
|
+
@field_remappings = {}
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
# Custom attributes for the product.
|
|
175
|
+
attr_reader :custom_attributes
|
|
176
|
+
# The description of the product.
|
|
177
|
+
attr_reader :description
|
|
178
|
+
# Disclosures for the product.
|
|
179
|
+
attr_reader :disclosures
|
|
180
|
+
# The images of the product.
|
|
181
|
+
attr_reader :images
|
|
182
|
+
# The title of the product.
|
|
183
|
+
attr_reader :title
|
|
184
|
+
|
|
185
|
+
def self.inner_class_types
|
|
186
|
+
@inner_class_types = { custom_attributes: CustomAttribute, disclosures: Disclosure }
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
def self.field_remappings
|
|
190
|
+
@field_remappings = {}
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
# The total discount for this line item. If no discount were applied, defaults to 0.
|
|
194
|
+
attr_reader :amount_discount
|
|
195
|
+
# The total before any discounts or taxes are applied.
|
|
196
|
+
attr_reader :amount_subtotal
|
|
142
197
|
# The description of the line item.
|
|
143
198
|
attr_reader :description
|
|
144
199
|
# The images of the line item.
|
|
@@ -147,19 +202,17 @@ module Stripe
|
|
|
147
202
|
attr_reader :key
|
|
148
203
|
# The name of the line item.
|
|
149
204
|
attr_reader :name
|
|
205
|
+
# Attribute for field product_details
|
|
206
|
+
attr_reader :product_details
|
|
150
207
|
# The quantity of the line item.
|
|
151
208
|
attr_reader :quantity
|
|
152
209
|
# The SKU ID of the line item.
|
|
153
210
|
attr_reader :sku_id
|
|
154
211
|
# The per-unit amount of the item before any discounts or taxes are applied.
|
|
155
212
|
attr_reader :unit_amount
|
|
156
|
-
# The total discount for this line item. If no discount were applied, defaults to 0.
|
|
157
|
-
attr_reader :amount_discount
|
|
158
|
-
# The total before any discounts or taxes are applied.
|
|
159
|
-
attr_reader :amount_subtotal
|
|
160
213
|
|
|
161
214
|
def self.inner_class_types
|
|
162
|
-
@inner_class_types = {}
|
|
215
|
+
@inner_class_types = { product_details: ProductDetails }
|
|
163
216
|
end
|
|
164
217
|
|
|
165
218
|
def self.field_remappings
|
|
@@ -283,14 +336,14 @@ module Stripe
|
|
|
283
336
|
@field_remappings = {}
|
|
284
337
|
end
|
|
285
338
|
end
|
|
286
|
-
# The amount fulfillment of the total details.
|
|
287
|
-
attr_reader :amount_fulfillment
|
|
288
|
-
# The amount tax of the total details.
|
|
289
|
-
attr_reader :amount_tax
|
|
290
339
|
# The amount of order-level discounts applied to the cart. The total discount amount for this session can be computed by summing the cart discount and the item discounts.
|
|
291
340
|
attr_reader :amount_cart_discount
|
|
341
|
+
# The amount fulfillment of the total details.
|
|
342
|
+
attr_reader :amount_fulfillment
|
|
292
343
|
# The amount of item-level discounts applied to the cart. The total discount amount for this session can be computed by summing the cart discount and the item discounts.
|
|
293
344
|
attr_reader :amount_items_discount
|
|
345
|
+
# The amount tax of the total details.
|
|
346
|
+
attr_reader :amount_tax
|
|
294
347
|
# The applicable fees of the total details.
|
|
295
348
|
attr_reader :applicable_fees
|
|
296
349
|
|
|
@@ -322,7 +375,7 @@ module Stripe
|
|
|
322
375
|
attr_reader :line_item_details
|
|
323
376
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
324
377
|
attr_reader :livemode
|
|
325
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
378
|
+
# 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.
|
|
326
379
|
attr_reader :metadata
|
|
327
380
|
# String representing the object's type. Objects of the same type share the same value.
|
|
328
381
|
attr_reader :object
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
# A discount represents the actual application of a [coupon](https://stripe.com
|
|
5
|
+
# A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
|
|
6
6
|
# It contains information about when the discount began, when it will end, and what it is applied to.
|
|
7
7
|
#
|
|
8
|
-
# Related guide: [Applying discounts to subscriptions](https://stripe.com/
|
|
8
|
+
# Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
|
|
9
9
|
class Discount < StripeObject
|
|
10
10
|
OBJECT_NAME = "discount"
|
|
11
11
|
def self.object_name
|
|
@@ -30,7 +30,7 @@ module Stripe
|
|
|
30
30
|
attr_reader :checkout_session
|
|
31
31
|
# The ID of the customer associated with this discount.
|
|
32
32
|
attr_reader :customer
|
|
33
|
-
# The ID of the account associated with this discount.
|
|
33
|
+
# The ID of the account representing the customer associated with this discount.
|
|
34
34
|
attr_reader :customer_account
|
|
35
35
|
# If the coupon has a duration of `repeating`, the date that this discount will end. If the coupon has a duration of `once` or `forever`, this attribute will be null.
|
|
36
36
|
attr_reader :end
|
|
@@ -44,6 +44,8 @@ module Stripe
|
|
|
44
44
|
attr_reader :object
|
|
45
45
|
# The promotion code applied to create this discount.
|
|
46
46
|
attr_reader :promotion_code
|
|
47
|
+
# The subscription schedule that this coupon is applied to, if it is applied to a particular subscription schedule.
|
|
48
|
+
attr_reader :schedule
|
|
47
49
|
# Attribute for field source
|
|
48
50
|
attr_reader :source
|
|
49
51
|
# Date that the coupon was applied.
|
|
@@ -52,8 +54,6 @@ module Stripe
|
|
|
52
54
|
attr_reader :subscription
|
|
53
55
|
# The subscription item that this coupon is applied to, if it is applied to a particular subscription item.
|
|
54
56
|
attr_reader :subscription_item
|
|
55
|
-
# The subscription schedule that this coupon is applied to, if it is applied to a particular subscription schedule.
|
|
56
|
-
attr_reader :schedule
|
|
57
57
|
# Always true for a deleted object
|
|
58
58
|
attr_reader :deleted
|
|
59
59
|
|
|
@@ -6,7 +6,7 @@ module Stripe
|
|
|
6
6
|
# When this happens, you have the opportunity to respond to the dispute with
|
|
7
7
|
# evidence that shows that the charge is legitimate.
|
|
8
8
|
#
|
|
9
|
-
# Related guide: [Disputes and fraud](https://stripe.com/
|
|
9
|
+
# Related guide: [Disputes and fraud](https://docs.stripe.com/disputes)
|
|
10
10
|
class Dispute < APIResource
|
|
11
11
|
extend Stripe::APIOperations::List
|
|
12
12
|
include Stripe::APIOperations::Save
|
|
@@ -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
|
|
@@ -80,7 +80,7 @@ module Stripe
|
|
|
80
80
|
attr_reader :line2
|
|
81
81
|
# ZIP or postal code.
|
|
82
82
|
attr_reader :postal_code
|
|
83
|
-
# State, county, province, or region.
|
|
83
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
84
84
|
attr_reader :state
|
|
85
85
|
|
|
86
86
|
def self.inner_class_types
|
|
@@ -412,7 +412,7 @@ module Stripe
|
|
|
412
412
|
attr_reader :is_charge_refundable
|
|
413
413
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
414
414
|
attr_reader :livemode
|
|
415
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
415
|
+
# 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.
|
|
416
416
|
attr_reader :metadata
|
|
417
417
|
# Network-dependent reason code for the dispute.
|
|
418
418
|
attr_reader :network_reason_code
|
|
@@ -422,7 +422,7 @@ module Stripe
|
|
|
422
422
|
attr_reader :payment_intent
|
|
423
423
|
# Attribute for field payment_method_details
|
|
424
424
|
attr_reader :payment_method_details
|
|
425
|
-
# Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `noncompliant`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://stripe.com/
|
|
425
|
+
# Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `noncompliant`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://docs.stripe.com/disputes/categories).
|
|
426
426
|
attr_reader :reason
|
|
427
427
|
# Attribute for field smart_disputes
|
|
428
428
|
attr_reader :smart_disputes
|
|
@@ -12,7 +12,7 @@ module Stripe
|
|
|
12
12
|
"entitlements.active_entitlement"
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
# The [Feature](https://stripe.com/
|
|
15
|
+
# The [Feature](https://docs.stripe.com/api/entitlements/feature) that the customer is entitled to.
|
|
16
16
|
attr_reader :feature
|
|
17
17
|
# Unique identifier for the object.
|
|
18
18
|
attr_reader :id
|
|
@@ -29,7 +29,7 @@ module Stripe
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
class Data < ::Stripe::StripeObject
|
|
32
|
-
# Object containing the API resource relevant to the event. For example, an `invoice.created` event will have a full [invoice object](https://stripe.com
|
|
32
|
+
# Object containing the API resource relevant to the event. For example, an `invoice.created` event will have a full [invoice object](https://api.stripe.com#invoice_object) as the value of the object key.
|
|
33
33
|
attr_reader :object
|
|
34
34
|
# Object containing the names of the updated attributes and their values prior to the event (only included in events of type `*.updated`). If an array attribute has any updated elements, this object contains the entire array. In Stripe API versions 2017-04-06 or earlier, an updated array attribute in this object includes only the updated array elements.
|
|
35
35
|
attr_reader :previous_attributes
|
|
@@ -10,13 +10,13 @@ module Stripe
|
|
|
10
10
|
# rate (for example, to dynamically price an item for a user with a default
|
|
11
11
|
# payment in a foreign currency).
|
|
12
12
|
#
|
|
13
|
-
# Please refer to our [Exchange Rates API](https://stripe.com/
|
|
13
|
+
# Please refer to our [Exchange Rates API](https://docs.stripe.com/fx-rates) guide for more details.
|
|
14
14
|
#
|
|
15
15
|
# *[Note: this integration path is supported but no longer recommended]* Additionally,
|
|
16
16
|
# you can guarantee that a charge is made with an exchange rate that you expect is
|
|
17
17
|
# current. To do so, you must pass in the exchange_rate to charges endpoints. If the
|
|
18
18
|
# value is no longer up to date, the charge won't go through. Please refer to our
|
|
19
|
-
# [Using with charges](https://stripe.com/
|
|
19
|
+
# [Using with charges](https://docs.stripe.com/exchange-rates) guide for more details.
|
|
20
20
|
#
|
|
21
21
|
# -----
|
|
22
22
|
#
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
# This object represents files hosted on Stripe's servers. You can upload
|
|
6
|
-
# files with the [create file](https://stripe.com
|
|
6
|
+
# files with the [create file](https://api.stripe.com#create_file) request
|
|
7
7
|
# (for example, when uploading dispute evidence). Stripe also
|
|
8
8
|
# creates files independently (for example, the results of a [Sigma scheduled
|
|
9
9
|
# query](https://docs.stripe.com/api#scheduled_queries)).
|
|
10
10
|
#
|
|
11
|
-
# Related guide: [File upload guide](https://stripe.com/
|
|
11
|
+
# Related guide: [File upload guide](https://docs.stripe.com/file-upload)
|
|
12
12
|
class File < APIResource
|
|
13
13
|
extend Stripe::APIOperations::Create
|
|
14
14
|
extend Stripe::APIOperations::List
|
|
@@ -26,11 +26,11 @@ module Stripe
|
|
|
26
26
|
attr_reader :filename
|
|
27
27
|
# Unique identifier for the object.
|
|
28
28
|
attr_reader :id
|
|
29
|
-
# A list of [file links](https://stripe.com
|
|
29
|
+
# A list of [file links](https://api.stripe.com#file_links) that point at this file.
|
|
30
30
|
attr_reader :links
|
|
31
31
|
# String representing the object's type. Objects of the same type share the same value.
|
|
32
32
|
attr_reader :object
|
|
33
|
-
# The [purpose](https://stripe.com/
|
|
33
|
+
# The [purpose](https://docs.stripe.com/file-upload#uploading-a-file) of the uploaded file.
|
|
34
34
|
attr_reader :purpose
|
|
35
35
|
# The size of the file object in bytes.
|
|
36
36
|
attr_reader :size
|
|
@@ -27,7 +27,7 @@ module Stripe
|
|
|
27
27
|
attr_reader :id
|
|
28
28
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
29
29
|
attr_reader :livemode
|
|
30
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
30
|
+
# 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.
|
|
31
31
|
attr_reader :metadata
|
|
32
32
|
# String representing the object's type. Objects of the same type share the same value.
|
|
33
33
|
attr_reader :object
|
|
@@ -16,9 +16,9 @@ module Stripe
|
|
|
16
16
|
nested_resource_class_methods :inferred_balance, operations: %i[list]
|
|
17
17
|
|
|
18
18
|
class AccountHolder < ::Stripe::StripeObject
|
|
19
|
-
# The ID of the Stripe account this account belongs to.
|
|
19
|
+
# The ID of the Stripe account that this account belongs to. Only available when `account_holder.type` is `account`.
|
|
20
20
|
attr_reader :account
|
|
21
|
-
# ID
|
|
21
|
+
# The ID for an Account representing a customer that this account belongs to. Only available when `account_holder.type` is `customer`.
|
|
22
22
|
attr_reader :customer
|
|
23
23
|
# Attribute for field customer_account
|
|
24
24
|
attr_reader :customer_account
|
|
@@ -233,7 +233,7 @@ module Stripe
|
|
|
233
233
|
attr_reader :subcategory
|
|
234
234
|
# The list of data refresh subscriptions requested on this account.
|
|
235
235
|
attr_reader :subscriptions
|
|
236
|
-
# The [PaymentMethod type](https://stripe.com/
|
|
236
|
+
# The [PaymentMethod type](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type)(s) that can be created from this account.
|
|
237
237
|
attr_reader :supported_payment_method_types
|
|
238
238
|
# The state of the most recent attempt to refresh the account transactions.
|
|
239
239
|
attr_reader :transaction_refresh
|
|
@@ -13,9 +13,9 @@ module Stripe
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
class AccountHolder < ::Stripe::StripeObject
|
|
16
|
-
# The ID of the Stripe account this account belongs to.
|
|
16
|
+
# The ID of the Stripe account that this account belongs to. Only available when `account_holder.type` is `account`.
|
|
17
17
|
attr_reader :account
|
|
18
|
-
# ID
|
|
18
|
+
# The ID for an Account representing a customer that this account belongs to. Only available when `account_holder.type` is `customer`.
|
|
19
19
|
attr_reader :customer
|
|
20
20
|
# Attribute for field customer_account
|
|
21
21
|
attr_reader :customer_account
|
|
@@ -110,7 +110,7 @@ module Stripe
|
|
|
110
110
|
attr_reader :id
|
|
111
111
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
112
112
|
attr_reader :livemode
|
|
113
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
113
|
+
# 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.
|
|
114
114
|
attr_reader :metadata
|
|
115
115
|
# String representing the object's type. Objects of the same type share the same value.
|
|
116
116
|
attr_reader :object
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
# Each customer has a [`balance`](https://stripe.com/
|
|
5
|
+
# Each customer has a [`balance`](https://docs.stripe.com/api/customers/object#customer_object-balance) that is
|
|
6
6
|
# automatically applied to future invoices and payments using the `customer_balance` payment method.
|
|
7
7
|
# Customers can fund this balance by initiating a bank transfer to any account in the
|
|
8
8
|
# `financial_addresses` field.
|
|
9
|
-
# Related guide: [Customer balance funding instructions](https://stripe.com/
|
|
9
|
+
# Related guide: [Customer balance funding instructions](https://docs.stripe.com/payments/customer-balance/funding-instructions)
|
|
10
10
|
class FundingInstructions < APIResource
|
|
11
11
|
OBJECT_NAME = "funding_instructions"
|
|
12
12
|
def self.object_name
|
|
@@ -27,7 +27,7 @@ module Stripe
|
|
|
27
27
|
attr_reader :line2
|
|
28
28
|
# ZIP or postal code.
|
|
29
29
|
attr_reader :postal_code
|
|
30
|
-
# State, county, province, or region.
|
|
30
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
31
31
|
attr_reader :state
|
|
32
32
|
|
|
33
33
|
def self.inner_class_types
|
|
@@ -50,7 +50,7 @@ module Stripe
|
|
|
50
50
|
attr_reader :line2
|
|
51
51
|
# ZIP or postal code.
|
|
52
52
|
attr_reader :postal_code
|
|
53
|
-
# State, county, province, or region.
|
|
53
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
54
54
|
attr_reader :state
|
|
55
55
|
|
|
56
56
|
def self.inner_class_types
|
|
@@ -100,7 +100,7 @@ module Stripe
|
|
|
100
100
|
attr_reader :line2
|
|
101
101
|
# ZIP or postal code.
|
|
102
102
|
attr_reader :postal_code
|
|
103
|
-
# State, county, province, or region.
|
|
103
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
104
104
|
attr_reader :state
|
|
105
105
|
|
|
106
106
|
def self.inner_class_types
|
|
@@ -123,7 +123,7 @@ module Stripe
|
|
|
123
123
|
attr_reader :line2
|
|
124
124
|
# ZIP or postal code.
|
|
125
125
|
attr_reader :postal_code
|
|
126
|
-
# State, county, province, or region.
|
|
126
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
127
127
|
attr_reader :state
|
|
128
128
|
|
|
129
129
|
def self.inner_class_types
|
|
@@ -171,7 +171,7 @@ module Stripe
|
|
|
171
171
|
attr_reader :line2
|
|
172
172
|
# ZIP or postal code.
|
|
173
173
|
attr_reader :postal_code
|
|
174
|
-
# State, county, province, or region.
|
|
174
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
175
175
|
attr_reader :state
|
|
176
176
|
|
|
177
177
|
def self.inner_class_types
|
|
@@ -194,7 +194,7 @@ module Stripe
|
|
|
194
194
|
attr_reader :line2
|
|
195
195
|
# ZIP or postal code.
|
|
196
196
|
attr_reader :postal_code
|
|
197
|
-
# State, county, province, or region.
|
|
197
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
198
198
|
attr_reader :state
|
|
199
199
|
|
|
200
200
|
def self.inner_class_types
|
|
@@ -240,7 +240,7 @@ module Stripe
|
|
|
240
240
|
attr_reader :line2
|
|
241
241
|
# ZIP or postal code.
|
|
242
242
|
attr_reader :postal_code
|
|
243
|
-
# State, county, province, or region.
|
|
243
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
244
244
|
attr_reader :state
|
|
245
245
|
|
|
246
246
|
def self.inner_class_types
|
|
@@ -263,7 +263,7 @@ module Stripe
|
|
|
263
263
|
attr_reader :line2
|
|
264
264
|
# ZIP or postal code.
|
|
265
265
|
attr_reader :postal_code
|
|
266
|
-
# State, county, province, or region.
|
|
266
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
267
267
|
attr_reader :state
|
|
268
268
|
|
|
269
269
|
def self.inner_class_types
|
|
@@ -311,7 +311,7 @@ module Stripe
|
|
|
311
311
|
attr_reader :line2
|
|
312
312
|
# ZIP or postal code.
|
|
313
313
|
attr_reader :postal_code
|
|
314
|
-
# State, county, province, or region.
|
|
314
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
315
315
|
attr_reader :state
|
|
316
316
|
|
|
317
317
|
def self.inner_class_types
|
|
@@ -334,7 +334,7 @@ module Stripe
|
|
|
334
334
|
attr_reader :line2
|
|
335
335
|
# ZIP or postal code.
|
|
336
336
|
attr_reader :postal_code
|
|
337
|
-
# State, county, province, or region.
|
|
337
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
338
338
|
attr_reader :state
|
|
339
339
|
|
|
340
340
|
def self.inner_class_types
|
|
@@ -384,7 +384,7 @@ module Stripe
|
|
|
384
384
|
attr_reader :line2
|
|
385
385
|
# ZIP or postal code.
|
|
386
386
|
attr_reader :postal_code
|
|
387
|
-
# State, county, province, or region.
|
|
387
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
388
388
|
attr_reader :state
|
|
389
389
|
|
|
390
390
|
def self.inner_class_types
|
|
@@ -407,7 +407,7 @@ module Stripe
|
|
|
407
407
|
attr_reader :line2
|
|
408
408
|
# ZIP or postal code.
|
|
409
409
|
attr_reader :postal_code
|
|
410
|
-
# State, county, province, or region.
|
|
410
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
411
411
|
attr_reader :state
|
|
412
412
|
|
|
413
413
|
def self.inner_class_types
|
|
@@ -10,7 +10,7 @@ module Stripe
|
|
|
10
10
|
# This allows us to compare future verification attempts against these entries.
|
|
11
11
|
# If a match is found, we categorize the new verification as unverified.
|
|
12
12
|
#
|
|
13
|
-
# To learn more, see [Identity Verification Blocklist](https://stripe.com/
|
|
13
|
+
# To learn more, see [Identity Verification Blocklist](https://docs.stripe.com/identity/review-tools#block-list)
|
|
14
14
|
class BlocklistEntry < APIResource
|
|
15
15
|
extend Stripe::APIOperations::Create
|
|
16
16
|
extend Stripe::APIOperations::List
|