stripe 15.6.0.pre.alpha.2 → 15.6.0.pre.beta.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/API_VERSION +1 -1
- data/CHANGELOG.md +1 -71
- data/OPENAPI_VERSION +1 -1
- data/README.md +4 -6
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +0 -2
- data/lib/stripe/errors.rb +0 -3
- data/lib/stripe/event_types.rb +0 -83
- data/lib/stripe/object_types.rb +0 -27
- data/lib/stripe/resources/account.rb +0 -443
- data/lib/stripe/resources/account_link.rb +0 -8
- data/lib/stripe/resources/account_notice.rb +0 -24
- data/lib/stripe/resources/account_session.rb +10 -435
- data/lib/stripe/resources/apple_pay_domain.rb +0 -8
- data/lib/stripe/resources/application.rb +0 -8
- data/lib/stripe/resources/application_fee.rb +0 -16
- data/lib/stripe/resources/application_fee_refund.rb +0 -8
- data/lib/stripe/resources/apps/secret.rb +0 -16
- data/lib/stripe/resources/balance.rb +0 -159
- data/lib/stripe/resources/balance_settings.rb +0 -40
- data/lib/stripe/resources/balance_transaction.rb +0 -16
- data/lib/stripe/resources/bank_account.rb +0 -40
- data/lib/stripe/resources/billing/alert.rb +1 -203
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -14
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -130
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -157
- data/lib/stripe/resources/billing/credit_grant.rb +2 -133
- data/lib/stripe/resources/billing/meter.rb +0 -45
- data/lib/stripe/resources/billing/meter_event.rb +0 -8
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
- data/lib/stripe/resources/billing/meter_event_summary.rb +0 -8
- data/lib/stripe/resources/billing/meter_usage.rb +0 -8
- data/lib/stripe/resources/billing/meter_usage_row.rb +0 -8
- data/lib/stripe/resources/billing_portal/configuration.rb +0 -122
- data/lib/stripe/resources/billing_portal/session.rb +0 -101
- data/lib/stripe/resources/capability.rb +0 -56
- data/lib/stripe/resources/capital/financing_offer.rb +0 -24
- data/lib/stripe/resources/capital/financing_summary.rb +0 -24
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -24
- data/lib/stripe/resources/card.rb +0 -16
- data/lib/stripe/resources/cash_balance.rb +0 -16
- data/lib/stripe/resources/charge.rb +20 -1052
- data/lib/stripe/resources/checkout/session.rb +1 -1078
- data/lib/stripe/resources/climate/order.rb +0 -32
- data/lib/stripe/resources/climate/product.rb +0 -16
- data/lib/stripe/resources/climate/supplier.rb +0 -16
- data/lib/stripe/resources/confirmation_token.rb +38 -960
- data/lib/stripe/resources/connect_collection_transfer.rb +0 -8
- data/lib/stripe/resources/country_spec.rb +0 -32
- data/lib/stripe/resources/coupon.rb +0 -36
- data/lib/stripe/resources/credit_note.rb +0 -70
- data/lib/stripe/resources/credit_note_line_item.rb +0 -53
- data/lib/stripe/resources/customer.rb +0 -77
- data/lib/stripe/resources/customer_balance_transaction.rb +0 -8
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -108
- data/lib/stripe/resources/customer_session.rb +0 -52
- data/lib/stripe/resources/discount.rb +0 -8
- data/lib/stripe/resources/dispute.rb +0 -166
- data/lib/stripe/resources/entitlements/active_entitlement.rb +0 -8
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -8
- data/lib/stripe/resources/entitlements/feature.rb +0 -8
- data/lib/stripe/resources/ephemeral_key.rb +0 -8
- data/lib/stripe/resources/event.rb +0 -56
- data/lib/stripe/resources/exchange_rate.rb +0 -8
- data/lib/stripe/resources/file.rb +0 -8
- data/lib/stripe/resources/file_link.rb +0 -8
- data/lib/stripe/resources/financial_connections/account.rb +0 -79
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -8
- data/lib/stripe/resources/financial_connections/account_owner.rb +0 -8
- data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -8
- data/lib/stripe/resources/financial_connections/institution.rb +0 -53
- data/lib/stripe/resources/financial_connections/session.rb +1 -63
- data/lib/stripe/resources/financial_connections/transaction.rb +0 -16
- data/lib/stripe/resources/forwarding/request.rb +0 -52
- data/lib/stripe/resources/funding_instructions.rb +0 -193
- data/lib/stripe/resources/fx_quote.rb +0 -48
- data/lib/stripe/resources/identity/verification_report.rb +1 -166
- data/lib/stripe/resources/identity/verification_session.rb +1 -126
- data/lib/stripe/resources/invoice.rb +3 -452
- data/lib/stripe/resources/invoice_item.rb +0 -136
- data/lib/stripe/resources/invoice_line_item.rb +0 -238
- data/lib/stripe/resources/invoice_payment.rb +0 -24
- data/lib/stripe/resources/invoice_rendering_template.rb +0 -8
- data/lib/stripe/resources/issuing/authorization.rb +0 -177
- data/lib/stripe/resources/issuing/card.rb +8 -96
- data/lib/stripe/resources/issuing/cardholder.rb +0 -110
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -82
- data/lib/stripe/resources/issuing/dispute.rb +0 -97
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -16
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -8
- data/lib/stripe/resources/issuing/personalization_design.rb +0 -36
- data/lib/stripe/resources/issuing/physical_bundle.rb +0 -16
- data/lib/stripe/resources/issuing/settlement.rb +0 -8
- data/lib/stripe/resources/issuing/token.rb +0 -61
- data/lib/stripe/resources/issuing/transaction.rb +0 -151
- data/lib/stripe/resources/line_item.rb +0 -54
- data/lib/stripe/resources/login_link.rb +0 -8
- data/lib/stripe/resources/mandate.rb +11 -242
- data/lib/stripe/resources/margin.rb +0 -8
- data/lib/stripe/resources/order.rb +0 -348
- data/lib/stripe/resources/payment_attempt_record.rb +15 -890
- data/lib/stripe/resources/payment_intent.rb +3 -1405
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -56
- data/lib/stripe/resources/payment_link.rb +0 -337
- data/lib/stripe/resources/payment_method.rb +38 -884
- data/lib/stripe/resources/payment_method_configuration.rb +0 -961
- data/lib/stripe/resources/payment_method_domain.rb +0 -111
- data/lib/stripe/resources/payment_record.rb +15 -890
- data/lib/stripe/resources/payout.rb +0 -16
- data/lib/stripe/resources/person.rb +0 -180
- data/lib/stripe/resources/plan.rb +0 -24
- data/lib/stripe/resources/price.rb +0 -79
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -16
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -16
- data/lib/stripe/resources/product.rb +0 -27
- data/lib/stripe/resources/product_feature.rb +0 -8
- data/lib/stripe/resources/promotion_code.rb +0 -24
- data/lib/stripe/resources/quote.rb +0 -432
- data/lib/stripe/resources/quote_line.rb +0 -247
- data/lib/stripe/resources/quote_preview_invoice.rb +3 -457
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -323
- data/lib/stripe/resources/radar/early_fraud_warning.rb +0 -8
- data/lib/stripe/resources/radar/value_list.rb +0 -8
- data/lib/stripe/resources/radar/value_list_item.rb +0 -8
- data/lib/stripe/resources/refund.rb +19 -380
- data/lib/stripe/resources/reporting/report_run.rb +0 -16
- data/lib/stripe/resources/reporting/report_type.rb +0 -8
- data/lib/stripe/resources/reserve_transaction.rb +0 -8
- data/lib/stripe/resources/reversal.rb +0 -8
- data/lib/stripe/resources/review.rb +0 -24
- data/lib/stripe/resources/setup_attempt.rb +20 -331
- data/lib/stripe/resources/setup_intent.rb +2 -293
- data/lib/stripe/resources/shipping_rate.rb +0 -48
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +0 -16
- data/lib/stripe/resources/source.rb +0 -274
- data/lib/stripe/resources/source_mandate_notification.rb +0 -32
- data/lib/stripe/resources/source_transaction.rb +0 -54
- data/lib/stripe/resources/subscription.rb +3 -356
- data/lib/stripe/resources/subscription_item.rb +0 -24
- data/lib/stripe/resources/subscription_schedule.rb +0 -314
- data/lib/stripe/resources/tax/association.rb +0 -32
- data/lib/stripe/resources/tax/calculation.rb +0 -109
- data/lib/stripe/resources/tax/calculation_line_item.rb +0 -32
- data/lib/stripe/resources/tax/form.rb +0 -107
- data/lib/stripe/resources/tax/registration.rb +0 -1232
- data/lib/stripe/resources/tax/settings.rb +1 -61
- data/lib/stripe/resources/tax/transaction.rb +0 -93
- data/lib/stripe/resources/tax/transaction_line_item.rb +0 -16
- data/lib/stripe/resources/tax_code.rb +0 -8
- data/lib/stripe/resources/tax_deducted_at_source.rb +0 -8
- data/lib/stripe/resources/tax_id.rb +0 -24
- data/lib/stripe/resources/tax_rate.rb +0 -16
- data/lib/stripe/resources/terminal/configuration.rb +0 -299
- data/lib/stripe/resources/terminal/connection_token.rb +0 -8
- data/lib/stripe/resources/terminal/location.rb +0 -16
- data/lib/stripe/resources/terminal/onboarding_link.rb +0 -24
- data/lib/stripe/resources/terminal/reader.rb +0 -241
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -16
- data/lib/stripe/resources/test_helpers/test_clock.rb +0 -24
- data/lib/stripe/resources/token.rb +0 -8
- data/lib/stripe/resources/topup.rb +0 -8
- data/lib/stripe/resources/transfer.rb +0 -8
- data/lib/stripe/resources/treasury/credit_reversal.rb +0 -16
- data/lib/stripe/resources/treasury/debit_reversal.rb +0 -24
- data/lib/stripe/resources/treasury/financial_account.rb +0 -61
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -192
- data/lib/stripe/resources/treasury/inbound_transfer.rb +0 -69
- data/lib/stripe/resources/treasury/outbound_payment.rb +0 -106
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -114
- data/lib/stripe/resources/treasury/received_credit.rb +0 -97
- data/lib/stripe/resources/treasury/received_debit.rb +0 -89
- data/lib/stripe/resources/treasury/transaction.rb +0 -36
- data/lib/stripe/resources/treasury/transaction_entry.rb +0 -24
- data/lib/stripe/resources/v2/billing/meter_event.rb +0 -8
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -16
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -8
- data/lib/stripe/resources/v2/core/account.rb +0 -1900
- data/lib/stripe/resources/v2/core/account_link.rb +0 -51
- data/lib/stripe/resources/v2/core/person.rb +0 -201
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -40
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -8
- data/lib/stripe/resources/v2/event.rb +0 -26
- data/lib/stripe/resources/v2/event_destination.rb +0 -44
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -8
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -8
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -16
- data/lib/stripe/resources/v2/money_management/financial_account.rb +2 -63
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -32
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +3 -90
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -88
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -62
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -24
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -79
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -32
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -32
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -77
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -52
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -36
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -35
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -24
- data/lib/stripe/resources/webhook_endpoint.rb +0 -8
- data/lib/stripe/resources.rb +0 -85
- data/lib/stripe/services/billing/alert_service.rb +1 -75
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -13
- data/lib/stripe/services/billing/credit_grant_service.rb +2 -29
- data/lib/stripe/services/checkout/session_service.rb +1 -80
- data/lib/stripe/services/invoice_service.rb +0 -4
- data/lib/stripe/services/issuing/card_service.rb +8 -0
- data/lib/stripe/services/subscription_service.rb +0 -27
- data/lib/stripe/services/v2/billing_service.rb +1 -18
- data/lib/stripe/services/v2/core_service.rb +1 -2
- data/lib/stripe/services/v2_services.rb +1 -3
- data/lib/stripe/services.rb +0 -29
- data/lib/stripe/stripe_object.rb +1 -25
- data/lib/stripe/util.rb +5 -9
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +37685 -116505
- metadata +2 -116
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -21
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_cadence_errored_event.rb +0 -21
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -23
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -23
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +0 -21
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -21
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +0 -21
- data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -90
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -323
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -296
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -284
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -43
- data/lib/stripe/resources/v2/billing/intent.rb +0 -86
- data/lib/stripe/resources/v2/billing/intent_action.rb +0 -395
- data/lib/stripe/resources/v2/billing/license_fee.rb +0 -103
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -44
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -80
- data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -60
- data/lib/stripe/resources/v2/billing/metered_item.rb +0 -85
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -51
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -94
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -90
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -38
- data/lib/stripe/resources/v2/billing/profile.rb +0 -46
- data/lib/stripe/resources/v2/billing/rate_card.rb +0 -61
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -107
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -90
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -34
- data/lib/stripe/resources/v2/billing/service_action.rb +0 -232
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -81
- data/lib/stripe/resources/v2/reporting/report.rb +0 -116
- data/lib/stripe/resources/v2/reporting/report_run.rb +0 -158
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +0 -39
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -214
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/cadence_service.rb +0 -428
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -518
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +0 -108
- data/lib/stripe/services/v2/billing/intent_service.rb +0 -465
- data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -45
- data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -250
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -23
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -149
- data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -176
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -142
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -76
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -162
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -144
- data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -151
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -144
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -161
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/service_action_service.rb +0 -259
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -50
- data/lib/stripe/services/v2/reporting/report_run_service.rb +0 -88
- data/lib/stripe/services/v2/reporting/report_service.rb +0 -25
- data/lib/stripe/services/v2/reporting_service.rb +0 -16
- data/lib/stripe/services/v2/tax/automatic_rule_service.rb +0 -99
- data/lib/stripe/services/v2/tax_service.rb +0 -15
@@ -66,14 +66,6 @@ module Stripe
|
|
66
66
|
attr_reader :paid_at
|
67
67
|
# The status of the payment, one of `open`, `paid`, or `past_due`
|
68
68
|
attr_reader :status
|
69
|
-
|
70
|
-
def self.inner_class_types
|
71
|
-
@inner_class_types = {}
|
72
|
-
end
|
73
|
-
|
74
|
-
def self.field_remappings
|
75
|
-
@field_remappings = {}
|
76
|
-
end
|
77
69
|
end
|
78
70
|
|
79
71
|
class AutomaticTax < Stripe::StripeObject
|
@@ -82,14 +74,6 @@ module Stripe
|
|
82
74
|
attr_reader :account
|
83
75
|
# Type of the account referenced.
|
84
76
|
attr_reader :type
|
85
|
-
|
86
|
-
def self.inner_class_types
|
87
|
-
@inner_class_types = {}
|
88
|
-
end
|
89
|
-
|
90
|
-
def self.field_remappings
|
91
|
-
@field_remappings = {}
|
92
|
-
end
|
93
77
|
end
|
94
78
|
# If Stripe disabled automatic tax, this enum describes why.
|
95
79
|
attr_reader :disabled_reason
|
@@ -101,14 +85,6 @@ module Stripe
|
|
101
85
|
attr_reader :provider
|
102
86
|
# The status of the most recent automated tax calculation for this invoice.
|
103
87
|
attr_reader :status
|
104
|
-
|
105
|
-
def self.inner_class_types
|
106
|
-
@inner_class_types = { liability: Liability }
|
107
|
-
end
|
108
|
-
|
109
|
-
def self.field_remappings
|
110
|
-
@field_remappings = {}
|
111
|
-
end
|
112
88
|
end
|
113
89
|
|
114
90
|
class ConfirmationSecret < Stripe::StripeObject
|
@@ -116,14 +92,6 @@ module Stripe
|
|
116
92
|
attr_reader :client_secret
|
117
93
|
# The type of client_secret. Currently this is always payment_intent, referencing the default payment_intent that Stripe creates during invoice finalization
|
118
94
|
attr_reader :type
|
119
|
-
|
120
|
-
def self.inner_class_types
|
121
|
-
@inner_class_types = {}
|
122
|
-
end
|
123
|
-
|
124
|
-
def self.field_remappings
|
125
|
-
@field_remappings = {}
|
126
|
-
end
|
127
95
|
end
|
128
96
|
|
129
97
|
class CustomField < Stripe::StripeObject
|
@@ -131,14 +99,6 @@ module Stripe
|
|
131
99
|
attr_reader :name
|
132
100
|
# The value of the custom field.
|
133
101
|
attr_reader :value
|
134
|
-
|
135
|
-
def self.inner_class_types
|
136
|
-
@inner_class_types = {}
|
137
|
-
end
|
138
|
-
|
139
|
-
def self.field_remappings
|
140
|
-
@field_remappings = {}
|
141
|
-
end
|
142
102
|
end
|
143
103
|
|
144
104
|
class CustomerAddress < Stripe::StripeObject
|
@@ -154,14 +114,6 @@ module Stripe
|
|
154
114
|
attr_reader :postal_code
|
155
115
|
# State, county, province, or region.
|
156
116
|
attr_reader :state
|
157
|
-
|
158
|
-
def self.inner_class_types
|
159
|
-
@inner_class_types = {}
|
160
|
-
end
|
161
|
-
|
162
|
-
def self.field_remappings
|
163
|
-
@field_remappings = {}
|
164
|
-
end
|
165
117
|
end
|
166
118
|
|
167
119
|
class CustomerShipping < Stripe::StripeObject
|
@@ -178,14 +130,6 @@ module Stripe
|
|
178
130
|
attr_reader :postal_code
|
179
131
|
# State, county, province, or region.
|
180
132
|
attr_reader :state
|
181
|
-
|
182
|
-
def self.inner_class_types
|
183
|
-
@inner_class_types = {}
|
184
|
-
end
|
185
|
-
|
186
|
-
def self.field_remappings
|
187
|
-
@field_remappings = {}
|
188
|
-
end
|
189
133
|
end
|
190
134
|
# Attribute for field address
|
191
135
|
attr_reader :address
|
@@ -197,14 +141,6 @@ module Stripe
|
|
197
141
|
attr_reader :phone
|
198
142
|
# The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
199
143
|
attr_reader :tracking_number
|
200
|
-
|
201
|
-
def self.inner_class_types
|
202
|
-
@inner_class_types = { address: Address }
|
203
|
-
end
|
204
|
-
|
205
|
-
def self.field_remappings
|
206
|
-
@field_remappings = {}
|
207
|
-
end
|
208
144
|
end
|
209
145
|
|
210
146
|
class CustomerTaxId < Stripe::StripeObject
|
@@ -212,14 +148,6 @@ module Stripe
|
|
212
148
|
attr_reader :type
|
213
149
|
# The value of the tax ID.
|
214
150
|
attr_reader :value
|
215
|
-
|
216
|
-
def self.inner_class_types
|
217
|
-
@inner_class_types = {}
|
218
|
-
end
|
219
|
-
|
220
|
-
def self.field_remappings
|
221
|
-
@field_remappings = {}
|
222
|
-
end
|
223
151
|
end
|
224
152
|
|
225
153
|
class FromInvoice < Stripe::StripeObject
|
@@ -227,14 +155,6 @@ module Stripe
|
|
227
155
|
attr_reader :action
|
228
156
|
# The invoice that was cloned.
|
229
157
|
attr_reader :invoice
|
230
|
-
|
231
|
-
def self.inner_class_types
|
232
|
-
@inner_class_types = {}
|
233
|
-
end
|
234
|
-
|
235
|
-
def self.field_remappings
|
236
|
-
@field_remappings = {}
|
237
|
-
end
|
238
158
|
end
|
239
159
|
|
240
160
|
class Issuer < Stripe::StripeObject
|
@@ -242,14 +162,6 @@ module Stripe
|
|
242
162
|
attr_reader :account
|
243
163
|
# Type of the account referenced.
|
244
164
|
attr_reader :type
|
245
|
-
|
246
|
-
def self.inner_class_types
|
247
|
-
@inner_class_types = {}
|
248
|
-
end
|
249
|
-
|
250
|
-
def self.field_remappings
|
251
|
-
@field_remappings = {}
|
252
|
-
end
|
253
165
|
end
|
254
166
|
|
255
167
|
class LastFinalizationError < Stripe::StripeObject
|
@@ -319,41 +231,12 @@ module Stripe
|
|
319
231
|
attr_reader :source
|
320
232
|
# The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
|
321
233
|
attr_reader :type
|
322
|
-
|
323
|
-
def self.inner_class_types
|
324
|
-
@inner_class_types = {}
|
325
|
-
end
|
326
|
-
|
327
|
-
def self.field_remappings
|
328
|
-
@field_remappings = {}
|
329
|
-
end
|
330
234
|
end
|
331
235
|
|
332
236
|
class Parent < Stripe::StripeObject
|
333
|
-
class BillingCadenceDetails < Stripe::StripeObject
|
334
|
-
# The billing cadence that generated this invoice
|
335
|
-
attr_reader :billing_cadence
|
336
|
-
|
337
|
-
def self.inner_class_types
|
338
|
-
@inner_class_types = {}
|
339
|
-
end
|
340
|
-
|
341
|
-
def self.field_remappings
|
342
|
-
@field_remappings = {}
|
343
|
-
end
|
344
|
-
end
|
345
|
-
|
346
237
|
class QuoteDetails < Stripe::StripeObject
|
347
238
|
# The quote that generated this invoice
|
348
239
|
attr_reader :quote
|
349
|
-
|
350
|
-
def self.inner_class_types
|
351
|
-
@inner_class_types = {}
|
352
|
-
end
|
353
|
-
|
354
|
-
def self.field_remappings
|
355
|
-
@field_remappings = {}
|
356
|
-
end
|
357
240
|
end
|
358
241
|
|
359
242
|
class SubscriptionDetails < Stripe::StripeObject
|
@@ -362,14 +245,6 @@ module Stripe
|
|
362
245
|
attr_reader :behavior
|
363
246
|
# The time after which the subscription will resume collecting payments.
|
364
247
|
attr_reader :resumes_at
|
365
|
-
|
366
|
-
def self.inner_class_types
|
367
|
-
@inner_class_types = {}
|
368
|
-
end
|
369
|
-
|
370
|
-
def self.field_remappings
|
371
|
-
@field_remappings = {}
|
372
|
-
end
|
373
248
|
end
|
374
249
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.
|
375
250
|
# *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
|
@@ -380,35 +255,13 @@ module Stripe
|
|
380
255
|
attr_reader :subscription
|
381
256
|
# Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
|
382
257
|
attr_reader :subscription_proration_date
|
383
|
-
|
384
|
-
def self.inner_class_types
|
385
|
-
@inner_class_types = { pause_collection: PauseCollection }
|
386
|
-
end
|
387
|
-
|
388
|
-
def self.field_remappings
|
389
|
-
@field_remappings = {}
|
390
|
-
end
|
391
258
|
end
|
392
|
-
# Details about the billing cadence that generated this invoice
|
393
|
-
attr_reader :billing_cadence_details
|
394
259
|
# Details about the quote that generated this invoice
|
395
260
|
attr_reader :quote_details
|
396
261
|
# Details about the subscription that generated this invoice
|
397
262
|
attr_reader :subscription_details
|
398
263
|
# The type of parent that generated this invoice
|
399
264
|
attr_reader :type
|
400
|
-
|
401
|
-
def self.inner_class_types
|
402
|
-
@inner_class_types = {
|
403
|
-
billing_cadence_details: BillingCadenceDetails,
|
404
|
-
quote_details: QuoteDetails,
|
405
|
-
subscription_details: SubscriptionDetails,
|
406
|
-
}
|
407
|
-
end
|
408
|
-
|
409
|
-
def self.field_remappings
|
410
|
-
@field_remappings = {}
|
411
|
-
end
|
412
265
|
end
|
413
266
|
|
414
267
|
class PaymentSettings < Stripe::StripeObject
|
@@ -417,67 +270,27 @@ module Stripe
|
|
417
270
|
class MandateOptions < Stripe::StripeObject
|
418
271
|
# Transaction type of the mandate.
|
419
272
|
attr_reader :transaction_type
|
420
|
-
|
421
|
-
def self.inner_class_types
|
422
|
-
@inner_class_types = {}
|
423
|
-
end
|
424
|
-
|
425
|
-
def self.field_remappings
|
426
|
-
@field_remappings = {}
|
427
|
-
end
|
428
273
|
end
|
429
274
|
# Attribute for field mandate_options
|
430
275
|
attr_reader :mandate_options
|
431
276
|
# Bank account verification method.
|
432
277
|
attr_reader :verification_method
|
433
|
-
|
434
|
-
def self.inner_class_types
|
435
|
-
@inner_class_types = { mandate_options: MandateOptions }
|
436
|
-
end
|
437
|
-
|
438
|
-
def self.field_remappings
|
439
|
-
@field_remappings = {}
|
440
|
-
end
|
441
278
|
end
|
442
279
|
|
443
280
|
class Bancontact < Stripe::StripeObject
|
444
281
|
# Preferred language of the Bancontact authorization page that the customer is redirected to.
|
445
282
|
attr_reader :preferred_language
|
446
|
-
|
447
|
-
def self.inner_class_types
|
448
|
-
@inner_class_types = {}
|
449
|
-
end
|
450
|
-
|
451
|
-
def self.field_remappings
|
452
|
-
@field_remappings = {}
|
453
|
-
end
|
454
283
|
end
|
455
284
|
|
456
285
|
class Card < Stripe::StripeObject
|
457
286
|
class Installments < Stripe::StripeObject
|
458
287
|
# Whether Installments are enabled for this Invoice.
|
459
288
|
attr_reader :enabled
|
460
|
-
|
461
|
-
def self.inner_class_types
|
462
|
-
@inner_class_types = {}
|
463
|
-
end
|
464
|
-
|
465
|
-
def self.field_remappings
|
466
|
-
@field_remappings = {}
|
467
|
-
end
|
468
289
|
end
|
469
290
|
# Attribute for field installments
|
470
291
|
attr_reader :installments
|
471
292
|
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
472
293
|
attr_reader :request_three_d_secure
|
473
|
-
|
474
|
-
def self.inner_class_types
|
475
|
-
@inner_class_types = { installments: Installments }
|
476
|
-
end
|
477
|
-
|
478
|
-
def self.field_remappings
|
479
|
-
@field_remappings = {}
|
480
|
-
end
|
481
294
|
end
|
482
295
|
|
483
296
|
class CustomerBalance < Stripe::StripeObject
|
@@ -485,71 +298,21 @@ module Stripe
|
|
485
298
|
class EuBankTransfer < Stripe::StripeObject
|
486
299
|
# The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
|
487
300
|
attr_reader :country
|
488
|
-
|
489
|
-
def self.inner_class_types
|
490
|
-
@inner_class_types = {}
|
491
|
-
end
|
492
|
-
|
493
|
-
def self.field_remappings
|
494
|
-
@field_remappings = {}
|
495
|
-
end
|
496
301
|
end
|
497
302
|
# Attribute for field eu_bank_transfer
|
498
303
|
attr_reader :eu_bank_transfer
|
499
304
|
# The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
500
305
|
attr_reader :type
|
501
|
-
|
502
|
-
def self.inner_class_types
|
503
|
-
@inner_class_types = { eu_bank_transfer: EuBankTransfer }
|
504
|
-
end
|
505
|
-
|
506
|
-
def self.field_remappings
|
507
|
-
@field_remappings = {}
|
508
|
-
end
|
509
306
|
end
|
510
307
|
# Attribute for field bank_transfer
|
511
308
|
attr_reader :bank_transfer
|
512
309
|
# The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
|
513
310
|
attr_reader :funding_type
|
514
|
-
|
515
|
-
def self.inner_class_types
|
516
|
-
@inner_class_types = { bank_transfer: BankTransfer }
|
517
|
-
end
|
518
|
-
|
519
|
-
def self.field_remappings
|
520
|
-
@field_remappings = {}
|
521
|
-
end
|
522
311
|
end
|
523
312
|
|
524
|
-
class IdBankTransfer < Stripe::StripeObject
|
525
|
-
|
526
|
-
|
527
|
-
end
|
528
|
-
|
529
|
-
def self.field_remappings
|
530
|
-
@field_remappings = {}
|
531
|
-
end
|
532
|
-
end
|
533
|
-
|
534
|
-
class Konbini < Stripe::StripeObject
|
535
|
-
def self.inner_class_types
|
536
|
-
@inner_class_types = {}
|
537
|
-
end
|
538
|
-
|
539
|
-
def self.field_remappings
|
540
|
-
@field_remappings = {}
|
541
|
-
end
|
542
|
-
end
|
543
|
-
|
544
|
-
class SepaDebit < Stripe::StripeObject
|
545
|
-
def self.inner_class_types
|
546
|
-
@inner_class_types = {}
|
547
|
-
end
|
548
|
-
|
549
|
-
def self.field_remappings
|
550
|
-
@field_remappings = {}
|
551
|
-
end
|
552
|
-
end
|
313
|
+
class IdBankTransfer < Stripe::StripeObject; end
|
314
|
+
class Konbini < Stripe::StripeObject; end
|
315
|
+
class SepaDebit < Stripe::StripeObject; end
|
553
316
|
|
554
317
|
class Upi < Stripe::StripeObject
|
555
318
|
class MandateOptions < Stripe::StripeObject
|
@@ -561,25 +324,9 @@ module Stripe
|
|
561
324
|
attr_reader :description
|
562
325
|
# End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
563
326
|
attr_reader :end_date
|
564
|
-
|
565
|
-
def self.inner_class_types
|
566
|
-
@inner_class_types = {}
|
567
|
-
end
|
568
|
-
|
569
|
-
def self.field_remappings
|
570
|
-
@field_remappings = {}
|
571
|
-
end
|
572
327
|
end
|
573
328
|
# Attribute for field mandate_options
|
574
329
|
attr_reader :mandate_options
|
575
|
-
|
576
|
-
def self.inner_class_types
|
577
|
-
@inner_class_types = { mandate_options: MandateOptions }
|
578
|
-
end
|
579
|
-
|
580
|
-
def self.field_remappings
|
581
|
-
@field_remappings = {}
|
582
|
-
end
|
583
330
|
end
|
584
331
|
|
585
332
|
class UsBankAccount < Stripe::StripeObject
|
@@ -589,14 +336,6 @@ module Stripe
|
|
589
336
|
attr_reader :account_subcategories
|
590
337
|
# The institution to use to filter for possible accounts to link.
|
591
338
|
attr_reader :institution
|
592
|
-
|
593
|
-
def self.inner_class_types
|
594
|
-
@inner_class_types = {}
|
595
|
-
end
|
596
|
-
|
597
|
-
def self.field_remappings
|
598
|
-
@field_remappings = {}
|
599
|
-
end
|
600
339
|
end
|
601
340
|
# Attribute for field filters
|
602
341
|
attr_reader :filters
|
@@ -604,27 +343,11 @@ module Stripe
|
|
604
343
|
attr_reader :permissions
|
605
344
|
# Data features requested to be retrieved upon account creation.
|
606
345
|
attr_reader :prefetch
|
607
|
-
|
608
|
-
def self.inner_class_types
|
609
|
-
@inner_class_types = { filters: Filters }
|
610
|
-
end
|
611
|
-
|
612
|
-
def self.field_remappings
|
613
|
-
@field_remappings = {}
|
614
|
-
end
|
615
346
|
end
|
616
347
|
# Attribute for field financial_connections
|
617
348
|
attr_reader :financial_connections
|
618
349
|
# Bank account verification method.
|
619
350
|
attr_reader :verification_method
|
620
|
-
|
621
|
-
def self.inner_class_types
|
622
|
-
@inner_class_types = { financial_connections: FinancialConnections }
|
623
|
-
end
|
624
|
-
|
625
|
-
def self.field_remappings
|
626
|
-
@field_remappings = {}
|
627
|
-
end
|
628
351
|
end
|
629
352
|
# If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
|
630
353
|
attr_reader :acss_debit
|
@@ -644,24 +367,6 @@ module Stripe
|
|
644
367
|
attr_reader :upi
|
645
368
|
# If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
|
646
369
|
attr_reader :us_bank_account
|
647
|
-
|
648
|
-
def self.inner_class_types
|
649
|
-
@inner_class_types = {
|
650
|
-
acss_debit: AcssDebit,
|
651
|
-
bancontact: Bancontact,
|
652
|
-
card: Card,
|
653
|
-
customer_balance: CustomerBalance,
|
654
|
-
id_bank_transfer: IdBankTransfer,
|
655
|
-
konbini: Konbini,
|
656
|
-
sepa_debit: SepaDebit,
|
657
|
-
upi: Upi,
|
658
|
-
us_bank_account: UsBankAccount,
|
659
|
-
}
|
660
|
-
end
|
661
|
-
|
662
|
-
def self.field_remappings
|
663
|
-
@field_remappings = {}
|
664
|
-
end
|
665
370
|
end
|
666
371
|
# ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
|
667
372
|
attr_reader :default_mandate
|
@@ -669,28 +374,12 @@ module Stripe
|
|
669
374
|
attr_reader :payment_method_options
|
670
375
|
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
|
671
376
|
attr_reader :payment_method_types
|
672
|
-
|
673
|
-
def self.inner_class_types
|
674
|
-
@inner_class_types = { payment_method_options: PaymentMethodOptions }
|
675
|
-
end
|
676
|
-
|
677
|
-
def self.field_remappings
|
678
|
-
@field_remappings = {}
|
679
|
-
end
|
680
377
|
end
|
681
378
|
|
682
379
|
class Rendering < Stripe::StripeObject
|
683
380
|
class Pdf < Stripe::StripeObject
|
684
381
|
# Page size of invoice pdf. Options include a4, letter, and auto. If set to auto, page size will be switched to a4 or letter based on customer locale.
|
685
382
|
attr_reader :page_size
|
686
|
-
|
687
|
-
def self.inner_class_types
|
688
|
-
@inner_class_types = {}
|
689
|
-
end
|
690
|
-
|
691
|
-
def self.field_remappings
|
692
|
-
@field_remappings = {}
|
693
|
-
end
|
694
383
|
end
|
695
384
|
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
|
696
385
|
attr_reader :amount_tax_display
|
@@ -700,14 +389,6 @@ module Stripe
|
|
700
389
|
attr_reader :template
|
701
390
|
# Version of the rendering template that the invoice is using.
|
702
391
|
attr_reader :template_version
|
703
|
-
|
704
|
-
def self.inner_class_types
|
705
|
-
@inner_class_types = { pdf: Pdf }
|
706
|
-
end
|
707
|
-
|
708
|
-
def self.field_remappings
|
709
|
-
@field_remappings = {}
|
710
|
-
end
|
711
392
|
end
|
712
393
|
|
713
394
|
class ShippingCost < Stripe::StripeObject
|
@@ -722,14 +403,6 @@ module Stripe
|
|
722
403
|
attr_reader :taxability_reason
|
723
404
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
724
405
|
attr_reader :taxable_amount
|
725
|
-
|
726
|
-
def self.inner_class_types
|
727
|
-
@inner_class_types = {}
|
728
|
-
end
|
729
|
-
|
730
|
-
def self.field_remappings
|
731
|
-
@field_remappings = {}
|
732
|
-
end
|
733
406
|
end
|
734
407
|
# Total shipping cost before any taxes are applied.
|
735
408
|
attr_reader :amount_subtotal
|
@@ -741,14 +414,6 @@ module Stripe
|
|
741
414
|
attr_reader :shipping_rate
|
742
415
|
# The taxes applied to the shipping rate.
|
743
416
|
attr_reader :taxes
|
744
|
-
|
745
|
-
def self.inner_class_types
|
746
|
-
@inner_class_types = { taxes: Tax }
|
747
|
-
end
|
748
|
-
|
749
|
-
def self.field_remappings
|
750
|
-
@field_remappings = {}
|
751
|
-
end
|
752
417
|
end
|
753
418
|
|
754
419
|
class ShippingDetails < Stripe::StripeObject
|
@@ -765,14 +430,6 @@ module Stripe
|
|
765
430
|
attr_reader :postal_code
|
766
431
|
# State, county, province, or region.
|
767
432
|
attr_reader :state
|
768
|
-
|
769
|
-
def self.inner_class_types
|
770
|
-
@inner_class_types = {}
|
771
|
-
end
|
772
|
-
|
773
|
-
def self.field_remappings
|
774
|
-
@field_remappings = {}
|
775
|
-
end
|
776
433
|
end
|
777
434
|
# Attribute for field address
|
778
435
|
attr_reader :address
|
@@ -784,14 +441,6 @@ module Stripe
|
|
784
441
|
attr_reader :phone
|
785
442
|
# The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
786
443
|
attr_reader :tracking_number
|
787
|
-
|
788
|
-
def self.inner_class_types
|
789
|
-
@inner_class_types = { address: Address }
|
790
|
-
end
|
791
|
-
|
792
|
-
def self.field_remappings
|
793
|
-
@field_remappings = {}
|
794
|
-
end
|
795
444
|
end
|
796
445
|
|
797
446
|
class StatusTransitions < Stripe::StripeObject
|
@@ -803,14 +452,6 @@ module Stripe
|
|
803
452
|
attr_reader :paid_at
|
804
453
|
# The time that the invoice was voided.
|
805
454
|
attr_reader :voided_at
|
806
|
-
|
807
|
-
def self.inner_class_types
|
808
|
-
@inner_class_types = {}
|
809
|
-
end
|
810
|
-
|
811
|
-
def self.field_remappings
|
812
|
-
@field_remappings = {}
|
813
|
-
end
|
814
455
|
end
|
815
456
|
|
816
457
|
class ThresholdReason < Stripe::StripeObject
|
@@ -819,27 +460,11 @@ module Stripe
|
|
819
460
|
attr_reader :line_item_ids
|
820
461
|
# The quantity threshold boundary that applied to the given line item.
|
821
462
|
attr_reader :usage_gte
|
822
|
-
|
823
|
-
def self.inner_class_types
|
824
|
-
@inner_class_types = {}
|
825
|
-
end
|
826
|
-
|
827
|
-
def self.field_remappings
|
828
|
-
@field_remappings = {}
|
829
|
-
end
|
830
463
|
end
|
831
464
|
# The total invoice amount threshold boundary if it triggered the threshold invoice.
|
832
465
|
attr_reader :amount_gte
|
833
466
|
# Indicates which line items triggered a threshold invoice.
|
834
467
|
attr_reader :item_reasons
|
835
|
-
|
836
|
-
def self.inner_class_types
|
837
|
-
@inner_class_types = { item_reasons: ItemReason }
|
838
|
-
end
|
839
|
-
|
840
|
-
def self.field_remappings
|
841
|
-
@field_remappings = {}
|
842
|
-
end
|
843
468
|
end
|
844
469
|
|
845
470
|
class TotalDiscountAmount < Stripe::StripeObject
|
@@ -847,14 +472,6 @@ module Stripe
|
|
847
472
|
attr_reader :amount
|
848
473
|
# The discount that was applied to get this discount amount.
|
849
474
|
attr_reader :discount
|
850
|
-
|
851
|
-
def self.inner_class_types
|
852
|
-
@inner_class_types = {}
|
853
|
-
end
|
854
|
-
|
855
|
-
def self.field_remappings
|
856
|
-
@field_remappings = {}
|
857
|
-
end
|
858
475
|
end
|
859
476
|
|
860
477
|
class TotalMarginAmount < Stripe::StripeObject
|
@@ -862,14 +479,6 @@ module Stripe
|
|
862
479
|
attr_reader :amount
|
863
480
|
# The margin that was applied to get this margin amount.
|
864
481
|
attr_reader :margin
|
865
|
-
|
866
|
-
def self.inner_class_types
|
867
|
-
@inner_class_types = {}
|
868
|
-
end
|
869
|
-
|
870
|
-
def self.field_remappings
|
871
|
-
@field_remappings = {}
|
872
|
-
end
|
873
482
|
end
|
874
483
|
|
875
484
|
class TotalPretaxCreditAmount < Stripe::StripeObject
|
@@ -883,28 +492,12 @@ module Stripe
|
|
883
492
|
attr_reader :margin
|
884
493
|
# Type of the pretax credit amount referenced.
|
885
494
|
attr_reader :type
|
886
|
-
|
887
|
-
def self.inner_class_types
|
888
|
-
@inner_class_types = {}
|
889
|
-
end
|
890
|
-
|
891
|
-
def self.field_remappings
|
892
|
-
@field_remappings = {}
|
893
|
-
end
|
894
495
|
end
|
895
496
|
|
896
497
|
class TotalTax < Stripe::StripeObject
|
897
498
|
class TaxRateDetails < Stripe::StripeObject
|
898
499
|
# Attribute for field tax_rate
|
899
500
|
attr_reader :tax_rate
|
900
|
-
|
901
|
-
def self.inner_class_types
|
902
|
-
@inner_class_types = {}
|
903
|
-
end
|
904
|
-
|
905
|
-
def self.field_remappings
|
906
|
-
@field_remappings = {}
|
907
|
-
end
|
908
501
|
end
|
909
502
|
# The amount of the tax, in cents (or local equivalent).
|
910
503
|
attr_reader :amount
|
@@ -918,14 +511,6 @@ module Stripe
|
|
918
511
|
attr_reader :taxable_amount
|
919
512
|
# The type of tax information.
|
920
513
|
attr_reader :type
|
921
|
-
|
922
|
-
def self.inner_class_types
|
923
|
-
@inner_class_types = { tax_rate_details: TaxRateDetails }
|
924
|
-
end
|
925
|
-
|
926
|
-
def self.field_remappings
|
927
|
-
@field_remappings = {}
|
928
|
-
end
|
929
514
|
end
|
930
515
|
|
931
516
|
class DeleteParams < Stripe::RequestParams; end
|
@@ -4691,8 +4276,6 @@ module Stripe
|
|
4691
4276
|
end
|
4692
4277
|
# Settings for automatic tax lookup for this invoice preview.
|
4693
4278
|
attr_accessor :automatic_tax
|
4694
|
-
# The identifier of the billing cadence for which you’d like to retrieve the upcoming invoice.Cannot be provided when `subscription`, `schedule`, `subscription_details` or `schedule_details` are provided.
|
4695
|
-
attr_accessor :billing_cadence
|
4696
4279
|
# The currency to preview this invoice in. Defaults to that of `customer` if not specified.
|
4697
4280
|
attr_accessor :currency
|
4698
4281
|
# The identifier of the customer whose upcoming invoice you'd like to retrieve. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.
|
@@ -4724,7 +4307,6 @@ module Stripe
|
|
4724
4307
|
|
4725
4308
|
def initialize(
|
4726
4309
|
automatic_tax: nil,
|
4727
|
-
billing_cadence: nil,
|
4728
4310
|
currency: nil,
|
4729
4311
|
customer: nil,
|
4730
4312
|
customer_account: nil,
|
@@ -4741,7 +4323,6 @@ module Stripe
|
|
4741
4323
|
subscription_details: nil
|
4742
4324
|
)
|
4743
4325
|
@automatic_tax = automatic_tax
|
4744
|
-
@billing_cadence = billing_cadence
|
4745
4326
|
@currency = currency
|
4746
4327
|
@customer = customer
|
4747
4328
|
@customer_account = customer_account
|
@@ -5205,35 +4786,5 @@ module Stripe
|
|
5205
4786
|
opts: opts
|
5206
4787
|
)
|
5207
4788
|
end
|
5208
|
-
|
5209
|
-
def self.inner_class_types
|
5210
|
-
@inner_class_types = {
|
5211
|
-
amounts_due: AmountsDue,
|
5212
|
-
automatic_tax: AutomaticTax,
|
5213
|
-
confirmation_secret: ConfirmationSecret,
|
5214
|
-
custom_fields: CustomField,
|
5215
|
-
customer_address: CustomerAddress,
|
5216
|
-
customer_shipping: CustomerShipping,
|
5217
|
-
customer_tax_ids: CustomerTaxId,
|
5218
|
-
from_invoice: FromInvoice,
|
5219
|
-
issuer: Issuer,
|
5220
|
-
last_finalization_error: LastFinalizationError,
|
5221
|
-
parent: Parent,
|
5222
|
-
payment_settings: PaymentSettings,
|
5223
|
-
rendering: Rendering,
|
5224
|
-
shipping_cost: ShippingCost,
|
5225
|
-
shipping_details: ShippingDetails,
|
5226
|
-
status_transitions: StatusTransitions,
|
5227
|
-
threshold_reason: ThresholdReason,
|
5228
|
-
total_discount_amounts: TotalDiscountAmount,
|
5229
|
-
total_margin_amounts: TotalMarginAmount,
|
5230
|
-
total_pretax_credit_amounts: TotalPretaxCreditAmount,
|
5231
|
-
total_taxes: TotalTax,
|
5232
|
-
}
|
5233
|
-
end
|
5234
|
-
|
5235
|
-
def self.field_remappings
|
5236
|
-
@field_remappings = {}
|
5237
|
-
end
|
5238
4789
|
end
|
5239
4790
|
end
|