stripe 13.3.0.pre.beta.2 → 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 -1394
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +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 -46
- 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 -73
- 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 -90
- 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 -195
- 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 -194
- 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
@@ -15,113 +15,6 @@ module Stripe
|
|
15
15
|
"terminal.configuration"
|
16
16
|
end
|
17
17
|
|
18
|
-
class BbposWiseposE < Stripe::StripeObject
|
19
|
-
attr_reader :splashscreen
|
20
|
-
end
|
21
|
-
|
22
|
-
class Offline < Stripe::StripeObject
|
23
|
-
attr_reader :enabled
|
24
|
-
end
|
25
|
-
|
26
|
-
class RebootWindow < Stripe::StripeObject
|
27
|
-
attr_reader :end_hour, :start_hour
|
28
|
-
end
|
29
|
-
|
30
|
-
class StripeS700 < Stripe::StripeObject
|
31
|
-
attr_reader :splashscreen
|
32
|
-
end
|
33
|
-
|
34
|
-
class Tipping < Stripe::StripeObject
|
35
|
-
class Aud < Stripe::StripeObject
|
36
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
37
|
-
end
|
38
|
-
|
39
|
-
class Cad < Stripe::StripeObject
|
40
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
41
|
-
end
|
42
|
-
|
43
|
-
class Chf < Stripe::StripeObject
|
44
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
45
|
-
end
|
46
|
-
|
47
|
-
class Czk < Stripe::StripeObject
|
48
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
49
|
-
end
|
50
|
-
|
51
|
-
class Dkk < Stripe::StripeObject
|
52
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
53
|
-
end
|
54
|
-
|
55
|
-
class Eur < Stripe::StripeObject
|
56
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
57
|
-
end
|
58
|
-
|
59
|
-
class Gbp < Stripe::StripeObject
|
60
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
61
|
-
end
|
62
|
-
|
63
|
-
class Hkd < Stripe::StripeObject
|
64
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
65
|
-
end
|
66
|
-
|
67
|
-
class Myr < Stripe::StripeObject
|
68
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
69
|
-
end
|
70
|
-
|
71
|
-
class Nok < Stripe::StripeObject
|
72
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
73
|
-
end
|
74
|
-
|
75
|
-
class Nzd < Stripe::StripeObject
|
76
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
77
|
-
end
|
78
|
-
|
79
|
-
class Pln < Stripe::StripeObject
|
80
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
81
|
-
end
|
82
|
-
|
83
|
-
class Sek < Stripe::StripeObject
|
84
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
85
|
-
end
|
86
|
-
|
87
|
-
class Sgd < Stripe::StripeObject
|
88
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
89
|
-
end
|
90
|
-
|
91
|
-
class Usd < Stripe::StripeObject
|
92
|
-
attr_reader :fixed_amounts, :percentages, :smart_tip_threshold
|
93
|
-
end
|
94
|
-
attr_reader :aud, :cad, :chf, :czk, :dkk, :eur, :gbp, :hkd, :myr, :nok, :nzd, :pln, :sek, :sgd, :usd
|
95
|
-
end
|
96
|
-
|
97
|
-
class VerifoneP400 < Stripe::StripeObject
|
98
|
-
attr_reader :splashscreen
|
99
|
-
end
|
100
|
-
# Attribute for field bbpos_wisepos_e
|
101
|
-
attr_reader :bbpos_wisepos_e
|
102
|
-
# Unique identifier for the object.
|
103
|
-
attr_reader :id
|
104
|
-
# Whether this Configuration is the default for your account
|
105
|
-
attr_reader :is_account_default
|
106
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
107
|
-
attr_reader :livemode
|
108
|
-
# String indicating the name of the Configuration object, set by the user
|
109
|
-
attr_reader :name
|
110
|
-
# String representing the object's type. Objects of the same type share the same value.
|
111
|
-
attr_reader :object
|
112
|
-
# Attribute for field offline
|
113
|
-
attr_reader :offline
|
114
|
-
# Attribute for field reboot_window
|
115
|
-
attr_reader :reboot_window
|
116
|
-
# Attribute for field stripe_s700
|
117
|
-
attr_reader :stripe_s700
|
118
|
-
# Attribute for field tipping
|
119
|
-
attr_reader :tipping
|
120
|
-
# Attribute for field verifone_p400
|
121
|
-
attr_reader :verifone_p400
|
122
|
-
# Always true for a deleted object
|
123
|
-
attr_reader :deleted
|
124
|
-
|
125
18
|
# Creates a new Configuration object.
|
126
19
|
def self.create(params = {}, opts = {})
|
127
20
|
request_stripe_object(
|
@@ -153,11 +46,11 @@ module Stripe
|
|
153
46
|
end
|
154
47
|
|
155
48
|
# Returns a list of Configuration objects.
|
156
|
-
def self.list(
|
49
|
+
def self.list(params = {}, opts = {})
|
157
50
|
request_stripe_object(
|
158
51
|
method: :get,
|
159
52
|
path: "/v1/terminal/configurations",
|
160
|
-
params:
|
53
|
+
params: params,
|
161
54
|
opts: opts
|
162
55
|
)
|
163
56
|
end
|
@@ -14,13 +14,6 @@ module Stripe
|
|
14
14
|
"terminal.connection_token"
|
15
15
|
end
|
16
16
|
|
17
|
-
# The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://docs.stripe.com/terminal/fleet/locations-and-zones?dashboard-or-api=api#connection-tokens).
|
18
|
-
attr_reader :location
|
19
|
-
# String representing the object's type. Objects of the same type share the same value.
|
20
|
-
attr_reader :object
|
21
|
-
# Your application should pass this token to the Stripe Terminal SDK.
|
22
|
-
attr_reader :secret
|
23
|
-
|
24
17
|
# To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.
|
25
18
|
def self.create(params = {}, opts = {})
|
26
19
|
request_stripe_object(
|
@@ -17,26 +17,6 @@ module Stripe
|
|
17
17
|
"terminal.location"
|
18
18
|
end
|
19
19
|
|
20
|
-
class Address < Stripe::StripeObject
|
21
|
-
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
22
|
-
end
|
23
|
-
# Attribute for field address
|
24
|
-
attr_reader :address
|
25
|
-
# The ID of a configuration that will be used to customize all readers in this location.
|
26
|
-
attr_reader :configuration_overrides
|
27
|
-
# The display name of the location.
|
28
|
-
attr_reader :display_name
|
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
|
-
# 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.
|
34
|
-
attr_reader :metadata
|
35
|
-
# String representing the object's type. Objects of the same type share the same value.
|
36
|
-
attr_reader :object
|
37
|
-
# Always true for a deleted object
|
38
|
-
attr_reader :deleted
|
39
|
-
|
40
20
|
# Creates a new Location object.
|
41
21
|
# For further details, including which address fields are required in each country, see the [Manage locations](https://stripe.com/docs/terminal/fleet/locations) guide.
|
42
22
|
def self.create(params = {}, opts = {})
|
@@ -69,11 +49,11 @@ module Stripe
|
|
69
49
|
end
|
70
50
|
|
71
51
|
# Returns a list of Location objects.
|
72
|
-
def self.list(
|
52
|
+
def self.list(params = {}, opts = {})
|
73
53
|
request_stripe_object(
|
74
54
|
method: :get,
|
75
55
|
path: "/v1/terminal/locations",
|
76
|
-
params:
|
56
|
+
params: params,
|
77
57
|
opts: opts
|
78
58
|
)
|
79
59
|
end
|
@@ -17,124 +17,6 @@ module Stripe
|
|
17
17
|
"terminal.reader"
|
18
18
|
end
|
19
19
|
|
20
|
-
class Action < Stripe::StripeObject
|
21
|
-
class CollectInputs < Stripe::StripeObject
|
22
|
-
class Input < Stripe::StripeObject
|
23
|
-
class CustomText < Stripe::StripeObject
|
24
|
-
attr_reader :description, :skip_button, :submit_button, :title
|
25
|
-
end
|
26
|
-
|
27
|
-
class Email < Stripe::StripeObject
|
28
|
-
attr_reader :value
|
29
|
-
end
|
30
|
-
|
31
|
-
class Numeric < Stripe::StripeObject
|
32
|
-
attr_reader :value
|
33
|
-
end
|
34
|
-
|
35
|
-
class Phone < Stripe::StripeObject
|
36
|
-
attr_reader :value
|
37
|
-
end
|
38
|
-
|
39
|
-
class Selection < Stripe::StripeObject
|
40
|
-
class Choice < Stripe::StripeObject
|
41
|
-
attr_reader :style, :value
|
42
|
-
end
|
43
|
-
attr_reader :choices, :value
|
44
|
-
end
|
45
|
-
|
46
|
-
class Signature < Stripe::StripeObject
|
47
|
-
attr_reader :value
|
48
|
-
end
|
49
|
-
|
50
|
-
class Text < Stripe::StripeObject
|
51
|
-
attr_reader :value
|
52
|
-
end
|
53
|
-
|
54
|
-
class Toggle < Stripe::StripeObject
|
55
|
-
attr_reader :default_value, :description, :title, :value
|
56
|
-
end
|
57
|
-
attr_reader :custom_text, :email, :numeric, :phone, :required, :selection, :signature, :skipped, :text, :toggles, :type
|
58
|
-
end
|
59
|
-
attr_reader :inputs, :metadata
|
60
|
-
end
|
61
|
-
|
62
|
-
class CollectPaymentMethod < Stripe::StripeObject
|
63
|
-
class CollectConfig < Stripe::StripeObject
|
64
|
-
class Tipping < Stripe::StripeObject
|
65
|
-
attr_reader :amount_eligible
|
66
|
-
end
|
67
|
-
attr_reader :enable_customer_cancellation, :skip_tipping, :tipping
|
68
|
-
end
|
69
|
-
attr_reader :collect_config, :payment_intent, :payment_method, :stripe_account
|
70
|
-
end
|
71
|
-
|
72
|
-
class ConfirmPaymentIntent < Stripe::StripeObject
|
73
|
-
attr_reader :payment_intent, :stripe_account
|
74
|
-
end
|
75
|
-
|
76
|
-
class ProcessPaymentIntent < Stripe::StripeObject
|
77
|
-
class ProcessConfig < Stripe::StripeObject
|
78
|
-
class Tipping < Stripe::StripeObject
|
79
|
-
attr_reader :amount_eligible
|
80
|
-
end
|
81
|
-
attr_reader :enable_customer_cancellation, :skip_tipping, :tipping
|
82
|
-
end
|
83
|
-
attr_reader :payment_intent, :process_config, :stripe_account
|
84
|
-
end
|
85
|
-
|
86
|
-
class ProcessSetupIntent < Stripe::StripeObject
|
87
|
-
class ProcessConfig < Stripe::StripeObject
|
88
|
-
attr_reader :enable_customer_cancellation
|
89
|
-
end
|
90
|
-
attr_reader :generated_card, :process_config, :setup_intent
|
91
|
-
end
|
92
|
-
|
93
|
-
class RefundPayment < Stripe::StripeObject
|
94
|
-
class RefundPaymentConfig < Stripe::StripeObject
|
95
|
-
attr_reader :enable_customer_cancellation
|
96
|
-
end
|
97
|
-
attr_reader :amount, :charge, :metadata, :payment_intent, :reason, :refund, :refund_application_fee, :refund_payment_config, :reverse_transfer, :stripe_account
|
98
|
-
end
|
99
|
-
|
100
|
-
class SetReaderDisplay < Stripe::StripeObject
|
101
|
-
class Cart < Stripe::StripeObject
|
102
|
-
class LineItem < Stripe::StripeObject
|
103
|
-
attr_reader :amount, :description, :quantity
|
104
|
-
end
|
105
|
-
attr_reader :currency, :line_items, :tax, :total
|
106
|
-
end
|
107
|
-
attr_reader :cart, :type
|
108
|
-
end
|
109
|
-
attr_reader :collect_inputs, :collect_payment_method, :confirm_payment_intent, :failure_code, :failure_message, :process_payment_intent, :process_setup_intent, :refund_payment, :set_reader_display, :status, :type
|
110
|
-
end
|
111
|
-
# The most recent action performed by the reader.
|
112
|
-
attr_reader :action
|
113
|
-
# The current software version of the reader.
|
114
|
-
attr_reader :device_sw_version
|
115
|
-
# Type of reader, one of `bbpos_wisepad3`, `stripe_m2`, `stripe_s700`, `bbpos_chipper2x`, `bbpos_wisepos_e`, `verifone_P400`, `simulated_wisepos_e`, or `mobile_phone_reader`.
|
116
|
-
attr_reader :device_type
|
117
|
-
# Unique identifier for the object.
|
118
|
-
attr_reader :id
|
119
|
-
# The local IP address of the reader.
|
120
|
-
attr_reader :ip_address
|
121
|
-
# Custom label given to the reader for easier identification.
|
122
|
-
attr_reader :label
|
123
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
124
|
-
attr_reader :livemode
|
125
|
-
# The location identifier of the reader.
|
126
|
-
attr_reader :location
|
127
|
-
# 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.
|
128
|
-
attr_reader :metadata
|
129
|
-
# String representing the object's type. Objects of the same type share the same value.
|
130
|
-
attr_reader :object
|
131
|
-
# Serial number of the reader.
|
132
|
-
attr_reader :serial_number
|
133
|
-
# The networking status of the reader. We do not recommend using this field in flows that may block taking payments.
|
134
|
-
attr_reader :status
|
135
|
-
# Always true for a deleted object
|
136
|
-
attr_reader :deleted
|
137
|
-
|
138
20
|
# Cancels the current reader action.
|
139
21
|
def cancel_action(params = {}, opts = {})
|
140
22
|
request_stripe_object(
|
@@ -155,66 +37,6 @@ module Stripe
|
|
155
37
|
)
|
156
38
|
end
|
157
39
|
|
158
|
-
# Initiates an input collection flow on a Reader.
|
159
|
-
def collect_inputs(params = {}, opts = {})
|
160
|
-
request_stripe_object(
|
161
|
-
method: :post,
|
162
|
-
path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(self["id"]) }),
|
163
|
-
params: params,
|
164
|
-
opts: opts
|
165
|
-
)
|
166
|
-
end
|
167
|
-
|
168
|
-
# Initiates an input collection flow on a Reader.
|
169
|
-
def self.collect_inputs(reader, params = {}, opts = {})
|
170
|
-
request_stripe_object(
|
171
|
-
method: :post,
|
172
|
-
path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(reader) }),
|
173
|
-
params: params,
|
174
|
-
opts: opts
|
175
|
-
)
|
176
|
-
end
|
177
|
-
|
178
|
-
# Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.
|
179
|
-
def collect_payment_method(params = {}, opts = {})
|
180
|
-
request_stripe_object(
|
181
|
-
method: :post,
|
182
|
-
path: format("/v1/terminal/readers/%<reader>s/collect_payment_method", { reader: CGI.escape(self["id"]) }),
|
183
|
-
params: params,
|
184
|
-
opts: opts
|
185
|
-
)
|
186
|
-
end
|
187
|
-
|
188
|
-
# Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.
|
189
|
-
def self.collect_payment_method(reader, params = {}, opts = {})
|
190
|
-
request_stripe_object(
|
191
|
-
method: :post,
|
192
|
-
path: format("/v1/terminal/readers/%<reader>s/collect_payment_method", { reader: CGI.escape(reader) }),
|
193
|
-
params: params,
|
194
|
-
opts: opts
|
195
|
-
)
|
196
|
-
end
|
197
|
-
|
198
|
-
# Finalizes a payment on a Reader.
|
199
|
-
def confirm_payment_intent(params = {}, opts = {})
|
200
|
-
request_stripe_object(
|
201
|
-
method: :post,
|
202
|
-
path: format("/v1/terminal/readers/%<reader>s/confirm_payment_intent", { reader: CGI.escape(self["id"]) }),
|
203
|
-
params: params,
|
204
|
-
opts: opts
|
205
|
-
)
|
206
|
-
end
|
207
|
-
|
208
|
-
# Finalizes a payment on a Reader.
|
209
|
-
def self.confirm_payment_intent(reader, params = {}, opts = {})
|
210
|
-
request_stripe_object(
|
211
|
-
method: :post,
|
212
|
-
path: format("/v1/terminal/readers/%<reader>s/confirm_payment_intent", { reader: CGI.escape(reader) }),
|
213
|
-
params: params,
|
214
|
-
opts: opts
|
215
|
-
)
|
216
|
-
end
|
217
|
-
|
218
40
|
# Creates a new Reader object.
|
219
41
|
def self.create(params = {}, opts = {})
|
220
42
|
request_stripe_object(
|
@@ -246,11 +68,11 @@ module Stripe
|
|
246
68
|
end
|
247
69
|
|
248
70
|
# Returns a list of Reader objects.
|
249
|
-
def self.list(
|
71
|
+
def self.list(params = {}, opts = {})
|
250
72
|
request_stripe_object(
|
251
73
|
method: :get,
|
252
74
|
path: "/v1/terminal/readers",
|
253
|
-
params:
|
75
|
+
params: params,
|
254
76
|
opts: opts
|
255
77
|
)
|
256
78
|
end
|
@@ -16,33 +16,6 @@ module Stripe
|
|
16
16
|
"test_helpers.test_clock"
|
17
17
|
end
|
18
18
|
|
19
|
-
class StatusDetails < Stripe::StripeObject
|
20
|
-
class Advancing < Stripe::StripeObject
|
21
|
-
attr_reader :target_frozen_time
|
22
|
-
end
|
23
|
-
attr_reader :advancing
|
24
|
-
end
|
25
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
26
|
-
attr_reader :created
|
27
|
-
# Time at which this clock is scheduled to auto delete.
|
28
|
-
attr_reader :deletes_after
|
29
|
-
# Time at which all objects belonging to this clock are frozen.
|
30
|
-
attr_reader :frozen_time
|
31
|
-
# Unique identifier for the object.
|
32
|
-
attr_reader :id
|
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
|
-
# The custom name supplied at creation.
|
36
|
-
attr_reader :name
|
37
|
-
# String representing the object's type. Objects of the same type share the same value.
|
38
|
-
attr_reader :object
|
39
|
-
# The status of the Test Clock.
|
40
|
-
attr_reader :status
|
41
|
-
# Attribute for field status_details
|
42
|
-
attr_reader :status_details
|
43
|
-
# Always true for a deleted object
|
44
|
-
attr_reader :deleted
|
45
|
-
|
46
19
|
# Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready.
|
47
20
|
def advance(params = {}, opts = {})
|
48
21
|
request_stripe_object(
|
@@ -94,11 +67,11 @@ module Stripe
|
|
94
67
|
end
|
95
68
|
|
96
69
|
# Returns a list of your test clocks.
|
97
|
-
def self.list(
|
70
|
+
def self.list(params = {}, opts = {})
|
98
71
|
request_stripe_object(
|
99
72
|
method: :get,
|
100
73
|
path: "/v1/test_helpers/test_clocks",
|
101
|
-
params:
|
74
|
+
params: params,
|
102
75
|
opts: opts
|
103
76
|
)
|
104
77
|
end
|
@@ -30,35 +30,6 @@ module Stripe
|
|
30
30
|
"token"
|
31
31
|
end
|
32
32
|
|
33
|
-
# These bank accounts are payment methods on `Customer` objects.
|
34
|
-
#
|
35
|
-
# On the other hand [External Accounts](/api#external_accounts) are transfer
|
36
|
-
# destinations on `Account` objects for connected accounts.
|
37
|
-
# They can be bank accounts or debit cards as well, and are documented in the links above.
|
38
|
-
#
|
39
|
-
# Related guide: [Bank debits and transfers](/payments/bank-debits-transfers)
|
40
|
-
attr_reader :bank_account
|
41
|
-
# You can store multiple cards on a customer in order to charge the customer
|
42
|
-
# later. You can also store multiple debit cards on a recipient in order to
|
43
|
-
# transfer to those cards later.
|
44
|
-
#
|
45
|
-
# Related guide: [Card payments with Sources](https://stripe.com/docs/sources/cards)
|
46
|
-
attr_reader :card
|
47
|
-
# IP address of the client that generates the token.
|
48
|
-
attr_reader :client_ip
|
49
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
50
|
-
attr_reader :created
|
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
|
-
# Type of the token: `account`, `bank_account`, `card`, or `pii`.
|
58
|
-
attr_reader :type
|
59
|
-
# Determines if you have already used this token (you can only use tokens once).
|
60
|
-
attr_reader :used
|
61
|
-
|
62
33
|
# Creates a single-use token that represents a bank account's details.
|
63
34
|
# You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
|
64
35
|
def self.create(params = {}, opts = {})
|
@@ -17,39 +17,6 @@ module Stripe
|
|
17
17
|
"topup"
|
18
18
|
end
|
19
19
|
|
20
|
-
# Amount transferred.
|
21
|
-
attr_reader :amount
|
22
|
-
# ID of the balance transaction that describes the impact of this top-up on your account balance. May not be specified depending on status of top-up.
|
23
|
-
attr_reader :balance_transaction
|
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
|
-
# Date the funds are expected to arrive in your Stripe account for payouts. This factors in delays like weekends or bank holidays. May not be specified depending on status of top-up.
|
31
|
-
attr_reader :expected_availability_date
|
32
|
-
# Error code explaining reason for top-up failure if available (see [the errors section](https://stripe.com/docs/api#errors) for a list of codes).
|
33
|
-
attr_reader :failure_code
|
34
|
-
# Message to user further explaining reason for top-up failure if available.
|
35
|
-
attr_reader :failure_message
|
36
|
-
# Unique identifier for the object.
|
37
|
-
attr_reader :id
|
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
|
-
# 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.
|
41
|
-
attr_reader :metadata
|
42
|
-
# String representing the object's type. Objects of the same type share the same value.
|
43
|
-
attr_reader :object
|
44
|
-
# The source field is deprecated. It might not always be present in the API response.
|
45
|
-
attr_reader :source
|
46
|
-
# Extra information about a top-up. This will appear on your source's bank statement. It must contain at least one letter.
|
47
|
-
attr_reader :statement_descriptor
|
48
|
-
# The status of the top-up is either `canceled`, `failed`, `pending`, `reversed`, or `succeeded`.
|
49
|
-
attr_reader :status
|
50
|
-
# A string that identifies this top-up as part of a group.
|
51
|
-
attr_reader :transfer_group
|
52
|
-
|
53
20
|
# Cancels a top-up. Only pending top-ups can be canceled.
|
54
21
|
def cancel(params = {}, opts = {})
|
55
22
|
request_stripe_object(
|
@@ -76,8 +43,8 @@ module Stripe
|
|
76
43
|
end
|
77
44
|
|
78
45
|
# Returns a list of top-ups.
|
79
|
-
def self.list(
|
80
|
-
request_stripe_object(method: :get, path: "/v1/topups", params:
|
46
|
+
def self.list(params = {}, opts = {})
|
47
|
+
request_stripe_object(method: :get, path: "/v1/topups", params: params, opts: opts)
|
81
48
|
end
|
82
49
|
|
83
50
|
# Updates the metadata of a top-up. Other top-up details are not editable by design.
|
@@ -25,49 +25,14 @@ module Stripe
|
|
25
25
|
|
26
26
|
nested_resource_class_methods :reversal, operations: %i[create retrieve update list]
|
27
27
|
|
28
|
-
# Amount in cents (or local equivalent) to be transferred.
|
29
|
-
attr_reader :amount
|
30
|
-
# Amount in cents (or local equivalent) reversed (can be less than the amount attribute on the transfer if a partial reversal was issued).
|
31
|
-
attr_reader :amount_reversed
|
32
|
-
# Balance transaction that describes the impact of this transfer on your account balance.
|
33
|
-
attr_reader :balance_transaction
|
34
|
-
# Time that this record of the transfer was first created.
|
35
|
-
attr_reader :created
|
36
|
-
# 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).
|
37
|
-
attr_reader :currency
|
38
|
-
# An arbitrary string attached to the object. Often useful for displaying to users.
|
39
|
-
attr_reader :description
|
40
|
-
# ID of the Stripe account the transfer was sent to.
|
41
|
-
attr_reader :destination
|
42
|
-
# If the destination is a Stripe account, this will be the ID of the payment that the destination account received for the transfer.
|
43
|
-
attr_reader :destination_payment
|
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
|
-
# A list of reversals that have been applied to the transfer.
|
53
|
-
attr_reader :reversals
|
54
|
-
# Whether the transfer has been fully reversed. If the transfer is only partially reversed, this attribute will still be false.
|
55
|
-
attr_reader :reversed
|
56
|
-
# ID of the charge that was used to fund the transfer. If null, the transfer was funded from the available balance.
|
57
|
-
attr_reader :source_transaction
|
58
|
-
# The source balance this transfer came from. One of `card`, `fpx`, or `bank_account`.
|
59
|
-
attr_reader :source_type
|
60
|
-
# A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
|
61
|
-
attr_reader :transfer_group
|
62
|
-
|
63
28
|
# To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://stripe.com/docs/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
|
64
29
|
def self.create(params = {}, opts = {})
|
65
30
|
request_stripe_object(method: :post, path: "/v1/transfers", params: params, opts: opts)
|
66
31
|
end
|
67
32
|
|
68
33
|
# Returns a list of existing transfers sent to connected accounts. The transfers are returned in sorted order, with the most recently created transfers appearing first.
|
69
|
-
def self.list(
|
70
|
-
request_stripe_object(method: :get, path: "/v1/transfers", params:
|
34
|
+
def self.list(params = {}, opts = {})
|
35
|
+
request_stripe_object(method: :get, path: "/v1/transfers", params: params, opts: opts)
|
71
36
|
end
|
72
37
|
|
73
38
|
# Updates the specified transfer by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
@@ -13,38 +13,6 @@ module Stripe
|
|
13
13
|
"treasury.credit_reversal"
|
14
14
|
end
|
15
15
|
|
16
|
-
class StatusTransitions < Stripe::StripeObject
|
17
|
-
attr_reader :posted_at
|
18
|
-
end
|
19
|
-
# Amount (in cents) transferred.
|
20
|
-
attr_reader :amount
|
21
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
22
|
-
attr_reader :created
|
23
|
-
# 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).
|
24
|
-
attr_reader :currency
|
25
|
-
# The FinancialAccount to reverse funds from.
|
26
|
-
attr_reader :financial_account
|
27
|
-
# A [hosted transaction receipt](https://stripe.com/docs/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
|
28
|
-
attr_reader :hosted_regulatory_receipt_url
|
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
|
-
# 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.
|
34
|
-
attr_reader :metadata
|
35
|
-
# The rails used to reverse the funds.
|
36
|
-
attr_reader :network
|
37
|
-
# String representing the object's type. Objects of the same type share the same value.
|
38
|
-
attr_reader :object
|
39
|
-
# The ReceivedCredit being reversed.
|
40
|
-
attr_reader :received_credit
|
41
|
-
# Status of the CreditReversal
|
42
|
-
attr_reader :status
|
43
|
-
# Attribute for field status_transitions
|
44
|
-
attr_reader :status_transitions
|
45
|
-
# The Transaction associated with this object.
|
46
|
-
attr_reader :transaction
|
47
|
-
|
48
16
|
# Reverses a ReceivedCredit and creates a CreditReversal object.
|
49
17
|
def self.create(params = {}, opts = {})
|
50
18
|
request_stripe_object(
|
@@ -56,11 +24,11 @@ module Stripe
|
|
56
24
|
end
|
57
25
|
|
58
26
|
# Returns a list of CreditReversals.
|
59
|
-
def self.list(
|
27
|
+
def self.list(params = {}, opts = {})
|
60
28
|
request_stripe_object(
|
61
29
|
method: :get,
|
62
30
|
path: "/v1/treasury/credit_reversals",
|
63
|
-
params:
|
31
|
+
params: params,
|
64
32
|
opts: opts
|
65
33
|
)
|
66
34
|
end
|