stripe 15.5.0.pre.beta.2 → 15.6.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/API_VERSION +1 -1
- data/CHANGELOG.md +117 -1
- data/OPENAPI_VERSION +1 -1
- data/README.md +6 -4
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +20 -18
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +26 -23
- data/lib/stripe/event_types.rb +83 -0
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +21 -0
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_cadence_errored_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +23 -0
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +21 -0
- data/lib/stripe/object_types.rb +27 -0
- data/lib/stripe/resources/account.rb +2 -2
- data/lib/stripe/resources/account_session.rb +94 -13
- data/lib/stripe/resources/balance.rb +2 -7
- data/lib/stripe/resources/balance_settings.rb +72 -65
- data/lib/stripe/resources/billing/alert.rb +128 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +50 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +50 -0
- data/lib/stripe/resources/billing/credit_grant.rb +61 -2
- data/lib/stripe/resources/billing/meter.rb +2 -2
- data/lib/stripe/resources/billing/meter_usage_row.rb +1 -1
- data/lib/stripe/resources/billing_portal/configuration.rb +12 -2
- data/lib/stripe/resources/charge.rb +36 -5
- data/lib/stripe/resources/checkout/session.rb +237 -6
- data/lib/stripe/resources/credit_note.rb +3 -3
- data/lib/stripe/resources/dispute.rb +1 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/file_link.rb +1 -1
- data/lib/stripe/resources/invoice.rb +55 -1
- data/lib/stripe/resources/invoice_item.rb +48 -0
- data/lib/stripe/resources/invoice_line_item.rb +52 -0
- data/lib/stripe/resources/invoice_payment.rb +1 -1
- data/lib/stripe/resources/mandate.rb +65 -1
- data/lib/stripe/resources/payment_attempt_record.rb +86 -10
- data/lib/stripe/resources/payment_intent.rb +182 -4
- data/lib/stripe/resources/payment_link.rb +1 -1
- data/lib/stripe/resources/payment_method.rb +2 -0
- data/lib/stripe/resources/payment_record.rb +107 -14
- data/lib/stripe/resources/promotion_code.rb +5 -2
- data/lib/stripe/resources/quote_preview_invoice.rb +8 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +4 -1
- data/lib/stripe/resources/setup_intent.rb +194 -1
- data/lib/stripe/resources/subscription.rb +145 -9
- data/lib/stripe/resources/subscription_schedule.rb +124 -2
- data/lib/stripe/resources/terminal/configuration.rb +82 -0
- data/lib/stripe/resources/terminal/reader.rb +22 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +62 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +50 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +182 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +148 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +136 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +35 -0
- data/lib/stripe/resources/v2/billing/intent.rb +59 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +200 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +79 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +36 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +56 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +44 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +58 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +43 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +58 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +63 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +30 -0
- data/lib/stripe/resources/v2/billing/profile.rb +38 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +53 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +71 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +63 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +26 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +117 -0
- data/lib/stripe/resources/v2/core/account.rb +8 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +57 -0
- data/lib/stripe/resources/v2/event.rb +2 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +4 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +1 -1
- data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
- data/lib/stripe/resources/v2/reporting/report.rb +64 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +89 -0
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +31 -0
- data/lib/stripe/resources.rb +85 -0
- data/lib/stripe/services/account_session_service.rb +64 -13
- data/lib/stripe/services/balance_settings_service.rb +44 -41
- data/lib/stripe/services/billing/alert_service.rb +75 -1
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +13 -1
- data/lib/stripe/services/billing/credit_grant_service.rb +29 -2
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal/configuration_service.rb +10 -2
- data/lib/stripe/services/checkout/session_service.rb +166 -5
- data/lib/stripe/services/credit_note_preview_lines_service.rb +1 -1
- data/lib/stripe/services/credit_note_service.rb +2 -2
- data/lib/stripe/services/customer_service.rb +4 -4
- data/lib/stripe/services/file_link_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/invoice_payment_service.rb +1 -1
- data/lib/stripe/services/invoice_service.rb +47 -0
- data/lib/stripe/services/mandate_service.rb +40 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +4 -1
- data/lib/stripe/services/payment_intent_service.rb +157 -3
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_record_service.rb +25 -5
- data/lib/stripe/services/quote_service.rb +4 -4
- data/lib/stripe/services/setup_intent_service.rb +153 -0
- data/lib/stripe/services/subscription_schedule_service.rb +100 -2
- data/lib/stripe/services/subscription_service.rb +134 -9
- data/lib/stripe/services/terminal/configuration_service.rb +64 -0
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +22 -0
- data/lib/stripe/services/v1_services.rb +5 -5
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +214 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +428 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +518 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +108 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +465 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +45 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +250 -0
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +23 -0
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +149 -0
- data/lib/stripe/services/v2/billing/metered_item_service.rb +176 -0
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +142 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +76 -0
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +162 -0
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +144 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +151 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +144 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +161 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +259 -0
- data/lib/stripe/services/v2/billing_service.rb +19 -2
- data/lib/stripe/services/v2/core/account_service.rb +16 -2
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +50 -0
- data/lib/stripe/services/v2/core_service.rb +4 -3
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +4 -1
- data/lib/stripe/services/v2/money_management_service.rb +3 -3
- data/lib/stripe/services/v2/reporting/report_run_service.rb +88 -0
- data/lib/stripe/services/v2/reporting/report_service.rb +25 -0
- data/lib/stripe/services/v2/reporting_service.rb +16 -0
- data/lib/stripe/services/v2/tax/automatic_rule_service.rb +99 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2_services.rb +3 -1
- data/lib/stripe/services.rb +29 -0
- data/lib/stripe/stripe_service.rb +3 -1
- data/lib/stripe/version.rb +1 -1
- metadata +116 -3
- data/rbi/stripe.rbi +0 -199145
@@ -44,6 +44,14 @@ module Stripe
|
|
44
44
|
attr_reader :features
|
45
45
|
end
|
46
46
|
|
47
|
+
class BalanceReport < Stripe::StripeObject
|
48
|
+
class Features < Stripe::StripeObject; end
|
49
|
+
# Whether the embedded component is enabled.
|
50
|
+
attr_reader :enabled
|
51
|
+
# Attribute for field features
|
52
|
+
attr_reader :features
|
53
|
+
end
|
54
|
+
|
47
55
|
class Balances < Stripe::StripeObject
|
48
56
|
class Features < Stripe::StripeObject
|
49
57
|
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
@@ -253,6 +261,22 @@ module Stripe
|
|
253
261
|
attr_reader :features
|
254
262
|
end
|
255
263
|
|
264
|
+
class PayoutDetails < Stripe::StripeObject
|
265
|
+
class Features < Stripe::StripeObject; end
|
266
|
+
# Whether the embedded component is enabled.
|
267
|
+
attr_reader :enabled
|
268
|
+
# Attribute for field features
|
269
|
+
attr_reader :features
|
270
|
+
end
|
271
|
+
|
272
|
+
class PayoutReconciliationReport < Stripe::StripeObject
|
273
|
+
class Features < Stripe::StripeObject; end
|
274
|
+
# Whether the embedded component is enabled.
|
275
|
+
attr_reader :enabled
|
276
|
+
# Attribute for field features
|
277
|
+
attr_reader :features
|
278
|
+
end
|
279
|
+
|
256
280
|
class Payouts < Stripe::StripeObject
|
257
281
|
class Features < Stripe::StripeObject
|
258
282
|
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
@@ -299,6 +323,8 @@ module Stripe
|
|
299
323
|
attr_reader :account_management
|
300
324
|
# Attribute for field account_onboarding
|
301
325
|
attr_reader :account_onboarding
|
326
|
+
# Attribute for field balance_report
|
327
|
+
attr_reader :balance_report
|
302
328
|
# Attribute for field balances
|
303
329
|
attr_reader :balances
|
304
330
|
# Attribute for field capital_financing
|
@@ -329,6 +355,10 @@ module Stripe
|
|
329
355
|
attr_reader :payment_disputes
|
330
356
|
# Attribute for field payments
|
331
357
|
attr_reader :payments
|
358
|
+
# Attribute for field payout_details
|
359
|
+
attr_reader :payout_details
|
360
|
+
# Attribute for field payout_reconciliation_report
|
361
|
+
attr_reader :payout_reconciliation_report
|
332
362
|
# Attribute for field payouts
|
333
363
|
attr_reader :payouts
|
334
364
|
# Attribute for field payouts_list
|
@@ -433,6 +463,19 @@ module Stripe
|
|
433
463
|
end
|
434
464
|
end
|
435
465
|
|
466
|
+
class BalanceReport < Stripe::RequestParams
|
467
|
+
class Features < Stripe::RequestParams; end
|
468
|
+
# Whether the embedded component is enabled.
|
469
|
+
attr_accessor :enabled
|
470
|
+
# An empty list, because this embedded component has no features.
|
471
|
+
attr_accessor :features
|
472
|
+
|
473
|
+
def initialize(enabled: nil, features: nil)
|
474
|
+
@enabled = enabled
|
475
|
+
@features = features
|
476
|
+
end
|
477
|
+
end
|
478
|
+
|
436
479
|
class Balances < Stripe::RequestParams
|
437
480
|
class Features < Stripe::RequestParams
|
438
481
|
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
@@ -475,7 +518,7 @@ module Stripe
|
|
475
518
|
class Features < Stripe::RequestParams; end
|
476
519
|
# Whether the embedded component is enabled.
|
477
520
|
attr_accessor :enabled
|
478
|
-
#
|
521
|
+
# An empty list, because this embedded component has no features.
|
479
522
|
attr_accessor :features
|
480
523
|
|
481
524
|
def initialize(enabled: nil, features: nil)
|
@@ -488,7 +531,7 @@ module Stripe
|
|
488
531
|
class Features < Stripe::RequestParams; end
|
489
532
|
# Whether the embedded component is enabled.
|
490
533
|
attr_accessor :enabled
|
491
|
-
#
|
534
|
+
# An empty list, because this embedded component has no features.
|
492
535
|
attr_accessor :features
|
493
536
|
|
494
537
|
def initialize(enabled: nil, features: nil)
|
@@ -501,7 +544,7 @@ module Stripe
|
|
501
544
|
class Features < Stripe::RequestParams; end
|
502
545
|
# Whether the embedded component is enabled.
|
503
546
|
attr_accessor :enabled
|
504
|
-
#
|
547
|
+
# An empty list, because this embedded component has no features.
|
505
548
|
attr_accessor :features
|
506
549
|
|
507
550
|
def initialize(enabled: nil, features: nil)
|
@@ -514,7 +557,7 @@ module Stripe
|
|
514
557
|
class Features < Stripe::RequestParams; end
|
515
558
|
# Whether the embedded component is enabled.
|
516
559
|
attr_accessor :enabled
|
517
|
-
#
|
560
|
+
# An empty list, because this embedded component has no features.
|
518
561
|
attr_accessor :features
|
519
562
|
|
520
563
|
def initialize(enabled: nil, features: nil)
|
@@ -561,7 +604,7 @@ module Stripe
|
|
561
604
|
class Features < Stripe::RequestParams; end
|
562
605
|
# Whether the embedded component is enabled.
|
563
606
|
attr_accessor :enabled
|
564
|
-
#
|
607
|
+
# An empty list, because this embedded component has no features.
|
565
608
|
attr_accessor :features
|
566
609
|
|
567
610
|
def initialize(enabled: nil, features: nil)
|
@@ -574,7 +617,7 @@ module Stripe
|
|
574
617
|
class Features < Stripe::RequestParams; end
|
575
618
|
# Whether the embedded component is enabled.
|
576
619
|
attr_accessor :enabled
|
577
|
-
#
|
620
|
+
# An empty list, because this embedded component has no features.
|
578
621
|
attr_accessor :features
|
579
622
|
|
580
623
|
def initialize(enabled: nil, features: nil)
|
@@ -833,7 +876,7 @@ module Stripe
|
|
833
876
|
class Features < Stripe::RequestParams; end
|
834
877
|
# Whether the embedded component is enabled.
|
835
878
|
attr_accessor :enabled
|
836
|
-
#
|
879
|
+
# An empty list, because this embedded component has no features.
|
837
880
|
attr_accessor :features
|
838
881
|
|
839
882
|
def initialize(enabled: nil, features: nil)
|
@@ -876,6 +919,32 @@ module Stripe
|
|
876
919
|
end
|
877
920
|
end
|
878
921
|
|
922
|
+
class PayoutDetails < Stripe::RequestParams
|
923
|
+
class Features < Stripe::RequestParams; end
|
924
|
+
# Whether the embedded component is enabled.
|
925
|
+
attr_accessor :enabled
|
926
|
+
# An empty list, because this embedded component has no features.
|
927
|
+
attr_accessor :features
|
928
|
+
|
929
|
+
def initialize(enabled: nil, features: nil)
|
930
|
+
@enabled = enabled
|
931
|
+
@features = features
|
932
|
+
end
|
933
|
+
end
|
934
|
+
|
935
|
+
class PayoutReconciliationReport < Stripe::RequestParams
|
936
|
+
class Features < Stripe::RequestParams; end
|
937
|
+
# Whether the embedded component is enabled.
|
938
|
+
attr_accessor :enabled
|
939
|
+
# An empty list, because this embedded component has no features.
|
940
|
+
attr_accessor :features
|
941
|
+
|
942
|
+
def initialize(enabled: nil, features: nil)
|
943
|
+
@enabled = enabled
|
944
|
+
@features = features
|
945
|
+
end
|
946
|
+
end
|
947
|
+
|
879
948
|
class Payouts < Stripe::RequestParams
|
880
949
|
class Features < Stripe::RequestParams
|
881
950
|
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
@@ -918,7 +987,7 @@ module Stripe
|
|
918
987
|
class Features < Stripe::RequestParams; end
|
919
988
|
# Whether the embedded component is enabled.
|
920
989
|
attr_accessor :enabled
|
921
|
-
#
|
990
|
+
# An empty list, because this embedded component has no features.
|
922
991
|
attr_accessor :features
|
923
992
|
|
924
993
|
def initialize(enabled: nil, features: nil)
|
@@ -931,7 +1000,7 @@ module Stripe
|
|
931
1000
|
class Features < Stripe::RequestParams; end
|
932
1001
|
# Whether the embedded component is enabled.
|
933
1002
|
attr_accessor :enabled
|
934
|
-
#
|
1003
|
+
# An empty list, because this embedded component has no features.
|
935
1004
|
attr_accessor :features
|
936
1005
|
|
937
1006
|
def initialize(enabled: nil, features: nil)
|
@@ -964,7 +1033,7 @@ module Stripe
|
|
964
1033
|
class Features < Stripe::RequestParams; end
|
965
1034
|
# Whether the embedded component is enabled.
|
966
1035
|
attr_accessor :enabled
|
967
|
-
#
|
1036
|
+
# An empty list, because this embedded component has no features.
|
968
1037
|
attr_accessor :features
|
969
1038
|
|
970
1039
|
def initialize(enabled: nil, features: nil)
|
@@ -977,7 +1046,7 @@ module Stripe
|
|
977
1046
|
class Features < Stripe::RequestParams; end
|
978
1047
|
# Whether the embedded component is enabled.
|
979
1048
|
attr_accessor :enabled
|
980
|
-
#
|
1049
|
+
# An empty list, because this embedded component has no features.
|
981
1050
|
attr_accessor :features
|
982
1051
|
|
983
1052
|
def initialize(enabled: nil, features: nil)
|
@@ -990,7 +1059,7 @@ module Stripe
|
|
990
1059
|
class Features < Stripe::RequestParams; end
|
991
1060
|
# Whether the embedded component is enabled.
|
992
1061
|
attr_accessor :enabled
|
993
|
-
#
|
1062
|
+
# An empty list, because this embedded component has no features.
|
994
1063
|
attr_accessor :features
|
995
1064
|
|
996
1065
|
def initialize(enabled: nil, features: nil)
|
@@ -1003,7 +1072,7 @@ module Stripe
|
|
1003
1072
|
class Features < Stripe::RequestParams; end
|
1004
1073
|
# Whether the embedded component is enabled.
|
1005
1074
|
attr_accessor :enabled
|
1006
|
-
#
|
1075
|
+
# An empty list, because this embedded component has no features.
|
1007
1076
|
attr_accessor :features
|
1008
1077
|
|
1009
1078
|
def initialize(enabled: nil, features: nil)
|
@@ -1019,6 +1088,8 @@ module Stripe
|
|
1019
1088
|
attr_accessor :app_install
|
1020
1089
|
# Configuration for the [app viewport](/connect/supported-embedded-components/app-viewport/) embedded component.
|
1021
1090
|
attr_accessor :app_viewport
|
1091
|
+
# Configuration for the [balance report](/connect/supported-embedded-components/financial-reports#balance-report) embedded component.
|
1092
|
+
attr_accessor :balance_report
|
1022
1093
|
# Configuration for the [balances](/connect/supported-embedded-components/balances/) embedded component.
|
1023
1094
|
attr_accessor :balances
|
1024
1095
|
# Configuration for the [Capital financing](/connect/supported-embedded-components/capital-financing/) embedded component.
|
@@ -1055,6 +1126,10 @@ module Stripe
|
|
1055
1126
|
attr_accessor :payment_method_settings
|
1056
1127
|
# Configuration for the [payments](/connect/supported-embedded-components/payments/) embedded component.
|
1057
1128
|
attr_accessor :payments
|
1129
|
+
# Configuration for the [payout details](/connect/supported-embedded-components/payout-details/) embedded component.
|
1130
|
+
attr_accessor :payout_details
|
1131
|
+
# Configuration for the [payout reconciliation report](/connect/supported-embedded-components/financial-reports#payout-reconciliation-report) embedded component.
|
1132
|
+
attr_accessor :payout_reconciliation_report
|
1058
1133
|
# Configuration for the [payouts](/connect/supported-embedded-components/payouts/) embedded component.
|
1059
1134
|
attr_accessor :payouts
|
1060
1135
|
# Configuration for the [payouts list](/connect/supported-embedded-components/payouts-list/) embedded component.
|
@@ -1077,6 +1152,7 @@ module Stripe
|
|
1077
1152
|
account_onboarding: nil,
|
1078
1153
|
app_install: nil,
|
1079
1154
|
app_viewport: nil,
|
1155
|
+
balance_report: nil,
|
1080
1156
|
balances: nil,
|
1081
1157
|
capital_financing: nil,
|
1082
1158
|
capital_financing_application: nil,
|
@@ -1095,6 +1171,8 @@ module Stripe
|
|
1095
1171
|
payment_disputes: nil,
|
1096
1172
|
payment_method_settings: nil,
|
1097
1173
|
payments: nil,
|
1174
|
+
payout_details: nil,
|
1175
|
+
payout_reconciliation_report: nil,
|
1098
1176
|
payouts: nil,
|
1099
1177
|
payouts_list: nil,
|
1100
1178
|
product_tax_code_selector: nil,
|
@@ -1108,6 +1186,7 @@ module Stripe
|
|
1108
1186
|
@account_onboarding = account_onboarding
|
1109
1187
|
@app_install = app_install
|
1110
1188
|
@app_viewport = app_viewport
|
1189
|
+
@balance_report = balance_report
|
1111
1190
|
@balances = balances
|
1112
1191
|
@capital_financing = capital_financing
|
1113
1192
|
@capital_financing_application = capital_financing_application
|
@@ -1126,6 +1205,8 @@ module Stripe
|
|
1126
1205
|
@payment_disputes = payment_disputes
|
1127
1206
|
@payment_method_settings = payment_method_settings
|
1128
1207
|
@payments = payments
|
1208
|
+
@payout_details = payout_details
|
1209
|
+
@payout_reconciliation_report = payout_reconciliation_report
|
1129
1210
|
@payouts = payouts
|
1130
1211
|
@payouts_list = payouts_list
|
1131
1212
|
@product_tax_code_selector = product_tax_code_selector
|
@@ -5,14 +5,9 @@ module Stripe
|
|
5
5
|
# This is an object representing your Stripe balance. You can retrieve it to see
|
6
6
|
# the balance currently on your Stripe account.
|
7
7
|
#
|
8
|
-
#
|
9
|
-
# [transactions](https://stripe.com/docs/reporting/balance-transaction-types) that contributed to the balance
|
10
|
-
# (charges, payouts, and so forth).
|
8
|
+
# The top-level `available` and `pending` comprise your "payments balance."
|
11
9
|
#
|
12
|
-
#
|
13
|
-
# payment source types.
|
14
|
-
#
|
15
|
-
# Related guide: [Understanding Connect account balances](https://stripe.com/docs/connect/account-balances)
|
10
|
+
# Related guide: [Balances and settlement time](https://stripe.com/docs/payments/balances), [Understanding Connect account balances](https://stripe.com/docs/connect/account-balances)
|
16
11
|
class Balance < SingletonAPIResource
|
17
12
|
OBJECT_NAME = "balance"
|
18
13
|
def self.object_name
|
@@ -15,91 +15,98 @@ module Stripe
|
|
15
15
|
"balance_settings"
|
16
16
|
end
|
17
17
|
|
18
|
-
class
|
19
|
-
class
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
18
|
+
class Payments < Stripe::StripeObject
|
19
|
+
class Payouts < Stripe::StripeObject
|
20
|
+
class Schedule < Stripe::StripeObject
|
21
|
+
# How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`.
|
22
|
+
attr_reader :interval
|
23
|
+
# The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
|
24
|
+
attr_reader :monthly_payout_days
|
25
|
+
# The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
|
26
|
+
attr_reader :weekly_payout_days
|
27
|
+
end
|
28
|
+
# Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation for details.
|
29
|
+
attr_reader :schedule
|
30
|
+
# The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
|
31
|
+
attr_reader :statement_descriptor
|
32
|
+
# Whether the funds in this account can be paid out.
|
33
|
+
attr_reader :status
|
26
34
|
end
|
27
|
-
# Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation for details.
|
28
|
-
attr_reader :schedule
|
29
|
-
# The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
|
30
|
-
attr_reader :statement_descriptor
|
31
|
-
# Whether the funds in this account can be paid out.
|
32
|
-
attr_reader :status
|
33
|
-
end
|
34
35
|
|
35
|
-
|
36
|
-
|
37
|
-
|
36
|
+
class SettlementTiming < Stripe::StripeObject
|
37
|
+
# The number of days charge funds are held before becoming available.
|
38
|
+
attr_reader :delay_days
|
39
|
+
end
|
40
|
+
# A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
|
41
|
+
attr_reader :debit_negative_balances
|
42
|
+
# Settings specific to the account's payouts.
|
43
|
+
attr_reader :payouts
|
44
|
+
# Attribute for field settlement_timing
|
45
|
+
attr_reader :settlement_timing
|
38
46
|
end
|
39
47
|
|
40
48
|
class UpdateParams < Stripe::RequestParams
|
41
|
-
class
|
42
|
-
class
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
+
class Payments < Stripe::RequestParams
|
50
|
+
class Payouts < Stripe::RequestParams
|
51
|
+
class Schedule < Stripe::RequestParams
|
52
|
+
# How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
|
53
|
+
attr_accessor :interval
|
54
|
+
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
|
55
|
+
attr_accessor :monthly_payout_days
|
56
|
+
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly`.)
|
57
|
+
attr_accessor :weekly_payout_days
|
49
58
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
59
|
+
def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil)
|
60
|
+
@interval = interval
|
61
|
+
@monthly_payout_days = monthly_payout_days
|
62
|
+
@weekly_payout_days = weekly_payout_days
|
63
|
+
end
|
54
64
|
end
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
attr_accessor :statement_descriptor
|
65
|
+
# Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
|
66
|
+
attr_accessor :schedule
|
67
|
+
# The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
|
68
|
+
attr_accessor :statement_descriptor
|
60
69
|
|
61
|
-
|
62
|
-
|
63
|
-
|
70
|
+
def initialize(schedule: nil, statement_descriptor: nil)
|
71
|
+
@schedule = schedule
|
72
|
+
@statement_descriptor = statement_descriptor
|
73
|
+
end
|
64
74
|
end
|
65
|
-
end
|
66
75
|
|
67
|
-
|
68
|
-
|
69
|
-
|
76
|
+
class SettlementTiming < Stripe::RequestParams
|
77
|
+
# The number of days charge funds are held before becoming available. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `payouts.schedule.interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule).
|
78
|
+
attr_accessor :delay_days_override
|
79
|
+
|
80
|
+
def initialize(delay_days_override: nil)
|
81
|
+
@delay_days_override = delay_days_override
|
82
|
+
end
|
83
|
+
end
|
84
|
+
# A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
|
85
|
+
attr_accessor :debit_negative_balances
|
86
|
+
# Settings specific to the account's payouts.
|
87
|
+
attr_accessor :payouts
|
88
|
+
# Settings related to the account's balance settlement timing.
|
89
|
+
attr_accessor :settlement_timing
|
70
90
|
|
71
|
-
def initialize(
|
72
|
-
@
|
91
|
+
def initialize(debit_negative_balances: nil, payouts: nil, settlement_timing: nil)
|
92
|
+
@debit_negative_balances = debit_negative_balances
|
93
|
+
@payouts = payouts
|
94
|
+
@settlement_timing = settlement_timing
|
73
95
|
end
|
74
96
|
end
|
75
|
-
# A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
|
76
|
-
attr_accessor :debit_negative_balances
|
77
97
|
# Specifies which fields in the response should be expanded.
|
78
98
|
attr_accessor :expand
|
79
|
-
# Settings
|
80
|
-
attr_accessor :
|
81
|
-
# Settings related to the account's balance settlement timing.
|
82
|
-
attr_accessor :settlement_timing
|
99
|
+
# Settings that apply to the [Payments Balance](https://docs.stripe.com/api/balance).
|
100
|
+
attr_accessor :payments
|
83
101
|
|
84
|
-
def initialize(
|
85
|
-
debit_negative_balances: nil,
|
86
|
-
expand: nil,
|
87
|
-
payouts: nil,
|
88
|
-
settlement_timing: nil
|
89
|
-
)
|
90
|
-
@debit_negative_balances = debit_negative_balances
|
102
|
+
def initialize(expand: nil, payments: nil)
|
91
103
|
@expand = expand
|
92
|
-
@
|
93
|
-
@settlement_timing = settlement_timing
|
104
|
+
@payments = payments
|
94
105
|
end
|
95
106
|
end
|
96
|
-
# A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
|
97
|
-
attr_reader :debit_negative_balances
|
98
107
|
# String representing the object's type. Objects of the same type share the same value.
|
99
108
|
attr_reader :object
|
100
|
-
#
|
101
|
-
attr_reader :
|
102
|
-
# Attribute for field settlement_timing
|
103
|
-
attr_reader :settlement_timing
|
109
|
+
# Attribute for field payments
|
110
|
+
attr_reader :payments
|
104
111
|
end
|
105
112
|
end
|
@@ -13,6 +13,57 @@ module Stripe
|
|
13
13
|
"billing.alert"
|
14
14
|
end
|
15
15
|
|
16
|
+
class CreditBalanceThreshold < Stripe::StripeObject
|
17
|
+
class Filter < Stripe::StripeObject
|
18
|
+
# Limit the scope of the alert to this customer ID
|
19
|
+
attr_reader :customer
|
20
|
+
# Attribute for field type
|
21
|
+
attr_reader :type
|
22
|
+
end
|
23
|
+
|
24
|
+
class Lte < Stripe::StripeObject
|
25
|
+
class CustomPricingUnit < Stripe::StripeObject
|
26
|
+
class CustomPricingUnitDetails < Stripe::StripeObject
|
27
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
28
|
+
attr_reader :created
|
29
|
+
# The name of the custom pricing unit.
|
30
|
+
attr_reader :display_name
|
31
|
+
# Unique identifier for the object.
|
32
|
+
attr_reader :id
|
33
|
+
# A lookup key for the custom pricing unit.
|
34
|
+
attr_reader :lookup_key
|
35
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
36
|
+
attr_reader :metadata
|
37
|
+
# The status of the custom pricing unit.
|
38
|
+
attr_reader :status
|
39
|
+
end
|
40
|
+
# The custom pricing unit object.
|
41
|
+
attr_reader :custom_pricing_unit_details
|
42
|
+
# Unique identifier for the object.
|
43
|
+
attr_reader :id
|
44
|
+
# A positive decimal string representing the amount.
|
45
|
+
attr_reader :value
|
46
|
+
end
|
47
|
+
|
48
|
+
class Monetary < Stripe::StripeObject
|
49
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
50
|
+
attr_reader :currency
|
51
|
+
# A positive integer representing the amount.
|
52
|
+
attr_reader :value
|
53
|
+
end
|
54
|
+
# The type of this balance. We currently only support `monetary` amounts.
|
55
|
+
attr_reader :balance_type
|
56
|
+
# The custom pricing unit amount.
|
57
|
+
attr_reader :custom_pricing_unit
|
58
|
+
# The monetary amount.
|
59
|
+
attr_reader :monetary
|
60
|
+
end
|
61
|
+
# The filters allow limiting the scope of this credit balance alert. You must specify only a customer filter at this time.
|
62
|
+
attr_reader :filters
|
63
|
+
# Attribute for field lte
|
64
|
+
attr_reader :lte
|
65
|
+
end
|
66
|
+
|
16
67
|
class UsageThreshold < Stripe::StripeObject
|
17
68
|
class Filter < Stripe::StripeObject
|
18
69
|
# Limit the scope of the alert to this customer ID
|
@@ -33,6 +84,8 @@ module Stripe
|
|
33
84
|
class ListParams < Stripe::RequestParams
|
34
85
|
# Filter results to only include this type of alert.
|
35
86
|
attr_accessor :alert_type
|
87
|
+
# Filter results to only include alerts for the given customer.
|
88
|
+
attr_accessor :customer
|
36
89
|
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
37
90
|
attr_accessor :ending_before
|
38
91
|
# Specifies which fields in the response should be expanded.
|
@@ -46,6 +99,7 @@ module Stripe
|
|
46
99
|
|
47
100
|
def initialize(
|
48
101
|
alert_type: nil,
|
102
|
+
customer: nil,
|
49
103
|
ending_before: nil,
|
50
104
|
expand: nil,
|
51
105
|
limit: nil,
|
@@ -53,6 +107,7 @@ module Stripe
|
|
53
107
|
starting_after: nil
|
54
108
|
)
|
55
109
|
@alert_type = alert_type
|
110
|
+
@customer = customer
|
56
111
|
@ending_before = ending_before
|
57
112
|
@expand = expand
|
58
113
|
@limit = limit
|
@@ -62,6 +117,67 @@ module Stripe
|
|
62
117
|
end
|
63
118
|
|
64
119
|
class CreateParams < Stripe::RequestParams
|
120
|
+
class CreditBalanceThreshold < Stripe::RequestParams
|
121
|
+
class Filter < Stripe::RequestParams
|
122
|
+
# Limit the scope to this credit balance alert only to this customer.
|
123
|
+
attr_accessor :customer
|
124
|
+
# What type of filter is being applied to this credit balance alert.
|
125
|
+
attr_accessor :type
|
126
|
+
|
127
|
+
def initialize(customer: nil, type: nil)
|
128
|
+
@customer = customer
|
129
|
+
@type = type
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
class Lte < Stripe::RequestParams
|
134
|
+
class CustomPricingUnit < Stripe::RequestParams
|
135
|
+
# The ID of the custom pricing unit.
|
136
|
+
attr_accessor :id
|
137
|
+
# A positive decimal string representing the amount of the custom pricing unit threshold.
|
138
|
+
attr_accessor :value
|
139
|
+
|
140
|
+
def initialize(id: nil, value: nil)
|
141
|
+
@id = id
|
142
|
+
@value = value
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
class Monetary < Stripe::RequestParams
|
147
|
+
# Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter.
|
148
|
+
attr_accessor :currency
|
149
|
+
# An integer representing the amount of the threshold.
|
150
|
+
attr_accessor :value
|
151
|
+
|
152
|
+
def initialize(currency: nil, value: nil)
|
153
|
+
@currency = currency
|
154
|
+
@value = value
|
155
|
+
end
|
156
|
+
end
|
157
|
+
# Specify the type of this balance. We currently only support `monetary` billing credits.
|
158
|
+
attr_accessor :balance_type
|
159
|
+
# The custom pricing unit amount.
|
160
|
+
attr_accessor :custom_pricing_unit
|
161
|
+
# The monetary amount.
|
162
|
+
attr_accessor :monetary
|
163
|
+
|
164
|
+
def initialize(balance_type: nil, custom_pricing_unit: nil, monetary: nil)
|
165
|
+
@balance_type = balance_type
|
166
|
+
@custom_pricing_unit = custom_pricing_unit
|
167
|
+
@monetary = monetary
|
168
|
+
end
|
169
|
+
end
|
170
|
+
# The filters allows limiting the scope of this credit balance alert. You must specify a customer filter at this time.
|
171
|
+
attr_accessor :filters
|
172
|
+
# Defines at which value the alert will fire.
|
173
|
+
attr_accessor :lte
|
174
|
+
|
175
|
+
def initialize(filters: nil, lte: nil)
|
176
|
+
@filters = filters
|
177
|
+
@lte = lte
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
65
181
|
class UsageThreshold < Stripe::RequestParams
|
66
182
|
class Filter < Stripe::RequestParams
|
67
183
|
# Limit the scope to this usage alert only to this customer.
|
@@ -92,6 +208,8 @@ module Stripe
|
|
92
208
|
end
|
93
209
|
# The type of alert to create.
|
94
210
|
attr_accessor :alert_type
|
211
|
+
# The configuration of the credit balance threshold.
|
212
|
+
attr_accessor :credit_balance_threshold
|
95
213
|
# Specifies which fields in the response should be expanded.
|
96
214
|
attr_accessor :expand
|
97
215
|
# The title of the alert.
|
@@ -99,8 +217,15 @@ module Stripe
|
|
99
217
|
# The configuration of the usage threshold.
|
100
218
|
attr_accessor :usage_threshold
|
101
219
|
|
102
|
-
def initialize(
|
220
|
+
def initialize(
|
221
|
+
alert_type: nil,
|
222
|
+
credit_balance_threshold: nil,
|
223
|
+
expand: nil,
|
224
|
+
title: nil,
|
225
|
+
usage_threshold: nil
|
226
|
+
)
|
103
227
|
@alert_type = alert_type
|
228
|
+
@credit_balance_threshold = credit_balance_threshold
|
104
229
|
@expand = expand
|
105
230
|
@title = title
|
106
231
|
@usage_threshold = usage_threshold
|
@@ -135,6 +260,8 @@ module Stripe
|
|
135
260
|
end
|
136
261
|
# Defines the type of the alert.
|
137
262
|
attr_reader :alert_type
|
263
|
+
# Encapsulates configuration of the alert to monitor billing credit balance.
|
264
|
+
attr_reader :credit_balance_threshold
|
138
265
|
# Unique identifier for the object.
|
139
266
|
attr_reader :id
|
140
267
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
@@ -13,8 +13,14 @@ module Stripe
|
|
13
13
|
attr_reader :alert
|
14
14
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
15
15
|
attr_reader :created
|
16
|
+
# Currency for the threshold value
|
17
|
+
attr_reader :currency
|
18
|
+
# Custom pricing unit for the threshold value
|
19
|
+
attr_reader :custom_pricing_unit
|
16
20
|
# ID of customer for which the alert triggered
|
17
21
|
attr_reader :customer
|
22
|
+
# External customer ID for the customer for which the alert triggered
|
23
|
+
attr_reader :external_customer_id
|
18
24
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
19
25
|
attr_reader :livemode
|
20
26
|
# String representing the object's type. Objects of the same type share the same value.
|