stripe 13.3.0.pre.beta.3 → 13.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +650 -1402
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +0 -32
- data/lib/stripe/resources/account.rb +2 -232
- data/lib/stripe/resources/account_link.rb +0 -9
- data/lib/stripe/resources/account_session.rb +0 -103
- data/lib/stripe/resources/apple_pay_domain.rb +2 -20
- data/lib/stripe/resources/application_fee.rb +2 -36
- data/lib/stripe/resources/application_fee_refund.rb +0 -17
- data/lib/stripe/resources/apps/secret.rb +2 -24
- data/lib/stripe/resources/balance.rb +0 -59
- data/lib/stripe/resources/balance_transaction.rb +2 -36
- data/lib/stripe/resources/bank_account.rb +3 -61
- data/lib/stripe/resources/billing/alert.rb +2 -23
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -25
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -50
- data/lib/stripe/resources/billing/credit_grant.rb +2 -46
- data/lib/stripe/resources/billing/meter.rb +2 -44
- data/lib/stripe/resources/billing/meter_event.rb +0 -15
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
- data/lib/stripe/resources/billing/meter_event_summary.rb +0 -15
- data/lib/stripe/resources/billing_portal/configuration.rb +2 -72
- data/lib/stripe/resources/billing_portal/session.rb +0 -61
- data/lib/stripe/resources/capability.rb +0 -38
- data/lib/stripe/resources/card.rb +1 -77
- data/lib/stripe/resources/cash_balance.rb +0 -14
- data/lib/stripe/resources/charge.rb +2 -471
- data/lib/stripe/resources/checkout/session.rb +2 -498
- data/lib/stripe/resources/climate/order.rb +2 -57
- data/lib/stripe/resources/climate/product.rb +2 -26
- data/lib/stripe/resources/climate/supplier.rb +2 -20
- data/lib/stripe/resources/confirmation_token.rb +0 -297
- data/lib/stripe/resources/country_spec.rb +2 -29
- data/lib/stripe/resources/coupon.rb +2 -46
- data/lib/stripe/resources/credit_note.rb +2 -93
- data/lib/stripe/resources/credit_note_line_item.rb +0 -46
- data/lib/stripe/resources/customer.rb +2 -95
- data/lib/stripe/resources/customer_balance_transaction.rb +0 -27
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -72
- data/lib/stripe/resources/customer_session.rb +0 -34
- data/lib/stripe/resources/discount.rb +0 -29
- data/lib/stripe/resources/dispute.rb +2 -98
- data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -13
- data/lib/stripe/resources/entitlements/feature.rb +2 -17
- data/lib/stripe/resources/ephemeral_key.rb +0 -13
- data/lib/stripe/resources/event.rb +2 -46
- data/lib/stripe/resources/exchange_rate.rb +2 -9
- data/lib/stripe/resources/file.rb +2 -25
- data/lib/stripe/resources/file_link.rb +2 -21
- data/lib/stripe/resources/financial_connections/account.rb +2 -89
- data/lib/stripe/resources/financial_connections/account_owner.rb +0 -17
- data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -9
- data/lib/stripe/resources/financial_connections/session.rb +0 -49
- data/lib/stripe/resources/financial_connections/transaction.rb +2 -30
- data/lib/stripe/resources/forwarding/request.rb +2 -42
- data/lib/stripe/resources/funding_instructions.rb +0 -82
- data/lib/stripe/resources/identity/verification_report.rb +2 -94
- data/lib/stripe/resources/identity/verification_session.rb +2 -78
- data/lib/stripe/resources/invoice.rb +2 -420
- data/lib/stripe/resources/invoice_item.rb +2 -56
- data/lib/stripe/resources/invoice_line_item.rb +0 -83
- data/lib/stripe/resources/invoice_rendering_template.rb +2 -19
- data/lib/stripe/resources/issuing/authorization.rb +2 -131
- data/lib/stripe/resources/issuing/card.rb +2 -88
- data/lib/stripe/resources/issuing/cardholder.rb +2 -78
- data/lib/stripe/resources/issuing/dispute.rb +2 -67
- data/lib/stripe/resources/issuing/personalization_design.rb +2 -40
- data/lib/stripe/resources/issuing/physical_bundle.rb +2 -20
- data/lib/stripe/resources/issuing/token.rb +2 -48
- data/lib/stripe/resources/issuing/transaction.rb +2 -108
- data/lib/stripe/resources/line_item.rb +0 -50
- data/lib/stripe/resources/login_link.rb +0 -7
- data/lib/stripe/resources/mandate.rb +0 -78
- data/lib/stripe/resources/payment_intent.rb +2 -714
- data/lib/stripe/resources/payment_link.rb +2 -200
- data/lib/stripe/resources/payment_method.rb +2 -370
- data/lib/stripe/resources/payment_method_configuration.rb +2 -432
- data/lib/stripe/resources/payment_method_domain.rb +2 -59
- data/lib/stripe/resources/payout.rb +2 -58
- data/lib/stripe/resources/person.rb +0 -128
- data/lib/stripe/resources/plan.rb +2 -54
- data/lib/stripe/resources/price.rb +2 -79
- data/lib/stripe/resources/product.rb +2 -62
- data/lib/stripe/resources/product_feature.rb +0 -12
- data/lib/stripe/resources/promotion_code.rb +2 -37
- data/lib/stripe/resources/quote.rb +2 -358
- data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -19
- data/lib/stripe/resources/radar/value_list.rb +2 -25
- data/lib/stripe/resources/radar/value_list_item.rb +2 -19
- data/lib/stripe/resources/refund.rb +2 -132
- data/lib/stripe/resources/reporting/report_run.rb +2 -31
- data/lib/stripe/resources/reporting/report_type.rb +2 -21
- data/lib/stripe/resources/reversal.rb +0 -21
- data/lib/stripe/resources/review.rb +2 -38
- data/lib/stripe/resources/setup_attempt.rb +2 -103
- data/lib/stripe/resources/setup_intent.rb +2 -160
- data/lib/stripe/resources/shipping_rate.rb +2 -44
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +2 -28
- data/lib/stripe/resources/source.rb +0 -197
- data/lib/stripe/resources/source_transaction.rb +0 -48
- data/lib/stripe/resources/subscription.rb +2 -216
- data/lib/stripe/resources/subscription_item.rb +2 -48
- data/lib/stripe/resources/subscription_schedule.rb +2 -175
- data/lib/stripe/resources/tax/calculation.rb +0 -72
- data/lib/stripe/resources/tax/calculation_line_item.rb +0 -33
- data/lib/stripe/resources/tax/registration.rb +2 -381
- data/lib/stripe/resources/tax/settings.rb +0 -33
- data/lib/stripe/resources/tax/transaction.rb +0 -68
- data/lib/stripe/resources/tax/transaction_line_item.rb +0 -30
- data/lib/stripe/resources/tax_code.rb +2 -11
- data/lib/stripe/resources/tax_id.rb +2 -32
- data/lib/stripe/resources/tax_rate.rb +2 -44
- data/lib/stripe/resources/terminal/configuration.rb +2 -109
- data/lib/stripe/resources/terminal/connection_token.rb +0 -7
- data/lib/stripe/resources/terminal/location.rb +2 -22
- data/lib/stripe/resources/terminal/reader.rb +2 -180
- data/lib/stripe/resources/test_helpers/test_clock.rb +2 -29
- data/lib/stripe/resources/token.rb +0 -29
- data/lib/stripe/resources/topup.rb +2 -35
- data/lib/stripe/resources/transfer.rb +2 -37
- data/lib/stripe/resources/treasury/credit_reversal.rb +2 -34
- data/lib/stripe/resources/treasury/debit_reversal.rb +2 -40
- data/lib/stripe/resources/treasury/financial_account.rb +2 -59
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -91
- data/lib/stripe/resources/treasury/inbound_transfer.rb +2 -68
- data/lib/stripe/resources/treasury/outbound_payment.rb +2 -87
- data/lib/stripe/resources/treasury/outbound_transfer.rb +2 -84
- data/lib/stripe/resources/treasury/received_credit.rb +2 -72
- data/lib/stripe/resources/treasury/received_debit.rb +2 -69
- data/lib/stripe/resources/treasury/transaction.rb +2 -44
- data/lib/stripe/resources/treasury/transaction_entry.rb +2 -36
- data/lib/stripe/resources/usage_record.rb +0 -13
- data/lib/stripe/resources/usage_record_summary.rb +0 -18
- data/lib/stripe/resources/v2/billing/meter_event.rb +0 -18
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -20
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -14
- data/lib/stripe/resources/v2/event.rb +0 -21
- data/lib/stripe/resources/v2/event_destination.rb +0 -49
- data/lib/stripe/resources/webhook_endpoint.rb +2 -34
- data/lib/stripe/resources.rb +0 -31
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- data/lib/stripe/services/invoice_service.rb +1 -44
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/payment_intent_service.rb +0 -37
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/subscription_schedule_service.rb +0 -11
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal/reader_service.rb +0 -33
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -8
- data/lib/stripe/services.rb +0 -25
- data/lib/stripe/stripe_client.rb +1 -1
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_object.rb +3 -8
- data/lib/stripe/util.rb +2 -8
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -45
- data/stripe.gemspec +1 -2
- metadata +4 -62
- data/lib/stripe/request_signing_authenticator.rb +0 -79
- data/lib/stripe/resources/account_notice.rb +0 -60
- data/lib/stripe/resources/application.rb +0 -20
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -26
- data/lib/stripe/resources/billing/meter_error_report.rb +0 -44
- data/lib/stripe/resources/capital/financing_offer.rb +0 -94
- data/lib/stripe/resources/capital/financing_summary.rb +0 -32
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -56
- data/lib/stripe/resources/connect_collection_transfer.rb +0 -24
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -23
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
- data/lib/stripe/resources/financial_connections/institution.rb +0 -61
- data/lib/stripe/resources/gift_cards/card.rb +0 -96
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -132
- data/lib/stripe/resources/invoice_payment.rb +0 -46
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -145
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -49
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -43
- data/lib/stripe/resources/issuing/settlement.rb +0 -49
- data/lib/stripe/resources/margin.rb +0 -56
- data/lib/stripe/resources/order.rb +0 -322
- data/lib/stripe/resources/payment_attempt_record.rb +0 -100
- data/lib/stripe/resources/payment_record.rb +0 -188
- data/lib/stripe/resources/quote_line.rb +0 -136
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -374
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -170
- data/lib/stripe/resources/reserve_transaction.rb +0 -22
- data/lib/stripe/resources/source_mandate_notification.rb +0 -59
- data/lib/stripe/resources/tax/association.rb +0 -60
- data/lib/stripe/resources/tax/form.rb +0 -124
- data/lib/stripe/resources/tax_deducted_at_source.rb +0 -22
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -30
- data/lib/stripe/resources/v2/amount.rb +0 -9
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
- data/lib/stripe/services/gift_cards/card_service.rb +0 -63
- data/lib/stripe/services/gift_cards/transaction_service.rb +0 -74
- data/lib/stripe/services/gift_cards_service.rb +0 -14
- data/lib/stripe/services/invoice_payment_service.rb +0 -28
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
- data/lib/stripe/services/margin_service.rb +0 -50
- data/lib/stripe/services/order_line_item_service.rb +0 -17
- data/lib/stripe/services/order_service.rb +0 -78
- data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
- data/lib/stripe/services/payment_record_service.rb +0 -78
- data/lib/stripe/services/quote_line_service.rb +0 -17
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
- data/lib/stripe/services/tax/association_service.rb +0 -19
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
@@ -18,64 +18,5 @@ module Stripe
|
|
18
18
|
def self.object_name
|
19
19
|
"balance"
|
20
20
|
end
|
21
|
-
|
22
|
-
class Available < Stripe::StripeObject
|
23
|
-
class SourceTypes < Stripe::StripeObject
|
24
|
-
attr_reader :bank_account, :card, :fpx
|
25
|
-
end
|
26
|
-
attr_reader :amount, :currency, :source_types
|
27
|
-
end
|
28
|
-
|
29
|
-
class ConnectReserved < Stripe::StripeObject
|
30
|
-
class SourceTypes < Stripe::StripeObject
|
31
|
-
attr_reader :bank_account, :card, :fpx
|
32
|
-
end
|
33
|
-
attr_reader :amount, :currency, :source_types
|
34
|
-
end
|
35
|
-
|
36
|
-
class InstantAvailable < Stripe::StripeObject
|
37
|
-
class NetAvailable < Stripe::StripeObject
|
38
|
-
class SourceTypes < Stripe::StripeObject
|
39
|
-
attr_reader :bank_account, :card, :fpx
|
40
|
-
end
|
41
|
-
attr_reader :amount, :destination, :source_types
|
42
|
-
end
|
43
|
-
|
44
|
-
class SourceTypes < Stripe::StripeObject
|
45
|
-
attr_reader :bank_account, :card, :fpx
|
46
|
-
end
|
47
|
-
attr_reader :amount, :currency, :net_available, :source_types
|
48
|
-
end
|
49
|
-
|
50
|
-
class Issuing < Stripe::StripeObject
|
51
|
-
class Available < Stripe::StripeObject
|
52
|
-
class SourceTypes < Stripe::StripeObject
|
53
|
-
attr_reader :bank_account, :card, :fpx
|
54
|
-
end
|
55
|
-
attr_reader :amount, :currency, :source_types
|
56
|
-
end
|
57
|
-
attr_reader :available
|
58
|
-
end
|
59
|
-
|
60
|
-
class Pending < Stripe::StripeObject
|
61
|
-
class SourceTypes < Stripe::StripeObject
|
62
|
-
attr_reader :bank_account, :card, :fpx
|
63
|
-
end
|
64
|
-
attr_reader :amount, :currency, :source_types
|
65
|
-
end
|
66
|
-
# Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
|
67
|
-
attr_reader :available
|
68
|
-
# Funds held due to negative balances on connected accounts where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property.
|
69
|
-
attr_reader :connect_reserved
|
70
|
-
# Funds that you can pay out using Instant Payouts.
|
71
|
-
attr_reader :instant_available
|
72
|
-
# Attribute for field issuing
|
73
|
-
attr_reader :issuing
|
74
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
75
|
-
attr_reader :livemode
|
76
|
-
# String representing the object's type. Objects of the same type share the same value.
|
77
|
-
attr_reader :object
|
78
|
-
# Funds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in the `source_types` property.
|
79
|
-
attr_reader :pending
|
80
21
|
end
|
81
22
|
end
|
@@ -14,48 +14,14 @@ module Stripe
|
|
14
14
|
"balance_transaction"
|
15
15
|
end
|
16
16
|
|
17
|
-
class FeeDetail < Stripe::StripeObject
|
18
|
-
attr_reader :amount, :application, :currency, :description, :type
|
19
|
-
end
|
20
|
-
# Gross amount of this transaction (in cents (or local equivalent)). A positive value represents funds charged to another party, and a negative value represents funds sent to another party.
|
21
|
-
attr_reader :amount
|
22
|
-
# The date that the transaction's net funds become available in the Stripe balance.
|
23
|
-
attr_reader :available_on
|
24
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
25
|
-
attr_reader :created
|
26
|
-
# 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).
|
27
|
-
attr_reader :currency
|
28
|
-
# An arbitrary string attached to the object. Often useful for displaying to users.
|
29
|
-
attr_reader :description
|
30
|
-
# If applicable, this transaction uses an exchange rate. If money converts from currency A to currency B, then the `amount` in currency A, multipled by the `exchange_rate`, equals the `amount` in currency B. For example, if you charge a customer 10.00 EUR, the PaymentIntent's `amount` is `1000` and `currency` is `eur`. If this converts to 12.34 USD in your Stripe account, the BalanceTransaction's `amount` is `1234`, its `currency` is `usd`, and the `exchange_rate` is `1.234`.
|
31
|
-
attr_reader :exchange_rate
|
32
|
-
# Fees (in cents (or local equivalent)) paid for this transaction. Represented as a positive integer when assessed.
|
33
|
-
attr_reader :fee
|
34
|
-
# Detailed breakdown of fees (in cents (or local equivalent)) paid for this transaction.
|
35
|
-
attr_reader :fee_details
|
36
|
-
# Unique identifier for the object.
|
37
|
-
attr_reader :id
|
38
|
-
# Net impact to a Stripe balance (in cents (or local equivalent)). A positive value represents incrementing a Stripe balance, and a negative value decrementing a Stripe balance. You can calculate the net impact of a transaction on a balance by `amount` - `fee`
|
39
|
-
attr_reader :net
|
40
|
-
# String representing the object's type. Objects of the same type share the same value.
|
41
|
-
attr_reader :object
|
42
|
-
# Learn more about how [reporting categories](https://stripe.com/docs/reports/reporting-categories) can help you understand balance transactions from an accounting perspective.
|
43
|
-
attr_reader :reporting_category
|
44
|
-
# This transaction relates to the Stripe object.
|
45
|
-
attr_reader :source
|
46
|
-
# The transaction's net funds status in the Stripe balance, which are either `available` or `pending`.
|
47
|
-
attr_reader :status
|
48
|
-
# Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
|
49
|
-
attr_reader :type
|
50
|
-
|
51
17
|
# Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.
|
52
18
|
#
|
53
19
|
# Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
|
54
|
-
def self.list(
|
20
|
+
def self.list(params = {}, opts = {})
|
55
21
|
request_stripe_object(
|
56
22
|
method: :get,
|
57
23
|
path: "/v1/balance_transactions",
|
58
|
-
params:
|
24
|
+
params: params,
|
59
25
|
opts: opts
|
60
26
|
)
|
61
27
|
end
|
@@ -19,62 +19,6 @@ module Stripe
|
|
19
19
|
"bank_account"
|
20
20
|
end
|
21
21
|
|
22
|
-
class FutureRequirements < Stripe::StripeObject
|
23
|
-
class Error < Stripe::StripeObject
|
24
|
-
attr_reader :code, :reason, :requirement
|
25
|
-
end
|
26
|
-
attr_reader :currently_due, :errors, :past_due, :pending_verification
|
27
|
-
end
|
28
|
-
|
29
|
-
class Requirements < Stripe::StripeObject
|
30
|
-
class Error < Stripe::StripeObject
|
31
|
-
attr_reader :code, :reason, :requirement
|
32
|
-
end
|
33
|
-
attr_reader :currently_due, :errors, :past_due, :pending_verification
|
34
|
-
end
|
35
|
-
# The ID of the account that the bank account is associated with.
|
36
|
-
attr_reader :account
|
37
|
-
# The name of the person or business that owns the bank account.
|
38
|
-
attr_reader :account_holder_name
|
39
|
-
# The type of entity that holds the account. This can be either `individual` or `company`.
|
40
|
-
attr_reader :account_holder_type
|
41
|
-
# The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
|
42
|
-
attr_reader :account_type
|
43
|
-
# A set of available payout methods for this bank account. Only values from this set should be passed as the `method` when creating a payout.
|
44
|
-
attr_reader :available_payout_methods
|
45
|
-
# Name of the bank associated with the routing number (e.g., `WELLS FARGO`).
|
46
|
-
attr_reader :bank_name
|
47
|
-
# Two-letter ISO code representing the country the bank account is located in.
|
48
|
-
attr_reader :country
|
49
|
-
# Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank account.
|
50
|
-
attr_reader :currency
|
51
|
-
# The ID of the customer that the bank account is associated with.
|
52
|
-
attr_reader :customer
|
53
|
-
# Whether this bank account is the default external account for its currency.
|
54
|
-
attr_reader :default_for_currency
|
55
|
-
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
56
|
-
attr_reader :fingerprint
|
57
|
-
# Information about the [upcoming new requirements for the bank account](https://stripe.com/docs/connect/custom-accounts/future-requirements), including what information needs to be collected, and by when.
|
58
|
-
attr_reader :future_requirements
|
59
|
-
# Unique identifier for the object.
|
60
|
-
attr_reader :id
|
61
|
-
# The last four digits of the bank account number.
|
62
|
-
attr_reader :last4
|
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
|
-
# String representing the object's type. Objects of the same type share the same value.
|
66
|
-
attr_reader :object
|
67
|
-
# Information about the requirements for the bank account, including what information needs to be collected.
|
68
|
-
attr_reader :requirements
|
69
|
-
# The routing transit number for the bank account.
|
70
|
-
attr_reader :routing_number
|
71
|
-
# For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn’t enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a payout sent to this bank account fails, we'll set the status to `errored` and will not continue to send [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) until the bank details are updated.
|
72
|
-
#
|
73
|
-
# For external accounts, possible values are `new`, `errored` and `verification_failed`. If a payout fails, the status is set to `errored` and scheduled payouts are stopped until account details are updated. In the US and India, if we can't [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we'll set the status to `verification_failed`. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply.
|
74
|
-
attr_reader :status
|
75
|
-
# Always true for a deleted object
|
76
|
-
attr_reader :deleted
|
77
|
-
|
78
22
|
def verify(params = {}, opts = {})
|
79
23
|
request_stripe_object(
|
80
24
|
method: :post,
|
@@ -94,12 +38,10 @@ module Stripe
|
|
94
38
|
end
|
95
39
|
|
96
40
|
def resource_url
|
97
|
-
if
|
41
|
+
if respond_to?(:customer)
|
98
42
|
"#{Customer.resource_url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}"
|
99
|
-
elsif
|
43
|
+
elsif respond_to?(:account)
|
100
44
|
"#{Account.resource_url}/#{CGI.escape(account)}/external_accounts/#{CGI.escape(id)}"
|
101
|
-
else
|
102
|
-
raise InvalidRequestError, "Could not determine which URL to request: [account, customer] fields are all null"
|
103
45
|
end
|
104
46
|
end
|
105
47
|
|
@@ -139,7 +81,7 @@ module Stripe
|
|
139
81
|
)
|
140
82
|
end
|
141
83
|
|
142
|
-
def self.list(
|
84
|
+
def self.list(params = {}, opts = {})
|
143
85
|
raise NotImplementedError,
|
144
86
|
"Bank accounts cannot be listed without a customer ID or an " \
|
145
87
|
"account ID. List bank accounts using " \
|
@@ -13,27 +13,6 @@ module Stripe
|
|
13
13
|
"billing.alert"
|
14
14
|
end
|
15
15
|
|
16
|
-
class UsageThreshold < Stripe::StripeObject
|
17
|
-
class Filter < Stripe::StripeObject
|
18
|
-
attr_reader :customer, :type
|
19
|
-
end
|
20
|
-
attr_reader :filters, :gte, :meter, :recurrence
|
21
|
-
end
|
22
|
-
# Defines the type of the alert.
|
23
|
-
attr_reader :alert_type
|
24
|
-
# Unique identifier for the object.
|
25
|
-
attr_reader :id
|
26
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
27
|
-
attr_reader :livemode
|
28
|
-
# String representing the object's type. Objects of the same type share the same value.
|
29
|
-
attr_reader :object
|
30
|
-
# Status of the alert. This can be active, inactive or archived.
|
31
|
-
attr_reader :status
|
32
|
-
# Title of the alert.
|
33
|
-
attr_reader :title
|
34
|
-
# Encapsulates configuration of the alert to monitor usage on a specific [Billing Meter](https://stripe.com/docs/api/billing/meter).
|
35
|
-
attr_reader :usage_threshold
|
36
|
-
|
37
16
|
# Reactivates this alert, allowing it to trigger again.
|
38
17
|
def activate(params = {}, opts = {})
|
39
18
|
request_stripe_object(
|
@@ -100,8 +79,8 @@ module Stripe
|
|
100
79
|
end
|
101
80
|
|
102
81
|
# Lists billing active and inactive alerts
|
103
|
-
def self.list(
|
104
|
-
request_stripe_object(method: :get, path: "/v1/billing/alerts", params:
|
82
|
+
def self.list(params = {}, opts = {})
|
83
|
+
request_stripe_object(method: :get, path: "/v1/billing/alerts", params: params, opts: opts)
|
105
84
|
end
|
106
85
|
end
|
107
86
|
end
|
@@ -9,31 +9,6 @@ module Stripe
|
|
9
9
|
def self.object_name
|
10
10
|
"billing.credit_balance_summary"
|
11
11
|
end
|
12
|
-
|
13
|
-
class Balance < Stripe::StripeObject
|
14
|
-
class AvailableBalance < Stripe::StripeObject
|
15
|
-
class Monetary < Stripe::StripeObject
|
16
|
-
attr_reader :currency, :value
|
17
|
-
end
|
18
|
-
attr_reader :monetary, :type
|
19
|
-
end
|
20
|
-
|
21
|
-
class LedgerBalance < Stripe::StripeObject
|
22
|
-
class Monetary < Stripe::StripeObject
|
23
|
-
attr_reader :currency, :value
|
24
|
-
end
|
25
|
-
attr_reader :monetary, :type
|
26
|
-
end
|
27
|
-
attr_reader :available_balance, :ledger_balance
|
28
|
-
end
|
29
|
-
# The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry.
|
30
|
-
attr_reader :balances
|
31
|
-
# The customer the balance is for.
|
32
|
-
attr_reader :customer
|
33
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
34
|
-
attr_reader :livemode
|
35
|
-
# String representing the object's type. Objects of the same type share the same value.
|
36
|
-
attr_reader :object
|
37
12
|
end
|
38
13
|
end
|
39
14
|
end
|
@@ -12,60 +12,12 @@ module Stripe
|
|
12
12
|
"billing.credit_balance_transaction"
|
13
13
|
end
|
14
14
|
|
15
|
-
class Credit < Stripe::StripeObject
|
16
|
-
class Amount < Stripe::StripeObject
|
17
|
-
class Monetary < Stripe::StripeObject
|
18
|
-
attr_reader :currency, :value
|
19
|
-
end
|
20
|
-
attr_reader :monetary, :type
|
21
|
-
end
|
22
|
-
|
23
|
-
class CreditsApplicationInvoiceVoided < Stripe::StripeObject
|
24
|
-
attr_reader :invoice, :invoice_line_item
|
25
|
-
end
|
26
|
-
attr_reader :amount, :credits_application_invoice_voided, :type
|
27
|
-
end
|
28
|
-
|
29
|
-
class Debit < Stripe::StripeObject
|
30
|
-
class Amount < Stripe::StripeObject
|
31
|
-
class Monetary < Stripe::StripeObject
|
32
|
-
attr_reader :currency, :value
|
33
|
-
end
|
34
|
-
attr_reader :monetary, :type
|
35
|
-
end
|
36
|
-
|
37
|
-
class CreditsApplied < Stripe::StripeObject
|
38
|
-
attr_reader :invoice, :invoice_line_item
|
39
|
-
end
|
40
|
-
attr_reader :amount, :credits_applied, :type
|
41
|
-
end
|
42
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
43
|
-
attr_reader :created
|
44
|
-
# Credit details for this credit balance transaction. Only present if type is `credit`.
|
45
|
-
attr_reader :credit
|
46
|
-
# The credit grant associated with this credit balance transaction.
|
47
|
-
attr_reader :credit_grant
|
48
|
-
# Debit details for this credit balance transaction. Only present if type is `debit`.
|
49
|
-
attr_reader :debit
|
50
|
-
# The effective time of this credit balance transaction.
|
51
|
-
attr_reader :effective_at
|
52
|
-
# Unique identifier for the object.
|
53
|
-
attr_reader :id
|
54
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
55
|
-
attr_reader :livemode
|
56
|
-
# String representing the object's type. Objects of the same type share the same value.
|
57
|
-
attr_reader :object
|
58
|
-
# ID of the test clock this credit balance transaction belongs to.
|
59
|
-
attr_reader :test_clock
|
60
|
-
# The type of credit balance transaction (credit or debit).
|
61
|
-
attr_reader :type
|
62
|
-
|
63
15
|
# Retrieve a list of credit balance transactions.
|
64
|
-
def self.list(
|
16
|
+
def self.list(params = {}, opts = {})
|
65
17
|
request_stripe_object(
|
66
18
|
method: :get,
|
67
19
|
path: "/v1/billing/credit_balance_transactions",
|
68
|
-
params:
|
20
|
+
params: params,
|
69
21
|
opts: opts
|
70
22
|
)
|
71
23
|
end
|
@@ -16,50 +16,6 @@ module Stripe
|
|
16
16
|
"billing.credit_grant"
|
17
17
|
end
|
18
18
|
|
19
|
-
class Amount < Stripe::StripeObject
|
20
|
-
class Monetary < Stripe::StripeObject
|
21
|
-
attr_reader :currency, :value
|
22
|
-
end
|
23
|
-
attr_reader :monetary, :type
|
24
|
-
end
|
25
|
-
|
26
|
-
class ApplicabilityConfig < Stripe::StripeObject
|
27
|
-
class Scope < Stripe::StripeObject
|
28
|
-
attr_reader :price_type
|
29
|
-
end
|
30
|
-
attr_reader :scope
|
31
|
-
end
|
32
|
-
# Attribute for field amount
|
33
|
-
attr_reader :amount
|
34
|
-
# Attribute for field applicability_config
|
35
|
-
attr_reader :applicability_config
|
36
|
-
# The category of this credit grant. This is for tracking purposes and isn't displayed to the customer.
|
37
|
-
attr_reader :category
|
38
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
39
|
-
attr_reader :created
|
40
|
-
# ID of the customer receiving the billing credits.
|
41
|
-
attr_reader :customer
|
42
|
-
# The time when the billing credits become effective-when they're eligible for use.
|
43
|
-
attr_reader :effective_at
|
44
|
-
# The time when the billing credits expire. If not present, the billing credits don't expire.
|
45
|
-
attr_reader :expires_at
|
46
|
-
# Unique identifier for the object.
|
47
|
-
attr_reader :id
|
48
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
49
|
-
attr_reader :livemode
|
50
|
-
# 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.
|
51
|
-
attr_reader :metadata
|
52
|
-
# A descriptive name shown in dashboard.
|
53
|
-
attr_reader :name
|
54
|
-
# String representing the object's type. Objects of the same type share the same value.
|
55
|
-
attr_reader :object
|
56
|
-
# ID of the test clock this credit grant belongs to.
|
57
|
-
attr_reader :test_clock
|
58
|
-
# Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
59
|
-
attr_reader :updated
|
60
|
-
# The time when this credit grant was voided. If not present, the credit grant hasn't been voided.
|
61
|
-
attr_reader :voided_at
|
62
|
-
|
63
19
|
# Creates a credit grant.
|
64
20
|
def self.create(params = {}, opts = {})
|
65
21
|
request_stripe_object(
|
@@ -91,11 +47,11 @@ module Stripe
|
|
91
47
|
end
|
92
48
|
|
93
49
|
# Retrieve a list of credit grants.
|
94
|
-
def self.list(
|
50
|
+
def self.list(params = {}, opts = {})
|
95
51
|
request_stripe_object(
|
96
52
|
method: :get,
|
97
53
|
path: "/v1/billing/credit_grants",
|
98
|
-
params:
|
54
|
+
params: params,
|
99
55
|
opts: opts
|
100
56
|
)
|
101
57
|
end
|
@@ -21,48 +21,6 @@ module Stripe
|
|
21
21
|
operations: %i[list],
|
22
22
|
resource_plural: "event_summaries"
|
23
23
|
|
24
|
-
class CustomerMapping < Stripe::StripeObject
|
25
|
-
attr_reader :event_payload_key, :type
|
26
|
-
end
|
27
|
-
|
28
|
-
class DefaultAggregation < Stripe::StripeObject
|
29
|
-
attr_reader :formula
|
30
|
-
end
|
31
|
-
|
32
|
-
class StatusTransitions < Stripe::StripeObject
|
33
|
-
attr_reader :deactivated_at
|
34
|
-
end
|
35
|
-
|
36
|
-
class ValueSettings < Stripe::StripeObject
|
37
|
-
attr_reader :event_payload_key
|
38
|
-
end
|
39
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
40
|
-
attr_reader :created
|
41
|
-
# Attribute for field customer_mapping
|
42
|
-
attr_reader :customer_mapping
|
43
|
-
# Attribute for field default_aggregation
|
44
|
-
attr_reader :default_aggregation
|
45
|
-
# The meter's name.
|
46
|
-
attr_reader :display_name
|
47
|
-
# The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events.
|
48
|
-
attr_reader :event_name
|
49
|
-
# The time window to pre-aggregate meter events for, if any.
|
50
|
-
attr_reader :event_time_window
|
51
|
-
# Unique identifier for the object.
|
52
|
-
attr_reader :id
|
53
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
54
|
-
attr_reader :livemode
|
55
|
-
# String representing the object's type. Objects of the same type share the same value.
|
56
|
-
attr_reader :object
|
57
|
-
# The meter's status.
|
58
|
-
attr_reader :status
|
59
|
-
# Attribute for field status_transitions
|
60
|
-
attr_reader :status_transitions
|
61
|
-
# Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
62
|
-
attr_reader :updated
|
63
|
-
# Attribute for field value_settings
|
64
|
-
attr_reader :value_settings
|
65
|
-
|
66
24
|
# Creates a billing meter.
|
67
25
|
def self.create(params = {}, opts = {})
|
68
26
|
request_stripe_object(method: :post, path: "/v1/billing/meters", params: params, opts: opts)
|
@@ -89,8 +47,8 @@ module Stripe
|
|
89
47
|
end
|
90
48
|
|
91
49
|
# Retrieve a list of billing meters.
|
92
|
-
def self.list(
|
93
|
-
request_stripe_object(method: :get, path: "/v1/billing/meters", params:
|
50
|
+
def self.list(params = {}, opts = {})
|
51
|
+
request_stripe_object(method: :get, path: "/v1/billing/meters", params: params, opts: opts)
|
94
52
|
end
|
95
53
|
|
96
54
|
# When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.
|
@@ -12,21 +12,6 @@ module Stripe
|
|
12
12
|
"billing.meter_event"
|
13
13
|
end
|
14
14
|
|
15
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
16
|
-
attr_reader :created
|
17
|
-
# The name of the meter event. Corresponds with the `event_name` field on a meter.
|
18
|
-
attr_reader :event_name
|
19
|
-
# A unique identifier for the event.
|
20
|
-
attr_reader :identifier
|
21
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
22
|
-
attr_reader :livemode
|
23
|
-
# String representing the object's type. Objects of the same type share the same value.
|
24
|
-
attr_reader :object
|
25
|
-
# The payload of the event. This contains the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and `value_settings.event_payload_key` (default is `value`). Read more about the [payload](https://stripe.com/docs/billing/subscriptions/usage-based/recording-usage#payload-key-overrides).
|
26
|
-
attr_reader :payload
|
27
|
-
# The timestamp passed in when creating the event. Measured in seconds since the Unix epoch.
|
28
|
-
attr_reader :timestamp
|
29
|
-
|
30
15
|
# Creates a billing meter event.
|
31
16
|
def self.create(params = {}, opts = {})
|
32
17
|
request_stripe_object(
|
@@ -12,22 +12,6 @@ module Stripe
|
|
12
12
|
"billing.meter_event_adjustment"
|
13
13
|
end
|
14
14
|
|
15
|
-
class Cancel < Stripe::StripeObject
|
16
|
-
attr_reader :identifier
|
17
|
-
end
|
18
|
-
# Specifies which event to cancel.
|
19
|
-
attr_reader :cancel
|
20
|
-
# The name of the meter event. Corresponds with the `event_name` field on a meter.
|
21
|
-
attr_reader :event_name
|
22
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
23
|
-
attr_reader :livemode
|
24
|
-
# String representing the object's type. Objects of the same type share the same value.
|
25
|
-
attr_reader :object
|
26
|
-
# The meter event adjustment's status.
|
27
|
-
attr_reader :status
|
28
|
-
# Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
|
29
|
-
attr_reader :type
|
30
|
-
|
31
15
|
# Creates a billing meter event adjustment.
|
32
16
|
def self.create(params = {}, opts = {})
|
33
17
|
request_stripe_object(
|
@@ -10,21 +10,6 @@ module Stripe
|
|
10
10
|
def self.object_name
|
11
11
|
"billing.meter_event_summary"
|
12
12
|
end
|
13
|
-
|
14
|
-
# Aggregated value of all the events within `start_time` (inclusive) and `end_time` (inclusive). The aggregation strategy is defined on meter via `default_aggregation`.
|
15
|
-
attr_reader :aggregated_value
|
16
|
-
# End timestamp for this event summary (exclusive). Must be aligned with minute boundaries.
|
17
|
-
attr_reader :end_time
|
18
|
-
# Unique identifier for the object.
|
19
|
-
attr_reader :id
|
20
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
21
|
-
attr_reader :livemode
|
22
|
-
# The meter associated with this event summary.
|
23
|
-
attr_reader :meter
|
24
|
-
# String representing the object's type. Objects of the same type share the same value.
|
25
|
-
attr_reader :object
|
26
|
-
# Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
|
27
|
-
attr_reader :start_time
|
28
13
|
end
|
29
14
|
end
|
30
15
|
end
|
@@ -14,76 +14,6 @@ module Stripe
|
|
14
14
|
"billing_portal.configuration"
|
15
15
|
end
|
16
16
|
|
17
|
-
class BusinessProfile < Stripe::StripeObject
|
18
|
-
attr_reader :headline, :privacy_policy_url, :terms_of_service_url
|
19
|
-
end
|
20
|
-
|
21
|
-
class Features < Stripe::StripeObject
|
22
|
-
class CustomerUpdate < Stripe::StripeObject
|
23
|
-
attr_reader :allowed_updates, :enabled
|
24
|
-
end
|
25
|
-
|
26
|
-
class InvoiceHistory < Stripe::StripeObject
|
27
|
-
attr_reader :enabled
|
28
|
-
end
|
29
|
-
|
30
|
-
class PaymentMethodUpdate < Stripe::StripeObject
|
31
|
-
attr_reader :enabled
|
32
|
-
end
|
33
|
-
|
34
|
-
class SubscriptionCancel < Stripe::StripeObject
|
35
|
-
class CancellationReason < Stripe::StripeObject
|
36
|
-
attr_reader :enabled, :options
|
37
|
-
end
|
38
|
-
attr_reader :cancellation_reason, :enabled, :mode, :proration_behavior
|
39
|
-
end
|
40
|
-
|
41
|
-
class SubscriptionUpdate < Stripe::StripeObject
|
42
|
-
class Product < Stripe::StripeObject
|
43
|
-
attr_reader :prices, :product
|
44
|
-
end
|
45
|
-
|
46
|
-
class ScheduleAtPeriodEnd < Stripe::StripeObject
|
47
|
-
class Condition < Stripe::StripeObject
|
48
|
-
attr_reader :type
|
49
|
-
end
|
50
|
-
attr_reader :conditions
|
51
|
-
end
|
52
|
-
attr_reader :default_allowed_updates, :enabled, :products, :proration_behavior, :schedule_at_period_end
|
53
|
-
end
|
54
|
-
attr_reader :customer_update, :invoice_history, :payment_method_update, :subscription_cancel, :subscription_update
|
55
|
-
end
|
56
|
-
|
57
|
-
class LoginPage < Stripe::StripeObject
|
58
|
-
attr_reader :enabled, :url
|
59
|
-
end
|
60
|
-
# Whether the configuration is active and can be used to create portal sessions.
|
61
|
-
attr_reader :active
|
62
|
-
# ID of the Connect Application that created the configuration.
|
63
|
-
attr_reader :application
|
64
|
-
# Attribute for field business_profile
|
65
|
-
attr_reader :business_profile
|
66
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
67
|
-
attr_reader :created
|
68
|
-
# The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
|
69
|
-
attr_reader :default_return_url
|
70
|
-
# Attribute for field features
|
71
|
-
attr_reader :features
|
72
|
-
# Unique identifier for the object.
|
73
|
-
attr_reader :id
|
74
|
-
# Whether the configuration is the default. If `true`, this configuration can be managed in the Dashboard and portal sessions will use this configuration unless it is overriden when creating the session.
|
75
|
-
attr_reader :is_default
|
76
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
77
|
-
attr_reader :livemode
|
78
|
-
# Attribute for field login_page
|
79
|
-
attr_reader :login_page
|
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
|
-
# String representing the object's type. Objects of the same type share the same value.
|
83
|
-
attr_reader :object
|
84
|
-
# Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
85
|
-
attr_reader :updated
|
86
|
-
|
87
17
|
# Creates a configuration that describes the functionality and behavior of a PortalSession
|
88
18
|
def self.create(params = {}, opts = {})
|
89
19
|
request_stripe_object(
|
@@ -95,11 +25,11 @@ module Stripe
|
|
95
25
|
end
|
96
26
|
|
97
27
|
# Returns a list of configurations that describe the functionality of the customer portal.
|
98
|
-
def self.list(
|
28
|
+
def self.list(params = {}, opts = {})
|
99
29
|
request_stripe_object(
|
100
30
|
method: :get,
|
101
31
|
path: "/v1/billing_portal/configurations",
|
102
|
-
params:
|
32
|
+
params: params,
|
103
33
|
opts: opts
|
104
34
|
)
|
105
35
|
end
|