stripe 13.3.0 → 13.4.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1410 -650
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_operations/request.rb +1 -0
- data/lib/stripe/api_requestor.rb +1 -0
- data/lib/stripe/object_types.rb +32 -0
- data/lib/stripe/request_params.rb +24 -0
- data/lib/stripe/request_signing_authenticator.rb +79 -0
- data/lib/stripe/resources/account.rb +5793 -0
- data/lib/stripe/resources/account_link.rb +64 -0
- data/lib/stripe/resources/account_notice.rb +154 -0
- data/lib/stripe/resources/account_session.rb +1002 -0
- data/lib/stripe/resources/apple_pay_domain.rb +73 -0
- data/lib/stripe/resources/application.rb +23 -0
- data/lib/stripe/resources/application_fee.rb +120 -0
- data/lib/stripe/resources/application_fee_refund.rb +24 -0
- data/lib/stripe/resources/apps/secret.rb +166 -0
- data/lib/stripe/resources/balance.rb +162 -0
- data/lib/stripe/resources/balance_transaction.rb +141 -0
- data/lib/stripe/resources/bank_account.rb +113 -2
- data/lib/stripe/resources/billing/alert.rb +166 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +31 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +89 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +140 -0
- data/lib/stripe/resources/billing/credit_grant.rb +235 -0
- data/lib/stripe/resources/billing/meter.rb +203 -0
- data/lib/stripe/resources/billing/meter_error_report.rb +70 -0
- data/lib/stripe/resources/billing/meter_event.rb +45 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +51 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +21 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +639 -0
- data/lib/stripe/resources/billing_portal/session.rb +313 -0
- data/lib/stripe/resources/capability.rb +111 -0
- data/lib/stripe/resources/capital/financing_offer.rb +221 -0
- data/lib/stripe/resources/capital/financing_summary.rb +77 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +147 -0
- data/lib/stripe/resources/card.rb +111 -0
- data/lib/stripe/resources/cash_balance.rb +22 -0
- data/lib/stripe/resources/charge.rb +3687 -0
- data/lib/stripe/resources/checkout/session.rb +4162 -0
- data/lib/stripe/resources/climate/order.rb +216 -0
- data/lib/stripe/resources/climate/product.rb +69 -0
- data/lib/stripe/resources/climate/supplier.rb +67 -0
- data/lib/stripe/resources/confirmation_token.rb +1855 -0
- data/lib/stripe/resources/connect_collection_transfer.rb +29 -0
- data/lib/stripe/resources/country_spec.rb +76 -0
- data/lib/stripe/resources/coupon.rb +237 -0
- data/lib/stripe/resources/credit_note.rb +798 -0
- data/lib/stripe/resources/credit_note_line_item.rb +89 -0
- data/lib/stripe/resources/customer.rb +995 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +39 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +136 -0
- data/lib/stripe/resources/customer_session.rb +183 -0
- data/lib/stripe/resources/discount.rb +41 -0
- data/lib/stripe/resources/dispute.rb +767 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +54 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +26 -0
- data/lib/stripe/resources/entitlements/feature.rb +107 -0
- data/lib/stripe/resources/ephemeral_key.rb +26 -0
- data/lib/stripe/resources/event.rb +157 -0
- data/lib/stripe/resources/exchange_rate.rb +38 -0
- data/lib/stripe/resources/file.rb +134 -0
- data/lib/stripe/resources/file_link.rb +134 -0
- data/lib/stripe/resources/financial_connections/account.rb +307 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +30 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +24 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +12 -0
- data/lib/stripe/resources/financial_connections/institution.rb +112 -0
- data/lib/stripe/resources/financial_connections/session.rb +187 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +122 -0
- data/lib/stripe/resources/forwarding/request.rb +196 -0
- data/lib/stripe/resources/funding_instructions.rb +415 -0
- data/lib/stripe/resources/gift_cards/card.rb +245 -0
- data/lib/stripe/resources/gift_cards/transaction.rb +313 -0
- data/lib/stripe/resources/identity/verification_report.rb +335 -0
- data/lib/stripe/resources/identity/verification_session.rb +430 -0
- data/lib/stripe/resources/invoice.rb +9348 -0
- data/lib/stripe/resources/invoice_item.rb +536 -0
- data/lib/stripe/resources/invoice_line_item.rb +409 -0
- data/lib/stripe/resources/invoice_payment.rb +72 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +79 -0
- data/lib/stripe/resources/issuing/authorization.rb +1316 -2
- data/lib/stripe/resources/issuing/card.rb +794 -0
- data/lib/stripe/resources/issuing/cardholder.rb +768 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +693 -0
- data/lib/stripe/resources/issuing/dispute.rb +941 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +98 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +109 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +333 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +76 -0
- data/lib/stripe/resources/issuing/settlement.rb +65 -0
- data/lib/stripe/resources/issuing/token.rb +221 -0
- data/lib/stripe/resources/issuing/transaction.rb +1098 -0
- data/lib/stripe/resources/line_item.rb +98 -0
- data/lib/stripe/resources/login_link.rb +9 -0
- data/lib/stripe/resources/mandate.rb +214 -0
- data/lib/stripe/resources/margin.rb +143 -0
- data/lib/stripe/resources/order.rb +3238 -0
- data/lib/stripe/resources/payment_attempt_record.rb +226 -0
- data/lib/stripe/resources/payment_intent.rb +14630 -0
- data/lib/stripe/resources/payment_link.rb +1761 -0
- data/lib/stripe/resources/payment_method.rb +1981 -0
- data/lib/stripe/resources/payment_method_configuration.rb +3137 -0
- data/lib/stripe/resources/payment_method_domain.rb +176 -0
- data/lib/stripe/resources/payment_record.rb +824 -0
- data/lib/stripe/resources/payout.rb +267 -0
- data/lib/stripe/resources/person.rb +353 -0
- data/lib/stripe/resources/plan.rb +386 -0
- data/lib/stripe/resources/price.rb +782 -0
- data/lib/stripe/resources/product.rb +636 -0
- data/lib/stripe/resources/product_feature.rb +16 -0
- data/lib/stripe/resources/promotion_code.rb +261 -0
- data/lib/stripe/resources/quote.rb +3404 -0
- data/lib/stripe/resources/quote_line.rb +340 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +833 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +463 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +93 -0
- data/lib/stripe/resources/radar/value_list.rb +151 -0
- data/lib/stripe/resources/radar/value_list_item.rb +113 -0
- data/lib/stripe/resources/refund.rb +489 -0
- data/lib/stripe/resources/reporting/report_run.rb +182 -0
- data/lib/stripe/resources/reporting/report_type.rb +44 -0
- data/lib/stripe/resources/reserve_transaction.rb +26 -0
- data/lib/stripe/resources/reversal.rb +30 -0
- data/lib/stripe/resources/review.rb +135 -0
- data/lib/stripe/resources/setup_attempt.rb +474 -0
- data/lib/stripe/resources/setup_intent.rb +4371 -0
- data/lib/stripe/resources/shipping_rate.rb +303 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +67 -0
- data/lib/stripe/resources/source.rb +1571 -0
- data/lib/stripe/resources/source_mandate_notification.rb +79 -0
- data/lib/stripe/resources/source_transaction.rb +114 -0
- data/lib/stripe/resources/subscription.rb +2395 -0
- data/lib/stripe/resources/subscription_item.rb +502 -0
- data/lib/stripe/resources/subscription_schedule.rb +2790 -0
- data/lib/stripe/resources/tax/association.rb +100 -0
- data/lib/stripe/resources/tax/calculation.rb +474 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +76 -0
- data/lib/stripe/resources/tax/form.rb +253 -0
- data/lib/stripe/resources/tax/registration.rb +2174 -0
- data/lib/stripe/resources/tax/settings.rb +146 -0
- data/lib/stripe/resources/tax/transaction.rb +332 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +43 -0
- data/lib/stripe/resources/tax_code.rb +41 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +26 -0
- data/lib/stripe/resources/tax_id.rb +147 -0
- data/lib/stripe/resources/tax_rate.rb +245 -0
- data/lib/stripe/resources/terminal/configuration.rb +1175 -0
- data/lib/stripe/resources/terminal/connection_token.rb +21 -0
- data/lib/stripe/resources/terminal/location.rb +208 -0
- data/lib/stripe/resources/terminal/reader.rb +911 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +45 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +101 -0
- data/lib/stripe/resources/token.rb +1337 -0
- data/lib/stripe/resources/topup.rb +210 -0
- data/lib/stripe/resources/transfer.rb +188 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +113 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +126 -0
- data/lib/stripe/resources/treasury/financial_account.rb +766 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +237 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +285 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +587 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +428 -0
- data/lib/stripe/resources/treasury/received_credit.rb +335 -0
- data/lib/stripe/resources/treasury/received_debit.rb +298 -0
- data/lib/stripe/resources/treasury/transaction.rb +215 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +193 -0
- data/lib/stripe/resources/usage_record.rb +18 -0
- data/lib/stripe/resources/usage_record_summary.rb +28 -0
- data/lib/stripe/resources/v2/amount.rb +9 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +24 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +28 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +19 -0
- data/lib/stripe/resources/v2/event.rb +35 -0
- data/lib/stripe/resources/v2/event_destination.rb +78 -0
- data/lib/stripe/resources/webhook_endpoint.rb +148 -0
- data/lib/stripe/resources.rb +31 -0
- data/lib/stripe/services/account_capability_service.rb +33 -0
- data/lib/stripe/services/account_external_account_service.rb +293 -0
- data/lib/stripe/services/account_link_service.rb +53 -0
- data/lib/stripe/services/account_login_link_service.rb +9 -0
- data/lib/stripe/services/account_notice_service.rb +110 -0
- data/lib/stripe/services/account_person_service.rb +1014 -0
- data/lib/stripe/services/account_service.rb +4862 -0
- data/lib/stripe/services/account_session_service.rb +740 -0
- data/lib/stripe/services/apple_pay_domain_service.rb +56 -0
- data/lib/stripe/services/application_fee_refund_service.rb +60 -0
- data/lib/stripe/services/application_fee_service.rb +65 -0
- data/lib/stripe/services/apps/secret_service.rb +132 -0
- data/lib/stripe/services/balance_service.rb +9 -0
- data/lib/stripe/services/balance_transaction_service.rb +80 -0
- data/lib/stripe/services/billing/alert_service.rb +125 -0
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +41 -0
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +45 -0
- data/lib/stripe/services/billing/credit_grant_service.rb +167 -0
- data/lib/stripe/services/billing/meter_event_adjustment_service.rb +29 -0
- data/lib/stripe/services/billing/meter_event_service.rb +25 -0
- data/lib/stripe/services/billing/meter_event_summary_service.rb +46 -0
- data/lib/stripe/services/billing/meter_service.rb +142 -0
- data/lib/stripe/services/billing_portal/configuration_service.rb +492 -0
- data/lib/stripe/services/billing_portal/session_service.rb +192 -0
- data/lib/stripe/services/capital/financing_offer_service.rb +121 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +86 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/charge_service.rb +2010 -0
- data/lib/stripe/services/checkout/session_line_item_service.rb +21 -0
- data/lib/stripe/services/checkout/session_service.rb +2736 -0
- data/lib/stripe/services/climate/order_service.rb +113 -0
- data/lib/stripe/services/climate/product_service.rb +30 -0
- data/lib/stripe/services/climate/supplier_service.rb +30 -0
- data/lib/stripe/services/confirmation_token_service.rb +9 -0
- data/lib/stripe/services/country_spec_service.rb +30 -0
- data/lib/stripe/services/coupon_service.rb +174 -0
- data/lib/stripe/services/credit_note_line_item_service.rb +21 -0
- data/lib/stripe/services/credit_note_preview_lines_service.rb +184 -0
- data/lib/stripe/services/credit_note_service.rb +434 -0
- data/lib/stripe/services/customer_balance_transaction_service.rb +72 -0
- data/lib/stripe/services/customer_cash_balance_service.rb +30 -0
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +30 -0
- data/lib/stripe/services/customer_funding_instructions_service.rb +47 -0
- data/lib/stripe/services/customer_payment_method_service.rb +45 -0
- data/lib/stripe/services/customer_payment_source_service.rb +208 -0
- data/lib/stripe/services/customer_service.rb +684 -0
- data/lib/stripe/services/customer_session_service.rb +106 -0
- data/lib/stripe/services/customer_tax_id_service.rb +50 -0
- data/lib/stripe/services/dispute_service.rb +439 -0
- data/lib/stripe/services/entitlements/active_entitlement_service.rb +40 -0
- data/lib/stripe/services/entitlements/feature_service.rb +87 -0
- data/lib/stripe/services/ephemeral_key_service.rb +40 -0
- data/lib/stripe/services/event_service.rb +75 -0
- data/lib/stripe/services/exchange_rate_service.rb +30 -0
- data/lib/stripe/services/file_link_service.rb +108 -0
- data/lib/stripe/services/file_service.rb +102 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +40 -0
- data/lib/stripe/services/financial_connections/account_owner_service.rb +31 -0
- data/lib/stripe/services/financial_connections/account_service.rb +108 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +60 -0
- data/lib/stripe/services/financial_connections/session_service.rb +108 -0
- data/lib/stripe/services/financial_connections/transaction_service.rb +79 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/forwarding/request_service.rb +120 -0
- data/lib/stripe/services/gift_cards/card_service.rb +183 -0
- data/lib/stripe/services/gift_cards/transaction_service.rb +225 -0
- data/lib/stripe/services/gift_cards_service.rb +14 -0
- data/lib/stripe/services/identity/verification_report_service.rb +75 -0
- data/lib/stripe/services/identity/verification_session_service.rb +261 -0
- data/lib/stripe/services/invoice_item_service.rb +454 -0
- data/lib/stripe/services/invoice_line_item_service.rb +277 -0
- data/lib/stripe/services/invoice_payment_service.rb +58 -0
- data/lib/stripe/services/invoice_rendering_template_service.rb +56 -0
- data/lib/stripe/services/invoice_service.rb +6375 -1
- data/lib/stripe/services/invoice_upcoming_lines_service.rb +2142 -0
- data/lib/stripe/services/issuing/authorization_service.rb +118 -0
- data/lib/stripe/services/issuing/card_service.rb +525 -0
- data/lib/stripe/services/issuing/cardholder_service.rb +599 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +560 -0
- data/lib/stripe/services/issuing/dispute_service.rb +731 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +70 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +90 -0
- data/lib/stripe/services/issuing/personalization_design_service.rb +222 -0
- data/lib/stripe/services/issuing/physical_bundle_service.rb +45 -0
- data/lib/stripe/services/issuing/token_service.rb +83 -0
- data/lib/stripe/services/issuing/transaction_service.rb +93 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +9 -0
- data/lib/stripe/services/margin_service.rb +130 -0
- data/lib/stripe/services/order_line_item_service.rb +38 -0
- data/lib/stripe/services/order_service.rb +2518 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +50 -0
- data/lib/stripe/services/payment_intent_service.rb +12203 -0
- data/lib/stripe/services/payment_link_line_item_service.rb +21 -0
- data/lib/stripe/services/payment_link_service.rb +1343 -0
- data/lib/stripe/services/payment_method_configuration_service.rb +2148 -0
- data/lib/stripe/services/payment_method_domain_service.rb +84 -0
- data/lib/stripe/services/payment_method_service.rb +977 -0
- data/lib/stripe/services/payment_record_service.rb +610 -0
- data/lib/stripe/services/payout_service.rb +182 -0
- data/lib/stripe/services/plan_service.rb +296 -0
- data/lib/stripe/services/price_service.rb +603 -0
- data/lib/stripe/services/product_feature_service.rb +46 -0
- data/lib/stripe/services/product_service.rb +533 -0
- data/lib/stripe/services/promotion_code_service.rb +203 -0
- data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +21 -0
- data/lib/stripe/services/quote_line_item_service.rb +21 -0
- data/lib/stripe/services/quote_line_service.rb +38 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +38 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +38 -0
- data/lib/stripe/services/quote_service.rb +2628 -1
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +70 -0
- data/lib/stripe/services/radar/value_list_item_service.rb +90 -0
- data/lib/stripe/services/radar/value_list_service.rb +119 -0
- data/lib/stripe/services/refund_service.rb +158 -0
- data/lib/stripe/services/reporting/report_run_service.rb +122 -0
- data/lib/stripe/services/reporting/report_type_service.rb +18 -0
- data/lib/stripe/services/review_service.rb +63 -0
- data/lib/stripe/services/setup_attempt_service.rb +59 -0
- data/lib/stripe/services/setup_intent_service.rb +3923 -0
- data/lib/stripe/services/shipping_rate_service.rb +227 -0
- data/lib/stripe/services/sigma/scheduled_query_run_service.rb +30 -0
- data/lib/stripe/services/source_service.rb +693 -0
- data/lib/stripe/services/source_transaction_service.rb +21 -0
- data/lib/stripe/services/subscription_item_service.rb +439 -0
- data/lib/stripe/services/subscription_item_usage_record_service.rb +21 -0
- data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +21 -0
- data/lib/stripe/services/subscription_schedule_service.rb +2343 -0
- data/lib/stripe/services/subscription_service.rb +1967 -0
- data/lib/stripe/services/tax/association_service.rb +32 -0
- data/lib/stripe/services/tax/calculation_line_item_service.rb +21 -0
- data/lib/stripe/services/tax/calculation_service.rb +235 -0
- data/lib/stripe/services/tax/form_service.rb +107 -0
- data/lib/stripe/services/tax/registration_service.rb +1398 -0
- data/lib/stripe/services/tax/settings_service.rb +82 -0
- data/lib/stripe/services/tax/transaction_line_item_service.rb +21 -0
- data/lib/stripe/services/tax/transaction_service.rb +128 -0
- data/lib/stripe/services/tax_code_service.rb +30 -0
- data/lib/stripe/services/tax_id_service.rb +90 -0
- data/lib/stripe/services/tax_rate_service.rb +182 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/configuration_service.rb +901 -0
- data/lib/stripe/services/terminal/connection_token_service.rb +13 -0
- data/lib/stripe/services/terminal/location_service.rb +165 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
- data/lib/stripe/services/terminal/reader_service.rb +496 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +762 -0
- data/lib/stripe/services/test_helpers/customer_service.rb +21 -0
- data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +844 -0
- data/lib/stripe/services/test_helpers/issuing/card_service.rb +45 -0
- data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +43 -0
- data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +723 -0
- data/lib/stripe/services/test_helpers/refund_service.rb +9 -0
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +48 -0
- data/lib/stripe/services/test_helpers/test_clock_service.rb +63 -0
- data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +39 -0
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +93 -0
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +93 -0
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +95 -0
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +95 -0
- data/lib/stripe/services/token_service.rb +1301 -0
- data/lib/stripe/services/topup_service.rb +163 -0
- data/lib/stripe/services/transfer_reversal_service.rb +74 -0
- data/lib/stripe/services/transfer_service.rb +138 -0
- data/lib/stripe/services/treasury/credit_reversal_service.rb +67 -0
- data/lib/stripe/services/treasury/debit_reversal_service.rb +72 -0
- data/lib/stripe/services/treasury/financial_account_features_service.rb +179 -0
- data/lib/stripe/services/treasury/financial_account_service.rb +481 -0
- data/lib/stripe/services/treasury/inbound_transfer_service.rb +100 -0
- data/lib/stripe/services/treasury/outbound_payment_service.rb +296 -0
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +147 -0
- data/lib/stripe/services/treasury/received_credit_service.rb +58 -0
- data/lib/stripe/services/treasury/received_debit_service.rb +45 -0
- data/lib/stripe/services/treasury/transaction_entry_service.rb +101 -0
- data/lib/stripe/services/treasury/transaction_service.rb +109 -0
- data/lib/stripe/services/v1_services.rb +8 -1
- data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +25 -0
- data/lib/stripe/services/v2/billing/meter_event_service.rb +28 -0
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +3 -0
- data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +36 -0
- data/lib/stripe/services/v2/core/event_destination_service.rb +164 -0
- data/lib/stripe/services/v2/core/event_service.rb +20 -0
- data/lib/stripe/services/webhook_endpoint_service.rb +110 -0
- data/lib/stripe/services.rb +25 -0
- data/lib/stripe/stripe_client.rb +2 -2
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +8 -3
- data/lib/stripe/util.rb +8 -2
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +46 -0
- data/rbi/stripe/resources/account.rbi +6072 -0
- data/rbi/stripe/resources/account_link.rbi +87 -0
- data/rbi/stripe/resources/account_notice.rbi +166 -0
- data/rbi/stripe/resources/account_session.rbi +1173 -0
- data/rbi/stripe/resources/apple_pay_domain.rbi +111 -0
- data/rbi/stripe/resources/application.rbi +23 -0
- data/rbi/stripe/resources/application_fee.rbi +151 -0
- data/rbi/stripe/resources/application_fee_refund.rbi +44 -0
- data/rbi/stripe/resources/apps/secret.rbi +229 -0
- data/rbi/stripe/resources/balance.rbi +220 -0
- data/rbi/stripe/resources/balance_transaction.rbi +182 -0
- data/rbi/stripe/resources/bank_account.rbi +156 -0
- data/rbi/stripe/resources/billing/alert.rbi +237 -0
- data/rbi/stripe/resources/billing/alert_triggered.rbi +33 -0
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +118 -0
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +181 -0
- data/rbi/stripe/resources/billing/credit_grant.rbi +312 -0
- data/rbi/stripe/resources/billing/meter.rbi +268 -0
- data/rbi/stripe/resources/billing/meter_error_report.rbi +82 -0
- data/rbi/stripe/resources/billing/meter_event.rbi +76 -0
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +75 -0
- data/rbi/stripe/resources/billing/meter_event_summary.rbi +39 -0
- data/rbi/stripe/resources/billing_portal/configuration.rbi +746 -0
- data/rbi/stripe/resources/billing_portal/session.rbi +396 -0
- data/rbi/stripe/resources/capability.rbi +152 -0
- data/rbi/stripe/resources/capital/financing_offer.rbi +228 -0
- data/rbi/stripe/resources/capital/financing_summary.rbi +89 -0
- data/rbi/stripe/resources/capital/financing_transaction.rbi +157 -0
- data/rbi/stripe/resources/card.rbi +159 -0
- data/rbi/stripe/resources/cash_balance.rbi +37 -0
- data/rbi/stripe/resources/charge.rbi +4216 -0
- data/rbi/stripe/resources/checkout/session.rbi +4627 -0
- data/rbi/stripe/resources/climate/order.rbi +298 -0
- data/rbi/stripe/resources/climate/product.rbi +98 -0
- data/rbi/stripe/resources/climate/supplier.rbi +95 -0
- data/rbi/stripe/resources/confirmation_token.rbi +2137 -0
- data/rbi/stripe/resources/connect_collection_transfer.rbi +31 -0
- data/rbi/stripe/resources/country_spec.rbi +108 -0
- data/rbi/stripe/resources/coupon.rbi +305 -0
- data/rbi/stripe/resources/credit_note.rbi +918 -0
- data/rbi/stripe/resources/credit_note_line_item.rbi +123 -0
- data/rbi/stripe/resources/customer.rbi +1188 -0
- data/rbi/stripe/resources/customer_balance_transaction.rbi +65 -0
- data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +178 -0
- data/rbi/stripe/resources/customer_session.rbi +227 -0
- data/rbi/stripe/resources/discount.rbi +65 -0
- data/rbi/stripe/resources/dispute.rbi +926 -0
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +76 -0
- data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +26 -0
- data/rbi/stripe/resources/entitlements/feature.rbi +146 -0
- data/rbi/stripe/resources/ephemeral_key.rbi +51 -0
- data/rbi/stripe/resources/event.rbi +221 -0
- data/rbi/stripe/resources/exchange_rate.rbi +81 -0
- data/rbi/stripe/resources/file.rbi +177 -0
- data/rbi/stripe/resources/file_link.rbi +174 -0
- data/rbi/stripe/resources/financial_connections/account.rbi +414 -0
- data/rbi/stripe/resources/financial_connections/account_inferred_balance.rbi +30 -0
- data/rbi/stripe/resources/financial_connections/account_owner.rbi +42 -0
- data/rbi/stripe/resources/financial_connections/account_ownership.rbi +26 -0
- data/rbi/stripe/resources/financial_connections/institution.rbi +115 -0
- data/rbi/stripe/resources/financial_connections/session.rbi +221 -0
- data/rbi/stripe/resources/financial_connections/transaction.rbi +153 -0
- data/rbi/stripe/resources/forwarding/request.rbi +257 -0
- data/rbi/stripe/resources/funding_instructions.rbi +544 -0
- data/rbi/stripe/resources/gift_cards/card.rbi +242 -0
- data/rbi/stripe/resources/gift_cards/transaction.rbi +298 -0
- data/rbi/stripe/resources/identity/verification_report.rbi +427 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +601 -0
- data/rbi/stripe/resources/invoice.rbi +10584 -0
- data/rbi/stripe/resources/invoice_item.rbi +621 -0
- data/rbi/stripe/resources/invoice_line_item.rbi +486 -0
- data/rbi/stripe/resources/invoice_payment.rbi +86 -0
- data/rbi/stripe/resources/invoice_rendering_template.rbi +131 -0
- data/rbi/stripe/resources/issuing/authorization.rbi +1511 -0
- data/rbi/stripe/resources/issuing/card.rbi +891 -0
- data/rbi/stripe/resources/issuing/cardholder.rbi +870 -0
- data/rbi/stripe/resources/issuing/credit_underwriting_record.rbi +731 -0
- data/rbi/stripe/resources/issuing/dispute.rbi +1077 -0
- data/rbi/stripe/resources/issuing/dispute_settlement_detail.rbi +100 -0
- data/rbi/stripe/resources/issuing/fraud_liability_debit.rbi +108 -0
- data/rbi/stripe/resources/issuing/personalization_design.rbi +395 -0
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +102 -0
- data/rbi/stripe/resources/issuing/settlement.rbi +78 -0
- data/rbi/stripe/resources/issuing/token.rbi +282 -0
- data/rbi/stripe/resources/issuing/transaction.rbi +1262 -0
- data/rbi/stripe/resources/line_item.rbi +131 -0
- data/rbi/stripe/resources/login_link.rbi +20 -0
- data/rbi/stripe/resources/mandate.rbi +266 -0
- data/rbi/stripe/resources/margin.rbi +151 -0
- data/rbi/stripe/resources/order.rbi +3505 -0
- data/rbi/stripe/resources/payment_attempt_record.rbi +260 -0
- data/rbi/stripe/resources/payment_intent.rbi +16064 -0
- data/rbi/stripe/resources/payment_link.rbi +1943 -0
- data/rbi/stripe/resources/payment_method.rbi +2287 -0
- data/rbi/stripe/resources/payment_method_configuration.rbi +3657 -0
- data/rbi/stripe/resources/payment_method_domain.rbi +246 -0
- data/rbi/stripe/resources/payment_record.rbi +856 -0
- data/rbi/stripe/resources/payout.rbi +357 -0
- data/rbi/stripe/resources/person.rbi +461 -0
- data/rbi/stripe/resources/plan.rbi +463 -0
- data/rbi/stripe/resources/price.rbi +884 -0
- data/rbi/stripe/resources/product.rbi +735 -0
- data/rbi/stripe/resources/product_feature.rbi +30 -0
- data/rbi/stripe/resources/promotion_code.rbi +316 -0
- data/rbi/stripe/resources/quote.rbi +3779 -0
- data/rbi/stripe/resources/quote_line.rbi +416 -0
- data/rbi/stripe/resources/quote_preview_invoice.rbi +1030 -0
- data/rbi/stripe/resources/quote_preview_subscription_schedule.rbi +575 -0
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +121 -0
- data/rbi/stripe/resources/radar/value_list.rbi +207 -0
- data/rbi/stripe/resources/radar/value_list_item.rbi +157 -0
- data/rbi/stripe/resources/refund.rbi +615 -0
- data/rbi/stripe/resources/reporting/report_run.rbi +232 -0
- data/rbi/stripe/resources/reporting/report_type.rbi +75 -0
- data/rbi/stripe/resources/reserve_transaction.rbi +27 -0
- data/rbi/stripe/resources/reversal.rbi +60 -0
- data/rbi/stripe/resources/review.rbi +191 -0
- data/rbi/stripe/resources/setup_attempt.rbi +587 -0
- data/rbi/stripe/resources/setup_intent.rbi +4726 -0
- data/rbi/stripe/resources/shipping_rate.rbi +367 -0
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +98 -0
- data/rbi/stripe/resources/source.rbi +1899 -0
- data/rbi/stripe/resources/source_mandate_notification.rbi +90 -0
- data/rbi/stripe/resources/source_transaction.rbi +156 -0
- data/rbi/stripe/resources/subscription.rbi +2739 -0
- data/rbi/stripe/resources/subscription_item.rbi +566 -0
- data/rbi/stripe/resources/subscription_schedule.rbi +3157 -0
- data/rbi/stripe/resources/tax/association.rbi +107 -0
- data/rbi/stripe/resources/tax/calculation.rbi +577 -0
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +108 -0
- data/rbi/stripe/resources/tax/form.rbi +262 -0
- data/rbi/stripe/resources/tax/registration.rbi +2354 -0
- data/rbi/stripe/resources/tax/settings.rbi +174 -0
- data/rbi/stripe/resources/tax/transaction.rbi +428 -0
- data/rbi/stripe/resources/tax/transaction_line_item.rbi +66 -0
- data/rbi/stripe/resources/tax_code.rbi +60 -0
- data/rbi/stripe/resources/tax_deducted_at_source.rbi +27 -0
- data/rbi/stripe/resources/tax_id.rbi +206 -0
- data/rbi/stripe/resources/tax_rate.rbi +295 -0
- data/rbi/stripe/resources/terminal/configuration.rbi +1302 -0
- data/rbi/stripe/resources/terminal/connection_token.rbi +42 -0
- data/rbi/stripe/resources/terminal/location.rbi +271 -0
- data/rbi/stripe/resources/terminal/reader.rbi +1110 -0
- data/rbi/stripe/resources/terminal/reader_collected_data.rbi +48 -0
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +159 -0
- data/rbi/stripe/resources/token.rbi +1405 -0
- data/rbi/stripe/resources/topup.rbi +269 -0
- data/rbi/stripe/resources/transfer.rbi +245 -0
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +151 -0
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +165 -0
- data/rbi/stripe/resources/treasury/financial_account.rbi +924 -0
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +309 -0
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +361 -0
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +702 -0
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +529 -0
- data/rbi/stripe/resources/treasury/received_credit.rbi +408 -0
- data/rbi/stripe/resources/treasury/received_debit.rbi +367 -0
- data/rbi/stripe/resources/treasury/transaction.rbi +261 -0
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +234 -0
- data/rbi/stripe/resources/usage_record.rbi +37 -0
- data/rbi/stripe/resources/usage_record_summary.rbi +45 -0
- data/rbi/stripe/resources/v2/amount.rbi +14 -0
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +43 -0
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +48 -0
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +36 -0
- data/rbi/stripe/resources/v2/event.rbi +55 -0
- data/rbi/stripe/resources/v2/event_destination.rbi +109 -0
- data/rbi/stripe/resources/webhook_endpoint.rbi +208 -0
- data/rbi/stripe/services/account_capability_service.rbi +55 -0
- data/rbi/stripe/services/account_external_account_service.rbi +358 -0
- data/rbi/stripe/services/account_link_service.rbi +67 -0
- data/rbi/stripe/services/account_login_link_service.rbi +23 -0
- data/rbi/stripe/services/account_notice_service.rbi +103 -0
- data/rbi/stripe/services/account_person_service.rbi +1077 -0
- data/rbi/stripe/services/account_service.rbi +4948 -0
- data/rbi/stripe/services/account_session_service.rbi +873 -0
- data/rbi/stripe/services/apple_pay_domain_service.rbi +86 -0
- data/rbi/stripe/services/application_fee_refund_service.rbi +101 -0
- data/rbi/stripe/services/application_fee_service.rbi +85 -0
- data/rbi/stripe/services/apps/secret_service.rbi +175 -0
- data/rbi/stripe/services/apps_service.rbi +9 -0
- data/rbi/stripe/services/balance_service.rbi +22 -0
- data/rbi/stripe/services/balance_transaction_service.rbi +103 -0
- data/rbi/stripe/services/billing/alert_service.rbi +172 -0
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +61 -0
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +66 -0
- data/rbi/stripe/services/billing/credit_grant_service.rbi +217 -0
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +45 -0
- data/rbi/stripe/services/billing/meter_event_service.rbi +47 -0
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +62 -0
- data/rbi/stripe/services/billing/meter_service.rbi +184 -0
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +573 -0
- data/rbi/stripe/services/billing_portal/session_service.rbi +233 -0
- data/rbi/stripe/services/billing_portal_service.rbi +10 -0
- data/rbi/stripe/services/billing_service.rbi +15 -0
- data/rbi/stripe/services/capital/financing_offer_service.rbi +108 -0
- data/rbi/stripe/services/capital/financing_summary_service.rbi +23 -0
- data/rbi/stripe/services/capital/financing_transaction_service.rbi +77 -0
- data/rbi/stripe/services/capital_service.rbi +11 -0
- data/rbi/stripe/services/charge_service.rbi +2162 -0
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +37 -0
- data/rbi/stripe/services/checkout/session_service.rbi +2975 -0
- data/rbi/stripe/services/checkout_service.rbi +9 -0
- data/rbi/stripe/services/climate/order_service.rbi +158 -0
- data/rbi/stripe/services/climate/product_service.rbi +51 -0
- data/rbi/stripe/services/climate/supplier_service.rbi +51 -0
- data/rbi/stripe/services/climate_service.rbi +11 -0
- data/rbi/stripe/services/confirmation_token_service.rbi +21 -0
- data/rbi/stripe/services/country_spec_service.rbi +49 -0
- data/rbi/stripe/services/coupon_service.rbi +220 -0
- data/rbi/stripe/services/credit_note_line_item_service.rbi +35 -0
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +200 -0
- data/rbi/stripe/services/credit_note_service.rbi +496 -0
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +105 -0
- data/rbi/stripe/services/customer_cash_balance_service.rbi +49 -0
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +49 -0
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +67 -0
- data/rbi/stripe/services/customer_payment_method_service.rbi +64 -0
- data/rbi/stripe/services/customer_payment_source_service.rbi +265 -0
- data/rbi/stripe/services/customer_service.rbi +763 -0
- data/rbi/stripe/services/customer_session_service.rbi +126 -0
- data/rbi/stripe/services/customer_tax_id_service.rbi +80 -0
- data/rbi/stripe/services/dispute_service.rbi +500 -0
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +61 -0
- data/rbi/stripe/services/entitlements/feature_service.rbi +122 -0
- data/rbi/stripe/services/entitlements_service.rbi +10 -0
- data/rbi/stripe/services/ephemeral_key_service.rbi +59 -0
- data/rbi/stripe/services/event_service.rbi +94 -0
- data/rbi/stripe/services/exchange_rate_service.rbi +49 -0
- data/rbi/stripe/services/file_link_service.rbi +141 -0
- data/rbi/stripe/services/file_service.rbi +132 -0
- data/rbi/stripe/services/financial_connections/account_inferred_balance_service.rbi +37 -0
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +47 -0
- data/rbi/stripe/services/financial_connections/account_service.rbi +148 -0
- data/rbi/stripe/services/financial_connections/institution_service.rbi +51 -0
- data/rbi/stripe/services/financial_connections/session_service.rbi +128 -0
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +103 -0
- data/rbi/stripe/services/financial_connections_service.rbi +12 -0
- data/rbi/stripe/services/forwarding/request_service.rbi +152 -0
- data/rbi/stripe/services/forwarding_service.rbi +9 -0
- data/rbi/stripe/services/gift_cards/card_service.rbi +162 -0
- data/rbi/stripe/services/gift_cards/transaction_service.rbi +198 -0
- data/rbi/stripe/services/gift_cards_service.rbi +10 -0
- data/rbi/stripe/services/identity/verification_report_service.rbi +98 -0
- data/rbi/stripe/services/identity/verification_session_service.rbi +360 -0
- data/rbi/stripe/services/identity_service.rbi +10 -0
- data/rbi/stripe/services/invoice_item_service.rbi +505 -0
- data/rbi/stripe/services/invoice_line_item_service.rbi +320 -0
- data/rbi/stripe/services/invoice_payment_service.rbi +49 -0
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +91 -0
- data/rbi/stripe/services/invoice_service.rbi +7138 -0
- data/rbi/stripe/services/invoice_upcoming_lines_service.rbi +2397 -0
- data/rbi/stripe/services/issuing/authorization_service.rbi +160 -0
- data/rbi/stripe/services/issuing/card_service.rbi +568 -0
- data/rbi/stripe/services/issuing/cardholder_service.rbi +668 -0
- data/rbi/stripe/services/issuing/credit_underwriting_record_service.rbi +580 -0
- data/rbi/stripe/services/issuing/dispute_service.rbi +824 -0
- data/rbi/stripe/services/issuing/dispute_settlement_detail_service.rbi +61 -0
- data/rbi/stripe/services/issuing/fraud_liability_debit_service.rbi +83 -0
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +271 -0
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +66 -0
- data/rbi/stripe/services/issuing/token_service.rbi +109 -0
- data/rbi/stripe/services/issuing/transaction_service.rbi +119 -0
- data/rbi/stripe/services/issuing_service.rbi +19 -0
- data/rbi/stripe/services/mandate_service.rbi +21 -0
- data/rbi/stripe/services/margin_service.rbi +119 -0
- data/rbi/stripe/services/order_line_item_service.rbi +35 -0
- data/rbi/stripe/services/order_service.rbi +2669 -0
- data/rbi/stripe/services/payment_attempt_record_service.rbi +39 -0
- data/rbi/stripe/services/payment_intent_service.rbi +13193 -0
- data/rbi/stripe/services/payment_link_line_item_service.rbi +35 -0
- data/rbi/stripe/services/payment_link_service.rbi +1447 -0
- data/rbi/stripe/services/payment_method_configuration_service.rbi +2465 -0
- data/rbi/stripe/services/payment_method_domain_service.rbi +123 -0
- data/rbi/stripe/services/payment_method_service.rbi +1032 -0
- data/rbi/stripe/services/payment_record_service.rbi +613 -0
- data/rbi/stripe/services/payout_service.rbi +228 -0
- data/rbi/stripe/services/plan_service.rbi +337 -0
- data/rbi/stripe/services/price_service.rbi +657 -0
- data/rbi/stripe/services/product_feature_service.rbi +76 -0
- data/rbi/stripe/services/product_service.rbi +596 -0
- data/rbi/stripe/services/promotion_code_service.rbi +244 -0
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +35 -0
- data/rbi/stripe/services/quote_line_item_service.rbi +35 -0
- data/rbi/stripe/services/quote_line_service.rbi +35 -0
- data/rbi/stripe/services/quote_preview_invoice_service.rbi +35 -0
- data/rbi/stripe/services/quote_preview_subscription_schedule_service.rbi +35 -0
- data/rbi/stripe/services/quote_service.rbi +2830 -0
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +95 -0
- data/rbi/stripe/services/radar/value_list_item_service.rbi +122 -0
- data/rbi/stripe/services/radar/value_list_service.rbi +160 -0
- data/rbi/stripe/services/radar_service.rbi +11 -0
- data/rbi/stripe/services/refund_service.rbi +208 -0
- data/rbi/stripe/services/reporting/report_run_service.rbi +152 -0
- data/rbi/stripe/services/reporting/report_type_service.rbi +37 -0
- data/rbi/stripe/services/reporting_service.rbi +10 -0
- data/rbi/stripe/services/review_service.rbi +93 -0
- data/rbi/stripe/services/setup_attempt_service.rbi +73 -0
- data/rbi/stripe/services/setup_intent_service.rbi +4204 -0
- data/rbi/stripe/services/shipping_rate_service.rbi +274 -0
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +51 -0
- data/rbi/stripe/services/sigma_service.rbi +9 -0
- data/rbi/stripe/services/source_service.rbi +766 -0
- data/rbi/stripe/services/source_transaction_service.rbi +35 -0
- data/rbi/stripe/services/subscription_item_service.rbi +496 -0
- data/rbi/stripe/services/subscription_item_usage_record_service.rbi +41 -0
- data/rbi/stripe/services/subscription_item_usage_record_summary_service.rbi +37 -0
- data/rbi/stripe/services/subscription_schedule_service.rbi +2613 -0
- data/rbi/stripe/services/subscription_service.rbi +2207 -0
- data/rbi/stripe/services/tax/association_service.rbi +27 -0
- data/rbi/stripe/services/tax/calculation_line_item_service.rbi +37 -0
- data/rbi/stripe/services/tax/calculation_service.rbi +267 -0
- data/rbi/stripe/services/tax/form_service.rbi +96 -0
- data/rbi/stripe/services/tax/registration_service.rbi +1495 -0
- data/rbi/stripe/services/tax/settings_service.rbi +106 -0
- data/rbi/stripe/services/tax/transaction_line_item_service.rbi +37 -0
- data/rbi/stripe/services/tax/transaction_service.rbi +164 -0
- data/rbi/stripe/services/tax_code_service.rbi +49 -0
- data/rbi/stripe/services/tax_id_service.rbi +128 -0
- data/rbi/stripe/services/tax_rate_service.rbi +215 -0
- data/rbi/stripe/services/tax_service.rbi +14 -0
- data/rbi/stripe/services/terminal/configuration_service.rbi +976 -0
- data/rbi/stripe/services/terminal/connection_token_service.rbi +27 -0
- data/rbi/stripe/services/terminal/location_service.rbi +211 -0
- data/rbi/stripe/services/terminal/reader_collected_data_service.rbi +23 -0
- data/rbi/stripe/services/terminal/reader_service.rbi +591 -0
- data/rbi/stripe/services/terminal_service.rbi +13 -0
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +892 -0
- data/rbi/stripe/services/test_helpers/customer_service.rbi +37 -0
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +974 -0
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +81 -0
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +73 -0
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +825 -0
- data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
- data/rbi/stripe/services/test_helpers/refund_service.rbi +23 -0
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +69 -0
- data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +100 -0
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +69 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +137 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +137 -0
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +130 -0
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +130 -0
- data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
- data/rbi/stripe/services/test_helpers_service.rbi +15 -0
- data/rbi/stripe/services/token_service.rbi +1357 -0
- data/rbi/stripe/services/topup_service.rbi +200 -0
- data/rbi/stripe/services/transfer_reversal_service.rbi +111 -0
- data/rbi/stripe/services/transfer_service.rbi +174 -0
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +95 -0
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +100 -0
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +226 -0
- data/rbi/stripe/services/treasury/financial_account_service.rbi +577 -0
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +133 -0
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +350 -0
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +189 -0
- data/rbi/stripe/services/treasury/received_credit_service.rbi +79 -0
- data/rbi/stripe/services/treasury/received_debit_service.rbi +66 -0
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +125 -0
- data/rbi/stripe/services/treasury/transaction_service.rbi +133 -0
- data/rbi/stripe/services/treasury_service.rbi +18 -0
- data/rbi/stripe/services/v1_services.rbi +83 -0
- data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +43 -0
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +46 -0
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +20 -0
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +60 -0
- data/rbi/stripe/services/v2/billing_service.rbi +14 -0
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +228 -0
- data/rbi/stripe/services/v2/core/event_service.rbi +42 -0
- data/rbi/stripe/services/v2/core_service.rbi +12 -0
- data/rbi/stripe/services/v2_services.rbi +10 -0
- data/rbi/stripe/services/webhook_endpoint_service.rbi +149 -0
- metadata +435 -4
@@ -0,0 +1,763 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
module Stripe
|
6
|
+
class CustomerService < StripeService
|
7
|
+
attr_reader :cash_balance
|
8
|
+
attr_reader :balance_transactions
|
9
|
+
attr_reader :cash_balance_transactions
|
10
|
+
attr_reader :payment_sources
|
11
|
+
attr_reader :tax_ids
|
12
|
+
attr_reader :payment_methods
|
13
|
+
attr_reader :funding_instructions
|
14
|
+
class DeleteParams < Stripe::RequestParams
|
15
|
+
|
16
|
+
end
|
17
|
+
class RetrieveParams < Stripe::RequestParams
|
18
|
+
# Specifies which fields in the response should be expanded.
|
19
|
+
sig { returns(T::Array[String]) }
|
20
|
+
attr_accessor :expand
|
21
|
+
|
22
|
+
sig { params(expand: T::Array[String]).void }
|
23
|
+
def initialize(expand: nil); end
|
24
|
+
end
|
25
|
+
class UpdateParams < Stripe::RequestParams
|
26
|
+
class Address < Stripe::RequestParams
|
27
|
+
# City, district, suburb, town, or village.
|
28
|
+
sig { returns(String) }
|
29
|
+
attr_accessor :city
|
30
|
+
|
31
|
+
# A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
32
|
+
sig { returns(String) }
|
33
|
+
attr_accessor :country
|
34
|
+
|
35
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
36
|
+
sig { returns(String) }
|
37
|
+
attr_accessor :line1
|
38
|
+
|
39
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
40
|
+
sig { returns(String) }
|
41
|
+
attr_accessor :line2
|
42
|
+
|
43
|
+
# ZIP or postal code.
|
44
|
+
sig { returns(String) }
|
45
|
+
attr_accessor :postal_code
|
46
|
+
|
47
|
+
# State, county, province, or region.
|
48
|
+
sig { returns(String) }
|
49
|
+
attr_accessor :state
|
50
|
+
|
51
|
+
sig {
|
52
|
+
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
53
|
+
}
|
54
|
+
def initialize(
|
55
|
+
city: nil,
|
56
|
+
country: nil,
|
57
|
+
line1: nil,
|
58
|
+
line2: nil,
|
59
|
+
postal_code: nil,
|
60
|
+
state: nil
|
61
|
+
); end
|
62
|
+
end
|
63
|
+
class CashBalance < Stripe::RequestParams
|
64
|
+
class Settings < Stripe::RequestParams
|
65
|
+
# Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://stripe.com/docs/payments/customer-balance/reconciliation).
|
66
|
+
sig { returns(String) }
|
67
|
+
attr_accessor :reconciliation_mode
|
68
|
+
|
69
|
+
sig { params(reconciliation_mode: String).void }
|
70
|
+
def initialize(reconciliation_mode: nil); end
|
71
|
+
end
|
72
|
+
# Settings controlling the behavior of the customer's cash balance,
|
73
|
+
# such as reconciliation of funds received.
|
74
|
+
sig { returns(::Stripe::CustomerService::UpdateParams::CashBalance::Settings) }
|
75
|
+
attr_accessor :settings
|
76
|
+
|
77
|
+
sig {
|
78
|
+
params(settings: ::Stripe::CustomerService::UpdateParams::CashBalance::Settings).void
|
79
|
+
}
|
80
|
+
def initialize(settings: nil); end
|
81
|
+
end
|
82
|
+
class InvoiceSettings < Stripe::RequestParams
|
83
|
+
class CustomField < Stripe::RequestParams
|
84
|
+
# The name of the custom field. This may be up to 40 characters.
|
85
|
+
sig { returns(String) }
|
86
|
+
attr_accessor :name
|
87
|
+
|
88
|
+
# The value of the custom field. This may be up to 140 characters.
|
89
|
+
sig { returns(String) }
|
90
|
+
attr_accessor :value
|
91
|
+
|
92
|
+
sig { params(name: String, value: String).void }
|
93
|
+
def initialize(name: nil, value: nil); end
|
94
|
+
end
|
95
|
+
class RenderingOptions < Stripe::RequestParams
|
96
|
+
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
|
97
|
+
sig { returns(T.nilable(String)) }
|
98
|
+
attr_accessor :amount_tax_display
|
99
|
+
|
100
|
+
# ID of the invoice rendering template to use for future invoices.
|
101
|
+
sig { returns(String) }
|
102
|
+
attr_accessor :template
|
103
|
+
|
104
|
+
sig { params(amount_tax_display: T.nilable(String), template: String).void }
|
105
|
+
def initialize(amount_tax_display: nil, template: nil); end
|
106
|
+
end
|
107
|
+
# The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields.
|
108
|
+
sig {
|
109
|
+
returns(T.nilable(T::Array[::Stripe::CustomerService::UpdateParams::InvoiceSettings::CustomField]))
|
110
|
+
}
|
111
|
+
attr_accessor :custom_fields
|
112
|
+
|
113
|
+
# ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.
|
114
|
+
sig { returns(String) }
|
115
|
+
attr_accessor :default_payment_method
|
116
|
+
|
117
|
+
# Default footer to be displayed on invoices for this customer.
|
118
|
+
sig { returns(String) }
|
119
|
+
attr_accessor :footer
|
120
|
+
|
121
|
+
# Default options for invoice PDF rendering for this customer.
|
122
|
+
sig {
|
123
|
+
returns(T.nilable(::Stripe::CustomerService::UpdateParams::InvoiceSettings::RenderingOptions))
|
124
|
+
}
|
125
|
+
attr_accessor :rendering_options
|
126
|
+
|
127
|
+
sig {
|
128
|
+
params(custom_fields: T.nilable(T::Array[::Stripe::CustomerService::UpdateParams::InvoiceSettings::CustomField]), default_payment_method: String, footer: String, rendering_options: T.nilable(::Stripe::CustomerService::UpdateParams::InvoiceSettings::RenderingOptions)).void
|
129
|
+
}
|
130
|
+
def initialize(
|
131
|
+
custom_fields: nil,
|
132
|
+
default_payment_method: nil,
|
133
|
+
footer: nil,
|
134
|
+
rendering_options: nil
|
135
|
+
); end
|
136
|
+
end
|
137
|
+
class Shipping < Stripe::RequestParams
|
138
|
+
class Address < Stripe::RequestParams
|
139
|
+
# City, district, suburb, town, or village.
|
140
|
+
sig { returns(String) }
|
141
|
+
attr_accessor :city
|
142
|
+
|
143
|
+
# A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
144
|
+
sig { returns(String) }
|
145
|
+
attr_accessor :country
|
146
|
+
|
147
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
148
|
+
sig { returns(String) }
|
149
|
+
attr_accessor :line1
|
150
|
+
|
151
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
152
|
+
sig { returns(String) }
|
153
|
+
attr_accessor :line2
|
154
|
+
|
155
|
+
# ZIP or postal code.
|
156
|
+
sig { returns(String) }
|
157
|
+
attr_accessor :postal_code
|
158
|
+
|
159
|
+
# State, county, province, or region.
|
160
|
+
sig { returns(String) }
|
161
|
+
attr_accessor :state
|
162
|
+
|
163
|
+
sig {
|
164
|
+
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
165
|
+
}
|
166
|
+
def initialize(
|
167
|
+
city: nil,
|
168
|
+
country: nil,
|
169
|
+
line1: nil,
|
170
|
+
line2: nil,
|
171
|
+
postal_code: nil,
|
172
|
+
state: nil
|
173
|
+
); end
|
174
|
+
end
|
175
|
+
# Customer shipping address.
|
176
|
+
sig { returns(::Stripe::CustomerService::UpdateParams::Shipping::Address) }
|
177
|
+
attr_accessor :address
|
178
|
+
|
179
|
+
# Customer name.
|
180
|
+
sig { returns(String) }
|
181
|
+
attr_accessor :name
|
182
|
+
|
183
|
+
# Customer phone (including extension).
|
184
|
+
sig { returns(String) }
|
185
|
+
attr_accessor :phone
|
186
|
+
|
187
|
+
sig {
|
188
|
+
params(address: ::Stripe::CustomerService::UpdateParams::Shipping::Address, name: String, phone: String).void
|
189
|
+
}
|
190
|
+
def initialize(address: nil, name: nil, phone: nil); end
|
191
|
+
end
|
192
|
+
class Tax < Stripe::RequestParams
|
193
|
+
# A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.
|
194
|
+
sig { returns(T.nilable(String)) }
|
195
|
+
attr_accessor :ip_address
|
196
|
+
|
197
|
+
# A flag that indicates when Stripe should validate the customer tax location. Defaults to `auto`.
|
198
|
+
sig { returns(String) }
|
199
|
+
attr_accessor :validate_location
|
200
|
+
|
201
|
+
sig { params(ip_address: T.nilable(String), validate_location: String).void }
|
202
|
+
def initialize(ip_address: nil, validate_location: nil); end
|
203
|
+
end
|
204
|
+
# The customer's address.
|
205
|
+
sig { returns(T.nilable(::Stripe::CustomerService::UpdateParams::Address)) }
|
206
|
+
attr_accessor :address
|
207
|
+
|
208
|
+
# An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
|
209
|
+
sig { returns(Integer) }
|
210
|
+
attr_accessor :balance
|
211
|
+
|
212
|
+
# Balance information and default balance settings for this customer.
|
213
|
+
sig { returns(::Stripe::CustomerService::UpdateParams::CashBalance) }
|
214
|
+
attr_accessor :cash_balance
|
215
|
+
|
216
|
+
# Attribute for param field coupon
|
217
|
+
sig { returns(String) }
|
218
|
+
attr_accessor :coupon
|
219
|
+
|
220
|
+
# If you are using payment methods created via the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method) parameter.
|
221
|
+
#
|
222
|
+
# Provide the ID of a payment source already attached to this customer to make it this customer's default payment source.
|
223
|
+
#
|
224
|
+
# If you want to add a new payment source and make it the default, see the [source](https://stripe.com/docs/api/customers/update#update_customer-source) property.
|
225
|
+
sig { returns(String) }
|
226
|
+
attr_accessor :default_source
|
227
|
+
|
228
|
+
# An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard.
|
229
|
+
sig { returns(String) }
|
230
|
+
attr_accessor :description
|
231
|
+
|
232
|
+
# Customer's email address. It's displayed alongside the customer in your dashboard and can be useful for searching and tracking. This may be up to *512 characters*.
|
233
|
+
sig { returns(String) }
|
234
|
+
attr_accessor :email
|
235
|
+
|
236
|
+
# Specifies which fields in the response should be expanded.
|
237
|
+
sig { returns(T::Array[String]) }
|
238
|
+
attr_accessor :expand
|
239
|
+
|
240
|
+
# The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
|
241
|
+
sig { returns(String) }
|
242
|
+
attr_accessor :invoice_prefix
|
243
|
+
|
244
|
+
# Default invoice settings for this customer.
|
245
|
+
sig { returns(::Stripe::CustomerService::UpdateParams::InvoiceSettings) }
|
246
|
+
attr_accessor :invoice_settings
|
247
|
+
|
248
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
249
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
250
|
+
attr_accessor :metadata
|
251
|
+
|
252
|
+
# The customer's full name or business name.
|
253
|
+
sig { returns(String) }
|
254
|
+
attr_accessor :name
|
255
|
+
|
256
|
+
# The sequence to be used on the customer's next invoice. Defaults to 1.
|
257
|
+
sig { returns(Integer) }
|
258
|
+
attr_accessor :next_invoice_sequence
|
259
|
+
|
260
|
+
# The customer's phone number.
|
261
|
+
sig { returns(String) }
|
262
|
+
attr_accessor :phone
|
263
|
+
|
264
|
+
# Customer's preferred languages, ordered by preference.
|
265
|
+
sig { returns(T::Array[String]) }
|
266
|
+
attr_accessor :preferred_locales
|
267
|
+
|
268
|
+
# The ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
|
269
|
+
sig { returns(String) }
|
270
|
+
attr_accessor :promotion_code
|
271
|
+
|
272
|
+
# The customer's shipping information. Appears on invoices emailed to this customer.
|
273
|
+
sig { returns(T.nilable(::Stripe::CustomerService::UpdateParams::Shipping)) }
|
274
|
+
attr_accessor :shipping
|
275
|
+
|
276
|
+
# Attribute for param field source
|
277
|
+
sig { returns(String) }
|
278
|
+
attr_accessor :source
|
279
|
+
|
280
|
+
# Tax details about the customer.
|
281
|
+
sig { returns(::Stripe::CustomerService::UpdateParams::Tax) }
|
282
|
+
attr_accessor :tax
|
283
|
+
|
284
|
+
# The customer's tax exemption. One of `none`, `exempt`, or `reverse`.
|
285
|
+
sig { returns(T.nilable(String)) }
|
286
|
+
attr_accessor :tax_exempt
|
287
|
+
|
288
|
+
# Attribute for param field validate
|
289
|
+
sig { returns(T::Boolean) }
|
290
|
+
attr_accessor :validate
|
291
|
+
|
292
|
+
sig {
|
293
|
+
params(address: T.nilable(::Stripe::CustomerService::UpdateParams::Address), balance: Integer, cash_balance: ::Stripe::CustomerService::UpdateParams::CashBalance, coupon: String, default_source: String, description: String, email: String, expand: T::Array[String], invoice_prefix: String, invoice_settings: ::Stripe::CustomerService::UpdateParams::InvoiceSettings, metadata: T.nilable(T::Hash[String, String]), name: String, next_invoice_sequence: Integer, phone: String, preferred_locales: T::Array[String], promotion_code: String, shipping: T.nilable(::Stripe::CustomerService::UpdateParams::Shipping), source: String, tax: ::Stripe::CustomerService::UpdateParams::Tax, tax_exempt: T.nilable(String), validate: T::Boolean).void
|
294
|
+
}
|
295
|
+
def initialize(
|
296
|
+
address: nil,
|
297
|
+
balance: nil,
|
298
|
+
cash_balance: nil,
|
299
|
+
coupon: nil,
|
300
|
+
default_source: nil,
|
301
|
+
description: nil,
|
302
|
+
email: nil,
|
303
|
+
expand: nil,
|
304
|
+
invoice_prefix: nil,
|
305
|
+
invoice_settings: nil,
|
306
|
+
metadata: nil,
|
307
|
+
name: nil,
|
308
|
+
next_invoice_sequence: nil,
|
309
|
+
phone: nil,
|
310
|
+
preferred_locales: nil,
|
311
|
+
promotion_code: nil,
|
312
|
+
shipping: nil,
|
313
|
+
source: nil,
|
314
|
+
tax: nil,
|
315
|
+
tax_exempt: nil,
|
316
|
+
validate: nil
|
317
|
+
); end
|
318
|
+
end
|
319
|
+
class DeleteDiscountParams < Stripe::RequestParams
|
320
|
+
|
321
|
+
end
|
322
|
+
class ListParams < Stripe::RequestParams
|
323
|
+
class Created < Stripe::RequestParams
|
324
|
+
# Minimum value to filter by (exclusive)
|
325
|
+
sig { returns(Integer) }
|
326
|
+
attr_accessor :gt
|
327
|
+
|
328
|
+
# Minimum value to filter by (inclusive)
|
329
|
+
sig { returns(Integer) }
|
330
|
+
attr_accessor :gte
|
331
|
+
|
332
|
+
# Maximum value to filter by (exclusive)
|
333
|
+
sig { returns(Integer) }
|
334
|
+
attr_accessor :lt
|
335
|
+
|
336
|
+
# Maximum value to filter by (inclusive)
|
337
|
+
sig { returns(Integer) }
|
338
|
+
attr_accessor :lte
|
339
|
+
|
340
|
+
sig { params(gt: Integer, gte: Integer, lt: Integer, lte: Integer).void }
|
341
|
+
def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end
|
342
|
+
end
|
343
|
+
# Only return customers that were created during the given date interval.
|
344
|
+
sig { returns(T.any(::Stripe::CustomerService::ListParams::Created, Integer)) }
|
345
|
+
attr_accessor :created
|
346
|
+
|
347
|
+
# A case-sensitive filter on the list based on the customer's `email` field. The value must be a string.
|
348
|
+
sig { returns(String) }
|
349
|
+
attr_accessor :email
|
350
|
+
|
351
|
+
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
352
|
+
sig { returns(String) }
|
353
|
+
attr_accessor :ending_before
|
354
|
+
|
355
|
+
# Specifies which fields in the response should be expanded.
|
356
|
+
sig { returns(T::Array[String]) }
|
357
|
+
attr_accessor :expand
|
358
|
+
|
359
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
360
|
+
sig { returns(Integer) }
|
361
|
+
attr_accessor :limit
|
362
|
+
|
363
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
364
|
+
sig { returns(String) }
|
365
|
+
attr_accessor :starting_after
|
366
|
+
|
367
|
+
# Provides a list of customers that are associated with the specified test clock. The response will not include customers with test clocks if this parameter is not set.
|
368
|
+
sig { returns(String) }
|
369
|
+
attr_accessor :test_clock
|
370
|
+
|
371
|
+
sig {
|
372
|
+
params(created: T.any(::Stripe::CustomerService::ListParams::Created, Integer), email: String, ending_before: String, expand: T::Array[String], limit: Integer, starting_after: String, test_clock: String).void
|
373
|
+
}
|
374
|
+
def initialize(
|
375
|
+
created: nil,
|
376
|
+
email: nil,
|
377
|
+
ending_before: nil,
|
378
|
+
expand: nil,
|
379
|
+
limit: nil,
|
380
|
+
starting_after: nil,
|
381
|
+
test_clock: nil
|
382
|
+
); end
|
383
|
+
end
|
384
|
+
class CreateParams < Stripe::RequestParams
|
385
|
+
class Address < Stripe::RequestParams
|
386
|
+
# City, district, suburb, town, or village.
|
387
|
+
sig { returns(String) }
|
388
|
+
attr_accessor :city
|
389
|
+
|
390
|
+
# A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
391
|
+
sig { returns(String) }
|
392
|
+
attr_accessor :country
|
393
|
+
|
394
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
395
|
+
sig { returns(String) }
|
396
|
+
attr_accessor :line1
|
397
|
+
|
398
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
399
|
+
sig { returns(String) }
|
400
|
+
attr_accessor :line2
|
401
|
+
|
402
|
+
# ZIP or postal code.
|
403
|
+
sig { returns(String) }
|
404
|
+
attr_accessor :postal_code
|
405
|
+
|
406
|
+
# State, county, province, or region.
|
407
|
+
sig { returns(String) }
|
408
|
+
attr_accessor :state
|
409
|
+
|
410
|
+
sig {
|
411
|
+
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
412
|
+
}
|
413
|
+
def initialize(
|
414
|
+
city: nil,
|
415
|
+
country: nil,
|
416
|
+
line1: nil,
|
417
|
+
line2: nil,
|
418
|
+
postal_code: nil,
|
419
|
+
state: nil
|
420
|
+
); end
|
421
|
+
end
|
422
|
+
class CashBalance < Stripe::RequestParams
|
423
|
+
class Settings < Stripe::RequestParams
|
424
|
+
# Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://stripe.com/docs/payments/customer-balance/reconciliation).
|
425
|
+
sig { returns(String) }
|
426
|
+
attr_accessor :reconciliation_mode
|
427
|
+
|
428
|
+
sig { params(reconciliation_mode: String).void }
|
429
|
+
def initialize(reconciliation_mode: nil); end
|
430
|
+
end
|
431
|
+
# Settings controlling the behavior of the customer's cash balance,
|
432
|
+
# such as reconciliation of funds received.
|
433
|
+
sig { returns(::Stripe::CustomerService::CreateParams::CashBalance::Settings) }
|
434
|
+
attr_accessor :settings
|
435
|
+
|
436
|
+
sig {
|
437
|
+
params(settings: ::Stripe::CustomerService::CreateParams::CashBalance::Settings).void
|
438
|
+
}
|
439
|
+
def initialize(settings: nil); end
|
440
|
+
end
|
441
|
+
class InvoiceSettings < Stripe::RequestParams
|
442
|
+
class CustomField < Stripe::RequestParams
|
443
|
+
# The name of the custom field. This may be up to 40 characters.
|
444
|
+
sig { returns(String) }
|
445
|
+
attr_accessor :name
|
446
|
+
|
447
|
+
# The value of the custom field. This may be up to 140 characters.
|
448
|
+
sig { returns(String) }
|
449
|
+
attr_accessor :value
|
450
|
+
|
451
|
+
sig { params(name: String, value: String).void }
|
452
|
+
def initialize(name: nil, value: nil); end
|
453
|
+
end
|
454
|
+
class RenderingOptions < Stripe::RequestParams
|
455
|
+
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
|
456
|
+
sig { returns(T.nilable(String)) }
|
457
|
+
attr_accessor :amount_tax_display
|
458
|
+
|
459
|
+
# ID of the invoice rendering template to use for future invoices.
|
460
|
+
sig { returns(String) }
|
461
|
+
attr_accessor :template
|
462
|
+
|
463
|
+
sig { params(amount_tax_display: T.nilable(String), template: String).void }
|
464
|
+
def initialize(amount_tax_display: nil, template: nil); end
|
465
|
+
end
|
466
|
+
# The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields.
|
467
|
+
sig {
|
468
|
+
returns(T.nilable(T::Array[::Stripe::CustomerService::CreateParams::InvoiceSettings::CustomField]))
|
469
|
+
}
|
470
|
+
attr_accessor :custom_fields
|
471
|
+
|
472
|
+
# ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.
|
473
|
+
sig { returns(String) }
|
474
|
+
attr_accessor :default_payment_method
|
475
|
+
|
476
|
+
# Default footer to be displayed on invoices for this customer.
|
477
|
+
sig { returns(String) }
|
478
|
+
attr_accessor :footer
|
479
|
+
|
480
|
+
# Default options for invoice PDF rendering for this customer.
|
481
|
+
sig {
|
482
|
+
returns(T.nilable(::Stripe::CustomerService::CreateParams::InvoiceSettings::RenderingOptions))
|
483
|
+
}
|
484
|
+
attr_accessor :rendering_options
|
485
|
+
|
486
|
+
sig {
|
487
|
+
params(custom_fields: T.nilable(T::Array[::Stripe::CustomerService::CreateParams::InvoiceSettings::CustomField]), default_payment_method: String, footer: String, rendering_options: T.nilable(::Stripe::CustomerService::CreateParams::InvoiceSettings::RenderingOptions)).void
|
488
|
+
}
|
489
|
+
def initialize(
|
490
|
+
custom_fields: nil,
|
491
|
+
default_payment_method: nil,
|
492
|
+
footer: nil,
|
493
|
+
rendering_options: nil
|
494
|
+
); end
|
495
|
+
end
|
496
|
+
class Shipping < Stripe::RequestParams
|
497
|
+
class Address < Stripe::RequestParams
|
498
|
+
# City, district, suburb, town, or village.
|
499
|
+
sig { returns(String) }
|
500
|
+
attr_accessor :city
|
501
|
+
|
502
|
+
# A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
503
|
+
sig { returns(String) }
|
504
|
+
attr_accessor :country
|
505
|
+
|
506
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
507
|
+
sig { returns(String) }
|
508
|
+
attr_accessor :line1
|
509
|
+
|
510
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
511
|
+
sig { returns(String) }
|
512
|
+
attr_accessor :line2
|
513
|
+
|
514
|
+
# ZIP or postal code.
|
515
|
+
sig { returns(String) }
|
516
|
+
attr_accessor :postal_code
|
517
|
+
|
518
|
+
# State, county, province, or region.
|
519
|
+
sig { returns(String) }
|
520
|
+
attr_accessor :state
|
521
|
+
|
522
|
+
sig {
|
523
|
+
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
524
|
+
}
|
525
|
+
def initialize(
|
526
|
+
city: nil,
|
527
|
+
country: nil,
|
528
|
+
line1: nil,
|
529
|
+
line2: nil,
|
530
|
+
postal_code: nil,
|
531
|
+
state: nil
|
532
|
+
); end
|
533
|
+
end
|
534
|
+
# Customer shipping address.
|
535
|
+
sig { returns(::Stripe::CustomerService::CreateParams::Shipping::Address) }
|
536
|
+
attr_accessor :address
|
537
|
+
|
538
|
+
# Customer name.
|
539
|
+
sig { returns(String) }
|
540
|
+
attr_accessor :name
|
541
|
+
|
542
|
+
# Customer phone (including extension).
|
543
|
+
sig { returns(String) }
|
544
|
+
attr_accessor :phone
|
545
|
+
|
546
|
+
sig {
|
547
|
+
params(address: ::Stripe::CustomerService::CreateParams::Shipping::Address, name: String, phone: String).void
|
548
|
+
}
|
549
|
+
def initialize(address: nil, name: nil, phone: nil); end
|
550
|
+
end
|
551
|
+
class Tax < Stripe::RequestParams
|
552
|
+
# A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.
|
553
|
+
sig { returns(T.nilable(String)) }
|
554
|
+
attr_accessor :ip_address
|
555
|
+
|
556
|
+
# A flag that indicates when Stripe should validate the customer tax location. Defaults to `deferred`.
|
557
|
+
sig { returns(String) }
|
558
|
+
attr_accessor :validate_location
|
559
|
+
|
560
|
+
sig { params(ip_address: T.nilable(String), validate_location: String).void }
|
561
|
+
def initialize(ip_address: nil, validate_location: nil); end
|
562
|
+
end
|
563
|
+
class TaxIdDatum < Stripe::RequestParams
|
564
|
+
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
565
|
+
sig { returns(String) }
|
566
|
+
attr_accessor :type
|
567
|
+
|
568
|
+
# Value of the tax ID.
|
569
|
+
sig { returns(String) }
|
570
|
+
attr_accessor :value
|
571
|
+
|
572
|
+
sig { params(type: String, value: String).void }
|
573
|
+
def initialize(type: nil, value: nil); end
|
574
|
+
end
|
575
|
+
# The customer's address.
|
576
|
+
sig { returns(T.nilable(::Stripe::CustomerService::CreateParams::Address)) }
|
577
|
+
attr_accessor :address
|
578
|
+
|
579
|
+
# An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
|
580
|
+
sig { returns(Integer) }
|
581
|
+
attr_accessor :balance
|
582
|
+
|
583
|
+
# Balance information and default balance settings for this customer.
|
584
|
+
sig { returns(::Stripe::CustomerService::CreateParams::CashBalance) }
|
585
|
+
attr_accessor :cash_balance
|
586
|
+
|
587
|
+
# Attribute for param field coupon
|
588
|
+
sig { returns(String) }
|
589
|
+
attr_accessor :coupon
|
590
|
+
|
591
|
+
# An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard.
|
592
|
+
sig { returns(String) }
|
593
|
+
attr_accessor :description
|
594
|
+
|
595
|
+
# Customer's email address. It's displayed alongside the customer in your dashboard and can be useful for searching and tracking. This may be up to *512 characters*.
|
596
|
+
sig { returns(String) }
|
597
|
+
attr_accessor :email
|
598
|
+
|
599
|
+
# Specifies which fields in the response should be expanded.
|
600
|
+
sig { returns(T::Array[String]) }
|
601
|
+
attr_accessor :expand
|
602
|
+
|
603
|
+
# The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
|
604
|
+
sig { returns(String) }
|
605
|
+
attr_accessor :invoice_prefix
|
606
|
+
|
607
|
+
# Default invoice settings for this customer.
|
608
|
+
sig { returns(::Stripe::CustomerService::CreateParams::InvoiceSettings) }
|
609
|
+
attr_accessor :invoice_settings
|
610
|
+
|
611
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
612
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
613
|
+
attr_accessor :metadata
|
614
|
+
|
615
|
+
# The customer's full name or business name.
|
616
|
+
sig { returns(String) }
|
617
|
+
attr_accessor :name
|
618
|
+
|
619
|
+
# The sequence to be used on the customer's next invoice. Defaults to 1.
|
620
|
+
sig { returns(Integer) }
|
621
|
+
attr_accessor :next_invoice_sequence
|
622
|
+
|
623
|
+
# Attribute for param field payment_method
|
624
|
+
sig { returns(String) }
|
625
|
+
attr_accessor :payment_method
|
626
|
+
|
627
|
+
# The customer's phone number.
|
628
|
+
sig { returns(String) }
|
629
|
+
attr_accessor :phone
|
630
|
+
|
631
|
+
# Customer's preferred languages, ordered by preference.
|
632
|
+
sig { returns(T::Array[String]) }
|
633
|
+
attr_accessor :preferred_locales
|
634
|
+
|
635
|
+
# The ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
|
636
|
+
sig { returns(String) }
|
637
|
+
attr_accessor :promotion_code
|
638
|
+
|
639
|
+
# The customer's shipping information. Appears on invoices emailed to this customer.
|
640
|
+
sig { returns(T.nilable(::Stripe::CustomerService::CreateParams::Shipping)) }
|
641
|
+
attr_accessor :shipping
|
642
|
+
|
643
|
+
# Attribute for param field source
|
644
|
+
sig { returns(String) }
|
645
|
+
attr_accessor :source
|
646
|
+
|
647
|
+
# Tax details about the customer.
|
648
|
+
sig { returns(::Stripe::CustomerService::CreateParams::Tax) }
|
649
|
+
attr_accessor :tax
|
650
|
+
|
651
|
+
# The customer's tax exemption. One of `none`, `exempt`, or `reverse`.
|
652
|
+
sig { returns(T.nilable(String)) }
|
653
|
+
attr_accessor :tax_exempt
|
654
|
+
|
655
|
+
# The customer's tax IDs.
|
656
|
+
sig { returns(T::Array[::Stripe::CustomerService::CreateParams::TaxIdDatum]) }
|
657
|
+
attr_accessor :tax_id_data
|
658
|
+
|
659
|
+
# ID of the test clock to attach to the customer.
|
660
|
+
sig { returns(String) }
|
661
|
+
attr_accessor :test_clock
|
662
|
+
|
663
|
+
# Attribute for param field validate
|
664
|
+
sig { returns(T::Boolean) }
|
665
|
+
attr_accessor :validate
|
666
|
+
|
667
|
+
sig {
|
668
|
+
params(address: T.nilable(::Stripe::CustomerService::CreateParams::Address), balance: Integer, cash_balance: ::Stripe::CustomerService::CreateParams::CashBalance, coupon: String, description: String, email: String, expand: T::Array[String], invoice_prefix: String, invoice_settings: ::Stripe::CustomerService::CreateParams::InvoiceSettings, metadata: T.nilable(T::Hash[String, String]), name: String, next_invoice_sequence: Integer, payment_method: String, phone: String, preferred_locales: T::Array[String], promotion_code: String, shipping: T.nilable(::Stripe::CustomerService::CreateParams::Shipping), source: String, tax: ::Stripe::CustomerService::CreateParams::Tax, tax_exempt: T.nilable(String), tax_id_data: T::Array[::Stripe::CustomerService::CreateParams::TaxIdDatum], test_clock: String, validate: T::Boolean).void
|
669
|
+
}
|
670
|
+
def initialize(
|
671
|
+
address: nil,
|
672
|
+
balance: nil,
|
673
|
+
cash_balance: nil,
|
674
|
+
coupon: nil,
|
675
|
+
description: nil,
|
676
|
+
email: nil,
|
677
|
+
expand: nil,
|
678
|
+
invoice_prefix: nil,
|
679
|
+
invoice_settings: nil,
|
680
|
+
metadata: nil,
|
681
|
+
name: nil,
|
682
|
+
next_invoice_sequence: nil,
|
683
|
+
payment_method: nil,
|
684
|
+
phone: nil,
|
685
|
+
preferred_locales: nil,
|
686
|
+
promotion_code: nil,
|
687
|
+
shipping: nil,
|
688
|
+
source: nil,
|
689
|
+
tax: nil,
|
690
|
+
tax_exempt: nil,
|
691
|
+
tax_id_data: nil,
|
692
|
+
test_clock: nil,
|
693
|
+
validate: nil
|
694
|
+
); end
|
695
|
+
end
|
696
|
+
class SearchParams < Stripe::RequestParams
|
697
|
+
# Specifies which fields in the response should be expanded.
|
698
|
+
sig { returns(T::Array[String]) }
|
699
|
+
attr_accessor :expand
|
700
|
+
|
701
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
702
|
+
sig { returns(Integer) }
|
703
|
+
attr_accessor :limit
|
704
|
+
|
705
|
+
# A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.
|
706
|
+
sig { returns(String) }
|
707
|
+
attr_accessor :page
|
708
|
+
|
709
|
+
# The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for customers](https://stripe.com/docs/search#query-fields-for-customers).
|
710
|
+
sig { returns(String) }
|
711
|
+
attr_accessor :query
|
712
|
+
|
713
|
+
sig { params(expand: T::Array[String], limit: Integer, page: String, query: String).void }
|
714
|
+
def initialize(expand: nil, limit: nil, page: nil, query: nil); end
|
715
|
+
end
|
716
|
+
# Creates a new customer object.
|
717
|
+
sig {
|
718
|
+
params(params: T.any(::Stripe::CustomerService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer)
|
719
|
+
}
|
720
|
+
def create(params = {}, opts = {}); end
|
721
|
+
|
722
|
+
# Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.
|
723
|
+
sig {
|
724
|
+
params(customer: String, params: T.any(::Stripe::CustomerService::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer)
|
725
|
+
}
|
726
|
+
def delete(customer, params = {}, opts = {}); end
|
727
|
+
|
728
|
+
# Removes the currently applied discount on a customer.
|
729
|
+
sig {
|
730
|
+
params(customer: String, params: T.any(::Stripe::CustomerService::DeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Discount)
|
731
|
+
}
|
732
|
+
def delete_discount(customer, params = {}, opts = {}); end
|
733
|
+
|
734
|
+
# Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.
|
735
|
+
sig {
|
736
|
+
params(params: T.any(::Stripe::CustomerService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
|
737
|
+
}
|
738
|
+
def list(params = {}, opts = {}); end
|
739
|
+
|
740
|
+
# Retrieves a Customer object.
|
741
|
+
sig {
|
742
|
+
params(customer: String, params: T.any(::Stripe::CustomerService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer)
|
743
|
+
}
|
744
|
+
def retrieve(customer, params = {}, opts = {}); end
|
745
|
+
|
746
|
+
# Search for customers you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
747
|
+
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
748
|
+
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
749
|
+
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
750
|
+
sig {
|
751
|
+
params(params: T.any(::Stripe::CustomerService::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject)
|
752
|
+
}
|
753
|
+
def search(params = {}, opts = {}); end
|
754
|
+
|
755
|
+
# Updates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the source parameter, that becomes the customer's active source (e.g., a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer's current subscriptions, if the subscription bills automatically and is in the past_due state, then the latest open invoice for the subscription with automatic collection enabled will be retried. This retry will not count as an automatic retry, and will not affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer will not trigger this behavior.
|
756
|
+
#
|
757
|
+
# This request accepts mostly the same arguments as the customer creation call.
|
758
|
+
sig {
|
759
|
+
params(customer: String, params: T.any(::Stripe::CustomerService::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer)
|
760
|
+
}
|
761
|
+
def update(customer, params = {}, opts = {}); end
|
762
|
+
end
|
763
|
+
end
|