stripe 13.3.0.pre.beta.3 → 13.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +657 -1401
- 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 +7 -2
- data/lib/stripe/stripe_configuration.rb +22 -4
- data/lib/stripe/stripe_object.rb +3 -8
- data/lib/stripe/thin_event.rb +22 -2
- data/lib/stripe/util.rb +2 -8
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +22 -45
- data/stripe.gemspec +1 -2
- metadata +7 -65
- 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
@@ -1,94 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
# This is an object representing an offer of financing from
|
7
|
-
# Stripe Capital to a Connect subaccount.
|
8
|
-
class FinancingOffer < APIResource
|
9
|
-
extend Stripe::APIOperations::List
|
10
|
-
|
11
|
-
OBJECT_NAME = "capital.financing_offer"
|
12
|
-
def self.object_name
|
13
|
-
"capital.financing_offer"
|
14
|
-
end
|
15
|
-
|
16
|
-
class AcceptedTerms < Stripe::StripeObject
|
17
|
-
attr_reader :advance_amount, :currency, :fee_amount, :previous_financing_fee_discount_amount, :withhold_rate
|
18
|
-
end
|
19
|
-
|
20
|
-
class OfferedTerms < Stripe::StripeObject
|
21
|
-
attr_reader :advance_amount, :campaign_type, :currency, :fee_amount, :previous_financing_fee_discount_rate, :withhold_rate
|
22
|
-
end
|
23
|
-
# This is an object representing the terms of an offer of financing from
|
24
|
-
# Stripe Capital to a Connected account. This resource represents
|
25
|
-
# the terms accepted by the Connected account, which may differ from those
|
26
|
-
# offered.
|
27
|
-
attr_reader :accepted_terms
|
28
|
-
# The ID of the merchant associated with this financing object.
|
29
|
-
attr_reader :account
|
30
|
-
# The time at which this financing offer was charged off, if applicable. Given in seconds since unix epoch.
|
31
|
-
attr_reader :charged_off_at
|
32
|
-
# Time at which the offer was created. Given in seconds since unix epoch.
|
33
|
-
attr_reader :created
|
34
|
-
# Time at which the offer expires. Given in seconds since unix epoch.
|
35
|
-
attr_reader :expires_after
|
36
|
-
# The type of financing being offered.
|
37
|
-
attr_reader :financing_type
|
38
|
-
# A unique identifier for the financing object.
|
39
|
-
attr_reader :id
|
40
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
41
|
-
attr_reader :livemode
|
42
|
-
# 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.
|
43
|
-
attr_reader :metadata
|
44
|
-
# The object type: financing_offer.
|
45
|
-
attr_reader :object
|
46
|
-
# This is an object representing the terms of an offer of financing from
|
47
|
-
# Stripe Capital to a Connected account. This resource represents
|
48
|
-
# both the terms offered to the Connected account.
|
49
|
-
attr_reader :offered_terms
|
50
|
-
# Financing product identifier.
|
51
|
-
attr_reader :product_type
|
52
|
-
# The ID of the financing offer that replaced this offer.
|
53
|
-
attr_reader :replacement
|
54
|
-
# The ID of the financing offer that this offer is a replacement for.
|
55
|
-
attr_reader :replacement_for
|
56
|
-
# The current status of the offer.
|
57
|
-
attr_reader :status
|
58
|
-
# See [financing_type](https://stripe.com/docs/api/capital/connect_financing_object#financing_offer_object-financing_type).
|
59
|
-
attr_reader :type
|
60
|
-
|
61
|
-
# Retrieves the financing offers available for Connected accounts that belong to your platform.
|
62
|
-
def self.list(filters = {}, opts = {})
|
63
|
-
request_stripe_object(
|
64
|
-
method: :get,
|
65
|
-
path: "/v1/capital/financing_offers",
|
66
|
-
params: filters,
|
67
|
-
opts: opts
|
68
|
-
)
|
69
|
-
end
|
70
|
-
|
71
|
-
# Acknowledges that platform has received and delivered the financing_offer to
|
72
|
-
# the intended merchant recipient.
|
73
|
-
def mark_delivered(params = {}, opts = {})
|
74
|
-
request_stripe_object(
|
75
|
-
method: :post,
|
76
|
-
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(self["id"]) }),
|
77
|
-
params: params,
|
78
|
-
opts: opts
|
79
|
-
)
|
80
|
-
end
|
81
|
-
|
82
|
-
# Acknowledges that platform has received and delivered the financing_offer to
|
83
|
-
# the intended merchant recipient.
|
84
|
-
def self.mark_delivered(financing_offer, params = {}, opts = {})
|
85
|
-
request_stripe_object(
|
86
|
-
method: :post,
|
87
|
-
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(financing_offer) }),
|
88
|
-
params: params,
|
89
|
-
opts: opts
|
90
|
-
)
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
# A financing object describes an account's current financing state. Used by Connect
|
7
|
-
# platforms to read the state of Capital offered to their connected accounts.
|
8
|
-
class FinancingSummary < SingletonAPIResource
|
9
|
-
OBJECT_NAME = "capital.financing_summary"
|
10
|
-
def self.object_name
|
11
|
-
"capital.financing_summary"
|
12
|
-
end
|
13
|
-
|
14
|
-
class Details < Stripe::StripeObject
|
15
|
-
class CurrentRepaymentInterval < Stripe::StripeObject
|
16
|
-
attr_reader :due_at, :paid_amount, :remaining_amount
|
17
|
-
end
|
18
|
-
attr_reader :advance_amount, :advance_paid_out_at, :currency, :current_repayment_interval, :fee_amount, :paid_amount, :remaining_amount, :repayments_begin_at, :withhold_rate
|
19
|
-
end
|
20
|
-
# Additional information about the financing summary. Describes currency, advance amount,
|
21
|
-
# fee amount, withhold rate, remaining amount, paid amount, current repayment interval,
|
22
|
-
# repayment start date, and advance payout date.
|
23
|
-
attr_reader :details
|
24
|
-
# The Financing Offer ID this Financing Summary corresponds to
|
25
|
-
attr_reader :financing_offer
|
26
|
-
# The object type: financing_summary
|
27
|
-
attr_reader :object
|
28
|
-
# Status of the Connected Account's financing. [/v1/capital/financing_summary](https://stripe.com/docs/api/capital/financing_summary) will only return `details` for `paid_out` financing.
|
29
|
-
attr_reader :status
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
# This is an object representing the details of a transaction on a Capital financing object.
|
7
|
-
class FinancingTransaction < APIResource
|
8
|
-
extend Stripe::APIOperations::List
|
9
|
-
|
10
|
-
OBJECT_NAME = "capital.financing_transaction"
|
11
|
-
def self.object_name
|
12
|
-
"capital.financing_transaction"
|
13
|
-
end
|
14
|
-
|
15
|
-
class Details < Stripe::StripeObject
|
16
|
-
class Transaction < Stripe::StripeObject
|
17
|
-
attr_reader :charge, :treasury_transaction
|
18
|
-
end
|
19
|
-
attr_reader :advance_amount, :currency, :fee_amount, :linked_payment, :reason, :reversed_transaction, :total_amount, :transaction
|
20
|
-
end
|
21
|
-
# The ID of the merchant associated with this financing transaction.
|
22
|
-
attr_reader :account
|
23
|
-
# Time at which the financing transaction was created. Given in seconds since unix epoch.
|
24
|
-
attr_reader :created_at
|
25
|
-
# This is an object representing a transaction on a Capital financing offer.
|
26
|
-
attr_reader :details
|
27
|
-
# The Capital financing offer for this financing transaction.
|
28
|
-
attr_reader :financing_offer
|
29
|
-
# A unique identifier for the financing transaction object.
|
30
|
-
attr_reader :id
|
31
|
-
# The Capital transaction object that predates the Financing Transactions API and
|
32
|
-
# corresponds with the balance transaction that was created as a result of this
|
33
|
-
# financing transaction.
|
34
|
-
attr_reader :legacy_balance_transaction_source
|
35
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
36
|
-
attr_reader :livemode
|
37
|
-
# The object type: financing_transaction
|
38
|
-
attr_reader :object
|
39
|
-
# The type of the financing transaction.
|
40
|
-
attr_reader :type
|
41
|
-
# A human-friendly description of the financing transaction.
|
42
|
-
attr_reader :user_facing_description
|
43
|
-
|
44
|
-
# Returns a list of financing transactions. The transactions are returned in sorted order,
|
45
|
-
# with the most recent transactions appearing first.
|
46
|
-
def self.list(filters = {}, opts = {})
|
47
|
-
request_stripe_object(
|
48
|
-
method: :get,
|
49
|
-
path: "/v1/capital/financing_transactions",
|
50
|
-
params: filters,
|
51
|
-
opts: opts
|
52
|
-
)
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
class ConnectCollectionTransfer < APIResource
|
6
|
-
OBJECT_NAME = "connect_collection_transfer"
|
7
|
-
def self.object_name
|
8
|
-
"connect_collection_transfer"
|
9
|
-
end
|
10
|
-
|
11
|
-
# Amount transferred, in cents (or local equivalent).
|
12
|
-
attr_reader :amount
|
13
|
-
# 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).
|
14
|
-
attr_reader :currency
|
15
|
-
# ID of the account that funds are being collected for.
|
16
|
-
attr_reader :destination
|
17
|
-
# Unique identifier for the object.
|
18
|
-
attr_reader :id
|
19
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
20
|
-
attr_reader :livemode
|
21
|
-
# String representing the object's type. Objects of the same type share the same value.
|
22
|
-
attr_reader :object
|
23
|
-
end
|
24
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Entitlements
|
6
|
-
# A summary of a customer's active entitlements.
|
7
|
-
class ActiveEntitlementSummary < APIResource
|
8
|
-
OBJECT_NAME = "entitlements.active_entitlement_summary"
|
9
|
-
def self.object_name
|
10
|
-
"entitlements.active_entitlement_summary"
|
11
|
-
end
|
12
|
-
|
13
|
-
# The customer that is entitled to this feature.
|
14
|
-
attr_reader :customer
|
15
|
-
# The list of entitlements this customer has.
|
16
|
-
attr_reader :entitlements
|
17
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
18
|
-
attr_reader :livemode
|
19
|
-
# String representing the object's type. Objects of the same type share the same value.
|
20
|
-
attr_reader :object
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module FinancialConnections
|
6
|
-
# A historical balance for the account on a particular day. It may be sourced from a balance snapshot provided by a financial institution, or inferred using transactions data.
|
7
|
-
class AccountInferredBalance < APIResource
|
8
|
-
OBJECT_NAME = "financial_connections.account_inferred_balance"
|
9
|
-
def self.object_name
|
10
|
-
"financial_connections.account_inferred_balance"
|
11
|
-
end
|
12
|
-
|
13
|
-
# The time for which this balance was calculated, measured in seconds since the Unix epoch. If the balance was computed by Stripe and not provided directly by a financial institution, it will always be 23:59:59 UTC.
|
14
|
-
attr_reader :as_of
|
15
|
-
# The balances owed to (or by) the account holder, before subtracting any outbound pending transactions or adding any inbound pending transactions.
|
16
|
-
#
|
17
|
-
# Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
18
|
-
#
|
19
|
-
# Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder.
|
20
|
-
attr_reader :current
|
21
|
-
# Unique identifier for the object.
|
22
|
-
attr_reader :id
|
23
|
-
# String representing the object's type. Objects of the same type share the same value.
|
24
|
-
attr_reader :object
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
@@ -1,61 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module FinancialConnections
|
6
|
-
# An institution represents a financial institution to which an end user can connect using the Financial Connections authentication flow.
|
7
|
-
class Institution < APIResource
|
8
|
-
extend Stripe::APIOperations::List
|
9
|
-
|
10
|
-
OBJECT_NAME = "financial_connections.institution"
|
11
|
-
def self.object_name
|
12
|
-
"financial_connections.institution"
|
13
|
-
end
|
14
|
-
|
15
|
-
class Features < Stripe::StripeObject
|
16
|
-
class Balances < Stripe::StripeObject
|
17
|
-
attr_reader :supported
|
18
|
-
end
|
19
|
-
|
20
|
-
class Ownership < Stripe::StripeObject
|
21
|
-
attr_reader :supported
|
22
|
-
end
|
23
|
-
|
24
|
-
class PaymentMethod < Stripe::StripeObject
|
25
|
-
attr_reader :supported
|
26
|
-
end
|
27
|
-
|
28
|
-
class Transactions < Stripe::StripeObject
|
29
|
-
attr_reader :supported
|
30
|
-
end
|
31
|
-
attr_reader :balances, :ownership, :payment_method, :transactions
|
32
|
-
end
|
33
|
-
# Attribute for field features
|
34
|
-
attr_reader :features
|
35
|
-
# Unique identifier for the object.
|
36
|
-
attr_reader :id
|
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
|
-
# The name of this institution.
|
40
|
-
attr_reader :name
|
41
|
-
# String representing the object's type. Objects of the same type share the same value.
|
42
|
-
attr_reader :object
|
43
|
-
# A list of routing numbers which are known to correspond to this institution. Due to the many to many relationship between institutions and routing numbers, this list may not be comprehensive and routing numbers may also be shared between institutions.
|
44
|
-
attr_reader :routing_numbers
|
45
|
-
# The status of this institution in the Financial Connections authentication flow.
|
46
|
-
attr_reader :status
|
47
|
-
# A URL corresponding to this institution. This URL is also displayed in the authentication flow to help end users confirm that they are authenticating with the right institution.
|
48
|
-
attr_reader :url
|
49
|
-
|
50
|
-
# Returns a list of Financial Connections Institution objects.
|
51
|
-
def self.list(filters = {}, opts = {})
|
52
|
-
request_stripe_object(
|
53
|
-
method: :get,
|
54
|
-
path: "/v1/financial_connections/institutions",
|
55
|
-
params: filters,
|
56
|
-
opts: opts
|
57
|
-
)
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
@@ -1,96 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module GiftCards
|
6
|
-
# A gift card represents a single gift card owned by a customer, including the
|
7
|
-
# remaining balance, gift card code, and whether or not it is active.
|
8
|
-
class Card < APIResource
|
9
|
-
extend Stripe::APIOperations::Create
|
10
|
-
extend Stripe::APIOperations::List
|
11
|
-
include Stripe::APIOperations::Save
|
12
|
-
|
13
|
-
OBJECT_NAME = "gift_cards.card"
|
14
|
-
def self.object_name
|
15
|
-
"gift_cards.card"
|
16
|
-
end
|
17
|
-
|
18
|
-
class CreatedBy < Stripe::StripeObject
|
19
|
-
class Checkout < Stripe::StripeObject
|
20
|
-
attr_reader :checkout_session, :line_item
|
21
|
-
end
|
22
|
-
|
23
|
-
class Order < Stripe::StripeObject
|
24
|
-
attr_reader :line_item, :order
|
25
|
-
end
|
26
|
-
|
27
|
-
class Payment < Stripe::StripeObject
|
28
|
-
attr_reader :payment_intent
|
29
|
-
end
|
30
|
-
attr_reader :checkout, :order, :payment, :type
|
31
|
-
end
|
32
|
-
# Whether this gift card can be used or not.
|
33
|
-
attr_reader :active
|
34
|
-
# The amount of funds available for new transactions.
|
35
|
-
attr_reader :amount_available
|
36
|
-
# The amount of funds marked as held.
|
37
|
-
attr_reader :amount_held
|
38
|
-
# Code used to redeem this gift card.
|
39
|
-
attr_reader :code
|
40
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
41
|
-
attr_reader :created
|
42
|
-
# The related Stripe objects that created this gift card.
|
43
|
-
attr_reader :created_by
|
44
|
-
# 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).
|
45
|
-
attr_reader :currency
|
46
|
-
# Unique identifier for the object.
|
47
|
-
attr_reader :id
|
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
|
-
# Transactions on this gift card.
|
53
|
-
attr_reader :transactions
|
54
|
-
|
55
|
-
# Creates a new gift card object.
|
56
|
-
def self.create(params = {}, opts = {})
|
57
|
-
request_stripe_object(
|
58
|
-
method: :post,
|
59
|
-
path: "/v1/gift_cards/cards",
|
60
|
-
params: params,
|
61
|
-
opts: opts
|
62
|
-
)
|
63
|
-
end
|
64
|
-
|
65
|
-
# List gift cards for an account
|
66
|
-
def self.list(filters = {}, opts = {})
|
67
|
-
request_stripe_object(
|
68
|
-
method: :get,
|
69
|
-
path: "/v1/gift_cards/cards",
|
70
|
-
params: filters,
|
71
|
-
opts: opts
|
72
|
-
)
|
73
|
-
end
|
74
|
-
|
75
|
-
# Update a gift card
|
76
|
-
def self.update(id, params = {}, opts = {})
|
77
|
-
request_stripe_object(
|
78
|
-
method: :post,
|
79
|
-
path: format("/v1/gift_cards/cards/%<id>s", { id: CGI.escape(id) }),
|
80
|
-
params: params,
|
81
|
-
opts: opts
|
82
|
-
)
|
83
|
-
end
|
84
|
-
|
85
|
-
# Validates a gift card code, returning the matching gift card object if it exists.
|
86
|
-
def self.validate(params = {}, opts = {})
|
87
|
-
request_stripe_object(
|
88
|
-
method: :post,
|
89
|
-
path: "/v1/gift_cards/cards/validate",
|
90
|
-
params: params,
|
91
|
-
opts: opts
|
92
|
-
)
|
93
|
-
end
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|
@@ -1,132 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module GiftCards
|
6
|
-
# A gift card transaction represents a single transaction on a referenced gift card.
|
7
|
-
# A transaction is in one of three states, `confirmed`, `held` or `canceled`. A `confirmed`
|
8
|
-
# transaction is one that has added/deducted funds. A `held` transaction has created a
|
9
|
-
# temporary hold on funds, which can then be cancelled or confirmed. A `held` transaction
|
10
|
-
# can be confirmed into a `confirmed` transaction, or canceled into a `canceled` transaction.
|
11
|
-
# A `canceled` transaction has no effect on a gift card's balance.
|
12
|
-
class Transaction < APIResource
|
13
|
-
extend Stripe::APIOperations::Create
|
14
|
-
extend Stripe::APIOperations::List
|
15
|
-
include Stripe::APIOperations::Save
|
16
|
-
|
17
|
-
OBJECT_NAME = "gift_cards.transaction"
|
18
|
-
def self.object_name
|
19
|
-
"gift_cards.transaction"
|
20
|
-
end
|
21
|
-
|
22
|
-
class CreatedBy < Stripe::StripeObject
|
23
|
-
class Checkout < Stripe::StripeObject
|
24
|
-
attr_reader :checkout_session, :line_item
|
25
|
-
end
|
26
|
-
|
27
|
-
class Order < Stripe::StripeObject
|
28
|
-
attr_reader :line_item, :order
|
29
|
-
end
|
30
|
-
|
31
|
-
class Payment < Stripe::StripeObject
|
32
|
-
attr_reader :payment_intent
|
33
|
-
end
|
34
|
-
attr_reader :checkout, :order, :payment, :type
|
35
|
-
end
|
36
|
-
# The amount of this transaction. A positive value indicates that funds were added to the gift card. A negative value indicates that funds were removed from the gift card.
|
37
|
-
attr_reader :amount
|
38
|
-
# Time at which the transaction was confirmed. Measured in seconds since the Unix epoch.
|
39
|
-
attr_reader :confirmed_at
|
40
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
41
|
-
attr_reader :created
|
42
|
-
# The related Stripe objects that created this gift card transaction.
|
43
|
-
attr_reader :created_by
|
44
|
-
# 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).
|
45
|
-
attr_reader :currency
|
46
|
-
# An arbitrary string attached to the object. Often useful for displaying to users.
|
47
|
-
attr_reader :description
|
48
|
-
# The gift card that this transaction occurred on
|
49
|
-
attr_reader :gift_card
|
50
|
-
# Unique identifier for the object.
|
51
|
-
attr_reader :id
|
52
|
-
# 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.
|
53
|
-
attr_reader :metadata
|
54
|
-
# String representing the object's type. Objects of the same type share the same value.
|
55
|
-
attr_reader :object
|
56
|
-
# Status of this transaction, one of `held`, `confirmed`, or `canceled`.
|
57
|
-
attr_reader :status
|
58
|
-
# A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
|
59
|
-
attr_reader :transfer_group
|
60
|
-
|
61
|
-
# Cancel a gift card transaction
|
62
|
-
def cancel(params = {}, opts = {})
|
63
|
-
request_stripe_object(
|
64
|
-
method: :post,
|
65
|
-
path: format("/v1/gift_cards/transactions/%<id>s/cancel", { id: CGI.escape(self["id"]) }),
|
66
|
-
params: params,
|
67
|
-
opts: opts
|
68
|
-
)
|
69
|
-
end
|
70
|
-
|
71
|
-
# Cancel a gift card transaction
|
72
|
-
def self.cancel(id, params = {}, opts = {})
|
73
|
-
request_stripe_object(
|
74
|
-
method: :post,
|
75
|
-
path: format("/v1/gift_cards/transactions/%<id>s/cancel", { id: CGI.escape(id) }),
|
76
|
-
params: params,
|
77
|
-
opts: opts
|
78
|
-
)
|
79
|
-
end
|
80
|
-
|
81
|
-
# Confirm a gift card transaction
|
82
|
-
def confirm(params = {}, opts = {})
|
83
|
-
request_stripe_object(
|
84
|
-
method: :post,
|
85
|
-
path: format("/v1/gift_cards/transactions/%<id>s/confirm", { id: CGI.escape(self["id"]) }),
|
86
|
-
params: params,
|
87
|
-
opts: opts
|
88
|
-
)
|
89
|
-
end
|
90
|
-
|
91
|
-
# Confirm a gift card transaction
|
92
|
-
def self.confirm(id, params = {}, opts = {})
|
93
|
-
request_stripe_object(
|
94
|
-
method: :post,
|
95
|
-
path: format("/v1/gift_cards/transactions/%<id>s/confirm", { id: CGI.escape(id) }),
|
96
|
-
params: params,
|
97
|
-
opts: opts
|
98
|
-
)
|
99
|
-
end
|
100
|
-
|
101
|
-
# Create a gift card transaction
|
102
|
-
def self.create(params = {}, opts = {})
|
103
|
-
request_stripe_object(
|
104
|
-
method: :post,
|
105
|
-
path: "/v1/gift_cards/transactions",
|
106
|
-
params: params,
|
107
|
-
opts: opts
|
108
|
-
)
|
109
|
-
end
|
110
|
-
|
111
|
-
# List gift card transactions for a gift card
|
112
|
-
def self.list(filters = {}, opts = {})
|
113
|
-
request_stripe_object(
|
114
|
-
method: :get,
|
115
|
-
path: "/v1/gift_cards/transactions",
|
116
|
-
params: filters,
|
117
|
-
opts: opts
|
118
|
-
)
|
119
|
-
end
|
120
|
-
|
121
|
-
# Update a gift card transaction
|
122
|
-
def self.update(id, params = {}, opts = {})
|
123
|
-
request_stripe_object(
|
124
|
-
method: :post,
|
125
|
-
path: format("/v1/gift_cards/transactions/%<id>s", { id: CGI.escape(id) }),
|
126
|
-
params: params,
|
127
|
-
opts: opts
|
128
|
-
)
|
129
|
-
end
|
130
|
-
end
|
131
|
-
end
|
132
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
# The invoice payment object
|
6
|
-
class InvoicePayment < APIResource
|
7
|
-
OBJECT_NAME = "invoice_payment"
|
8
|
-
def self.object_name
|
9
|
-
"invoice_payment"
|
10
|
-
end
|
11
|
-
|
12
|
-
class Payment < Stripe::StripeObject
|
13
|
-
attr_reader :charge, :payment_intent, :payment_record, :type
|
14
|
-
end
|
15
|
-
|
16
|
-
class StatusTransitions < Stripe::StripeObject
|
17
|
-
attr_reader :canceled_at, :paid_at
|
18
|
-
end
|
19
|
-
# Excess payment that was received for this invoice and credited to the customer’s `invoice_credit_balance`. This field is null until the payment is `paid`. Overpayment can happen when you attach more than one PaymentIntent to the invoice, and each of them succeeds. To avoid overpayment, cancel any PaymentIntents that you do not need before attaching more.
|
20
|
-
attr_reader :amount_overpaid
|
21
|
-
# Amount that was actually paid for this invoice, in cents (or local equivalent). This field is null until the payment is `paid`. This amount can be less than the `amount_requested` if the PaymentIntent’s `amount_received` is not sufficient to pay all of the invoices that it is attached to.
|
22
|
-
attr_reader :amount_paid
|
23
|
-
# Amount intended to be paid toward this invoice, in cents (or local equivalent)
|
24
|
-
attr_reader :amount_requested
|
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
|
-
# Unique identifier for the object.
|
30
|
-
attr_reader :id
|
31
|
-
# The invoice that was paid.
|
32
|
-
attr_reader :invoice
|
33
|
-
# Stripe automatically creates a default InvoicePayment when the invoice is finalized, and keeps it synchronized with the invoice’s `amount_remaining`. The PaymentIntent associated with the default payment can’t be edited or canceled directly.
|
34
|
-
attr_reader :is_default
|
35
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
36
|
-
attr_reader :livemode
|
37
|
-
# String representing the object's type. Objects of the same type share the same value.
|
38
|
-
attr_reader :object
|
39
|
-
# Attribute for field payment
|
40
|
-
attr_reader :payment
|
41
|
-
# The status of the payment, one of `open`, `paid`, or `canceled`.
|
42
|
-
attr_reader :status
|
43
|
-
# Attribute for field status_transitions
|
44
|
-
attr_reader :status_transitions
|
45
|
-
end
|
46
|
-
end
|