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
@@ -20,35 +20,6 @@ module Stripe
|
|
20
20
|
"reporting.report_run"
|
21
21
|
end
|
22
22
|
|
23
|
-
class Parameters < Stripe::StripeObject
|
24
|
-
attr_reader :columns, :connected_account, :currency, :interval_end, :interval_start, :payout, :reporting_category, :timezone
|
25
|
-
end
|
26
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
27
|
-
attr_reader :created
|
28
|
-
# If something should go wrong during the run, a message about the failure (populated when
|
29
|
-
# `status=failed`).
|
30
|
-
attr_reader :error
|
31
|
-
# Unique identifier for the object.
|
32
|
-
attr_reader :id
|
33
|
-
# `true` if the report is run on live mode data and `false` if it is run on test mode data.
|
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
|
-
# Attribute for field parameters
|
38
|
-
attr_reader :parameters
|
39
|
-
# The ID of the [report type](https://stripe.com/docs/reports/report-types) to run, such as `"balance.summary.1"`.
|
40
|
-
attr_reader :report_type
|
41
|
-
# The file object representing the result of the report run (populated when
|
42
|
-
# `status=succeeded`).
|
43
|
-
attr_reader :result
|
44
|
-
# Status of this report run. This will be `pending` when the run is initially created.
|
45
|
-
# When the run finishes, this will be set to `succeeded` and the `result` field will be populated.
|
46
|
-
# Rarely, we may encounter an error, at which point this will be set to `failed` and the `error` field will be populated.
|
47
|
-
attr_reader :status
|
48
|
-
# Timestamp at which this run successfully finished (populated when
|
49
|
-
# `status=succeeded`). Measured in seconds since the Unix epoch.
|
50
|
-
attr_reader :succeeded_at
|
51
|
-
|
52
23
|
# Creates a new object and begin running the report. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).)
|
53
24
|
def self.create(params = {}, opts = {})
|
54
25
|
request_stripe_object(
|
@@ -60,11 +31,11 @@ module Stripe
|
|
60
31
|
end
|
61
32
|
|
62
33
|
# Returns a list of Report Runs, with the most recent appearing first.
|
63
|
-
def self.list(
|
34
|
+
def self.list(params = {}, opts = {})
|
64
35
|
request_stripe_object(
|
65
36
|
method: :get,
|
66
37
|
path: "/v1/reporting/report_runs",
|
67
|
-
params:
|
38
|
+
params: params,
|
68
39
|
opts: opts
|
69
40
|
)
|
70
41
|
end
|
@@ -19,31 +19,12 @@ module Stripe
|
|
19
19
|
"reporting.report_type"
|
20
20
|
end
|
21
21
|
|
22
|
-
# Most recent time for which this Report Type is available. Measured in seconds since the Unix epoch.
|
23
|
-
attr_reader :data_available_end
|
24
|
-
# Earliest time for which this Report Type is available. Measured in seconds since the Unix epoch.
|
25
|
-
attr_reader :data_available_start
|
26
|
-
# List of column names that are included by default when this Report Type gets run. (If the Report Type doesn't support the `columns` parameter, this will be null.)
|
27
|
-
attr_reader :default_columns
|
28
|
-
# The [ID of the Report Type](https://stripe.com/docs/reporting/statements/api#available-report-types), such as `balance.summary.1`.
|
29
|
-
attr_reader :id
|
30
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
31
|
-
attr_reader :livemode
|
32
|
-
# Human-readable name of the Report Type
|
33
|
-
attr_reader :name
|
34
|
-
# String representing the object's type. Objects of the same type share the same value.
|
35
|
-
attr_reader :object
|
36
|
-
# When this Report Type was latest updated. Measured in seconds since the Unix epoch.
|
37
|
-
attr_reader :updated
|
38
|
-
# Version of the Report Type. Different versions report with the same ID will have the same purpose, but may take different run parameters or have different result schemas.
|
39
|
-
attr_reader :version
|
40
|
-
|
41
22
|
# Returns a full list of Report Types.
|
42
|
-
def self.list(
|
23
|
+
def self.list(params = {}, opts = {})
|
43
24
|
request_stripe_object(
|
44
25
|
method: :get,
|
45
26
|
path: "/v1/reporting/report_types",
|
46
|
-
params:
|
27
|
+
params: params,
|
47
28
|
opts: opts
|
48
29
|
)
|
49
30
|
end
|
@@ -23,27 +23,6 @@ module Stripe
|
|
23
23
|
"transfer_reversal"
|
24
24
|
end
|
25
25
|
|
26
|
-
# Amount, in cents (or local equivalent).
|
27
|
-
attr_reader :amount
|
28
|
-
# Balance transaction that describes the impact on your account balance.
|
29
|
-
attr_reader :balance_transaction
|
30
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
31
|
-
attr_reader :created
|
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).
|
33
|
-
attr_reader :currency
|
34
|
-
# Linked payment refund for the transfer reversal.
|
35
|
-
attr_reader :destination_payment_refund
|
36
|
-
# Unique identifier for the object.
|
37
|
-
attr_reader :id
|
38
|
-
# 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.
|
39
|
-
attr_reader :metadata
|
40
|
-
# String representing the object's type. Objects of the same type share the same value.
|
41
|
-
attr_reader :object
|
42
|
-
# ID of the refund responsible for the transfer reversal.
|
43
|
-
attr_reader :source_refund
|
44
|
-
# ID of the transfer that was reversed.
|
45
|
-
attr_reader :transfer
|
46
|
-
|
47
26
|
def resource_url
|
48
27
|
"#{Transfer.resource_url}/#{CGI.escape(transfer)}/reversals" \
|
49
28
|
"/#{CGI.escape(id)}"
|
@@ -14,42 +14,6 @@ module Stripe
|
|
14
14
|
"review"
|
15
15
|
end
|
16
16
|
|
17
|
-
class IpAddressLocation < Stripe::StripeObject
|
18
|
-
attr_reader :city, :country, :latitude, :longitude, :region
|
19
|
-
end
|
20
|
-
|
21
|
-
class Session < Stripe::StripeObject
|
22
|
-
attr_reader :browser, :device, :platform, :version
|
23
|
-
end
|
24
|
-
# The ZIP or postal code of the card used, if applicable.
|
25
|
-
attr_reader :billing_zip
|
26
|
-
# The charge associated with this review.
|
27
|
-
attr_reader :charge
|
28
|
-
# The reason the review was closed, or null if it has not yet been closed. One of `approved`, `refunded`, `refunded_as_fraud`, `disputed`, or `redacted`.
|
29
|
-
attr_reader :closed_reason
|
30
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
31
|
-
attr_reader :created
|
32
|
-
# Unique identifier for the object.
|
33
|
-
attr_reader :id
|
34
|
-
# The IP address where the payment originated.
|
35
|
-
attr_reader :ip_address
|
36
|
-
# Information related to the location of the payment. Note that this information is an approximation and attempts to locate the nearest population center - it should not be used to determine a specific address.
|
37
|
-
attr_reader :ip_address_location
|
38
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
39
|
-
attr_reader :livemode
|
40
|
-
# String representing the object's type. Objects of the same type share the same value.
|
41
|
-
attr_reader :object
|
42
|
-
# If `true`, the review needs action.
|
43
|
-
attr_reader :open
|
44
|
-
# The reason the review was opened. One of `rule` or `manual`.
|
45
|
-
attr_reader :opened_reason
|
46
|
-
# The PaymentIntent ID associated with this review, if one exists.
|
47
|
-
attr_reader :payment_intent
|
48
|
-
# The reason the review is currently open or closed. One of `rule`, `manual`, `approved`, `refunded`, `refunded_as_fraud`, `disputed`, or `redacted`.
|
49
|
-
attr_reader :reason
|
50
|
-
# Information related to the browsing session of the user who initiated the payment.
|
51
|
-
attr_reader :session
|
52
|
-
|
53
17
|
# Approves a Review object, closing it and removing it from the list of reviews.
|
54
18
|
def approve(params = {}, opts = {})
|
55
19
|
request_stripe_object(
|
@@ -71,8 +35,8 @@ module Stripe
|
|
71
35
|
end
|
72
36
|
|
73
37
|
# Returns a list of Review objects that have open set to true. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
74
|
-
def self.list(
|
75
|
-
request_stripe_object(method: :get, path: "/v1/reviews", params:
|
38
|
+
def self.list(params = {}, opts = {})
|
39
|
+
request_stripe_object(method: :get, path: "/v1/reviews", params: params, opts: opts)
|
76
40
|
end
|
77
41
|
end
|
78
42
|
end
|
@@ -14,110 +14,9 @@ module Stripe
|
|
14
14
|
"setup_attempt"
|
15
15
|
end
|
16
16
|
|
17
|
-
class PaymentMethodDetails < Stripe::StripeObject
|
18
|
-
class AcssDebit < Stripe::StripeObject; end
|
19
|
-
class AmazonPay < Stripe::StripeObject; end
|
20
|
-
class AuBecsDebit < Stripe::StripeObject; end
|
21
|
-
class BacsDebit < Stripe::StripeObject; end
|
22
|
-
|
23
|
-
class Bancontact < Stripe::StripeObject
|
24
|
-
attr_reader :bank_code, :bank_name, :bic, :generated_sepa_debit, :generated_sepa_debit_mandate, :iban_last4, :preferred_language, :verified_name
|
25
|
-
end
|
26
|
-
|
27
|
-
class Boleto < Stripe::StripeObject; end
|
28
|
-
|
29
|
-
class Card < Stripe::StripeObject
|
30
|
-
class Checks < Stripe::StripeObject
|
31
|
-
attr_reader :address_line1_check, :address_postal_code_check, :cvc_check
|
32
|
-
end
|
33
|
-
|
34
|
-
class ThreeDSecure < Stripe::StripeObject
|
35
|
-
attr_reader :authentication_flow, :electronic_commerce_indicator, :result, :result_reason, :transaction_id, :version
|
36
|
-
end
|
37
|
-
|
38
|
-
class Wallet < Stripe::StripeObject
|
39
|
-
class ApplePay < Stripe::StripeObject; end
|
40
|
-
class GooglePay < Stripe::StripeObject; end
|
41
|
-
attr_reader :apple_pay, :google_pay, :type
|
42
|
-
end
|
43
|
-
attr_reader :brand, :checks, :country, :description, :exp_month, :exp_year, :fingerprint, :funding, :iin, :issuer, :last4, :network, :three_d_secure, :wallet
|
44
|
-
end
|
45
|
-
|
46
|
-
class CardPresent < Stripe::StripeObject
|
47
|
-
class Offline < Stripe::StripeObject
|
48
|
-
attr_reader :stored_at, :type
|
49
|
-
end
|
50
|
-
attr_reader :generated_card, :offline
|
51
|
-
end
|
52
|
-
|
53
|
-
class Cashapp < Stripe::StripeObject; end
|
54
|
-
|
55
|
-
class IdBankTransfer < Stripe::StripeObject
|
56
|
-
attr_reader :bank, :bank_code, :bank_name, :display_name
|
57
|
-
end
|
58
|
-
|
59
|
-
class Ideal < Stripe::StripeObject
|
60
|
-
attr_reader :bank, :bic, :generated_sepa_debit, :generated_sepa_debit_mandate, :iban_last4, :verified_name
|
61
|
-
end
|
62
|
-
|
63
|
-
class KakaoPay < Stripe::StripeObject; end
|
64
|
-
class Klarna < Stripe::StripeObject; end
|
65
|
-
class KrCard < Stripe::StripeObject; end
|
66
|
-
class Link < Stripe::StripeObject; end
|
67
|
-
class Paypal < Stripe::StripeObject; end
|
68
|
-
class Payto < Stripe::StripeObject; end
|
69
|
-
class RevolutPay < Stripe::StripeObject; end
|
70
|
-
class SepaDebit < Stripe::StripeObject; end
|
71
|
-
|
72
|
-
class Sofort < Stripe::StripeObject
|
73
|
-
attr_reader :bank_code, :bank_name, :bic, :generated_sepa_debit, :generated_sepa_debit_mandate, :iban_last4, :preferred_language, :verified_name
|
74
|
-
end
|
75
|
-
|
76
|
-
class UsBankAccount < Stripe::StripeObject; end
|
77
|
-
attr_reader :acss_debit, :amazon_pay, :au_becs_debit, :bacs_debit, :bancontact, :boleto, :card, :card_present, :cashapp, :id_bank_transfer, :ideal, :kakao_pay, :klarna, :kr_card, :link, :paypal, :payto, :revolut_pay, :sepa_debit, :sofort, :type, :us_bank_account
|
78
|
-
end
|
79
|
-
|
80
|
-
class SetupError < Stripe::StripeObject
|
81
|
-
attr_reader :charge, :code, :decline_code, :doc_url, :message, :network_advice_code, :network_decline_code, :param, :payment_intent, :payment_method, :payment_method_type, :request_log_url, :setup_intent, :source, :type
|
82
|
-
end
|
83
|
-
# The value of [application](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-application) on the SetupIntent at the time of this confirmation.
|
84
|
-
attr_reader :application
|
85
|
-
# If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
|
86
|
-
#
|
87
|
-
# It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
|
88
|
-
attr_reader :attach_to_self
|
89
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
90
|
-
attr_reader :created
|
91
|
-
# The value of [customer](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-customer) on the SetupIntent at the time of this confirmation.
|
92
|
-
attr_reader :customer
|
93
|
-
# Indicates the directions of money movement for which this payment method is intended to be used.
|
94
|
-
#
|
95
|
-
# Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.
|
96
|
-
attr_reader :flow_directions
|
97
|
-
# Unique identifier for the object.
|
98
|
-
attr_reader :id
|
99
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
100
|
-
attr_reader :livemode
|
101
|
-
# String representing the object's type. Objects of the same type share the same value.
|
102
|
-
attr_reader :object
|
103
|
-
# The value of [on_behalf_of](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-on_behalf_of) on the SetupIntent at the time of this confirmation.
|
104
|
-
attr_reader :on_behalf_of
|
105
|
-
# ID of the payment method used with this SetupAttempt.
|
106
|
-
attr_reader :payment_method
|
107
|
-
# Attribute for field payment_method_details
|
108
|
-
attr_reader :payment_method_details
|
109
|
-
# The error encountered during this attempt to confirm the SetupIntent, if any.
|
110
|
-
attr_reader :setup_error
|
111
|
-
# ID of the SetupIntent that this attempt belongs to.
|
112
|
-
attr_reader :setup_intent
|
113
|
-
# Status of this SetupAttempt, one of `requires_confirmation`, `requires_action`, `processing`, `succeeded`, `failed`, or `abandoned`.
|
114
|
-
attr_reader :status
|
115
|
-
# The value of [usage](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-usage) on the SetupIntent at the time of this confirmation, one of `off_session` or `on_session`.
|
116
|
-
attr_reader :usage
|
117
|
-
|
118
17
|
# Returns a list of SetupAttempts that associate with a provided SetupIntent.
|
119
|
-
def self.list(
|
120
|
-
request_stripe_object(method: :get, path: "/v1/setup_attempts", params:
|
18
|
+
def self.list(params = {}, opts = {})
|
19
|
+
request_stripe_object(method: :get, path: "/v1/setup_attempts", params: params, opts: opts)
|
121
20
|
end
|
122
21
|
end
|
123
22
|
end
|
@@ -33,164 +33,6 @@ module Stripe
|
|
33
33
|
"setup_intent"
|
34
34
|
end
|
35
35
|
|
36
|
-
class AutomaticPaymentMethods < Stripe::StripeObject
|
37
|
-
attr_reader :allow_redirects, :enabled
|
38
|
-
end
|
39
|
-
|
40
|
-
class LastSetupError < Stripe::StripeObject
|
41
|
-
attr_reader :charge, :code, :decline_code, :doc_url, :message, :network_advice_code, :network_decline_code, :param, :payment_intent, :payment_method, :payment_method_type, :request_log_url, :setup_intent, :source, :type
|
42
|
-
end
|
43
|
-
|
44
|
-
class NextAction < Stripe::StripeObject
|
45
|
-
class CashappHandleRedirectOrDisplayQrCode < Stripe::StripeObject
|
46
|
-
class QrCode < Stripe::StripeObject
|
47
|
-
attr_reader :expires_at, :image_url_png, :image_url_svg
|
48
|
-
end
|
49
|
-
attr_reader :hosted_instructions_url, :mobile_auth_url, :qr_code
|
50
|
-
end
|
51
|
-
|
52
|
-
class RedirectToUrl < Stripe::StripeObject
|
53
|
-
attr_reader :return_url, :url
|
54
|
-
end
|
55
|
-
|
56
|
-
class VerifyWithMicrodeposits < Stripe::StripeObject
|
57
|
-
attr_reader :arrival_date, :hosted_verification_url, :microdeposit_type
|
58
|
-
end
|
59
|
-
attr_reader :cashapp_handle_redirect_or_display_qr_code, :redirect_to_url, :type, :use_stripe_sdk, :verify_with_microdeposits
|
60
|
-
end
|
61
|
-
|
62
|
-
class PaymentMethodConfigurationDetails < Stripe::StripeObject
|
63
|
-
attr_reader :id, :parent
|
64
|
-
end
|
65
|
-
|
66
|
-
class PaymentMethodOptions < Stripe::StripeObject
|
67
|
-
class AcssDebit < Stripe::StripeObject
|
68
|
-
class MandateOptions < Stripe::StripeObject
|
69
|
-
attr_reader :custom_mandate_url, :default_for, :interval_description, :payment_schedule, :transaction_type
|
70
|
-
end
|
71
|
-
attr_reader :currency, :mandate_options, :verification_method
|
72
|
-
end
|
73
|
-
|
74
|
-
class AmazonPay < Stripe::StripeObject; end
|
75
|
-
|
76
|
-
class BacsDebit < Stripe::StripeObject
|
77
|
-
class MandateOptions < Stripe::StripeObject
|
78
|
-
attr_reader :reference_prefix
|
79
|
-
end
|
80
|
-
attr_reader :mandate_options
|
81
|
-
end
|
82
|
-
|
83
|
-
class Card < Stripe::StripeObject
|
84
|
-
class MandateOptions < Stripe::StripeObject
|
85
|
-
attr_reader :amount, :amount_type, :currency, :description, :end_date, :interval, :interval_count, :reference, :start_date, :supported_types
|
86
|
-
end
|
87
|
-
attr_reader :mandate_options, :network, :request_three_d_secure
|
88
|
-
end
|
89
|
-
|
90
|
-
class CardPresent < Stripe::StripeObject; end
|
91
|
-
|
92
|
-
class Link < Stripe::StripeObject
|
93
|
-
attr_reader :persistent_token
|
94
|
-
end
|
95
|
-
|
96
|
-
class Paypal < Stripe::StripeObject
|
97
|
-
attr_reader :billing_agreement_id, :currency, :subsellers
|
98
|
-
end
|
99
|
-
|
100
|
-
class Payto < Stripe::StripeObject
|
101
|
-
class MandateOptions < Stripe::StripeObject
|
102
|
-
attr_reader :amount, :amount_type, :end_date, :payment_schedule, :payments_per_period, :purpose, :start_date
|
103
|
-
end
|
104
|
-
attr_reader :mandate_options
|
105
|
-
end
|
106
|
-
|
107
|
-
class SepaDebit < Stripe::StripeObject
|
108
|
-
class MandateOptions < Stripe::StripeObject
|
109
|
-
attr_reader :reference_prefix
|
110
|
-
end
|
111
|
-
attr_reader :mandate_options
|
112
|
-
end
|
113
|
-
|
114
|
-
class UsBankAccount < Stripe::StripeObject
|
115
|
-
class FinancialConnections < Stripe::StripeObject
|
116
|
-
class Filters < Stripe::StripeObject
|
117
|
-
attr_reader :account_subcategories, :institution
|
118
|
-
end
|
119
|
-
|
120
|
-
class ManualEntry < Stripe::StripeObject
|
121
|
-
attr_reader :mode
|
122
|
-
end
|
123
|
-
attr_reader :filters, :manual_entry, :permissions, :prefetch, :return_url
|
124
|
-
end
|
125
|
-
|
126
|
-
class MandateOptions < Stripe::StripeObject
|
127
|
-
attr_reader :collection_method
|
128
|
-
end
|
129
|
-
attr_reader :financial_connections, :mandate_options, :verification_method
|
130
|
-
end
|
131
|
-
attr_reader :acss_debit, :amazon_pay, :bacs_debit, :card, :card_present, :link, :paypal, :payto, :sepa_debit, :us_bank_account
|
132
|
-
end
|
133
|
-
# ID of the Connect application that created the SetupIntent.
|
134
|
-
attr_reader :application
|
135
|
-
# If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
|
136
|
-
#
|
137
|
-
# It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
|
138
|
-
attr_reader :attach_to_self
|
139
|
-
# Settings for dynamic payment methods compatible with this Setup Intent
|
140
|
-
attr_reader :automatic_payment_methods
|
141
|
-
# Reason for cancellation of this SetupIntent, one of `abandoned`, `requested_by_customer`, or `duplicate`.
|
142
|
-
attr_reader :cancellation_reason
|
143
|
-
# The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.
|
144
|
-
#
|
145
|
-
# The client secret can be used to complete payment setup from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
|
146
|
-
attr_reader :client_secret
|
147
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
148
|
-
attr_reader :created
|
149
|
-
# ID of the Customer this SetupIntent belongs to, if one exists.
|
150
|
-
#
|
151
|
-
# If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.
|
152
|
-
attr_reader :customer
|
153
|
-
# An arbitrary string attached to the object. Often useful for displaying to users.
|
154
|
-
attr_reader :description
|
155
|
-
# Indicates the directions of money movement for which this payment method is intended to be used.
|
156
|
-
#
|
157
|
-
# Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.
|
158
|
-
attr_reader :flow_directions
|
159
|
-
# Unique identifier for the object.
|
160
|
-
attr_reader :id
|
161
|
-
# The error encountered in the previous SetupIntent confirmation.
|
162
|
-
attr_reader :last_setup_error
|
163
|
-
# The most recent SetupAttempt for this SetupIntent.
|
164
|
-
attr_reader :latest_attempt
|
165
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
166
|
-
attr_reader :livemode
|
167
|
-
# ID of the multi use Mandate generated by the SetupIntent.
|
168
|
-
attr_reader :mandate
|
169
|
-
# 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.
|
170
|
-
attr_reader :metadata
|
171
|
-
# If present, this property tells you what actions you need to take in order for your customer to continue payment setup.
|
172
|
-
attr_reader :next_action
|
173
|
-
# String representing the object's type. Objects of the same type share the same value.
|
174
|
-
attr_reader :object
|
175
|
-
# The account (if any) for which the setup is intended.
|
176
|
-
attr_reader :on_behalf_of
|
177
|
-
# ID of the payment method used with this SetupIntent. If the payment method is `card_present` and isn't a digital wallet, then the [generated_card](https://docs.stripe.com/api/setup_attempts/object#setup_attempt_object-payment_method_details-card_present-generated_card) associated with the `latest_attempt` is attached to the Customer instead.
|
178
|
-
attr_reader :payment_method
|
179
|
-
# Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this Setup Intent.
|
180
|
-
attr_reader :payment_method_configuration_details
|
181
|
-
# Payment method-specific configuration for this SetupIntent.
|
182
|
-
attr_reader :payment_method_options
|
183
|
-
# The list of payment method types (e.g. card) that this SetupIntent is allowed to set up.
|
184
|
-
attr_reader :payment_method_types
|
185
|
-
# ID of the single_use Mandate generated by the SetupIntent.
|
186
|
-
attr_reader :single_use_mandate
|
187
|
-
# [Status](https://stripe.com/docs/payments/intents#intent-statuses) of this SetupIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `canceled`, or `succeeded`.
|
188
|
-
attr_reader :status
|
189
|
-
# Indicates how the payment method is intended to be used in the future.
|
190
|
-
#
|
191
|
-
# Use `on_session` if you intend to only reuse the payment method when the customer is in your checkout flow. Use `off_session` if your customer may or may not be in your checkout flow. If not provided, this value defaults to `off_session`.
|
192
|
-
attr_reader :usage
|
193
|
-
|
194
36
|
# You can cancel a SetupIntent object when it's in one of these statuses: requires_payment_method, requires_confirmation, or requires_action.
|
195
37
|
#
|
196
38
|
# After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
@@ -270,8 +112,8 @@ module Stripe
|
|
270
112
|
end
|
271
113
|
|
272
114
|
# Returns a list of SetupIntents.
|
273
|
-
def self.list(
|
274
|
-
request_stripe_object(method: :get, path: "/v1/setup_intents", params:
|
115
|
+
def self.list(params = {}, opts = {})
|
116
|
+
request_stripe_object(method: :get, path: "/v1/setup_intents", params: params, opts: opts)
|
275
117
|
end
|
276
118
|
|
277
119
|
# Updates a SetupIntent object.
|
@@ -14,56 +14,14 @@ module Stripe
|
|
14
14
|
"shipping_rate"
|
15
15
|
end
|
16
16
|
|
17
|
-
class DeliveryEstimate < Stripe::StripeObject
|
18
|
-
class Maximum < Stripe::StripeObject
|
19
|
-
attr_reader :unit, :value
|
20
|
-
end
|
21
|
-
|
22
|
-
class Minimum < Stripe::StripeObject
|
23
|
-
attr_reader :unit, :value
|
24
|
-
end
|
25
|
-
attr_reader :maximum, :minimum
|
26
|
-
end
|
27
|
-
|
28
|
-
class FixedAmount < Stripe::StripeObject
|
29
|
-
class CurrencyOptions < Stripe::StripeObject
|
30
|
-
attr_reader :amount, :tax_behavior
|
31
|
-
end
|
32
|
-
attr_reader :amount, :currency, :currency_options
|
33
|
-
end
|
34
|
-
# Whether the shipping rate can be used for new purchases. Defaults to `true`.
|
35
|
-
attr_reader :active
|
36
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
37
|
-
attr_reader :created
|
38
|
-
# The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
39
|
-
attr_reader :delivery_estimate
|
40
|
-
# The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
41
|
-
attr_reader :display_name
|
42
|
-
# Attribute for field fixed_amount
|
43
|
-
attr_reader :fixed_amount
|
44
|
-
# Unique identifier for the object.
|
45
|
-
attr_reader :id
|
46
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
47
|
-
attr_reader :livemode
|
48
|
-
# 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.
|
49
|
-
attr_reader :metadata
|
50
|
-
# String representing the object's type. Objects of the same type share the same value.
|
51
|
-
attr_reader :object
|
52
|
-
# Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
53
|
-
attr_reader :tax_behavior
|
54
|
-
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
|
55
|
-
attr_reader :tax_code
|
56
|
-
# The type of calculation to use on the shipping rate.
|
57
|
-
attr_reader :type
|
58
|
-
|
59
17
|
# Creates a new shipping rate object.
|
60
18
|
def self.create(params = {}, opts = {})
|
61
19
|
request_stripe_object(method: :post, path: "/v1/shipping_rates", params: params, opts: opts)
|
62
20
|
end
|
63
21
|
|
64
22
|
# Returns a list of your shipping rates.
|
65
|
-
def self.list(
|
66
|
-
request_stripe_object(method: :get, path: "/v1/shipping_rates", params:
|
23
|
+
def self.list(params = {}, opts = {})
|
24
|
+
request_stripe_object(method: :get, path: "/v1/shipping_rates", params: params, opts: opts)
|
67
25
|
end
|
68
26
|
|
69
27
|
# Updates an existing shipping rate object.
|
@@ -15,38 +15,12 @@ module Stripe
|
|
15
15
|
"scheduled_query_run"
|
16
16
|
end
|
17
17
|
|
18
|
-
class Error < Stripe::StripeObject
|
19
|
-
attr_reader :message
|
20
|
-
end
|
21
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
22
|
-
attr_reader :created
|
23
|
-
# When the query was run, Sigma contained a snapshot of your Stripe data at this time.
|
24
|
-
attr_reader :data_load_time
|
25
|
-
# Attribute for field error
|
26
|
-
attr_reader :error
|
27
|
-
# The file object representing the results of the query.
|
28
|
-
attr_reader :file
|
29
|
-
# Unique identifier for the object.
|
30
|
-
attr_reader :id
|
31
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
32
|
-
attr_reader :livemode
|
33
|
-
# String representing the object's type. Objects of the same type share the same value.
|
34
|
-
attr_reader :object
|
35
|
-
# Time at which the result expires and is no longer available for download.
|
36
|
-
attr_reader :result_available_until
|
37
|
-
# SQL for the query.
|
38
|
-
attr_reader :sql
|
39
|
-
# The query's execution status, which will be `completed` for successful runs, and `canceled`, `failed`, or `timed_out` otherwise.
|
40
|
-
attr_reader :status
|
41
|
-
# Title of the query.
|
42
|
-
attr_reader :title
|
43
|
-
|
44
18
|
# Returns a list of scheduled query runs.
|
45
|
-
def self.list(
|
19
|
+
def self.list(params = {}, opts = {})
|
46
20
|
request_stripe_object(
|
47
21
|
method: :get,
|
48
22
|
path: "/v1/sigma/scheduled_query_runs",
|
49
|
-
params:
|
23
|
+
params: params,
|
50
24
|
opts: opts
|
51
25
|
)
|
52
26
|
end
|