stripe 15.6.0.pre.alpha.1 → 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 -65
- 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/billing/alert.rb +1 -128
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -6
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -50
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -50
- data/lib/stripe/resources/billing/credit_grant.rb +2 -61
- data/lib/stripe/resources/charge.rb +4 -0
- data/lib/stripe/resources/checkout/session.rb +1 -128
- data/lib/stripe/resources/invoice.rb +0 -11
- data/lib/stripe/resources/invoice_item.rb +0 -48
- data/lib/stripe/resources/invoice_line_item.rb +0 -52
- data/lib/stripe/resources/issuing/card.rb +8 -0
- data/lib/stripe/resources/payment_attempt_record.rb +4 -0
- data/lib/stripe/resources/payment_record.rb +4 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -7
- data/lib/stripe/resources/subscription.rb +0 -38
- data/lib/stripe/resources/v2/event.rb +0 -2
- data/lib/stripe/resources/v2/money_management/financial_account.rb +2 -2
- 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/version.rb +1 -1
- data/rbi/stripe.rbi +201354 -0
- metadata +2 -115
- 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 -62
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -50
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -182
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -148
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -136
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -35
- data/lib/stripe/resources/v2/billing/intent.rb +0 -59
- data/lib/stripe/resources/v2/billing/intent_action.rb +0 -200
- data/lib/stripe/resources/v2/billing/license_fee.rb +0 -79
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -36
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -56
- data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -44
- data/lib/stripe/resources/v2/billing/metered_item.rb +0 -58
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -43
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -58
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -63
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -30
- data/lib/stripe/resources/v2/billing/profile.rb +0 -38
- data/lib/stripe/resources/v2/billing/rate_card.rb +0 -53
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -71
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -63
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -26
- data/lib/stripe/resources/v2/billing/service_action.rb +0 -117
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -57
- data/lib/stripe/resources/v2/reporting/report.rb +0 -64
- data/lib/stripe/resources/v2/reporting/report_run.rb +0 -89
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +0 -31
- 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
@@ -1,21 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
# Occurs when a ReportRun has successfully completed.
|
6
|
-
class V2ReportingReportRunSucceededEvent < Stripe::V2::Event
|
7
|
-
def self.lookup_type
|
8
|
-
"v2.reporting.report_run.succeeded"
|
9
|
-
end
|
10
|
-
|
11
|
-
# Retrieves the related object from the API. Make an API request on every call.
|
12
|
-
def fetch_related_object
|
13
|
-
_request(
|
14
|
-
method: :get,
|
15
|
-
path: related_object.url,
|
16
|
-
base_address: :api,
|
17
|
-
opts: { stripe_account: context }
|
18
|
-
)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
# Occurs when a ReportRun is updated.
|
6
|
-
class V2ReportingReportRunUpdatedEvent < Stripe::V2::Event
|
7
|
-
def self.lookup_type
|
8
|
-
"v2.reporting.report_run.updated"
|
9
|
-
end
|
10
|
-
|
11
|
-
# Retrieves the related object from the API. Make an API request on every call.
|
12
|
-
def fetch_related_object
|
13
|
-
_request(
|
14
|
-
method: :get,
|
15
|
-
path: related_object.url,
|
16
|
-
base_address: :api,
|
17
|
-
opts: { stripe_account: context }
|
18
|
-
)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,62 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
# BillSetting is responsible for settings which dictate generating bills, which include settings for calculating totals on bills, tax on bill items, as well as how to generate and present invoices.
|
8
|
-
class BillSetting < APIResource
|
9
|
-
OBJECT_NAME = "v2.billing.bill_setting"
|
10
|
-
def self.object_name
|
11
|
-
"v2.billing.bill_setting"
|
12
|
-
end
|
13
|
-
|
14
|
-
class Calculation < Stripe::StripeObject
|
15
|
-
class Tax < Stripe::StripeObject
|
16
|
-
# Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant. Defaults to "manual".
|
17
|
-
attr_reader :type
|
18
|
-
end
|
19
|
-
# Settings for calculating tax.
|
20
|
-
attr_reader :tax
|
21
|
-
end
|
22
|
-
|
23
|
-
class Invoice < Stripe::StripeObject
|
24
|
-
class TimeUntilDue < Stripe::StripeObject
|
25
|
-
# The interval unit for the time until due.
|
26
|
-
attr_reader :interval
|
27
|
-
# The number of interval units. For example, if interval=day and interval_count=30,
|
28
|
-
# the invoice will be due in 30 days.
|
29
|
-
attr_reader :interval_count
|
30
|
-
end
|
31
|
-
# The amount of time until the invoice will be overdue for payment.
|
32
|
-
attr_reader :time_until_due
|
33
|
-
end
|
34
|
-
# Settings related to calculating a bill.
|
35
|
-
attr_reader :calculation
|
36
|
-
# Timestamp of when the object was created.
|
37
|
-
attr_reader :created
|
38
|
-
# An optional field for adding a display name for the BillSetting object.
|
39
|
-
attr_reader :display_name
|
40
|
-
# The ID of the BillSetting object.
|
41
|
-
attr_reader :id
|
42
|
-
# Settings related to invoice behavior.
|
43
|
-
attr_reader :invoice
|
44
|
-
# The ID of the invoice rendering template to be used when generating invoices.
|
45
|
-
attr_reader :invoice_rendering_template
|
46
|
-
# The latest version of the current settings object. This will be
|
47
|
-
# Updated every time an attribute of the settings is updated.
|
48
|
-
attr_reader :latest_version
|
49
|
-
# The current live version of the settings object. This can be different from
|
50
|
-
# latest_version if settings are updated without setting live_version='latest'.
|
51
|
-
attr_reader :live_version
|
52
|
-
# A lookup key used to retrieve settings dynamically from a static string.
|
53
|
-
# This may be up to 200 characters.
|
54
|
-
attr_reader :lookup_key
|
55
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
56
|
-
attr_reader :object
|
57
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
58
|
-
attr_reader :livemode
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
@@ -1,50 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
class BillSettingVersion < APIResource
|
8
|
-
OBJECT_NAME = "v2.billing.bill_setting_version"
|
9
|
-
def self.object_name
|
10
|
-
"v2.billing.bill_setting_version"
|
11
|
-
end
|
12
|
-
|
13
|
-
class Calculation < Stripe::StripeObject
|
14
|
-
class Tax < Stripe::StripeObject
|
15
|
-
# Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant. Defaults to "manual".
|
16
|
-
attr_reader :type
|
17
|
-
end
|
18
|
-
# Settings for calculating tax.
|
19
|
-
attr_reader :tax
|
20
|
-
end
|
21
|
-
|
22
|
-
class Invoice < Stripe::StripeObject
|
23
|
-
class TimeUntilDue < Stripe::StripeObject
|
24
|
-
# The interval unit for the time until due.
|
25
|
-
attr_reader :interval
|
26
|
-
# The number of interval units. For example, if interval=day and interval_count=30,
|
27
|
-
# the invoice will be due in 30 days.
|
28
|
-
attr_reader :interval_count
|
29
|
-
end
|
30
|
-
# The amount of time until the invoice will be overdue for payment.
|
31
|
-
attr_reader :time_until_due
|
32
|
-
end
|
33
|
-
# Settings related to calculating a bill.
|
34
|
-
attr_reader :calculation
|
35
|
-
# Timestamp of when the object was created.
|
36
|
-
attr_reader :created
|
37
|
-
# The ID of the BillSettingVersion object.
|
38
|
-
attr_reader :id
|
39
|
-
# Settings related to invoice behavior.
|
40
|
-
attr_reader :invoice
|
41
|
-
# The ID of the invoice rendering template to be used when generating invoices.
|
42
|
-
attr_reader :invoice_rendering_template
|
43
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
44
|
-
attr_reader :object
|
45
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
46
|
-
attr_reader :livemode
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
@@ -1,182 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
class Cadence < APIResource
|
8
|
-
OBJECT_NAME = "v2.billing.cadence"
|
9
|
-
def self.object_name
|
10
|
-
"v2.billing.cadence"
|
11
|
-
end
|
12
|
-
|
13
|
-
class BillingCycle < Stripe::StripeObject
|
14
|
-
class Day < Stripe::StripeObject
|
15
|
-
class Time < Stripe::StripeObject
|
16
|
-
# The hour at which the billing cycle ends.
|
17
|
-
# This must be an integer between 0 and 23, inclusive.
|
18
|
-
# 0 represents midnight, and 23 represents 11 PM.
|
19
|
-
attr_reader :hour
|
20
|
-
# The minute at which the billing cycle ends.
|
21
|
-
# Must be an integer between 0 and 59, inclusive.
|
22
|
-
attr_reader :minute
|
23
|
-
# The second at which the billing cycle ends.
|
24
|
-
# Must be an integer between 0 and 59, inclusive.
|
25
|
-
attr_reader :second
|
26
|
-
end
|
27
|
-
# The time at which the billing cycle ends.
|
28
|
-
attr_reader :time
|
29
|
-
end
|
30
|
-
|
31
|
-
class Month < Stripe::StripeObject
|
32
|
-
class Time < Stripe::StripeObject
|
33
|
-
# The hour at which the billing cycle ends.
|
34
|
-
# This must be an integer between 0 and 23, inclusive.
|
35
|
-
# 0 represents midnight, and 23 represents 11 PM.
|
36
|
-
attr_reader :hour
|
37
|
-
# The minute at which the billing cycle ends.
|
38
|
-
# Must be an integer between 0 and 59, inclusive.
|
39
|
-
attr_reader :minute
|
40
|
-
# The second at which the billing cycle ends.
|
41
|
-
# Must be an integer between 0 and 59, inclusive.
|
42
|
-
attr_reader :second
|
43
|
-
end
|
44
|
-
# The day to anchor the billing on for a type="month" billing cycle from 1-31.
|
45
|
-
# If this number is greater than the number of days in the month being billed,
|
46
|
-
# this will anchor to the last day of the month.
|
47
|
-
attr_reader :day_of_month
|
48
|
-
# The time at which the billing cycle ends.
|
49
|
-
attr_reader :time
|
50
|
-
end
|
51
|
-
|
52
|
-
class Week < Stripe::StripeObject
|
53
|
-
class Time < Stripe::StripeObject
|
54
|
-
# The hour at which the billing cycle ends.
|
55
|
-
# This must be an integer between 0 and 23, inclusive.
|
56
|
-
# 0 represents midnight, and 23 represents 11 PM.
|
57
|
-
attr_reader :hour
|
58
|
-
# The minute at which the billing cycle ends.
|
59
|
-
# Must be an integer between 0 and 59, inclusive.
|
60
|
-
attr_reader :minute
|
61
|
-
# The second at which the billing cycle ends.
|
62
|
-
# Must be an integer between 0 and 59, inclusive.
|
63
|
-
attr_reader :second
|
64
|
-
end
|
65
|
-
# The day of the week to bill the type=week billing cycle on.
|
66
|
-
# Numbered from 1-7 for Monday to Sunday respectively, based on the ISO-8601 week day numbering.
|
67
|
-
attr_reader :day_of_week
|
68
|
-
# The time at which the billing cycle ends.
|
69
|
-
attr_reader :time
|
70
|
-
end
|
71
|
-
|
72
|
-
class Year < Stripe::StripeObject
|
73
|
-
class Time < Stripe::StripeObject
|
74
|
-
# The hour at which the billing cycle ends.
|
75
|
-
# This must be an integer between 0 and 23, inclusive.
|
76
|
-
# 0 represents midnight, and 23 represents 11 PM.
|
77
|
-
attr_reader :hour
|
78
|
-
# The minute at which the billing cycle ends.
|
79
|
-
# Must be an integer between 0 and 59, inclusive.
|
80
|
-
attr_reader :minute
|
81
|
-
# The second at which the billing cycle ends.
|
82
|
-
# Must be an integer between 0 and 59, inclusive.
|
83
|
-
attr_reader :second
|
84
|
-
end
|
85
|
-
# The day to anchor the billing on for a type="month" billing cycle from 1-31.
|
86
|
-
# If this number is greater than the number of days in the month being billed,
|
87
|
-
# this will anchor to the last day of the month.
|
88
|
-
attr_reader :day_of_month
|
89
|
-
# The month to bill on from 1-12. If not provided, this will default to the month the cadence was created.
|
90
|
-
attr_reader :month_of_year
|
91
|
-
# The time at which the billing cycle ends.
|
92
|
-
attr_reader :time
|
93
|
-
end
|
94
|
-
# The number of intervals (specified in the interval attribute) between cadence billings. For example, type=month and interval_count=3 bills every 3 months.
|
95
|
-
attr_reader :interval_count
|
96
|
-
# The frequency at which a cadence bills.
|
97
|
-
attr_reader :type
|
98
|
-
# Specific configuration for determining billing dates when type=day.
|
99
|
-
attr_reader :day
|
100
|
-
# Specific configuration for determining billing dates when type=month.
|
101
|
-
attr_reader :month
|
102
|
-
# Specific configuration for determining billing dates when type=week.
|
103
|
-
attr_reader :week
|
104
|
-
# Specific configuration for determining billing dates when type=year.
|
105
|
-
attr_reader :year
|
106
|
-
end
|
107
|
-
|
108
|
-
class InvoiceDiscountRule < Stripe::StripeObject
|
109
|
-
class PercentOff < Stripe::StripeObject
|
110
|
-
class MaximumApplications < Stripe::StripeObject
|
111
|
-
# Max applications type of this discount, ex: indefinite.
|
112
|
-
attr_reader :type
|
113
|
-
end
|
114
|
-
# The maximum applications configuration for this discount.
|
115
|
-
attr_reader :maximum_applications
|
116
|
-
# Percent that will be taken off of the amount. For example, percent_off of 50.0 will make $100 amount $50 instead.
|
117
|
-
attr_reader :percent_off
|
118
|
-
end
|
119
|
-
# Unique identifier for the object.
|
120
|
-
attr_reader :id
|
121
|
-
# The type of the discount.
|
122
|
-
attr_reader :type
|
123
|
-
# Details if the discount is a percentage off.
|
124
|
-
attr_reader :percent_off
|
125
|
-
end
|
126
|
-
|
127
|
-
class Payer < Stripe::StripeObject
|
128
|
-
# The ID of the Billing Profile object which determines how a bill will be paid.
|
129
|
-
attr_reader :billing_profile
|
130
|
-
# The ID of the Customer object.
|
131
|
-
attr_reader :customer
|
132
|
-
# A string identifying the type of the payer. Currently the only supported value is `customer`.
|
133
|
-
attr_reader :type
|
134
|
-
end
|
135
|
-
|
136
|
-
class Settings < Stripe::StripeObject
|
137
|
-
class Bill < Stripe::StripeObject
|
138
|
-
# The ID of the referenced settings object.
|
139
|
-
attr_reader :id
|
140
|
-
# Returns the Settings Version when the cadence is pinned to a specific version.
|
141
|
-
attr_reader :version
|
142
|
-
end
|
143
|
-
|
144
|
-
class Collection < Stripe::StripeObject
|
145
|
-
# The ID of the referenced settings object.
|
146
|
-
attr_reader :id
|
147
|
-
# Returns the Settings Version when the cadence is pinned to a specific version.
|
148
|
-
attr_reader :version
|
149
|
-
end
|
150
|
-
# Settings that configure bills generation, which includes calculating totals, tax, and presenting invoices.
|
151
|
-
attr_reader :bill
|
152
|
-
# Settings that configure and manage the behavior of collecting payments.
|
153
|
-
attr_reader :collection
|
154
|
-
end
|
155
|
-
# The billing cycle is the object that defines future billing cycle dates.
|
156
|
-
attr_reader :billing_cycle
|
157
|
-
# Timestamp of when the object was created.
|
158
|
-
attr_reader :created
|
159
|
-
# Unique identifier for the object.
|
160
|
-
attr_reader :id
|
161
|
-
# The discount rules applied to all invoices for the cadence.
|
162
|
-
attr_reader :invoice_discount_rules
|
163
|
-
# Set of [key-value pairs](/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.
|
164
|
-
attr_reader :metadata
|
165
|
-
# The date that the billing cadence will next bill. Null if the cadence is not active.
|
166
|
-
attr_reader :next_billing_date
|
167
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
168
|
-
attr_reader :object
|
169
|
-
# The payer determines the entity financially responsible for the bill.
|
170
|
-
attr_reader :payer
|
171
|
-
# The settings associated with the cadence.
|
172
|
-
attr_reader :settings
|
173
|
-
# The current status of the cadence.
|
174
|
-
attr_reader :status
|
175
|
-
# The ID of the Test Clock.
|
176
|
-
attr_reader :test_clock
|
177
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
178
|
-
attr_reader :livemode
|
179
|
-
end
|
180
|
-
end
|
181
|
-
end
|
182
|
-
end
|
@@ -1,148 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
# Settings that configure and manage the behavior of collecting payments.
|
8
|
-
class CollectionSetting < APIResource
|
9
|
-
OBJECT_NAME = "v2.billing.collection_setting"
|
10
|
-
def self.object_name
|
11
|
-
"v2.billing.collection_setting"
|
12
|
-
end
|
13
|
-
|
14
|
-
class EmailDelivery < Stripe::StripeObject
|
15
|
-
class PaymentDue < Stripe::StripeObject
|
16
|
-
# If true an email for the invoice would be generated and sent out.
|
17
|
-
attr_reader :enabled
|
18
|
-
# If true the payment link to hosted invocie page would be included in email and PDF of the invoice.
|
19
|
-
attr_reader :include_payment_link
|
20
|
-
end
|
21
|
-
# Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state.
|
22
|
-
attr_reader :payment_due
|
23
|
-
end
|
24
|
-
|
25
|
-
class PaymentMethodOptions < Stripe::StripeObject
|
26
|
-
class AcssDebit < Stripe::StripeObject
|
27
|
-
class MandateOptions < Stripe::StripeObject
|
28
|
-
# Transaction type of the mandate.
|
29
|
-
attr_reader :transaction_type
|
30
|
-
end
|
31
|
-
# Additional fields for Mandate creation.
|
32
|
-
attr_reader :mandate_options
|
33
|
-
# Verification method.
|
34
|
-
attr_reader :verification_method
|
35
|
-
end
|
36
|
-
|
37
|
-
class Bancontact < Stripe::StripeObject
|
38
|
-
# Preferred language of the Bancontact authorization page that the customer is redirected to.
|
39
|
-
attr_reader :preferred_language
|
40
|
-
end
|
41
|
-
|
42
|
-
class Card < Stripe::StripeObject
|
43
|
-
class MandateOptions < Stripe::StripeObject
|
44
|
-
# Amount to be charged for future payments.
|
45
|
-
attr_reader :amount
|
46
|
-
# The AmountType for the mandate. One of `fixed` or `maximum`.
|
47
|
-
attr_reader :amount_type
|
48
|
-
# A description of the mandate that is meant to be displayed to the customer.
|
49
|
-
attr_reader :description
|
50
|
-
end
|
51
|
-
# Configuration options for setting up an eMandate for cards issued in India.
|
52
|
-
attr_reader :mandate_options
|
53
|
-
# Selected network to process the payment on. Depends on the available networks of the card.
|
54
|
-
attr_reader :network
|
55
|
-
# An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers
|
56
|
-
# for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication).
|
57
|
-
# However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option.
|
58
|
-
# Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
59
|
-
attr_reader :request_three_d_secure
|
60
|
-
end
|
61
|
-
|
62
|
-
class CustomerBalance < Stripe::StripeObject
|
63
|
-
class BankTransfer < Stripe::StripeObject
|
64
|
-
class EuBankTransfer < Stripe::StripeObject
|
65
|
-
# The desired country code of the bank account information.
|
66
|
-
attr_reader :country
|
67
|
-
end
|
68
|
-
# Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`.
|
69
|
-
attr_reader :eu_bank_transfer
|
70
|
-
# The bank transfer type that can be used for funding.
|
71
|
-
attr_reader :type
|
72
|
-
end
|
73
|
-
# Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
74
|
-
attr_reader :bank_transfer
|
75
|
-
# The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`.
|
76
|
-
attr_reader :funding_type
|
77
|
-
end
|
78
|
-
|
79
|
-
class Konbini < Stripe::StripeObject; end
|
80
|
-
class SepaDebit < Stripe::StripeObject; end
|
81
|
-
|
82
|
-
class UsBankAccount < Stripe::StripeObject
|
83
|
-
class FinancialConnections < Stripe::StripeObject
|
84
|
-
class Filters < Stripe::StripeObject
|
85
|
-
# The account subcategories to use to filter for selectable accounts.
|
86
|
-
attr_reader :account_subcategories
|
87
|
-
end
|
88
|
-
# Provide filters for the linked accounts that the customer can select for the payment method.
|
89
|
-
attr_reader :filters
|
90
|
-
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included.
|
91
|
-
attr_reader :permissions
|
92
|
-
# List of data features that you would like to retrieve upon account creation.
|
93
|
-
attr_reader :prefetch
|
94
|
-
end
|
95
|
-
# Additional fields for Financial Connections Session creation.
|
96
|
-
attr_reader :financial_connections
|
97
|
-
# Verification method.
|
98
|
-
attr_reader :verification_method
|
99
|
-
end
|
100
|
-
# This sub-hash contains details about the Canadian pre-authorized debit payment method options.
|
101
|
-
attr_reader :acss_debit
|
102
|
-
# This sub-hash contains details about the Bancontact payment method.
|
103
|
-
attr_reader :bancontact
|
104
|
-
# This sub-hash contains details about the Card payment method options.
|
105
|
-
attr_reader :card
|
106
|
-
# This sub-hash contains details about the Bank transfer payment method options.
|
107
|
-
attr_reader :customer_balance
|
108
|
-
# This sub-hash contains details about the Konbini payment method options.
|
109
|
-
attr_reader :konbini
|
110
|
-
# This sub-hash contains details about the SEPA Direct Debit payment method options.
|
111
|
-
attr_reader :sepa_debit
|
112
|
-
# This sub-hash contains details about the ACH direct debit payment method options.
|
113
|
-
attr_reader :us_bank_account
|
114
|
-
end
|
115
|
-
# Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay this
|
116
|
-
# bill at the end of the period using the payment method attached to the payer profile. When sending an invoice,
|
117
|
-
# Stripe will email your payer profile an invoice with payment instructions.
|
118
|
-
# Defaults to automatic.
|
119
|
-
attr_reader :collection_method
|
120
|
-
# Timestamp of when the object was created.
|
121
|
-
attr_reader :created
|
122
|
-
# An optional field for adding a display name for the CollectionSetting object.
|
123
|
-
attr_reader :display_name
|
124
|
-
# Email delivery settings.
|
125
|
-
attr_reader :email_delivery
|
126
|
-
# The ID of the CollectionSetting.
|
127
|
-
attr_reader :id
|
128
|
-
# The latest version of the current settings object. This will be
|
129
|
-
# Updated every time an attribute of the settings is updated.
|
130
|
-
attr_reader :latest_version
|
131
|
-
# The current live version of the settings object. This can be different from
|
132
|
-
# latest_version if settings are updated without setting live_version='latest'.
|
133
|
-
attr_reader :live_version
|
134
|
-
# A lookup key used to retrieve settings dynamically from a static string.
|
135
|
-
# This may be up to 200 characters.
|
136
|
-
attr_reader :lookup_key
|
137
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
138
|
-
attr_reader :object
|
139
|
-
# The ID of the PaymentMethodConfiguration object, which controls which payment methods are displayed to your customers.
|
140
|
-
attr_reader :payment_method_configuration
|
141
|
-
# Payment Method specific configuration stored on the object.
|
142
|
-
attr_reader :payment_method_options
|
143
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
144
|
-
attr_reader :livemode
|
145
|
-
end
|
146
|
-
end
|
147
|
-
end
|
148
|
-
end
|
@@ -1,136 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
class CollectionSettingVersion < APIResource
|
8
|
-
OBJECT_NAME = "v2.billing.collection_setting_version"
|
9
|
-
def self.object_name
|
10
|
-
"v2.billing.collection_setting_version"
|
11
|
-
end
|
12
|
-
|
13
|
-
class EmailDelivery < Stripe::StripeObject
|
14
|
-
class PaymentDue < Stripe::StripeObject
|
15
|
-
# If true an email for the invoice would be generated and sent out.
|
16
|
-
attr_reader :enabled
|
17
|
-
# If true the payment link to hosted invocie page would be included in email and PDF of the invoice.
|
18
|
-
attr_reader :include_payment_link
|
19
|
-
end
|
20
|
-
# Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state.
|
21
|
-
attr_reader :payment_due
|
22
|
-
end
|
23
|
-
|
24
|
-
class PaymentMethodOptions < Stripe::StripeObject
|
25
|
-
class AcssDebit < Stripe::StripeObject
|
26
|
-
class MandateOptions < Stripe::StripeObject
|
27
|
-
# Transaction type of the mandate.
|
28
|
-
attr_reader :transaction_type
|
29
|
-
end
|
30
|
-
# Additional fields for Mandate creation.
|
31
|
-
attr_reader :mandate_options
|
32
|
-
# Verification method.
|
33
|
-
attr_reader :verification_method
|
34
|
-
end
|
35
|
-
|
36
|
-
class Bancontact < Stripe::StripeObject
|
37
|
-
# Preferred language of the Bancontact authorization page that the customer is redirected to.
|
38
|
-
attr_reader :preferred_language
|
39
|
-
end
|
40
|
-
|
41
|
-
class Card < Stripe::StripeObject
|
42
|
-
class MandateOptions < Stripe::StripeObject
|
43
|
-
# Amount to be charged for future payments.
|
44
|
-
attr_reader :amount
|
45
|
-
# The AmountType for the mandate. One of `fixed` or `maximum`.
|
46
|
-
attr_reader :amount_type
|
47
|
-
# A description of the mandate that is meant to be displayed to the customer.
|
48
|
-
attr_reader :description
|
49
|
-
end
|
50
|
-
# Configuration options for setting up an eMandate for cards issued in India.
|
51
|
-
attr_reader :mandate_options
|
52
|
-
# Selected network to process the payment on. Depends on the available networks of the card.
|
53
|
-
attr_reader :network
|
54
|
-
# An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers
|
55
|
-
# for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication).
|
56
|
-
# However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option.
|
57
|
-
# Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
58
|
-
attr_reader :request_three_d_secure
|
59
|
-
end
|
60
|
-
|
61
|
-
class CustomerBalance < Stripe::StripeObject
|
62
|
-
class BankTransfer < Stripe::StripeObject
|
63
|
-
class EuBankTransfer < Stripe::StripeObject
|
64
|
-
# The desired country code of the bank account information.
|
65
|
-
attr_reader :country
|
66
|
-
end
|
67
|
-
# Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`.
|
68
|
-
attr_reader :eu_bank_transfer
|
69
|
-
# The bank transfer type that can be used for funding.
|
70
|
-
attr_reader :type
|
71
|
-
end
|
72
|
-
# Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
73
|
-
attr_reader :bank_transfer
|
74
|
-
# The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`.
|
75
|
-
attr_reader :funding_type
|
76
|
-
end
|
77
|
-
|
78
|
-
class Konbini < Stripe::StripeObject; end
|
79
|
-
class SepaDebit < Stripe::StripeObject; end
|
80
|
-
|
81
|
-
class UsBankAccount < Stripe::StripeObject
|
82
|
-
class FinancialConnections < Stripe::StripeObject
|
83
|
-
class Filters < Stripe::StripeObject
|
84
|
-
# The account subcategories to use to filter for selectable accounts.
|
85
|
-
attr_reader :account_subcategories
|
86
|
-
end
|
87
|
-
# Provide filters for the linked accounts that the customer can select for the payment method.
|
88
|
-
attr_reader :filters
|
89
|
-
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included.
|
90
|
-
attr_reader :permissions
|
91
|
-
# List of data features that you would like to retrieve upon account creation.
|
92
|
-
attr_reader :prefetch
|
93
|
-
end
|
94
|
-
# Additional fields for Financial Connections Session creation.
|
95
|
-
attr_reader :financial_connections
|
96
|
-
# Verification method.
|
97
|
-
attr_reader :verification_method
|
98
|
-
end
|
99
|
-
# This sub-hash contains details about the Canadian pre-authorized debit payment method options.
|
100
|
-
attr_reader :acss_debit
|
101
|
-
# This sub-hash contains details about the Bancontact payment method.
|
102
|
-
attr_reader :bancontact
|
103
|
-
# This sub-hash contains details about the Card payment method options.
|
104
|
-
attr_reader :card
|
105
|
-
# This sub-hash contains details about the Bank transfer payment method options.
|
106
|
-
attr_reader :customer_balance
|
107
|
-
# This sub-hash contains details about the Konbini payment method options.
|
108
|
-
attr_reader :konbini
|
109
|
-
# This sub-hash contains details about the SEPA Direct Debit payment method options.
|
110
|
-
attr_reader :sepa_debit
|
111
|
-
# This sub-hash contains details about the ACH direct debit payment method options.
|
112
|
-
attr_reader :us_bank_account
|
113
|
-
end
|
114
|
-
# Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay this
|
115
|
-
# bill at the end of the period using the payment method attached to the payer profile. When sending an invoice,
|
116
|
-
# Stripe will email your payer profile an invoice with payment instructions.
|
117
|
-
# Defaults to automatic.
|
118
|
-
attr_reader :collection_method
|
119
|
-
# Timestamp of when the object was created.
|
120
|
-
attr_reader :created
|
121
|
-
# Email delivery settings.
|
122
|
-
attr_reader :email_delivery
|
123
|
-
# The ID of the CollectionSettingVersion object.
|
124
|
-
attr_reader :id
|
125
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
126
|
-
attr_reader :object
|
127
|
-
# The ID of the PaymentMethodConfiguration object, which controls which payment methods are displayed to your customers.
|
128
|
-
attr_reader :payment_method_configuration
|
129
|
-
# Payment Method specific configuration stored on the object.
|
130
|
-
attr_reader :payment_method_options
|
131
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
132
|
-
attr_reader :livemode
|
133
|
-
end
|
134
|
-
end
|
135
|
-
end
|
136
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
# The Custom Pricing Unit object.
|
8
|
-
class CustomPricingUnit < APIResource
|
9
|
-
OBJECT_NAME = "v2.billing.custom_pricing_unit"
|
10
|
-
def self.object_name
|
11
|
-
"v2.billing.custom_pricing_unit"
|
12
|
-
end
|
13
|
-
|
14
|
-
# Whether the custom pricing unit is active.
|
15
|
-
attr_reader :active
|
16
|
-
# Timestamp of when the object was created.
|
17
|
-
attr_reader :created
|
18
|
-
# Description that customers will see in the invoice line item.
|
19
|
-
# Maximum length of 10 characters.
|
20
|
-
attr_reader :display_name
|
21
|
-
# Unique identifier for the object.
|
22
|
-
attr_reader :id
|
23
|
-
# An internal key you can use to search for a particular Custom Pricing Unit.
|
24
|
-
# Maximum length of 200 characters.
|
25
|
-
attr_reader :lookup_key
|
26
|
-
# Set of [key-value pairs](/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.
|
27
|
-
attr_reader :metadata
|
28
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
29
|
-
attr_reader :object
|
30
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
31
|
-
attr_reader :livemode
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|