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
@@ -49,6 +49,32 @@ module Stripe
|
|
49
49
|
attr_reader :subscription
|
50
50
|
end
|
51
51
|
|
52
|
+
class LicenseFeeSubscriptionDetails < Stripe::StripeObject
|
53
|
+
# The invoice item that generated this line item
|
54
|
+
attr_reader :invoice_item
|
55
|
+
# The license fee subscription that generated this line item
|
56
|
+
attr_reader :license_fee_subscription
|
57
|
+
# The license fee version at the time this line item was generated
|
58
|
+
attr_reader :license_fee_version
|
59
|
+
# The pricing plan subscription that manages the license fee subscription
|
60
|
+
attr_reader :pricing_plan_subscription
|
61
|
+
# The pricing plan version at the time this line item was generated
|
62
|
+
attr_reader :pricing_plan_version
|
63
|
+
end
|
64
|
+
|
65
|
+
class RateCardSubscriptionDetails < Stripe::StripeObject
|
66
|
+
# The invoice item that generated this line item
|
67
|
+
attr_reader :invoice_item
|
68
|
+
# The pricing plan subscription that manages the rate card subscription
|
69
|
+
attr_reader :pricing_plan_subscription
|
70
|
+
# The pricing plan version at the time this line item was generated
|
71
|
+
attr_reader :pricing_plan_version
|
72
|
+
# The rate card subscription that generated this line item
|
73
|
+
attr_reader :rate_card_subscription
|
74
|
+
# The rate card version at the time this line item was generated
|
75
|
+
attr_reader :rate_card_version
|
76
|
+
end
|
77
|
+
|
52
78
|
class SubscriptionItemDetails < Stripe::StripeObject
|
53
79
|
class ProrationDetails < Stripe::StripeObject
|
54
80
|
class CreditedItems < Stripe::StripeObject
|
@@ -73,6 +99,10 @@ module Stripe
|
|
73
99
|
end
|
74
100
|
# Details about the invoice item that generated this line item
|
75
101
|
attr_reader :invoice_item_details
|
102
|
+
# Details about the license fee subscription that generated this line item
|
103
|
+
attr_reader :license_fee_subscription_details
|
104
|
+
# Details about the rate card subscription that generated this line item
|
105
|
+
attr_reader :rate_card_subscription_details
|
76
106
|
# Details about the subscription item that generated this line item
|
77
107
|
attr_reader :subscription_item_details
|
78
108
|
# The type of parent that generated this line item
|
@@ -100,14 +130,36 @@ module Stripe
|
|
100
130
|
end
|
101
131
|
|
102
132
|
class Pricing < Stripe::StripeObject
|
133
|
+
class LicenseFeeDetails < Stripe::StripeObject
|
134
|
+
# The ID of the license fee this item is associated with
|
135
|
+
attr_reader :license_fee
|
136
|
+
# The version of the license fee this item is associated with
|
137
|
+
attr_reader :license_fee_version
|
138
|
+
# The ID of the licensed item this item is associated with
|
139
|
+
attr_reader :licensed_item
|
140
|
+
end
|
141
|
+
|
103
142
|
class PriceDetails < Stripe::StripeObject
|
104
143
|
# The ID of the price this item is associated with.
|
105
144
|
attr_reader :price
|
106
145
|
# The ID of the product this item is associated with.
|
107
146
|
attr_reader :product
|
108
147
|
end
|
148
|
+
|
149
|
+
class RateCardRateDetails < Stripe::StripeObject
|
150
|
+
# The ID of billable item this item is associated with
|
151
|
+
attr_reader :metered_item
|
152
|
+
# The ID of the rate card this item is associated with
|
153
|
+
attr_reader :rate_card
|
154
|
+
# The ID of the rate card rate this item is associated with
|
155
|
+
attr_reader :rate_card_rate
|
156
|
+
end
|
157
|
+
# Attribute for field license_fee_details
|
158
|
+
attr_reader :license_fee_details
|
109
159
|
# Attribute for field price_details
|
110
160
|
attr_reader :price_details
|
161
|
+
# Attribute for field rate_card_rate_details
|
162
|
+
attr_reader :rate_card_rate_details
|
111
163
|
# The type of the pricing details.
|
112
164
|
attr_reader :type
|
113
165
|
# The unit amount (in the `currency` specified) of the item which contains a decimal value with at most 12 decimal places.
|
@@ -40,7 +40,7 @@ module Stripe
|
|
40
40
|
class Payment < Stripe::RequestParams
|
41
41
|
# Only return invoice payments associated by this payment intent ID.
|
42
42
|
attr_accessor :payment_intent
|
43
|
-
#
|
43
|
+
# Only return invoice payments associated by this payment record ID.
|
44
44
|
attr_accessor :payment_record
|
45
45
|
# Only return invoice payments associated by this payment type.
|
46
46
|
attr_accessor :type
|
@@ -4,6 +4,8 @@
|
|
4
4
|
module Stripe
|
5
5
|
# A Mandate is a record of the permission that your customer gives you to debit their payment method.
|
6
6
|
class Mandate < APIResource
|
7
|
+
extend Stripe::APIOperations::List
|
8
|
+
|
7
9
|
OBJECT_NAME = "mandate"
|
8
10
|
def self.object_name
|
9
11
|
"mandate"
|
@@ -28,7 +30,12 @@ module Stripe
|
|
28
30
|
attr_reader :type
|
29
31
|
end
|
30
32
|
|
31
|
-
class MultiUse < Stripe::StripeObject
|
33
|
+
class MultiUse < Stripe::StripeObject
|
34
|
+
# The amount of the payment on a multi use mandate.
|
35
|
+
attr_reader :amount
|
36
|
+
# The currency of the payment on a multi use mandate.
|
37
|
+
attr_reader :currency
|
38
|
+
end
|
32
39
|
|
33
40
|
class PaymentMethodDetails < Stripe::StripeObject
|
34
41
|
class AcssDebit < Stripe::StripeObject
|
@@ -98,6 +105,21 @@ module Stripe
|
|
98
105
|
attr_reader :start_date
|
99
106
|
end
|
100
107
|
|
108
|
+
class Pix < Stripe::StripeObject
|
109
|
+
# Determines if the amount includes the IOF tax.
|
110
|
+
attr_reader :amount_includes_iof
|
111
|
+
# Type of amount.
|
112
|
+
attr_reader :amount_type
|
113
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
114
|
+
attr_reader :end_date
|
115
|
+
# Schedule at which the future payments will be charged.
|
116
|
+
attr_reader :payment_schedule
|
117
|
+
# Subscription name displayed to buyers in their bank app.
|
118
|
+
attr_reader :reference
|
119
|
+
# Start date of the mandate, in `YYYY-MM-DD`.
|
120
|
+
attr_reader :start_date
|
121
|
+
end
|
122
|
+
|
101
123
|
class RevolutPay < Stripe::StripeObject; end
|
102
124
|
|
103
125
|
class SepaDebit < Stripe::StripeObject
|
@@ -139,6 +161,8 @@ module Stripe
|
|
139
161
|
attr_reader :paypal
|
140
162
|
# Attribute for field payto
|
141
163
|
attr_reader :payto
|
164
|
+
# Attribute for field pix
|
165
|
+
attr_reader :pix
|
142
166
|
# Attribute for field revolut_pay
|
143
167
|
attr_reader :revolut_pay
|
144
168
|
# Attribute for field sepa_debit
|
@@ -155,6 +179,41 @@ module Stripe
|
|
155
179
|
# The currency of the payment on a single use mandate.
|
156
180
|
attr_reader :currency
|
157
181
|
end
|
182
|
+
|
183
|
+
class ListParams < Stripe::RequestParams
|
184
|
+
# 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.
|
185
|
+
attr_accessor :ending_before
|
186
|
+
# Specifies which fields in the response should be expanded.
|
187
|
+
attr_accessor :expand
|
188
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
189
|
+
attr_accessor :limit
|
190
|
+
# The Stripe account ID that the mandates are intended for. Learn more about the [use case for connected accounts payments](https://stripe.com/docs/payments/connected-accounts).
|
191
|
+
attr_accessor :on_behalf_of
|
192
|
+
# Attribute for param field payment_method
|
193
|
+
attr_accessor :payment_method
|
194
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
195
|
+
attr_accessor :starting_after
|
196
|
+
# The status of the mandates to retrieve. Status indicates whether or not you can use it to initiate a payment, and can have a value of `active`, `pending`, or `inactive`.
|
197
|
+
attr_accessor :status
|
198
|
+
|
199
|
+
def initialize(
|
200
|
+
ending_before: nil,
|
201
|
+
expand: nil,
|
202
|
+
limit: nil,
|
203
|
+
on_behalf_of: nil,
|
204
|
+
payment_method: nil,
|
205
|
+
starting_after: nil,
|
206
|
+
status: nil
|
207
|
+
)
|
208
|
+
@ending_before = ending_before
|
209
|
+
@expand = expand
|
210
|
+
@limit = limit
|
211
|
+
@on_behalf_of = on_behalf_of
|
212
|
+
@payment_method = payment_method
|
213
|
+
@starting_after = starting_after
|
214
|
+
@status = status
|
215
|
+
end
|
216
|
+
end
|
158
217
|
# Attribute for field customer_acceptance
|
159
218
|
attr_reader :customer_acceptance
|
160
219
|
# Unique identifier for the object.
|
@@ -177,5 +236,10 @@ module Stripe
|
|
177
236
|
attr_reader :status
|
178
237
|
# The type of the mandate.
|
179
238
|
attr_reader :type
|
239
|
+
|
240
|
+
# Retrieves a list of Mandates for a given PaymentMethod.
|
241
|
+
def self.list(params = {}, opts = {})
|
242
|
+
request_stripe_object(method: :get, path: "/v1/mandates", params: params, opts: opts)
|
243
|
+
end
|
180
244
|
end
|
181
245
|
end
|
@@ -14,31 +14,52 @@ module Stripe
|
|
14
14
|
"payment_attempt_record"
|
15
15
|
end
|
16
16
|
|
17
|
+
class Amount < Stripe::StripeObject
|
18
|
+
# 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
|
+
attr_reader :currency
|
20
|
+
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
21
|
+
attr_reader :value
|
22
|
+
end
|
23
|
+
|
24
|
+
class AmountAuthorized < Stripe::StripeObject
|
25
|
+
# 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).
|
26
|
+
attr_reader :currency
|
27
|
+
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
28
|
+
attr_reader :value
|
29
|
+
end
|
30
|
+
|
17
31
|
class AmountCanceled < Stripe::StripeObject
|
18
32
|
# 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
33
|
attr_reader :currency
|
20
|
-
# A positive integer representing the amount in the [
|
34
|
+
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
21
35
|
attr_reader :value
|
22
36
|
end
|
23
37
|
|
24
38
|
class AmountFailed < Stripe::StripeObject
|
25
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).
|
26
40
|
attr_reader :currency
|
27
|
-
# A positive integer representing the amount in the [
|
41
|
+
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
28
42
|
attr_reader :value
|
29
43
|
end
|
30
44
|
|
31
45
|
class AmountGuaranteed < Stripe::StripeObject
|
32
46
|
# 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).
|
33
47
|
attr_reader :currency
|
34
|
-
# A positive integer representing the amount in the [
|
48
|
+
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
49
|
+
attr_reader :value
|
50
|
+
end
|
51
|
+
|
52
|
+
class AmountRefunded < Stripe::StripeObject
|
53
|
+
# 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).
|
54
|
+
attr_reader :currency
|
55
|
+
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
35
56
|
attr_reader :value
|
36
57
|
end
|
37
58
|
|
38
59
|
class AmountRequested < Stripe::StripeObject
|
39
60
|
# 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).
|
40
61
|
attr_reader :currency
|
41
|
-
# A positive integer representing the amount in the [
|
62
|
+
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
42
63
|
attr_reader :value
|
43
64
|
end
|
44
65
|
|
@@ -120,7 +141,16 @@ module Stripe
|
|
120
141
|
attr_reader :transaction_id
|
121
142
|
end
|
122
143
|
|
123
|
-
class Alma < Stripe::StripeObject
|
144
|
+
class Alma < Stripe::StripeObject
|
145
|
+
class Installments < Stripe::StripeObject
|
146
|
+
# The number of installments.
|
147
|
+
attr_reader :count
|
148
|
+
end
|
149
|
+
# Attribute for field installments
|
150
|
+
attr_reader :installments
|
151
|
+
# The Alma transaction ID associated with this payment.
|
152
|
+
attr_reader :transaction_id
|
153
|
+
end
|
124
154
|
|
125
155
|
class AmazonPay < Stripe::StripeObject
|
126
156
|
class Funding < Stripe::StripeObject
|
@@ -147,6 +177,8 @@ module Stripe
|
|
147
177
|
end
|
148
178
|
# Attribute for field funding
|
149
179
|
attr_reader :funding
|
180
|
+
# The Amazon Pay transaction ID associated with this payment.
|
181
|
+
attr_reader :transaction_id
|
150
182
|
end
|
151
183
|
|
152
184
|
class AuBecsDebit < Stripe::StripeObject
|
@@ -192,7 +224,10 @@ module Stripe
|
|
192
224
|
attr_reader :verified_name
|
193
225
|
end
|
194
226
|
|
195
|
-
class Billie < Stripe::StripeObject
|
227
|
+
class Billie < Stripe::StripeObject
|
228
|
+
# The Billie transaction ID associated with this payment.
|
229
|
+
attr_reader :transaction_id
|
230
|
+
end
|
196
231
|
|
197
232
|
class BillingDetails < Stripe::StripeObject
|
198
233
|
class Address < Stripe::StripeObject
|
@@ -533,6 +568,8 @@ module Stripe
|
|
533
568
|
class KakaoPay < Stripe::StripeObject
|
534
569
|
# A unique identifier for the buyer as determined by the local payment processor.
|
535
570
|
attr_reader :buyer_id
|
571
|
+
# The Kakao Pay transaction ID associated with this payment.
|
572
|
+
attr_reader :transaction_id
|
536
573
|
end
|
537
574
|
|
538
575
|
class Klarna < Stripe::StripeObject
|
@@ -570,6 +607,8 @@ module Stripe
|
|
570
607
|
attr_reader :buyer_id
|
571
608
|
# The last four digits of the card. This may not be present for American Express cards.
|
572
609
|
attr_reader :last4
|
610
|
+
# The Korean Card transaction ID associated with this payment.
|
611
|
+
attr_reader :transaction_id
|
573
612
|
end
|
574
613
|
|
575
614
|
class Link < Stripe::StripeObject
|
@@ -607,6 +646,8 @@ module Stripe
|
|
607
646
|
class NaverPay < Stripe::StripeObject
|
608
647
|
# A unique identifier for the buyer as determined by the local payment processor.
|
609
648
|
attr_reader :buyer_id
|
649
|
+
# The Naver Pay transaction ID associated with this payment.
|
650
|
+
attr_reader :transaction_id
|
610
651
|
end
|
611
652
|
|
612
653
|
class NzBankAccount < Stripe::StripeObject
|
@@ -645,6 +686,8 @@ module Stripe
|
|
645
686
|
class Payco < Stripe::StripeObject
|
646
687
|
# A unique identifier for the buyer as determined by the local payment processor.
|
647
688
|
attr_reader :buyer_id
|
689
|
+
# The Payco transaction ID associated with this payment.
|
690
|
+
attr_reader :transaction_id
|
648
691
|
end
|
649
692
|
|
650
693
|
class Paynow < Stripe::StripeObject
|
@@ -733,6 +776,8 @@ module Stripe
|
|
733
776
|
class Pix < Stripe::StripeObject
|
734
777
|
# Unique transaction id generated by BCB
|
735
778
|
attr_reader :bank_transaction_id
|
779
|
+
# ID of the multi use Mandate generated by the PaymentIntent
|
780
|
+
attr_reader :mandate
|
736
781
|
end
|
737
782
|
|
738
783
|
class Promptpay < Stripe::StripeObject
|
@@ -768,14 +813,21 @@ module Stripe
|
|
768
813
|
end
|
769
814
|
# Attribute for field funding
|
770
815
|
attr_reader :funding
|
816
|
+
# The Revolut Pay transaction ID associated with this payment.
|
817
|
+
attr_reader :transaction_id
|
771
818
|
end
|
772
819
|
|
773
820
|
class SamsungPay < Stripe::StripeObject
|
774
821
|
# A unique identifier for the buyer as determined by the local payment processor.
|
775
822
|
attr_reader :buyer_id
|
823
|
+
# The Samsung Pay transaction ID associated with this payment.
|
824
|
+
attr_reader :transaction_id
|
776
825
|
end
|
777
826
|
|
778
|
-
class Satispay < Stripe::StripeObject
|
827
|
+
class Satispay < Stripe::StripeObject
|
828
|
+
# The Satispay transaction ID associated with this payment.
|
829
|
+
attr_reader :transaction_id
|
830
|
+
end
|
779
831
|
|
780
832
|
class SepaCreditTransfer < Stripe::StripeObject
|
781
833
|
# Name of the bank associated with the bank account.
|
@@ -1019,6 +1071,19 @@ module Stripe
|
|
1019
1071
|
attr_reader :zip
|
1020
1072
|
end
|
1021
1073
|
|
1074
|
+
class ProcessorDetails < Stripe::StripeObject
|
1075
|
+
class Custom < Stripe::StripeObject
|
1076
|
+
# An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
|
1077
|
+
attr_reader :payment_reference
|
1078
|
+
end
|
1079
|
+
# Custom processors represent payment processors not modeled directly in
|
1080
|
+
# the Stripe API. This resource consists of details about the custom processor
|
1081
|
+
# used for this payment attempt.
|
1082
|
+
attr_reader :custom
|
1083
|
+
# The processor used for this payment attempt.
|
1084
|
+
attr_reader :type
|
1085
|
+
end
|
1086
|
+
|
1022
1087
|
class ShippingDetails < Stripe::StripeObject
|
1023
1088
|
class Address < Stripe::StripeObject
|
1024
1089
|
# City, district, suburb, town, or village.
|
@@ -1045,22 +1110,33 @@ module Stripe
|
|
1045
1110
|
class ListParams < Stripe::RequestParams
|
1046
1111
|
# Specifies which fields in the response should be expanded.
|
1047
1112
|
attr_accessor :expand
|
1113
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
1114
|
+
attr_accessor :limit
|
1048
1115
|
# The ID of the Payment Record.
|
1049
1116
|
attr_accessor :payment_record
|
1050
1117
|
|
1051
|
-
def initialize(expand: nil, payment_record: nil)
|
1118
|
+
def initialize(expand: nil, limit: nil, payment_record: nil)
|
1052
1119
|
@expand = expand
|
1120
|
+
@limit = limit
|
1053
1121
|
@payment_record = payment_record
|
1054
1122
|
end
|
1055
1123
|
end
|
1056
1124
|
# A representation of an amount of money, consisting of an amount and a currency.
|
1125
|
+
attr_reader :amount
|
1126
|
+
# A representation of an amount of money, consisting of an amount and a currency.
|
1127
|
+
attr_reader :amount_authorized
|
1128
|
+
# A representation of an amount of money, consisting of an amount and a currency.
|
1057
1129
|
attr_reader :amount_canceled
|
1058
1130
|
# A representation of an amount of money, consisting of an amount and a currency.
|
1059
1131
|
attr_reader :amount_failed
|
1060
1132
|
# A representation of an amount of money, consisting of an amount and a currency.
|
1061
1133
|
attr_reader :amount_guaranteed
|
1062
1134
|
# A representation of an amount of money, consisting of an amount and a currency.
|
1135
|
+
attr_reader :amount_refunded
|
1136
|
+
# A representation of an amount of money, consisting of an amount and a currency.
|
1063
1137
|
attr_reader :amount_requested
|
1138
|
+
# ID of the Connect application that created the PaymentAttemptRecord.
|
1139
|
+
attr_reader :application
|
1064
1140
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
1065
1141
|
attr_reader :created
|
1066
1142
|
# Customer information for this payment.
|
@@ -1081,8 +1157,8 @@ module Stripe
|
|
1081
1157
|
attr_reader :payment_method_details
|
1082
1158
|
# ID of the Payment Record this Payment Attempt Record belongs to.
|
1083
1159
|
attr_reader :payment_record
|
1084
|
-
#
|
1085
|
-
attr_reader :
|
1160
|
+
# Processor information associated with this payment.
|
1161
|
+
attr_reader :processor_details
|
1086
1162
|
# Indicates who reported the payment.
|
1087
1163
|
attr_reader :reported_by
|
1088
1164
|
# Shipping information for this payment.
|