stripe 13.3.0.pre.beta.1 → 13.3.0.pre.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +10 -0
- data/lib/stripe/resources/account.rb +230 -0
- data/lib/stripe/resources/account_link.rb +9 -0
- data/lib/stripe/resources/account_notice.rb +28 -0
- data/lib/stripe/resources/account_session.rb +103 -0
- data/lib/stripe/resources/apple_pay_domain.rb +13 -0
- data/lib/stripe/resources/application.rb +20 -0
- data/lib/stripe/resources/application_fee.rb +34 -0
- data/lib/stripe/resources/application_fee_refund.rb +17 -0
- data/lib/stripe/resources/apps/secret.rb +22 -0
- data/lib/stripe/resources/balance.rb +59 -0
- data/lib/stripe/resources/balance_transaction.rb +34 -0
- data/lib/stripe/resources/bank_account.rb +60 -2
- data/lib/stripe/resources/billing/alert.rb +21 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +25 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +45 -1
- data/lib/stripe/resources/billing/credit_grant.rb +46 -2
- data/lib/stripe/resources/billing/meter.rb +49 -7
- data/lib/stripe/resources/billing/meter_error_report.rb +44 -0
- data/lib/stripe/resources/billing/meter_event.rb +17 -3
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +17 -1
- data/lib/stripe/resources/billing/meter_event_summary.rb +15 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +70 -0
- data/lib/stripe/resources/billing_portal/session.rb +61 -0
- data/lib/stripe/resources/capability.rb +38 -0
- data/lib/stripe/resources/capital/financing_offer.rb +45 -0
- data/lib/stripe/resources/capital/financing_summary.rb +17 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +29 -0
- data/lib/stripe/resources/card.rb +72 -0
- data/lib/stripe/resources/cash_balance.rb +14 -0
- data/lib/stripe/resources/charge.rb +469 -0
- data/lib/stripe/resources/checkout/session.rb +496 -0
- data/lib/stripe/resources/climate/order.rb +55 -0
- data/lib/stripe/resources/climate/product.rb +24 -0
- data/lib/stripe/resources/climate/supplier.rb +18 -0
- data/lib/stripe/resources/confirmation_token.rb +297 -0
- data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
- data/lib/stripe/resources/country_spec.rb +27 -0
- data/lib/stripe/resources/coupon.rb +44 -0
- data/lib/stripe/resources/credit_note.rb +91 -0
- data/lib/stripe/resources/credit_note_line_item.rb +46 -0
- data/lib/stripe/resources/customer.rb +93 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +27 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +72 -0
- data/lib/stripe/resources/customer_session.rb +34 -0
- data/lib/stripe/resources/discount.rb +29 -0
- data/lib/stripe/resources/dispute.rb +88 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +11 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
- data/lib/stripe/resources/entitlements/feature.rb +15 -0
- data/lib/stripe/resources/ephemeral_key.rb +13 -0
- data/lib/stripe/resources/event.rb +44 -0
- data/lib/stripe/resources/exchange_rate.rb +7 -0
- data/lib/stripe/resources/file.rb +23 -0
- data/lib/stripe/resources/file_link.rb +19 -0
- data/lib/stripe/resources/financial_connections/account.rb +84 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +13 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
- data/lib/stripe/resources/financial_connections/institution.rb +35 -0
- data/lib/stripe/resources/financial_connections/session.rb +49 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +28 -0
- data/lib/stripe/resources/forwarding/request.rb +40 -0
- data/lib/stripe/resources/funding_instructions.rb +82 -0
- data/lib/stripe/resources/gift_cards/card.rb +37 -0
- data/lib/stripe/resources/gift_cards/transaction.rb +39 -0
- data/lib/stripe/resources/identity/verification_report.rb +92 -0
- data/lib/stripe/resources/identity/verification_session.rb +76 -0
- data/lib/stripe/resources/invoice.rb +337 -0
- data/lib/stripe/resources/invoice_item.rb +54 -0
- data/lib/stripe/resources/invoice_line_item.rb +83 -0
- data/lib/stripe/resources/invoice_payment.rb +34 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +17 -0
- data/lib/stripe/resources/issuing/authorization.rb +129 -0
- data/lib/stripe/resources/issuing/card.rb +86 -0
- data/lib/stripe/resources/issuing/cardholder.rb +76 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +57 -0
- data/lib/stripe/resources/issuing/dispute.rb +65 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +23 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +17 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +38 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +18 -0
- data/lib/stripe/resources/issuing/settlement.rb +49 -0
- data/lib/stripe/resources/issuing/token.rb +46 -0
- data/lib/stripe/resources/issuing/transaction.rb +106 -0
- data/lib/stripe/resources/line_item.rb +50 -0
- data/lib/stripe/resources/login_link.rb +7 -0
- data/lib/stripe/resources/mandate.rb +78 -0
- data/lib/stripe/resources/margin.rb +19 -0
- data/lib/stripe/resources/order.rb +202 -0
- data/lib/stripe/resources/payment_attempt_record.rb +73 -0
- data/lib/stripe/resources/payment_intent.rb +642 -0
- data/lib/stripe/resources/payment_link.rb +198 -0
- data/lib/stripe/resources/payment_method.rb +368 -0
- data/lib/stripe/resources/payment_method_configuration.rb +430 -0
- data/lib/stripe/resources/payment_method_domain.rb +57 -0
- data/lib/stripe/resources/payment_record.rb +79 -0
- data/lib/stripe/resources/payout.rb +56 -0
- data/lib/stripe/resources/person.rb +128 -0
- data/lib/stripe/resources/plan.rb +52 -0
- data/lib/stripe/resources/price.rb +77 -0
- data/lib/stripe/resources/product.rb +60 -0
- data/lib/stripe/resources/product_feature.rb +12 -0
- data/lib/stripe/resources/promotion_code.rb +35 -0
- data/lib/stripe/resources/quote.rb +252 -0
- data/lib/stripe/resources/quote_line.rb +136 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +331 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +159 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +17 -0
- data/lib/stripe/resources/radar/value_list.rb +23 -0
- data/lib/stripe/resources/radar/value_list_item.rb +17 -0
- data/lib/stripe/resources/refund.rb +130 -0
- data/lib/stripe/resources/reporting/report_run.rb +29 -0
- data/lib/stripe/resources/reporting/report_type.rb +19 -0
- data/lib/stripe/resources/reserve_transaction.rb +22 -0
- data/lib/stripe/resources/reversal.rb +21 -0
- data/lib/stripe/resources/review.rb +36 -0
- data/lib/stripe/resources/setup_attempt.rb +101 -0
- data/lib/stripe/resources/setup_intent.rb +158 -0
- data/lib/stripe/resources/shipping_rate.rb +42 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +26 -0
- data/lib/stripe/resources/source.rb +195 -0
- data/lib/stripe/resources/source_mandate_notification.rb +59 -0
- data/lib/stripe/resources/source_transaction.rb +48 -0
- data/lib/stripe/resources/subscription.rb +214 -0
- data/lib/stripe/resources/subscription_item.rb +46 -0
- data/lib/stripe/resources/subscription_schedule.rb +153 -0
- data/lib/stripe/resources/tax/association.rb +36 -0
- data/lib/stripe/resources/tax/calculation.rb +72 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +33 -0
- data/lib/stripe/resources/tax/form.rb +75 -0
- data/lib/stripe/resources/tax/registration.rb +379 -0
- data/lib/stripe/resources/tax/settings.rb +33 -0
- data/lib/stripe/resources/tax/transaction.rb +68 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +30 -0
- data/lib/stripe/resources/tax_code.rb +9 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
- data/lib/stripe/resources/tax_id.rb +30 -0
- data/lib/stripe/resources/tax_rate.rb +42 -0
- data/lib/stripe/resources/terminal/configuration.rb +107 -0
- data/lib/stripe/resources/terminal/connection_token.rb +7 -0
- data/lib/stripe/resources/terminal/location.rb +20 -0
- data/lib/stripe/resources/terminal/reader.rb +118 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +16 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +27 -0
- data/lib/stripe/resources/token.rb +29 -0
- data/lib/stripe/resources/topup.rb +33 -0
- data/lib/stripe/resources/transfer.rb +35 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +32 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +38 -0
- data/lib/stripe/resources/treasury/financial_account.rb +57 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +91 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +66 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +85 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +82 -0
- data/lib/stripe/resources/treasury/received_credit.rb +70 -0
- data/lib/stripe/resources/treasury/received_debit.rb +67 -0
- data/lib/stripe/resources/treasury/transaction.rb +42 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +34 -0
- data/lib/stripe/resources/usage_record.rb +13 -0
- data/lib/stripe/resources/usage_record_summary.rb +18 -0
- data/lib/stripe/resources/v2/amount.rb +9 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +18 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +20 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +14 -0
- data/lib/stripe/resources/v2/event.rb +21 -0
- data/lib/stripe/resources/v2/event_destination.rb +49 -0
- data/lib/stripe/resources/webhook_endpoint.rb +27 -0
- data/lib/stripe/resources.rb +10 -0
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -1
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/billing/credit_grant_service.rb +3 -3
- data/lib/stripe/services/billing/meter_event_adjustment_service.rb +1 -1
- data/lib/stripe/services/billing/meter_event_service.rb +1 -1
- data/lib/stripe/services/billing/meter_service.rb +5 -5
- data/lib/stripe/stripe_object.rb +5 -0
- data/lib/stripe/version.rb +1 -1
- data/stripe.gemspec +2 -1
- metadata +13 -2
@@ -15,6 +15,113 @@ 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
|
+
|
18
125
|
# Creates a new Configuration object.
|
19
126
|
def self.create(params = {}, opts = {})
|
20
127
|
request_stripe_object(
|
@@ -14,6 +14,13 @@ 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
|
+
|
17
24
|
# 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.
|
18
25
|
def self.create(params = {}, opts = {})
|
19
26
|
request_stripe_object(
|
@@ -17,6 +17,26 @@ 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
|
+
|
20
40
|
# Creates a new Location object.
|
21
41
|
# For further details, including which address fields are required in each country, see the [Manage locations](https://stripe.com/docs/terminal/fleet/locations) guide.
|
22
42
|
def self.create(params = {}, opts = {})
|
@@ -17,6 +17,124 @@ 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
|
+
|
20
138
|
# Cancels the current reader action.
|
21
139
|
def cancel_action(params = {}, opts = {})
|
22
140
|
request_stripe_object(
|
@@ -9,6 +9,22 @@ module Stripe
|
|
9
9
|
def self.object_name
|
10
10
|
"terminal.reader_collected_data"
|
11
11
|
end
|
12
|
+
|
13
|
+
class Magstripe < Stripe::StripeObject
|
14
|
+
attr_reader :data
|
15
|
+
end
|
16
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
17
|
+
attr_reader :created
|
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 magstripe data collected by the reader.
|
23
|
+
attr_reader :magstripe
|
24
|
+
# String representing the object's type. Objects of the same type share the same value.
|
25
|
+
attr_reader :object
|
26
|
+
# The type of data collected by the reader.
|
27
|
+
attr_reader :type
|
12
28
|
end
|
13
29
|
end
|
14
30
|
end
|
@@ -16,6 +16,33 @@ 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
|
+
|
19
46
|
# Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready.
|
20
47
|
def advance(params = {}, opts = {})
|
21
48
|
request_stripe_object(
|
@@ -30,6 +30,35 @@ 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
|
+
|
33
62
|
# Creates a single-use token that represents a bank account's details.
|
34
63
|
# 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.
|
35
64
|
def self.create(params = {}, opts = {})
|
@@ -17,6 +17,39 @@ 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
|
+
|
20
53
|
# Cancels a top-up. Only pending top-ups can be canceled.
|
21
54
|
def cancel(params = {}, opts = {})
|
22
55
|
request_stripe_object(
|
@@ -25,6 +25,41 @@ 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
|
+
|
28
63
|
# 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.
|
29
64
|
def self.create(params = {}, opts = {})
|
30
65
|
request_stripe_object(method: :post, path: "/v1/transfers", params: params, opts: opts)
|
@@ -13,6 +13,38 @@ 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
|
+
|
16
48
|
# Reverses a ReceivedCredit and creates a CreditReversal object.
|
17
49
|
def self.create(params = {}, opts = {})
|
18
50
|
request_stripe_object(
|
@@ -13,6 +13,44 @@ module Stripe
|
|
13
13
|
"treasury.debit_reversal"
|
14
14
|
end
|
15
15
|
|
16
|
+
class LinkedFlows < Stripe::StripeObject
|
17
|
+
attr_reader :issuing_dispute
|
18
|
+
end
|
19
|
+
|
20
|
+
class StatusTransitions < Stripe::StripeObject
|
21
|
+
attr_reader :completed_at
|
22
|
+
end
|
23
|
+
# Amount (in cents) transferred.
|
24
|
+
attr_reader :amount
|
25
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
26
|
+
attr_reader :created
|
27
|
+
# 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).
|
28
|
+
attr_reader :currency
|
29
|
+
# The FinancialAccount to reverse funds from.
|
30
|
+
attr_reader :financial_account
|
31
|
+
# 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.
|
32
|
+
attr_reader :hosted_regulatory_receipt_url
|
33
|
+
# Unique identifier for the object.
|
34
|
+
attr_reader :id
|
35
|
+
# Other flows linked to a DebitReversal.
|
36
|
+
attr_reader :linked_flows
|
37
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
38
|
+
attr_reader :livemode
|
39
|
+
# 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.
|
40
|
+
attr_reader :metadata
|
41
|
+
# The rails used to reverse the funds.
|
42
|
+
attr_reader :network
|
43
|
+
# String representing the object's type. Objects of the same type share the same value.
|
44
|
+
attr_reader :object
|
45
|
+
# The ReceivedDebit being reversed.
|
46
|
+
attr_reader :received_debit
|
47
|
+
# Status of the DebitReversal
|
48
|
+
attr_reader :status
|
49
|
+
# Attribute for field status_transitions
|
50
|
+
attr_reader :status_transitions
|
51
|
+
# The Transaction associated with this object.
|
52
|
+
attr_reader :transaction
|
53
|
+
|
16
54
|
# Reverses a ReceivedDebit and creates a DebitReversal object.
|
17
55
|
def self.create(params = {}, opts = {})
|
18
56
|
request_stripe_object(
|
@@ -15,6 +15,63 @@ module Stripe
|
|
15
15
|
"treasury.financial_account"
|
16
16
|
end
|
17
17
|
|
18
|
+
class Balance < Stripe::StripeObject
|
19
|
+
attr_reader :cash, :inbound_pending, :outbound_pending
|
20
|
+
end
|
21
|
+
|
22
|
+
class FinancialAddress < Stripe::StripeObject
|
23
|
+
class Aba < Stripe::StripeObject
|
24
|
+
attr_reader :account_holder_name, :account_number, :account_number_last4, :bank_name, :routing_number
|
25
|
+
end
|
26
|
+
attr_reader :aba, :supported_networks, :type
|
27
|
+
end
|
28
|
+
|
29
|
+
class PlatformRestrictions < Stripe::StripeObject
|
30
|
+
attr_reader :inbound_flows, :outbound_flows
|
31
|
+
end
|
32
|
+
|
33
|
+
class StatusDetails < Stripe::StripeObject
|
34
|
+
class Closed < Stripe::StripeObject
|
35
|
+
attr_reader :reasons
|
36
|
+
end
|
37
|
+
attr_reader :closed
|
38
|
+
end
|
39
|
+
# The array of paths to active Features in the Features hash.
|
40
|
+
attr_reader :active_features
|
41
|
+
# Balance information for the FinancialAccount
|
42
|
+
attr_reader :balance
|
43
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
44
|
+
attr_reader :country
|
45
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
46
|
+
attr_reader :created
|
47
|
+
# The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
|
48
|
+
attr_reader :display_name
|
49
|
+
# Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`.
|
50
|
+
# Stripe or the platform can control Features via the requested field.
|
51
|
+
attr_reader :features
|
52
|
+
# The set of credentials that resolve to a FinancialAccount.
|
53
|
+
attr_reader :financial_addresses
|
54
|
+
# Unique identifier for the object.
|
55
|
+
attr_reader :id
|
56
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
57
|
+
attr_reader :livemode
|
58
|
+
# 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.
|
59
|
+
attr_reader :metadata
|
60
|
+
# String representing the object's type. Objects of the same type share the same value.
|
61
|
+
attr_reader :object
|
62
|
+
# The array of paths to pending Features in the Features hash.
|
63
|
+
attr_reader :pending_features
|
64
|
+
# The set of functionalities that the platform can restrict on the FinancialAccount.
|
65
|
+
attr_reader :platform_restrictions
|
66
|
+
# The array of paths to restricted Features in the Features hash.
|
67
|
+
attr_reader :restricted_features
|
68
|
+
# Status of this FinancialAccount.
|
69
|
+
attr_reader :status
|
70
|
+
# Attribute for field status_details
|
71
|
+
attr_reader :status_details
|
72
|
+
# The currencies the FinancialAccount can hold a balance in. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
73
|
+
attr_reader :supported_currencies
|
74
|
+
|
18
75
|
# Creates a new FinancialAccount. For now, each connected account can only have one FinancialAccount.
|
19
76
|
def self.create(params = {}, opts = {})
|
20
77
|
request_stripe_object(
|