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
@@ -12,12 +12,37 @@ module Stripe
|
|
12
12
|
|
13
13
|
class Balance < Stripe::StripeObject
|
14
14
|
class AvailableBalance < Stripe::StripeObject
|
15
|
+
class CustomPricingUnit < Stripe::StripeObject
|
16
|
+
class CustomPricingUnitDetails < Stripe::StripeObject
|
17
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
18
|
+
attr_reader :created
|
19
|
+
# The name of the custom pricing unit.
|
20
|
+
attr_reader :display_name
|
21
|
+
# Unique identifier for the object.
|
22
|
+
attr_reader :id
|
23
|
+
# A lookup key for the custom pricing unit.
|
24
|
+
attr_reader :lookup_key
|
25
|
+
# 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.
|
26
|
+
attr_reader :metadata
|
27
|
+
# The status of the custom pricing unit.
|
28
|
+
attr_reader :status
|
29
|
+
end
|
30
|
+
# The custom pricing unit object.
|
31
|
+
attr_reader :custom_pricing_unit_details
|
32
|
+
# Unique identifier for the object.
|
33
|
+
attr_reader :id
|
34
|
+
# A positive integer representing the amount.
|
35
|
+
attr_reader :value
|
36
|
+
end
|
37
|
+
|
15
38
|
class Monetary < Stripe::StripeObject
|
16
39
|
# 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).
|
17
40
|
attr_reader :currency
|
18
41
|
# A positive integer representing the amount.
|
19
42
|
attr_reader :value
|
20
43
|
end
|
44
|
+
# The custom pricing unit amount.
|
45
|
+
attr_reader :custom_pricing_unit
|
21
46
|
# The monetary amount.
|
22
47
|
attr_reader :monetary
|
23
48
|
# The type of this amount. We currently only support `monetary` billing credits.
|
@@ -25,12 +50,37 @@ module Stripe
|
|
25
50
|
end
|
26
51
|
|
27
52
|
class LedgerBalance < Stripe::StripeObject
|
53
|
+
class CustomPricingUnit < Stripe::StripeObject
|
54
|
+
class CustomPricingUnitDetails < Stripe::StripeObject
|
55
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
56
|
+
attr_reader :created
|
57
|
+
# The name of the custom pricing unit.
|
58
|
+
attr_reader :display_name
|
59
|
+
# Unique identifier for the object.
|
60
|
+
attr_reader :id
|
61
|
+
# A lookup key for the custom pricing unit.
|
62
|
+
attr_reader :lookup_key
|
63
|
+
# 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.
|
64
|
+
attr_reader :metadata
|
65
|
+
# The status of the custom pricing unit.
|
66
|
+
attr_reader :status
|
67
|
+
end
|
68
|
+
# The custom pricing unit object.
|
69
|
+
attr_reader :custom_pricing_unit_details
|
70
|
+
# Unique identifier for the object.
|
71
|
+
attr_reader :id
|
72
|
+
# A positive integer representing the amount.
|
73
|
+
attr_reader :value
|
74
|
+
end
|
75
|
+
|
28
76
|
class Monetary < Stripe::StripeObject
|
29
77
|
# 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).
|
30
78
|
attr_reader :currency
|
31
79
|
# A positive integer representing the amount.
|
32
80
|
attr_reader :value
|
33
81
|
end
|
82
|
+
# The custom pricing unit amount.
|
83
|
+
attr_reader :custom_pricing_unit
|
34
84
|
# The monetary amount.
|
35
85
|
attr_reader :monetary
|
36
86
|
# The type of this amount. We currently only support `monetary` billing credits.
|
@@ -14,12 +14,37 @@ module Stripe
|
|
14
14
|
|
15
15
|
class Credit < Stripe::StripeObject
|
16
16
|
class Amount < Stripe::StripeObject
|
17
|
+
class CustomPricingUnit < Stripe::StripeObject
|
18
|
+
class CustomPricingUnitDetails < Stripe::StripeObject
|
19
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
20
|
+
attr_reader :created
|
21
|
+
# The name of the custom pricing unit.
|
22
|
+
attr_reader :display_name
|
23
|
+
# Unique identifier for the object.
|
24
|
+
attr_reader :id
|
25
|
+
# A lookup key for the custom pricing unit.
|
26
|
+
attr_reader :lookup_key
|
27
|
+
# 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.
|
28
|
+
attr_reader :metadata
|
29
|
+
# The status of the custom pricing unit.
|
30
|
+
attr_reader :status
|
31
|
+
end
|
32
|
+
# The custom pricing unit object.
|
33
|
+
attr_reader :custom_pricing_unit_details
|
34
|
+
# Unique identifier for the object.
|
35
|
+
attr_reader :id
|
36
|
+
# A positive integer representing the amount.
|
37
|
+
attr_reader :value
|
38
|
+
end
|
39
|
+
|
17
40
|
class Monetary < Stripe::StripeObject
|
18
41
|
# 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).
|
19
42
|
attr_reader :currency
|
20
43
|
# A positive integer representing the amount.
|
21
44
|
attr_reader :value
|
22
45
|
end
|
46
|
+
# The custom pricing unit amount.
|
47
|
+
attr_reader :custom_pricing_unit
|
23
48
|
# The monetary amount.
|
24
49
|
attr_reader :monetary
|
25
50
|
# The type of this amount. We currently only support `monetary` billing credits.
|
@@ -42,12 +67,37 @@ module Stripe
|
|
42
67
|
|
43
68
|
class Debit < Stripe::StripeObject
|
44
69
|
class Amount < Stripe::StripeObject
|
70
|
+
class CustomPricingUnit < Stripe::StripeObject
|
71
|
+
class CustomPricingUnitDetails < Stripe::StripeObject
|
72
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
73
|
+
attr_reader :created
|
74
|
+
# The name of the custom pricing unit.
|
75
|
+
attr_reader :display_name
|
76
|
+
# Unique identifier for the object.
|
77
|
+
attr_reader :id
|
78
|
+
# A lookup key for the custom pricing unit.
|
79
|
+
attr_reader :lookup_key
|
80
|
+
# 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.
|
81
|
+
attr_reader :metadata
|
82
|
+
# The status of the custom pricing unit.
|
83
|
+
attr_reader :status
|
84
|
+
end
|
85
|
+
# The custom pricing unit object.
|
86
|
+
attr_reader :custom_pricing_unit_details
|
87
|
+
# Unique identifier for the object.
|
88
|
+
attr_reader :id
|
89
|
+
# A positive integer representing the amount.
|
90
|
+
attr_reader :value
|
91
|
+
end
|
92
|
+
|
45
93
|
class Monetary < Stripe::StripeObject
|
46
94
|
# 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).
|
47
95
|
attr_reader :currency
|
48
96
|
# A positive integer representing the amount.
|
49
97
|
attr_reader :value
|
50
98
|
end
|
99
|
+
# The custom pricing unit amount.
|
100
|
+
attr_reader :custom_pricing_unit
|
51
101
|
# The monetary amount.
|
52
102
|
attr_reader :monetary
|
53
103
|
# The type of this amount. We currently only support `monetary` billing credits.
|
@@ -17,12 +17,37 @@ module Stripe
|
|
17
17
|
end
|
18
18
|
|
19
19
|
class Amount < Stripe::StripeObject
|
20
|
+
class CustomPricingUnit < Stripe::StripeObject
|
21
|
+
class CustomPricingUnitDetails < Stripe::StripeObject
|
22
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
23
|
+
attr_reader :created
|
24
|
+
# The name of the custom pricing unit.
|
25
|
+
attr_reader :display_name
|
26
|
+
# Unique identifier for the object.
|
27
|
+
attr_reader :id
|
28
|
+
# A lookup key for the custom pricing unit.
|
29
|
+
attr_reader :lookup_key
|
30
|
+
# 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.
|
31
|
+
attr_reader :metadata
|
32
|
+
# The status of the custom pricing unit.
|
33
|
+
attr_reader :status
|
34
|
+
end
|
35
|
+
# The custom pricing unit object.
|
36
|
+
attr_reader :custom_pricing_unit_details
|
37
|
+
# Unique identifier for the object.
|
38
|
+
attr_reader :id
|
39
|
+
# A positive integer representing the amount.
|
40
|
+
attr_reader :value
|
41
|
+
end
|
42
|
+
|
20
43
|
class Monetary < Stripe::StripeObject
|
21
44
|
# 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).
|
22
45
|
attr_reader :currency
|
23
46
|
# A positive integer representing the amount.
|
24
47
|
attr_reader :value
|
25
48
|
end
|
49
|
+
# The custom pricing unit amount.
|
50
|
+
attr_reader :custom_pricing_unit
|
26
51
|
# The monetary amount.
|
27
52
|
attr_reader :monetary
|
28
53
|
# The type of this amount. We currently only support `monetary` billing credits.
|
@@ -31,10 +56,17 @@ module Stripe
|
|
31
56
|
|
32
57
|
class ApplicabilityConfig < Stripe::StripeObject
|
33
58
|
class Scope < Stripe::StripeObject
|
59
|
+
class BillableItem < Stripe::StripeObject
|
60
|
+
# Unique identifier for the object.
|
61
|
+
attr_reader :id
|
62
|
+
end
|
63
|
+
|
34
64
|
class Price < Stripe::StripeObject
|
35
65
|
# Unique identifier for the object.
|
36
66
|
attr_reader :id
|
37
67
|
end
|
68
|
+
# The billable items that credit grants can apply to. We currently only support metered billable items. Cannot be used in combination with `price_type` or `prices`.
|
69
|
+
attr_reader :billable_items
|
38
70
|
# The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `prices`.
|
39
71
|
attr_reader :price_type
|
40
72
|
# The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `price_type`.
|
@@ -77,6 +109,18 @@ module Stripe
|
|
77
109
|
|
78
110
|
class CreateParams < Stripe::RequestParams
|
79
111
|
class Amount < Stripe::RequestParams
|
112
|
+
class CustomPricingUnit < Stripe::RequestParams
|
113
|
+
# The ID of the custom pricing unit.
|
114
|
+
attr_accessor :id
|
115
|
+
# A positive integer representing the amount of the credit grant.
|
116
|
+
attr_accessor :value
|
117
|
+
|
118
|
+
def initialize(id: nil, value: nil)
|
119
|
+
@id = id
|
120
|
+
@value = value
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
80
124
|
class Monetary < Stripe::RequestParams
|
81
125
|
# Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter.
|
82
126
|
attr_accessor :currency
|
@@ -88,12 +132,15 @@ module Stripe
|
|
88
132
|
@value = value
|
89
133
|
end
|
90
134
|
end
|
135
|
+
# The custom pricing unit amount.
|
136
|
+
attr_accessor :custom_pricing_unit
|
91
137
|
# The monetary amount.
|
92
138
|
attr_accessor :monetary
|
93
139
|
# The type of this amount. We currently only support `monetary` billing credits.
|
94
140
|
attr_accessor :type
|
95
141
|
|
96
|
-
def initialize(monetary: nil, type: nil)
|
142
|
+
def initialize(custom_pricing_unit: nil, monetary: nil, type: nil)
|
143
|
+
@custom_pricing_unit = custom_pricing_unit
|
97
144
|
@monetary = monetary
|
98
145
|
@type = type
|
99
146
|
end
|
@@ -101,6 +148,15 @@ module Stripe
|
|
101
148
|
|
102
149
|
class ApplicabilityConfig < Stripe::RequestParams
|
103
150
|
class Scope < Stripe::RequestParams
|
151
|
+
class BillableItem < Stripe::RequestParams
|
152
|
+
# The billable item ID this credit grant should apply to.
|
153
|
+
attr_accessor :id
|
154
|
+
|
155
|
+
def initialize(id: nil)
|
156
|
+
@id = id
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
104
160
|
class Price < Stripe::RequestParams
|
105
161
|
# The price ID this credit grant should apply to.
|
106
162
|
attr_accessor :id
|
@@ -109,12 +165,15 @@ module Stripe
|
|
109
165
|
@id = id
|
110
166
|
end
|
111
167
|
end
|
168
|
+
# A list of billable items that the credit grant can apply to. We currently only support metered billable items. Cannot be used in combination with `price_type` or `prices`.
|
169
|
+
attr_accessor :billable_items
|
112
170
|
# The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
|
113
171
|
attr_accessor :price_type
|
114
172
|
# A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
|
115
173
|
attr_accessor :prices
|
116
174
|
|
117
|
-
def initialize(price_type: nil, prices: nil)
|
175
|
+
def initialize(billable_items: nil, price_type: nil, prices: nil)
|
176
|
+
@billable_items = billable_items
|
118
177
|
@price_type = price_type
|
119
178
|
@prices = prices
|
120
179
|
end
|
@@ -108,7 +108,7 @@ module Stripe
|
|
108
108
|
attr_accessor :display_name
|
109
109
|
# The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events.
|
110
110
|
attr_accessor :event_name
|
111
|
-
# The time window
|
111
|
+
# The time window which meter events have been pre-aggregated for, if any.
|
112
112
|
attr_accessor :event_time_window
|
113
113
|
# Specifies which fields in the response should be expanded.
|
114
114
|
attr_accessor :expand
|
@@ -173,7 +173,7 @@ module Stripe
|
|
173
173
|
attr_reader :display_name
|
174
174
|
# The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events.
|
175
175
|
attr_reader :event_name
|
176
|
-
# The time window
|
176
|
+
# The time window which meter events have been pre-aggregated for, if any.
|
177
177
|
attr_reader :event_time_window
|
178
178
|
# Unique identifier for the object.
|
179
179
|
attr_reader :id
|
@@ -19,7 +19,7 @@ module Stripe
|
|
19
19
|
attr_reader :dimensions
|
20
20
|
# Unique identifier for the object.
|
21
21
|
attr_reader :id
|
22
|
-
# The unique identifier for the meter.
|
22
|
+
# The unique identifier for the meter. Null if no meters were provided and usage was aggregated across all meters.
|
23
23
|
attr_reader :meter_id
|
24
24
|
# String representing the object's type. Objects of the same type share the same value.
|
25
25
|
attr_reader :object
|
@@ -345,6 +345,8 @@ module Stripe
|
|
345
345
|
attr_accessor :login_page
|
346
346
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
347
347
|
attr_accessor :metadata
|
348
|
+
# The name of the configuration.
|
349
|
+
attr_accessor :name
|
348
350
|
|
349
351
|
def initialize(
|
350
352
|
business_profile: nil,
|
@@ -352,7 +354,8 @@ module Stripe
|
|
352
354
|
expand: nil,
|
353
355
|
features: nil,
|
354
356
|
login_page: nil,
|
355
|
-
metadata: nil
|
357
|
+
metadata: nil,
|
358
|
+
name: nil
|
356
359
|
)
|
357
360
|
@business_profile = business_profile
|
358
361
|
@default_return_url = default_return_url
|
@@ -360,6 +363,7 @@ module Stripe
|
|
360
363
|
@features = features
|
361
364
|
@login_page = login_page
|
362
365
|
@metadata = metadata
|
366
|
+
@name = name
|
363
367
|
end
|
364
368
|
end
|
365
369
|
|
@@ -565,6 +569,8 @@ module Stripe
|
|
565
569
|
attr_accessor :login_page
|
566
570
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
567
571
|
attr_accessor :metadata
|
572
|
+
# The name of the configuration.
|
573
|
+
attr_accessor :name
|
568
574
|
|
569
575
|
def initialize(
|
570
576
|
active: nil,
|
@@ -573,7 +579,8 @@ module Stripe
|
|
573
579
|
expand: nil,
|
574
580
|
features: nil,
|
575
581
|
login_page: nil,
|
576
|
-
metadata: nil
|
582
|
+
metadata: nil,
|
583
|
+
name: nil
|
577
584
|
)
|
578
585
|
@active = active
|
579
586
|
@business_profile = business_profile
|
@@ -582,6 +589,7 @@ module Stripe
|
|
582
589
|
@features = features
|
583
590
|
@login_page = login_page
|
584
591
|
@metadata = metadata
|
592
|
+
@name = name
|
585
593
|
end
|
586
594
|
end
|
587
595
|
# Whether the configuration is active and can be used to create portal sessions.
|
@@ -606,6 +614,8 @@ module Stripe
|
|
606
614
|
attr_reader :login_page
|
607
615
|
# 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.
|
608
616
|
attr_reader :metadata
|
617
|
+
# The name of the configuration.
|
618
|
+
attr_reader :name
|
609
619
|
# String representing the object's type. Objects of the same type share the same value.
|
610
620
|
attr_reader :object
|
611
621
|
# Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
@@ -96,11 +96,11 @@ module Stripe
|
|
96
96
|
attr_reader :advice_code
|
97
97
|
# For charges declined by the network, a 2 digit code which indicates the advice returned by the network on how to proceed with an error.
|
98
98
|
attr_reader :network_advice_code
|
99
|
-
# For charges declined by the network,
|
99
|
+
# For charges declined by the network, an alphanumeric code which indicates the reason the charge failed.
|
100
100
|
attr_reader :network_decline_code
|
101
101
|
# Possible values are `approved_by_network`, `declined_by_network`, `not_sent_to_network`, and `reversed_after_approval`. The value `reversed_after_approval` indicates the payment was [blocked by Stripe](https://stripe.com/docs/declines#blocked-payments) after bank authorization, and may temporarily appear as "pending" on a cardholder's statement.
|
102
102
|
attr_reader :network_status
|
103
|
-
# An enumerated value providing a more detailed explanation of the outcome's `type`. Charges blocked by Radar's default block rule have the value `highest_risk_level`. Charges placed in review by Radar's default review rule have the value `elevated_risk_level`. Charges authorized, blocked, or placed in review by custom rules have the value `rule`. See [understanding declines](https://stripe.com/docs/declines) for more details.
|
103
|
+
# An enumerated value providing a more detailed explanation of the outcome's `type`. Charges blocked by Radar's default block rule have the value `highest_risk_level`. Charges placed in review by Radar's default review rule have the value `elevated_risk_level`. Charges blocked because the payment is unlikely to be authorized have the value `low_probability_of_authorization`. Charges authorized, blocked, or placed in review by custom rules have the value `rule`. See [understanding declines](https://stripe.com/docs/declines) for more details.
|
104
104
|
attr_reader :reason
|
105
105
|
# Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated payments are `normal`, `elevated`, `highest`. For non-card payments, and card-based payments predating the public assignment of risk levels, this field will have the value `not_assessed`. In the event of an error in the evaluation, this field will have the value `unknown`. This field is only available with Radar.
|
106
106
|
attr_reader :risk_level
|
@@ -181,7 +181,16 @@ module Stripe
|
|
181
181
|
attr_reader :transaction_id
|
182
182
|
end
|
183
183
|
|
184
|
-
class Alma < Stripe::StripeObject
|
184
|
+
class Alma < Stripe::StripeObject
|
185
|
+
class Installments < Stripe::StripeObject
|
186
|
+
# The number of installments.
|
187
|
+
attr_reader :count
|
188
|
+
end
|
189
|
+
# Attribute for field installments
|
190
|
+
attr_reader :installments
|
191
|
+
# The Alma transaction ID associated with this payment.
|
192
|
+
attr_reader :transaction_id
|
193
|
+
end
|
185
194
|
|
186
195
|
class AmazonPay < Stripe::StripeObject
|
187
196
|
class Funding < Stripe::StripeObject
|
@@ -208,6 +217,8 @@ module Stripe
|
|
208
217
|
end
|
209
218
|
# Attribute for field funding
|
210
219
|
attr_reader :funding
|
220
|
+
# The Amazon Pay transaction ID associated with this payment.
|
221
|
+
attr_reader :transaction_id
|
211
222
|
end
|
212
223
|
|
213
224
|
class AuBecsDebit < Stripe::StripeObject
|
@@ -253,7 +264,10 @@ module Stripe
|
|
253
264
|
attr_reader :verified_name
|
254
265
|
end
|
255
266
|
|
256
|
-
class Billie < Stripe::StripeObject
|
267
|
+
class Billie < Stripe::StripeObject
|
268
|
+
# The Billie transaction ID associated with this payment.
|
269
|
+
attr_reader :transaction_id
|
270
|
+
end
|
257
271
|
|
258
272
|
class Blik < Stripe::StripeObject
|
259
273
|
# A unique and immutable identifier assigned by BLIK to every buyer.
|
@@ -762,6 +776,8 @@ module Stripe
|
|
762
776
|
class KakaoPay < Stripe::StripeObject
|
763
777
|
# A unique identifier for the buyer as determined by the local payment processor.
|
764
778
|
attr_reader :buyer_id
|
779
|
+
# The Kakao Pay transaction ID associated with this payment.
|
780
|
+
attr_reader :transaction_id
|
765
781
|
end
|
766
782
|
|
767
783
|
class Klarna < Stripe::StripeObject
|
@@ -799,6 +815,8 @@ module Stripe
|
|
799
815
|
attr_reader :buyer_id
|
800
816
|
# The last four digits of the card. This may not be present for American Express cards.
|
801
817
|
attr_reader :last4
|
818
|
+
# The Korean Card transaction ID associated with this payment.
|
819
|
+
attr_reader :transaction_id
|
802
820
|
end
|
803
821
|
|
804
822
|
class Link < Stripe::StripeObject
|
@@ -836,6 +854,8 @@ module Stripe
|
|
836
854
|
class NaverPay < Stripe::StripeObject
|
837
855
|
# A unique identifier for the buyer as determined by the local payment processor.
|
838
856
|
attr_reader :buyer_id
|
857
|
+
# The Naver Pay transaction ID associated with this payment.
|
858
|
+
attr_reader :transaction_id
|
839
859
|
end
|
840
860
|
|
841
861
|
class NzBankAccount < Stripe::StripeObject
|
@@ -874,6 +894,8 @@ module Stripe
|
|
874
894
|
class Payco < Stripe::StripeObject
|
875
895
|
# A unique identifier for the buyer as determined by the local payment processor.
|
876
896
|
attr_reader :buyer_id
|
897
|
+
# The Payco transaction ID associated with this payment.
|
898
|
+
attr_reader :transaction_id
|
877
899
|
end
|
878
900
|
|
879
901
|
class Paynow < Stripe::StripeObject
|
@@ -962,6 +984,8 @@ module Stripe
|
|
962
984
|
class Pix < Stripe::StripeObject
|
963
985
|
# Unique transaction id generated by BCB
|
964
986
|
attr_reader :bank_transaction_id
|
987
|
+
# ID of the multi use Mandate generated by the PaymentIntent
|
988
|
+
attr_reader :mandate
|
965
989
|
end
|
966
990
|
|
967
991
|
class Promptpay < Stripe::StripeObject
|
@@ -997,14 +1021,21 @@ module Stripe
|
|
997
1021
|
end
|
998
1022
|
# Attribute for field funding
|
999
1023
|
attr_reader :funding
|
1024
|
+
# The Revolut Pay transaction ID associated with this payment.
|
1025
|
+
attr_reader :transaction_id
|
1000
1026
|
end
|
1001
1027
|
|
1002
1028
|
class SamsungPay < Stripe::StripeObject
|
1003
1029
|
# A unique identifier for the buyer as determined by the local payment processor.
|
1004
1030
|
attr_reader :buyer_id
|
1031
|
+
# The Samsung Pay transaction ID associated with this payment.
|
1032
|
+
attr_reader :transaction_id
|
1005
1033
|
end
|
1006
1034
|
|
1007
|
-
class Satispay < Stripe::StripeObject
|
1035
|
+
class Satispay < Stripe::StripeObject
|
1036
|
+
# The Satispay transaction ID associated with this payment.
|
1037
|
+
attr_reader :transaction_id
|
1038
|
+
end
|
1008
1039
|
|
1009
1040
|
class SepaCreditTransfer < Stripe::StripeObject
|
1010
1041
|
# Name of the bank associated with the bank account.
|