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
@@ -57,14 +57,6 @@ module Stripe
|
|
57
57
|
attr_reader :paid_at
|
58
58
|
# The status of the payment, one of `open`, `paid`, or `past_due`
|
59
59
|
attr_reader :status
|
60
|
-
|
61
|
-
def self.inner_class_types
|
62
|
-
@inner_class_types = {}
|
63
|
-
end
|
64
|
-
|
65
|
-
def self.field_remappings
|
66
|
-
@field_remappings = {}
|
67
|
-
end
|
68
60
|
end
|
69
61
|
|
70
62
|
class AppliesTo < Stripe::StripeObject
|
@@ -74,14 +66,6 @@ module Stripe
|
|
74
66
|
attr_reader :subscription_schedule
|
75
67
|
# Describes whether the quote line is affecting a new schedule or an existing schedule.
|
76
68
|
attr_reader :type
|
77
|
-
|
78
|
-
def self.inner_class_types
|
79
|
-
@inner_class_types = {}
|
80
|
-
end
|
81
|
-
|
82
|
-
def self.field_remappings
|
83
|
-
@field_remappings = {}
|
84
|
-
end
|
85
69
|
end
|
86
70
|
|
87
71
|
class AutomaticTax < Stripe::StripeObject
|
@@ -90,14 +74,6 @@ module Stripe
|
|
90
74
|
attr_reader :account
|
91
75
|
# Type of the account referenced.
|
92
76
|
attr_reader :type
|
93
|
-
|
94
|
-
def self.inner_class_types
|
95
|
-
@inner_class_types = {}
|
96
|
-
end
|
97
|
-
|
98
|
-
def self.field_remappings
|
99
|
-
@field_remappings = {}
|
100
|
-
end
|
101
77
|
end
|
102
78
|
# If Stripe disabled automatic tax, this enum describes why.
|
103
79
|
attr_reader :disabled_reason
|
@@ -109,14 +85,6 @@ module Stripe
|
|
109
85
|
attr_reader :provider
|
110
86
|
# The status of the most recent automated tax calculation for this invoice.
|
111
87
|
attr_reader :status
|
112
|
-
|
113
|
-
def self.inner_class_types
|
114
|
-
@inner_class_types = { liability: Liability }
|
115
|
-
end
|
116
|
-
|
117
|
-
def self.field_remappings
|
118
|
-
@field_remappings = {}
|
119
|
-
end
|
120
88
|
end
|
121
89
|
|
122
90
|
class ConfirmationSecret < Stripe::StripeObject
|
@@ -124,14 +92,6 @@ module Stripe
|
|
124
92
|
attr_reader :client_secret
|
125
93
|
# The type of client_secret. Currently this is always payment_intent, referencing the default payment_intent that Stripe creates during invoice finalization
|
126
94
|
attr_reader :type
|
127
|
-
|
128
|
-
def self.inner_class_types
|
129
|
-
@inner_class_types = {}
|
130
|
-
end
|
131
|
-
|
132
|
-
def self.field_remappings
|
133
|
-
@field_remappings = {}
|
134
|
-
end
|
135
95
|
end
|
136
96
|
|
137
97
|
class CustomField < Stripe::StripeObject
|
@@ -139,14 +99,6 @@ module Stripe
|
|
139
99
|
attr_reader :name
|
140
100
|
# The value of the custom field.
|
141
101
|
attr_reader :value
|
142
|
-
|
143
|
-
def self.inner_class_types
|
144
|
-
@inner_class_types = {}
|
145
|
-
end
|
146
|
-
|
147
|
-
def self.field_remappings
|
148
|
-
@field_remappings = {}
|
149
|
-
end
|
150
102
|
end
|
151
103
|
|
152
104
|
class CustomerAddress < Stripe::StripeObject
|
@@ -162,14 +114,6 @@ module Stripe
|
|
162
114
|
attr_reader :postal_code
|
163
115
|
# State, county, province, or region.
|
164
116
|
attr_reader :state
|
165
|
-
|
166
|
-
def self.inner_class_types
|
167
|
-
@inner_class_types = {}
|
168
|
-
end
|
169
|
-
|
170
|
-
def self.field_remappings
|
171
|
-
@field_remappings = {}
|
172
|
-
end
|
173
117
|
end
|
174
118
|
|
175
119
|
class CustomerShipping < Stripe::StripeObject
|
@@ -186,14 +130,6 @@ module Stripe
|
|
186
130
|
attr_reader :postal_code
|
187
131
|
# State, county, province, or region.
|
188
132
|
attr_reader :state
|
189
|
-
|
190
|
-
def self.inner_class_types
|
191
|
-
@inner_class_types = {}
|
192
|
-
end
|
193
|
-
|
194
|
-
def self.field_remappings
|
195
|
-
@field_remappings = {}
|
196
|
-
end
|
197
133
|
end
|
198
134
|
# Attribute for field address
|
199
135
|
attr_reader :address
|
@@ -205,14 +141,6 @@ module Stripe
|
|
205
141
|
attr_reader :phone
|
206
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.
|
207
143
|
attr_reader :tracking_number
|
208
|
-
|
209
|
-
def self.inner_class_types
|
210
|
-
@inner_class_types = { address: Address }
|
211
|
-
end
|
212
|
-
|
213
|
-
def self.field_remappings
|
214
|
-
@field_remappings = {}
|
215
|
-
end
|
216
144
|
end
|
217
145
|
|
218
146
|
class CustomerTaxId < Stripe::StripeObject
|
@@ -220,14 +148,6 @@ module Stripe
|
|
220
148
|
attr_reader :type
|
221
149
|
# The value of the tax ID.
|
222
150
|
attr_reader :value
|
223
|
-
|
224
|
-
def self.inner_class_types
|
225
|
-
@inner_class_types = {}
|
226
|
-
end
|
227
|
-
|
228
|
-
def self.field_remappings
|
229
|
-
@field_remappings = {}
|
230
|
-
end
|
231
151
|
end
|
232
152
|
|
233
153
|
class FromInvoice < Stripe::StripeObject
|
@@ -235,14 +155,6 @@ module Stripe
|
|
235
155
|
attr_reader :action
|
236
156
|
# The invoice that was cloned.
|
237
157
|
attr_reader :invoice
|
238
|
-
|
239
|
-
def self.inner_class_types
|
240
|
-
@inner_class_types = {}
|
241
|
-
end
|
242
|
-
|
243
|
-
def self.field_remappings
|
244
|
-
@field_remappings = {}
|
245
|
-
end
|
246
158
|
end
|
247
159
|
|
248
160
|
class Issuer < Stripe::StripeObject
|
@@ -250,14 +162,6 @@ module Stripe
|
|
250
162
|
attr_reader :account
|
251
163
|
# Type of the account referenced.
|
252
164
|
attr_reader :type
|
253
|
-
|
254
|
-
def self.inner_class_types
|
255
|
-
@inner_class_types = {}
|
256
|
-
end
|
257
|
-
|
258
|
-
def self.field_remappings
|
259
|
-
@field_remappings = {}
|
260
|
-
end
|
261
165
|
end
|
262
166
|
|
263
167
|
class LastFinalizationError < Stripe::StripeObject
|
@@ -327,41 +231,12 @@ module Stripe
|
|
327
231
|
attr_reader :source
|
328
232
|
# The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
|
329
233
|
attr_reader :type
|
330
|
-
|
331
|
-
def self.inner_class_types
|
332
|
-
@inner_class_types = {}
|
333
|
-
end
|
334
|
-
|
335
|
-
def self.field_remappings
|
336
|
-
@field_remappings = {}
|
337
|
-
end
|
338
234
|
end
|
339
235
|
|
340
236
|
class Parent < Stripe::StripeObject
|
341
|
-
class BillingCadenceDetails < Stripe::StripeObject
|
342
|
-
# The billing cadence that generated this invoice
|
343
|
-
attr_reader :billing_cadence
|
344
|
-
|
345
|
-
def self.inner_class_types
|
346
|
-
@inner_class_types = {}
|
347
|
-
end
|
348
|
-
|
349
|
-
def self.field_remappings
|
350
|
-
@field_remappings = {}
|
351
|
-
end
|
352
|
-
end
|
353
|
-
|
354
237
|
class QuoteDetails < Stripe::StripeObject
|
355
238
|
# The quote that generated this invoice
|
356
239
|
attr_reader :quote
|
357
|
-
|
358
|
-
def self.inner_class_types
|
359
|
-
@inner_class_types = {}
|
360
|
-
end
|
361
|
-
|
362
|
-
def self.field_remappings
|
363
|
-
@field_remappings = {}
|
364
|
-
end
|
365
240
|
end
|
366
241
|
|
367
242
|
class SubscriptionDetails < Stripe::StripeObject
|
@@ -370,14 +245,6 @@ module Stripe
|
|
370
245
|
attr_reader :behavior
|
371
246
|
# The time after which the subscription will resume collecting payments.
|
372
247
|
attr_reader :resumes_at
|
373
|
-
|
374
|
-
def self.inner_class_types
|
375
|
-
@inner_class_types = {}
|
376
|
-
end
|
377
|
-
|
378
|
-
def self.field_remappings
|
379
|
-
@field_remappings = {}
|
380
|
-
end
|
381
248
|
end
|
382
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.
|
383
250
|
# *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
|
@@ -388,35 +255,13 @@ module Stripe
|
|
388
255
|
attr_reader :subscription
|
389
256
|
# Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
|
390
257
|
attr_reader :subscription_proration_date
|
391
|
-
|
392
|
-
def self.inner_class_types
|
393
|
-
@inner_class_types = { pause_collection: PauseCollection }
|
394
|
-
end
|
395
|
-
|
396
|
-
def self.field_remappings
|
397
|
-
@field_remappings = {}
|
398
|
-
end
|
399
258
|
end
|
400
|
-
# Details about the billing cadence that generated this invoice
|
401
|
-
attr_reader :billing_cadence_details
|
402
259
|
# Details about the quote that generated this invoice
|
403
260
|
attr_reader :quote_details
|
404
261
|
# Details about the subscription that generated this invoice
|
405
262
|
attr_reader :subscription_details
|
406
263
|
# The type of parent that generated this invoice
|
407
264
|
attr_reader :type
|
408
|
-
|
409
|
-
def self.inner_class_types
|
410
|
-
@inner_class_types = {
|
411
|
-
billing_cadence_details: BillingCadenceDetails,
|
412
|
-
quote_details: QuoteDetails,
|
413
|
-
subscription_details: SubscriptionDetails,
|
414
|
-
}
|
415
|
-
end
|
416
|
-
|
417
|
-
def self.field_remappings
|
418
|
-
@field_remappings = {}
|
419
|
-
end
|
420
265
|
end
|
421
266
|
|
422
267
|
class PaymentSettings < Stripe::StripeObject
|
@@ -425,67 +270,27 @@ module Stripe
|
|
425
270
|
class MandateOptions < Stripe::StripeObject
|
426
271
|
# Transaction type of the mandate.
|
427
272
|
attr_reader :transaction_type
|
428
|
-
|
429
|
-
def self.inner_class_types
|
430
|
-
@inner_class_types = {}
|
431
|
-
end
|
432
|
-
|
433
|
-
def self.field_remappings
|
434
|
-
@field_remappings = {}
|
435
|
-
end
|
436
273
|
end
|
437
274
|
# Attribute for field mandate_options
|
438
275
|
attr_reader :mandate_options
|
439
276
|
# Bank account verification method.
|
440
277
|
attr_reader :verification_method
|
441
|
-
|
442
|
-
def self.inner_class_types
|
443
|
-
@inner_class_types = { mandate_options: MandateOptions }
|
444
|
-
end
|
445
|
-
|
446
|
-
def self.field_remappings
|
447
|
-
@field_remappings = {}
|
448
|
-
end
|
449
278
|
end
|
450
279
|
|
451
280
|
class Bancontact < Stripe::StripeObject
|
452
281
|
# Preferred language of the Bancontact authorization page that the customer is redirected to.
|
453
282
|
attr_reader :preferred_language
|
454
|
-
|
455
|
-
def self.inner_class_types
|
456
|
-
@inner_class_types = {}
|
457
|
-
end
|
458
|
-
|
459
|
-
def self.field_remappings
|
460
|
-
@field_remappings = {}
|
461
|
-
end
|
462
283
|
end
|
463
284
|
|
464
285
|
class Card < Stripe::StripeObject
|
465
286
|
class Installments < Stripe::StripeObject
|
466
287
|
# Whether Installments are enabled for this Invoice.
|
467
288
|
attr_reader :enabled
|
468
|
-
|
469
|
-
def self.inner_class_types
|
470
|
-
@inner_class_types = {}
|
471
|
-
end
|
472
|
-
|
473
|
-
def self.field_remappings
|
474
|
-
@field_remappings = {}
|
475
|
-
end
|
476
289
|
end
|
477
290
|
# Attribute for field installments
|
478
291
|
attr_reader :installments
|
479
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.
|
480
293
|
attr_reader :request_three_d_secure
|
481
|
-
|
482
|
-
def self.inner_class_types
|
483
|
-
@inner_class_types = { installments: Installments }
|
484
|
-
end
|
485
|
-
|
486
|
-
def self.field_remappings
|
487
|
-
@field_remappings = {}
|
488
|
-
end
|
489
294
|
end
|
490
295
|
|
491
296
|
class CustomerBalance < Stripe::StripeObject
|
@@ -493,71 +298,21 @@ module Stripe
|
|
493
298
|
class EuBankTransfer < Stripe::StripeObject
|
494
299
|
# The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
|
495
300
|
attr_reader :country
|
496
|
-
|
497
|
-
def self.inner_class_types
|
498
|
-
@inner_class_types = {}
|
499
|
-
end
|
500
|
-
|
501
|
-
def self.field_remappings
|
502
|
-
@field_remappings = {}
|
503
|
-
end
|
504
301
|
end
|
505
302
|
# Attribute for field eu_bank_transfer
|
506
303
|
attr_reader :eu_bank_transfer
|
507
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`.
|
508
305
|
attr_reader :type
|
509
|
-
|
510
|
-
def self.inner_class_types
|
511
|
-
@inner_class_types = { eu_bank_transfer: EuBankTransfer }
|
512
|
-
end
|
513
|
-
|
514
|
-
def self.field_remappings
|
515
|
-
@field_remappings = {}
|
516
|
-
end
|
517
306
|
end
|
518
307
|
# Attribute for field bank_transfer
|
519
308
|
attr_reader :bank_transfer
|
520
309
|
# The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
|
521
310
|
attr_reader :funding_type
|
522
|
-
|
523
|
-
def self.inner_class_types
|
524
|
-
@inner_class_types = { bank_transfer: BankTransfer }
|
525
|
-
end
|
526
|
-
|
527
|
-
def self.field_remappings
|
528
|
-
@field_remappings = {}
|
529
|
-
end
|
530
|
-
end
|
531
|
-
|
532
|
-
class IdBankTransfer < Stripe::StripeObject
|
533
|
-
def self.inner_class_types
|
534
|
-
@inner_class_types = {}
|
535
|
-
end
|
536
|
-
|
537
|
-
def self.field_remappings
|
538
|
-
@field_remappings = {}
|
539
|
-
end
|
540
311
|
end
|
541
312
|
|
542
|
-
class
|
543
|
-
|
544
|
-
|
545
|
-
end
|
546
|
-
|
547
|
-
def self.field_remappings
|
548
|
-
@field_remappings = {}
|
549
|
-
end
|
550
|
-
end
|
551
|
-
|
552
|
-
class SepaDebit < Stripe::StripeObject
|
553
|
-
def self.inner_class_types
|
554
|
-
@inner_class_types = {}
|
555
|
-
end
|
556
|
-
|
557
|
-
def self.field_remappings
|
558
|
-
@field_remappings = {}
|
559
|
-
end
|
560
|
-
end
|
313
|
+
class IdBankTransfer < Stripe::StripeObject; end
|
314
|
+
class Konbini < Stripe::StripeObject; end
|
315
|
+
class SepaDebit < Stripe::StripeObject; end
|
561
316
|
|
562
317
|
class Upi < Stripe::StripeObject
|
563
318
|
class MandateOptions < Stripe::StripeObject
|
@@ -569,25 +324,9 @@ module Stripe
|
|
569
324
|
attr_reader :description
|
570
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.
|
571
326
|
attr_reader :end_date
|
572
|
-
|
573
|
-
def self.inner_class_types
|
574
|
-
@inner_class_types = {}
|
575
|
-
end
|
576
|
-
|
577
|
-
def self.field_remappings
|
578
|
-
@field_remappings = {}
|
579
|
-
end
|
580
327
|
end
|
581
328
|
# Attribute for field mandate_options
|
582
329
|
attr_reader :mandate_options
|
583
|
-
|
584
|
-
def self.inner_class_types
|
585
|
-
@inner_class_types = { mandate_options: MandateOptions }
|
586
|
-
end
|
587
|
-
|
588
|
-
def self.field_remappings
|
589
|
-
@field_remappings = {}
|
590
|
-
end
|
591
330
|
end
|
592
331
|
|
593
332
|
class UsBankAccount < Stripe::StripeObject
|
@@ -597,14 +336,6 @@ module Stripe
|
|
597
336
|
attr_reader :account_subcategories
|
598
337
|
# The institution to use to filter for possible accounts to link.
|
599
338
|
attr_reader :institution
|
600
|
-
|
601
|
-
def self.inner_class_types
|
602
|
-
@inner_class_types = {}
|
603
|
-
end
|
604
|
-
|
605
|
-
def self.field_remappings
|
606
|
-
@field_remappings = {}
|
607
|
-
end
|
608
339
|
end
|
609
340
|
# Attribute for field filters
|
610
341
|
attr_reader :filters
|
@@ -612,27 +343,11 @@ module Stripe
|
|
612
343
|
attr_reader :permissions
|
613
344
|
# Data features requested to be retrieved upon account creation.
|
614
345
|
attr_reader :prefetch
|
615
|
-
|
616
|
-
def self.inner_class_types
|
617
|
-
@inner_class_types = { filters: Filters }
|
618
|
-
end
|
619
|
-
|
620
|
-
def self.field_remappings
|
621
|
-
@field_remappings = {}
|
622
|
-
end
|
623
346
|
end
|
624
347
|
# Attribute for field financial_connections
|
625
348
|
attr_reader :financial_connections
|
626
349
|
# Bank account verification method.
|
627
350
|
attr_reader :verification_method
|
628
|
-
|
629
|
-
def self.inner_class_types
|
630
|
-
@inner_class_types = { financial_connections: FinancialConnections }
|
631
|
-
end
|
632
|
-
|
633
|
-
def self.field_remappings
|
634
|
-
@field_remappings = {}
|
635
|
-
end
|
636
351
|
end
|
637
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.
|
638
353
|
attr_reader :acss_debit
|
@@ -652,24 +367,6 @@ module Stripe
|
|
652
367
|
attr_reader :upi
|
653
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.
|
654
369
|
attr_reader :us_bank_account
|
655
|
-
|
656
|
-
def self.inner_class_types
|
657
|
-
@inner_class_types = {
|
658
|
-
acss_debit: AcssDebit,
|
659
|
-
bancontact: Bancontact,
|
660
|
-
card: Card,
|
661
|
-
customer_balance: CustomerBalance,
|
662
|
-
id_bank_transfer: IdBankTransfer,
|
663
|
-
konbini: Konbini,
|
664
|
-
sepa_debit: SepaDebit,
|
665
|
-
upi: Upi,
|
666
|
-
us_bank_account: UsBankAccount,
|
667
|
-
}
|
668
|
-
end
|
669
|
-
|
670
|
-
def self.field_remappings
|
671
|
-
@field_remappings = {}
|
672
|
-
end
|
673
370
|
end
|
674
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.
|
675
372
|
attr_reader :default_mandate
|
@@ -677,28 +374,12 @@ module Stripe
|
|
677
374
|
attr_reader :payment_method_options
|
678
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).
|
679
376
|
attr_reader :payment_method_types
|
680
|
-
|
681
|
-
def self.inner_class_types
|
682
|
-
@inner_class_types = { payment_method_options: PaymentMethodOptions }
|
683
|
-
end
|
684
|
-
|
685
|
-
def self.field_remappings
|
686
|
-
@field_remappings = {}
|
687
|
-
end
|
688
377
|
end
|
689
378
|
|
690
379
|
class Rendering < Stripe::StripeObject
|
691
380
|
class Pdf < Stripe::StripeObject
|
692
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.
|
693
382
|
attr_reader :page_size
|
694
|
-
|
695
|
-
def self.inner_class_types
|
696
|
-
@inner_class_types = {}
|
697
|
-
end
|
698
|
-
|
699
|
-
def self.field_remappings
|
700
|
-
@field_remappings = {}
|
701
|
-
end
|
702
383
|
end
|
703
384
|
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
|
704
385
|
attr_reader :amount_tax_display
|
@@ -708,14 +389,6 @@ module Stripe
|
|
708
389
|
attr_reader :template
|
709
390
|
# Version of the rendering template that the invoice is using.
|
710
391
|
attr_reader :template_version
|
711
|
-
|
712
|
-
def self.inner_class_types
|
713
|
-
@inner_class_types = { pdf: Pdf }
|
714
|
-
end
|
715
|
-
|
716
|
-
def self.field_remappings
|
717
|
-
@field_remappings = {}
|
718
|
-
end
|
719
392
|
end
|
720
393
|
|
721
394
|
class ShippingCost < Stripe::StripeObject
|
@@ -730,14 +403,6 @@ module Stripe
|
|
730
403
|
attr_reader :taxability_reason
|
731
404
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
732
405
|
attr_reader :taxable_amount
|
733
|
-
|
734
|
-
def self.inner_class_types
|
735
|
-
@inner_class_types = {}
|
736
|
-
end
|
737
|
-
|
738
|
-
def self.field_remappings
|
739
|
-
@field_remappings = {}
|
740
|
-
end
|
741
406
|
end
|
742
407
|
# Total shipping cost before any taxes are applied.
|
743
408
|
attr_reader :amount_subtotal
|
@@ -749,14 +414,6 @@ module Stripe
|
|
749
414
|
attr_reader :shipping_rate
|
750
415
|
# The taxes applied to the shipping rate.
|
751
416
|
attr_reader :taxes
|
752
|
-
|
753
|
-
def self.inner_class_types
|
754
|
-
@inner_class_types = { taxes: Tax }
|
755
|
-
end
|
756
|
-
|
757
|
-
def self.field_remappings
|
758
|
-
@field_remappings = {}
|
759
|
-
end
|
760
417
|
end
|
761
418
|
|
762
419
|
class ShippingDetails < Stripe::StripeObject
|
@@ -773,14 +430,6 @@ module Stripe
|
|
773
430
|
attr_reader :postal_code
|
774
431
|
# State, county, province, or region.
|
775
432
|
attr_reader :state
|
776
|
-
|
777
|
-
def self.inner_class_types
|
778
|
-
@inner_class_types = {}
|
779
|
-
end
|
780
|
-
|
781
|
-
def self.field_remappings
|
782
|
-
@field_remappings = {}
|
783
|
-
end
|
784
433
|
end
|
785
434
|
# Attribute for field address
|
786
435
|
attr_reader :address
|
@@ -792,14 +441,6 @@ module Stripe
|
|
792
441
|
attr_reader :phone
|
793
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.
|
794
443
|
attr_reader :tracking_number
|
795
|
-
|
796
|
-
def self.inner_class_types
|
797
|
-
@inner_class_types = { address: Address }
|
798
|
-
end
|
799
|
-
|
800
|
-
def self.field_remappings
|
801
|
-
@field_remappings = {}
|
802
|
-
end
|
803
444
|
end
|
804
445
|
|
805
446
|
class StatusTransitions < Stripe::StripeObject
|
@@ -811,14 +452,6 @@ module Stripe
|
|
811
452
|
attr_reader :paid_at
|
812
453
|
# The time that the invoice was voided.
|
813
454
|
attr_reader :voided_at
|
814
|
-
|
815
|
-
def self.inner_class_types
|
816
|
-
@inner_class_types = {}
|
817
|
-
end
|
818
|
-
|
819
|
-
def self.field_remappings
|
820
|
-
@field_remappings = {}
|
821
|
-
end
|
822
455
|
end
|
823
456
|
|
824
457
|
class ThresholdReason < Stripe::StripeObject
|
@@ -827,27 +460,11 @@ module Stripe
|
|
827
460
|
attr_reader :line_item_ids
|
828
461
|
# The quantity threshold boundary that applied to the given line item.
|
829
462
|
attr_reader :usage_gte
|
830
|
-
|
831
|
-
def self.inner_class_types
|
832
|
-
@inner_class_types = {}
|
833
|
-
end
|
834
|
-
|
835
|
-
def self.field_remappings
|
836
|
-
@field_remappings = {}
|
837
|
-
end
|
838
463
|
end
|
839
464
|
# The total invoice amount threshold boundary if it triggered the threshold invoice.
|
840
465
|
attr_reader :amount_gte
|
841
466
|
# Indicates which line items triggered a threshold invoice.
|
842
467
|
attr_reader :item_reasons
|
843
|
-
|
844
|
-
def self.inner_class_types
|
845
|
-
@inner_class_types = { item_reasons: ItemReason }
|
846
|
-
end
|
847
|
-
|
848
|
-
def self.field_remappings
|
849
|
-
@field_remappings = {}
|
850
|
-
end
|
851
468
|
end
|
852
469
|
|
853
470
|
class TotalDiscountAmount < Stripe::StripeObject
|
@@ -855,14 +472,6 @@ module Stripe
|
|
855
472
|
attr_reader :amount
|
856
473
|
# The discount that was applied to get this discount amount.
|
857
474
|
attr_reader :discount
|
858
|
-
|
859
|
-
def self.inner_class_types
|
860
|
-
@inner_class_types = {}
|
861
|
-
end
|
862
|
-
|
863
|
-
def self.field_remappings
|
864
|
-
@field_remappings = {}
|
865
|
-
end
|
866
475
|
end
|
867
476
|
|
868
477
|
class TotalMarginAmount < Stripe::StripeObject
|
@@ -870,14 +479,6 @@ module Stripe
|
|
870
479
|
attr_reader :amount
|
871
480
|
# The margin that was applied to get this margin amount.
|
872
481
|
attr_reader :margin
|
873
|
-
|
874
|
-
def self.inner_class_types
|
875
|
-
@inner_class_types = {}
|
876
|
-
end
|
877
|
-
|
878
|
-
def self.field_remappings
|
879
|
-
@field_remappings = {}
|
880
|
-
end
|
881
482
|
end
|
882
483
|
|
883
484
|
class TotalPretaxCreditAmount < Stripe::StripeObject
|
@@ -891,28 +492,12 @@ module Stripe
|
|
891
492
|
attr_reader :margin
|
892
493
|
# Type of the pretax credit amount referenced.
|
893
494
|
attr_reader :type
|
894
|
-
|
895
|
-
def self.inner_class_types
|
896
|
-
@inner_class_types = {}
|
897
|
-
end
|
898
|
-
|
899
|
-
def self.field_remappings
|
900
|
-
@field_remappings = {}
|
901
|
-
end
|
902
495
|
end
|
903
496
|
|
904
497
|
class TotalTax < Stripe::StripeObject
|
905
498
|
class TaxRateDetails < Stripe::StripeObject
|
906
499
|
# Attribute for field tax_rate
|
907
500
|
attr_reader :tax_rate
|
908
|
-
|
909
|
-
def self.inner_class_types
|
910
|
-
@inner_class_types = {}
|
911
|
-
end
|
912
|
-
|
913
|
-
def self.field_remappings
|
914
|
-
@field_remappings = {}
|
915
|
-
end
|
916
501
|
end
|
917
502
|
# The amount of the tax, in cents (or local equivalent).
|
918
503
|
attr_reader :amount
|
@@ -926,14 +511,6 @@ module Stripe
|
|
926
511
|
attr_reader :taxable_amount
|
927
512
|
# The type of tax information.
|
928
513
|
attr_reader :type
|
929
|
-
|
930
|
-
def self.inner_class_types
|
931
|
-
@inner_class_types = { tax_rate_details: TaxRateDetails }
|
932
|
-
end
|
933
|
-
|
934
|
-
def self.field_remappings
|
935
|
-
@field_remappings = {}
|
936
|
-
end
|
937
514
|
end
|
938
515
|
# The country of the business associated with this invoice, most often the business creating the invoice.
|
939
516
|
attr_reader :account_country
|
@@ -1099,36 +676,5 @@ module Stripe
|
|
1099
676
|
attr_reader :total_taxes
|
1100
677
|
# Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have [been exhausted](https://stripe.com/docs/billing/webhooks#understand). This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.
|
1101
678
|
attr_reader :webhooks_delivered_at
|
1102
|
-
|
1103
|
-
def self.inner_class_types
|
1104
|
-
@inner_class_types = {
|
1105
|
-
amounts_due: AmountsDue,
|
1106
|
-
applies_to: AppliesTo,
|
1107
|
-
automatic_tax: AutomaticTax,
|
1108
|
-
confirmation_secret: ConfirmationSecret,
|
1109
|
-
custom_fields: CustomField,
|
1110
|
-
customer_address: CustomerAddress,
|
1111
|
-
customer_shipping: CustomerShipping,
|
1112
|
-
customer_tax_ids: CustomerTaxId,
|
1113
|
-
from_invoice: FromInvoice,
|
1114
|
-
issuer: Issuer,
|
1115
|
-
last_finalization_error: LastFinalizationError,
|
1116
|
-
parent: Parent,
|
1117
|
-
payment_settings: PaymentSettings,
|
1118
|
-
rendering: Rendering,
|
1119
|
-
shipping_cost: ShippingCost,
|
1120
|
-
shipping_details: ShippingDetails,
|
1121
|
-
status_transitions: StatusTransitions,
|
1122
|
-
threshold_reason: ThresholdReason,
|
1123
|
-
total_discount_amounts: TotalDiscountAmount,
|
1124
|
-
total_margin_amounts: TotalMarginAmount,
|
1125
|
-
total_pretax_credit_amounts: TotalPretaxCreditAmount,
|
1126
|
-
total_taxes: TotalTax,
|
1127
|
-
}
|
1128
|
-
end
|
1129
|
-
|
1130
|
-
def self.field_remappings
|
1131
|
-
@field_remappings = {}
|
1132
|
-
end
|
1133
679
|
end
|
1134
680
|
end
|