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
@@ -12,79 +12,12 @@ module Stripe
|
|
12
12
|
"treasury.received_debit"
|
13
13
|
end
|
14
14
|
|
15
|
-
class InitiatingPaymentMethodDetails < Stripe::StripeObject
|
16
|
-
class BillingDetails < Stripe::StripeObject
|
17
|
-
class Address < Stripe::StripeObject
|
18
|
-
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
19
|
-
end
|
20
|
-
attr_reader :address, :email, :name
|
21
|
-
end
|
22
|
-
|
23
|
-
class FinancialAccount < Stripe::StripeObject
|
24
|
-
attr_reader :id, :network
|
25
|
-
end
|
26
|
-
|
27
|
-
class UsBankAccount < Stripe::StripeObject
|
28
|
-
attr_reader :bank_name, :last4, :routing_number
|
29
|
-
end
|
30
|
-
attr_reader :balance, :billing_details, :financial_account, :issuing_card, :type, :us_bank_account
|
31
|
-
end
|
32
|
-
|
33
|
-
class LinkedFlows < Stripe::StripeObject
|
34
|
-
attr_reader :debit_reversal, :inbound_transfer, :issuing_authorization, :issuing_transaction, :payout, :received_credit_capital_withholding
|
35
|
-
end
|
36
|
-
|
37
|
-
class NetworkDetails < Stripe::StripeObject
|
38
|
-
class Ach < Stripe::StripeObject
|
39
|
-
attr_reader :addenda
|
40
|
-
end
|
41
|
-
attr_reader :ach, :type
|
42
|
-
end
|
43
|
-
|
44
|
-
class ReversalDetails < Stripe::StripeObject
|
45
|
-
attr_reader :deadline, :restricted_reason
|
46
|
-
end
|
47
|
-
# Amount (in cents) transferred.
|
48
|
-
attr_reader :amount
|
49
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
50
|
-
attr_reader :created
|
51
|
-
# 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).
|
52
|
-
attr_reader :currency
|
53
|
-
# An arbitrary string attached to the object. Often useful for displaying to users.
|
54
|
-
attr_reader :description
|
55
|
-
# Reason for the failure. A ReceivedDebit might fail because the FinancialAccount doesn't have sufficient funds, is closed, or is frozen.
|
56
|
-
attr_reader :failure_code
|
57
|
-
# The FinancialAccount that funds were pulled from.
|
58
|
-
attr_reader :financial_account
|
59
|
-
# 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.
|
60
|
-
attr_reader :hosted_regulatory_receipt_url
|
61
|
-
# Unique identifier for the object.
|
62
|
-
attr_reader :id
|
63
|
-
# Attribute for field initiating_payment_method_details
|
64
|
-
attr_reader :initiating_payment_method_details
|
65
|
-
# Attribute for field linked_flows
|
66
|
-
attr_reader :linked_flows
|
67
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
68
|
-
attr_reader :livemode
|
69
|
-
# The network used for the ReceivedDebit.
|
70
|
-
attr_reader :network
|
71
|
-
# Details specific to the money movement rails.
|
72
|
-
attr_reader :network_details
|
73
|
-
# String representing the object's type. Objects of the same type share the same value.
|
74
|
-
attr_reader :object
|
75
|
-
# Details describing when a ReceivedDebit might be reversed.
|
76
|
-
attr_reader :reversal_details
|
77
|
-
# Status of the ReceivedDebit. ReceivedDebits are created with a status of either `succeeded` (approved) or `failed` (declined). The failure reason can be found under the `failure_code`.
|
78
|
-
attr_reader :status
|
79
|
-
# The Transaction associated with this object.
|
80
|
-
attr_reader :transaction
|
81
|
-
|
82
15
|
# Returns a list of ReceivedDebits.
|
83
|
-
def self.list(
|
16
|
+
def self.list(params = {}, opts = {})
|
84
17
|
request_stripe_object(
|
85
18
|
method: :get,
|
86
19
|
path: "/v1/treasury/received_debits",
|
87
|
-
params:
|
20
|
+
params: params,
|
88
21
|
opts: opts
|
89
22
|
)
|
90
23
|
end
|
@@ -12,54 +12,12 @@ module Stripe
|
|
12
12
|
"treasury.transaction"
|
13
13
|
end
|
14
14
|
|
15
|
-
class BalanceImpact < Stripe::StripeObject
|
16
|
-
attr_reader :cash, :inbound_pending, :outbound_pending
|
17
|
-
end
|
18
|
-
|
19
|
-
class FlowDetails < Stripe::StripeObject
|
20
|
-
attr_reader :credit_reversal, :debit_reversal, :inbound_transfer, :issuing_authorization, :outbound_payment, :outbound_transfer, :received_credit, :received_debit, :type
|
21
|
-
end
|
22
|
-
|
23
|
-
class StatusTransitions < Stripe::StripeObject
|
24
|
-
attr_reader :posted_at, :void_at
|
25
|
-
end
|
26
|
-
# Amount (in cents) transferred.
|
27
|
-
attr_reader :amount
|
28
|
-
# Change to a FinancialAccount's balance
|
29
|
-
attr_reader :balance_impact
|
30
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
31
|
-
attr_reader :created
|
32
|
-
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
33
|
-
attr_reader :currency
|
34
|
-
# An arbitrary string attached to the object. Often useful for displaying to users.
|
35
|
-
attr_reader :description
|
36
|
-
# A list of TransactionEntries that are part of this Transaction. This cannot be expanded in any list endpoints.
|
37
|
-
attr_reader :entries
|
38
|
-
# The FinancialAccount associated with this object.
|
39
|
-
attr_reader :financial_account
|
40
|
-
# ID of the flow that created the Transaction.
|
41
|
-
attr_reader :flow
|
42
|
-
# Details of the flow that created the Transaction.
|
43
|
-
attr_reader :flow_details
|
44
|
-
# Type of the flow that created the Transaction.
|
45
|
-
attr_reader :flow_type
|
46
|
-
# Unique identifier for the object.
|
47
|
-
attr_reader :id
|
48
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
49
|
-
attr_reader :livemode
|
50
|
-
# String representing the object's type. Objects of the same type share the same value.
|
51
|
-
attr_reader :object
|
52
|
-
# Status of the Transaction.
|
53
|
-
attr_reader :status
|
54
|
-
# Attribute for field status_transitions
|
55
|
-
attr_reader :status_transitions
|
56
|
-
|
57
15
|
# Retrieves a list of Transaction objects.
|
58
|
-
def self.list(
|
16
|
+
def self.list(params = {}, opts = {})
|
59
17
|
request_stripe_object(
|
60
18
|
method: :get,
|
61
19
|
path: "/v1/treasury/transactions",
|
62
|
-
params:
|
20
|
+
params: params,
|
63
21
|
opts: opts
|
64
22
|
)
|
65
23
|
end
|
@@ -12,46 +12,12 @@ module Stripe
|
|
12
12
|
"treasury.transaction_entry"
|
13
13
|
end
|
14
14
|
|
15
|
-
class BalanceImpact < Stripe::StripeObject
|
16
|
-
attr_reader :cash, :inbound_pending, :outbound_pending
|
17
|
-
end
|
18
|
-
|
19
|
-
class FlowDetails < Stripe::StripeObject
|
20
|
-
attr_reader :credit_reversal, :debit_reversal, :inbound_transfer, :issuing_authorization, :outbound_payment, :outbound_transfer, :received_credit, :received_debit, :type
|
21
|
-
end
|
22
|
-
# Change to a FinancialAccount's balance
|
23
|
-
attr_reader :balance_impact
|
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
|
-
# When the TransactionEntry will impact the FinancialAccount's balance.
|
29
|
-
attr_reader :effective_at
|
30
|
-
# The FinancialAccount associated with this object.
|
31
|
-
attr_reader :financial_account
|
32
|
-
# Token of the flow associated with the TransactionEntry.
|
33
|
-
attr_reader :flow
|
34
|
-
# Details of the flow associated with the TransactionEntry.
|
35
|
-
attr_reader :flow_details
|
36
|
-
# Type of the flow associated with the TransactionEntry.
|
37
|
-
attr_reader :flow_type
|
38
|
-
# Unique identifier for the 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
|
-
# String representing the object's type. Objects of the same type share the same value.
|
43
|
-
attr_reader :object
|
44
|
-
# The Transaction associated with this object.
|
45
|
-
attr_reader :transaction
|
46
|
-
# The specific money movement that generated the TransactionEntry.
|
47
|
-
attr_reader :type
|
48
|
-
|
49
15
|
# Retrieves a list of TransactionEntry objects.
|
50
|
-
def self.list(
|
16
|
+
def self.list(params = {}, opts = {})
|
51
17
|
request_stripe_object(
|
52
18
|
method: :get,
|
53
19
|
path: "/v1/treasury/transaction_entries",
|
54
|
-
params:
|
20
|
+
params: params,
|
55
21
|
opts: opts
|
56
22
|
)
|
57
23
|
end
|
@@ -13,18 +13,5 @@ module Stripe
|
|
13
13
|
def self.object_name
|
14
14
|
"usage_record"
|
15
15
|
end
|
16
|
-
|
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
|
-
# The usage quantity for the specified date.
|
24
|
-
attr_reader :quantity
|
25
|
-
# The ID of the subscription item this usage record contains data for.
|
26
|
-
attr_reader :subscription_item
|
27
|
-
# The timestamp when this usage occurred.
|
28
|
-
attr_reader :timestamp
|
29
16
|
end
|
30
17
|
end
|
@@ -8,23 +8,5 @@ module Stripe
|
|
8
8
|
def self.object_name
|
9
9
|
"usage_record_summary"
|
10
10
|
end
|
11
|
-
|
12
|
-
class Period < Stripe::StripeObject
|
13
|
-
attr_reader :end, :start
|
14
|
-
end
|
15
|
-
# Unique identifier for the object.
|
16
|
-
attr_reader :id
|
17
|
-
# The invoice in which this usage period has been billed for.
|
18
|
-
attr_reader :invoice
|
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
|
-
# Attribute for field period
|
24
|
-
attr_reader :period
|
25
|
-
# The ID of the subscription item this summary is describing.
|
26
|
-
attr_reader :subscription_item
|
27
|
-
# The total usage within this usage period.
|
28
|
-
attr_reader :total_usage
|
29
11
|
end
|
30
12
|
end
|
@@ -10,24 +10,6 @@ module Stripe
|
|
10
10
|
def self.object_name
|
11
11
|
"v2.billing.meter_event"
|
12
12
|
end
|
13
|
-
|
14
|
-
# The creation time of this meter event.
|
15
|
-
attr_reader :created
|
16
|
-
# The name of the meter event. Corresponds with the `event_name` field on a meter.
|
17
|
-
attr_reader :event_name
|
18
|
-
# A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We’ll enforce uniqueness within a rolling 24 hour period.
|
19
|
-
attr_reader :identifier
|
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
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
23
|
-
attr_reader :object
|
24
|
-
# The payload of the event. This must contain the fields corresponding to a meter’s
|
25
|
-
# `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and
|
26
|
-
# `value_settings.event_payload_key` (default is `value`). Read more about the payload.
|
27
|
-
attr_reader :payload
|
28
|
-
# The time of the event. Must be within the past 35 calendar days or up to
|
29
|
-
# 5 minutes in the future. Defaults to current timestamp if not specified.
|
30
|
-
attr_reader :timestamp
|
31
13
|
end
|
32
14
|
end
|
33
15
|
end
|
@@ -9,26 +9,6 @@ module Stripe
|
|
9
9
|
def self.object_name
|
10
10
|
"v2.billing.meter_event_adjustment"
|
11
11
|
end
|
12
|
-
|
13
|
-
class Cancel < Stripe::StripeObject
|
14
|
-
attr_reader :identifier
|
15
|
-
end
|
16
|
-
# Specifies which event to cancel.
|
17
|
-
attr_reader :cancel
|
18
|
-
# The time the adjustment was created.
|
19
|
-
attr_reader :created
|
20
|
-
# The name of the meter event. Corresponds with the `event_name` field on a meter.
|
21
|
-
attr_reader :event_name
|
22
|
-
# The unique id of this meter event adjustment.
|
23
|
-
attr_reader :id
|
24
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
25
|
-
attr_reader :livemode
|
26
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
27
|
-
attr_reader :object
|
28
|
-
# Open Enum. The meter event adjustment’s status.
|
29
|
-
attr_reader :status
|
30
|
-
# Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
|
31
|
-
attr_reader :type
|
32
12
|
end
|
33
13
|
end
|
34
14
|
end
|
@@ -9,20 +9,6 @@ module Stripe
|
|
9
9
|
def self.object_name
|
10
10
|
"v2.billing.meter_event_session"
|
11
11
|
end
|
12
|
-
|
13
|
-
# The authentication token for this session. Use this token when calling the
|
14
|
-
# high-throughput meter event API.
|
15
|
-
attr_reader :authentication_token
|
16
|
-
# The creation time of this session.
|
17
|
-
attr_reader :created
|
18
|
-
# The time at which this session will expire.
|
19
|
-
attr_reader :expires_at
|
20
|
-
# The unique id of this auth session.
|
21
|
-
attr_reader :id
|
22
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
23
|
-
attr_reader :livemode
|
24
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
25
|
-
attr_reader :object
|
26
12
|
end
|
27
13
|
end
|
28
14
|
end
|
@@ -8,27 +8,6 @@ module Stripe
|
|
8
8
|
def self.object_name
|
9
9
|
"v2.core.event"
|
10
10
|
end
|
11
|
-
|
12
|
-
class Reason < Stripe::StripeObject
|
13
|
-
class Request < Stripe::StripeObject
|
14
|
-
attr_reader :id, :idempotency_key
|
15
|
-
end
|
16
|
-
attr_reader :type, :request
|
17
|
-
end
|
18
|
-
# Authentication context needed to fetch the event or related object.
|
19
|
-
attr_reader :context
|
20
|
-
# Time at which the object was created.
|
21
|
-
attr_reader :created
|
22
|
-
# Unique identifier for the event.
|
23
|
-
attr_reader :id
|
24
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
25
|
-
attr_reader :livemode
|
26
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
27
|
-
attr_reader :object
|
28
|
-
# Reason for the event.
|
29
|
-
attr_reader :reason
|
30
|
-
# The type of the event.
|
31
|
-
attr_reader :type
|
32
11
|
end
|
33
12
|
end
|
34
13
|
end
|
@@ -8,55 +8,6 @@ module Stripe
|
|
8
8
|
def self.object_name
|
9
9
|
"v2.core.event_destination"
|
10
10
|
end
|
11
|
-
|
12
|
-
class StatusDetails < Stripe::StripeObject
|
13
|
-
class Disabled < Stripe::StripeObject
|
14
|
-
attr_reader :reason
|
15
|
-
end
|
16
|
-
attr_reader :disabled
|
17
|
-
end
|
18
|
-
|
19
|
-
class AmazonEventbridge < Stripe::StripeObject
|
20
|
-
attr_reader :aws_account_id, :aws_event_source_arn, :aws_event_source_status
|
21
|
-
end
|
22
|
-
|
23
|
-
class WebhookEndpoint < Stripe::StripeObject
|
24
|
-
attr_reader :signing_secret, :url
|
25
|
-
end
|
26
|
-
# Time at which the object was created.
|
27
|
-
attr_reader :created
|
28
|
-
# An optional description of what the event destination is used for.
|
29
|
-
attr_reader :description
|
30
|
-
# The list of events to enable for this endpoint.
|
31
|
-
attr_reader :enabled_events
|
32
|
-
# Payload type of events being subscribed to.
|
33
|
-
attr_reader :event_payload
|
34
|
-
# Where events should be routed from.
|
35
|
-
attr_reader :events_from
|
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
|
-
# Metadata.
|
41
|
-
attr_reader :metadata
|
42
|
-
# Event destination name.
|
43
|
-
attr_reader :name
|
44
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
45
|
-
attr_reader :object
|
46
|
-
# If using the snapshot event payload, the API version events are rendered as.
|
47
|
-
attr_reader :snapshot_api_version
|
48
|
-
# Status. It can be set to either enabled or disabled.
|
49
|
-
attr_reader :status
|
50
|
-
# Additional information about event destination status.
|
51
|
-
attr_reader :status_details
|
52
|
-
# Event destination type.
|
53
|
-
attr_reader :type
|
54
|
-
# Time at which the object was last updated.
|
55
|
-
attr_reader :updated
|
56
|
-
# Amazon EventBridge configuration.
|
57
|
-
attr_reader :amazon_eventbridge
|
58
|
-
# Webhook endpoint configuration.
|
59
|
-
attr_reader :webhook_endpoint
|
60
11
|
end
|
61
12
|
end
|
62
13
|
end
|
@@ -20,33 +20,6 @@ module Stripe
|
|
20
20
|
"webhook_endpoint"
|
21
21
|
end
|
22
22
|
|
23
|
-
# The API version events are rendered as for this webhook endpoint.
|
24
|
-
attr_reader :api_version
|
25
|
-
# The ID of the associated Connect application.
|
26
|
-
attr_reader :application
|
27
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
28
|
-
attr_reader :created
|
29
|
-
# An optional description of what the webhook is used for.
|
30
|
-
attr_reader :description
|
31
|
-
# The list of events to enable for this endpoint. `['*']` indicates that all events are enabled, except those that require explicit selection.
|
32
|
-
attr_reader :enabled_events
|
33
|
-
# Unique identifier for the object.
|
34
|
-
attr_reader :id
|
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
|
-
# 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.
|
38
|
-
attr_reader :metadata
|
39
|
-
# String representing the object's type. Objects of the same type share the same value.
|
40
|
-
attr_reader :object
|
41
|
-
# The endpoint's secret, used to generate [webhook signatures](https://docs.stripe.com/webhooks/signatures). Only returned at creation.
|
42
|
-
attr_reader :secret
|
43
|
-
# The status of the webhook. It can be `enabled` or `disabled`.
|
44
|
-
attr_reader :status
|
45
|
-
# The URL of the webhook endpoint.
|
46
|
-
attr_reader :url
|
47
|
-
# Always true for a deleted object
|
48
|
-
attr_reader :deleted
|
49
|
-
|
50
23
|
# A webhook endpoint must have a url and a list of enabled_events. You may optionally specify the Boolean connect parameter. If set to true, then a Connect webhook endpoint that notifies the specified url about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specified url only about events from your account is created. You can also create webhook endpoints in the [webhooks settings](https://dashboard.stripe.com/account/webhooks) section of the Dashboard.
|
51
24
|
def self.create(params = {}, opts = {})
|
52
25
|
request_stripe_object(
|
@@ -78,13 +51,8 @@ module Stripe
|
|
78
51
|
end
|
79
52
|
|
80
53
|
# Returns a list of your webhook endpoints.
|
81
|
-
def self.list(
|
82
|
-
request_stripe_object(
|
83
|
-
method: :get,
|
84
|
-
path: "/v1/webhook_endpoints",
|
85
|
-
params: filters,
|
86
|
-
opts: opts
|
87
|
-
)
|
54
|
+
def self.list(params = {}, opts = {})
|
55
|
+
request_stripe_object(method: :get, path: "/v1/webhook_endpoints", params: params, opts: opts)
|
88
56
|
end
|
89
57
|
|
90
58
|
# Updates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint.
|
data/lib/stripe/resources.rb
CHANGED
@@ -3,10 +3,8 @@
|
|
3
3
|
|
4
4
|
require "stripe/resources/account"
|
5
5
|
require "stripe/resources/account_link"
|
6
|
-
require "stripe/resources/account_notice"
|
7
6
|
require "stripe/resources/account_session"
|
8
7
|
require "stripe/resources/apple_pay_domain"
|
9
|
-
require "stripe/resources/application"
|
10
8
|
require "stripe/resources/application_fee"
|
11
9
|
require "stripe/resources/application_fee_refund"
|
12
10
|
require "stripe/resources/apps/secret"
|
@@ -14,21 +12,16 @@ require "stripe/resources/balance"
|
|
14
12
|
require "stripe/resources/balance_transaction"
|
15
13
|
require "stripe/resources/bank_account"
|
16
14
|
require "stripe/resources/billing/alert"
|
17
|
-
require "stripe/resources/billing/alert_triggered"
|
18
15
|
require "stripe/resources/billing/credit_balance_summary"
|
19
16
|
require "stripe/resources/billing/credit_balance_transaction"
|
20
17
|
require "stripe/resources/billing/credit_grant"
|
21
18
|
require "stripe/resources/billing/meter"
|
22
|
-
require "stripe/resources/billing/meter_error_report"
|
23
19
|
require "stripe/resources/billing/meter_event"
|
24
20
|
require "stripe/resources/billing/meter_event_adjustment"
|
25
21
|
require "stripe/resources/billing/meter_event_summary"
|
26
22
|
require "stripe/resources/billing_portal/configuration"
|
27
23
|
require "stripe/resources/billing_portal/session"
|
28
24
|
require "stripe/resources/capability"
|
29
|
-
require "stripe/resources/capital/financing_offer"
|
30
|
-
require "stripe/resources/capital/financing_summary"
|
31
|
-
require "stripe/resources/capital/financing_transaction"
|
32
25
|
require "stripe/resources/card"
|
33
26
|
require "stripe/resources/cash_balance"
|
34
27
|
require "stripe/resources/charge"
|
@@ -37,7 +30,6 @@ require "stripe/resources/climate/order"
|
|
37
30
|
require "stripe/resources/climate/product"
|
38
31
|
require "stripe/resources/climate/supplier"
|
39
32
|
require "stripe/resources/confirmation_token"
|
40
|
-
require "stripe/resources/connect_collection_transfer"
|
41
33
|
require "stripe/resources/country_spec"
|
42
34
|
require "stripe/resources/coupon"
|
43
35
|
require "stripe/resources/credit_note"
|
@@ -49,7 +41,6 @@ require "stripe/resources/customer_session"
|
|
49
41
|
require "stripe/resources/discount"
|
50
42
|
require "stripe/resources/dispute"
|
51
43
|
require "stripe/resources/entitlements/active_entitlement"
|
52
|
-
require "stripe/resources/entitlements/active_entitlement_summary"
|
53
44
|
require "stripe/resources/entitlements/feature"
|
54
45
|
require "stripe/resources/ephemeral_key"
|
55
46
|
require "stripe/resources/event"
|
@@ -57,47 +48,34 @@ require "stripe/resources/exchange_rate"
|
|
57
48
|
require "stripe/resources/file"
|
58
49
|
require "stripe/resources/file_link"
|
59
50
|
require "stripe/resources/financial_connections/account"
|
60
|
-
require "stripe/resources/financial_connections/account_inferred_balance"
|
61
51
|
require "stripe/resources/financial_connections/account_owner"
|
62
52
|
require "stripe/resources/financial_connections/account_ownership"
|
63
|
-
require "stripe/resources/financial_connections/institution"
|
64
53
|
require "stripe/resources/financial_connections/session"
|
65
54
|
require "stripe/resources/financial_connections/transaction"
|
66
55
|
require "stripe/resources/forwarding/request"
|
67
56
|
require "stripe/resources/funding_instructions"
|
68
|
-
require "stripe/resources/gift_cards/card"
|
69
|
-
require "stripe/resources/gift_cards/transaction"
|
70
57
|
require "stripe/resources/identity/verification_report"
|
71
58
|
require "stripe/resources/identity/verification_session"
|
72
59
|
require "stripe/resources/invoice"
|
73
60
|
require "stripe/resources/invoice_item"
|
74
61
|
require "stripe/resources/invoice_line_item"
|
75
|
-
require "stripe/resources/invoice_payment"
|
76
62
|
require "stripe/resources/invoice_rendering_template"
|
77
63
|
require "stripe/resources/issuing/authorization"
|
78
64
|
require "stripe/resources/issuing/card"
|
79
65
|
require "stripe/resources/issuing/cardholder"
|
80
|
-
require "stripe/resources/issuing/credit_underwriting_record"
|
81
66
|
require "stripe/resources/issuing/dispute"
|
82
|
-
require "stripe/resources/issuing/dispute_settlement_detail"
|
83
|
-
require "stripe/resources/issuing/fraud_liability_debit"
|
84
67
|
require "stripe/resources/issuing/personalization_design"
|
85
68
|
require "stripe/resources/issuing/physical_bundle"
|
86
|
-
require "stripe/resources/issuing/settlement"
|
87
69
|
require "stripe/resources/issuing/token"
|
88
70
|
require "stripe/resources/issuing/transaction"
|
89
71
|
require "stripe/resources/line_item"
|
90
72
|
require "stripe/resources/login_link"
|
91
73
|
require "stripe/resources/mandate"
|
92
|
-
require "stripe/resources/margin"
|
93
|
-
require "stripe/resources/order"
|
94
|
-
require "stripe/resources/payment_attempt_record"
|
95
74
|
require "stripe/resources/payment_intent"
|
96
75
|
require "stripe/resources/payment_link"
|
97
76
|
require "stripe/resources/payment_method"
|
98
77
|
require "stripe/resources/payment_method_configuration"
|
99
78
|
require "stripe/resources/payment_method_domain"
|
100
|
-
require "stripe/resources/payment_record"
|
101
79
|
require "stripe/resources/payout"
|
102
80
|
require "stripe/resources/person"
|
103
81
|
require "stripe/resources/plan"
|
@@ -106,16 +84,12 @@ require "stripe/resources/product"
|
|
106
84
|
require "stripe/resources/product_feature"
|
107
85
|
require "stripe/resources/promotion_code"
|
108
86
|
require "stripe/resources/quote"
|
109
|
-
require "stripe/resources/quote_line"
|
110
|
-
require "stripe/resources/quote_preview_invoice"
|
111
|
-
require "stripe/resources/quote_preview_subscription_schedule"
|
112
87
|
require "stripe/resources/radar/early_fraud_warning"
|
113
88
|
require "stripe/resources/radar/value_list"
|
114
89
|
require "stripe/resources/radar/value_list_item"
|
115
90
|
require "stripe/resources/refund"
|
116
91
|
require "stripe/resources/reporting/report_run"
|
117
92
|
require "stripe/resources/reporting/report_type"
|
118
|
-
require "stripe/resources/reserve_transaction"
|
119
93
|
require "stripe/resources/reversal"
|
120
94
|
require "stripe/resources/review"
|
121
95
|
require "stripe/resources/setup_attempt"
|
@@ -123,28 +97,23 @@ require "stripe/resources/setup_intent"
|
|
123
97
|
require "stripe/resources/shipping_rate"
|
124
98
|
require "stripe/resources/sigma/scheduled_query_run"
|
125
99
|
require "stripe/resources/source"
|
126
|
-
require "stripe/resources/source_mandate_notification"
|
127
100
|
require "stripe/resources/source_transaction"
|
128
101
|
require "stripe/resources/subscription"
|
129
102
|
require "stripe/resources/subscription_item"
|
130
103
|
require "stripe/resources/subscription_schedule"
|
131
|
-
require "stripe/resources/tax/association"
|
132
104
|
require "stripe/resources/tax/calculation"
|
133
105
|
require "stripe/resources/tax/calculation_line_item"
|
134
|
-
require "stripe/resources/tax/form"
|
135
106
|
require "stripe/resources/tax/registration"
|
136
107
|
require "stripe/resources/tax/settings"
|
137
108
|
require "stripe/resources/tax/transaction"
|
138
109
|
require "stripe/resources/tax/transaction_line_item"
|
139
110
|
require "stripe/resources/tax_code"
|
140
|
-
require "stripe/resources/tax_deducted_at_source"
|
141
111
|
require "stripe/resources/tax_id"
|
142
112
|
require "stripe/resources/tax_rate"
|
143
113
|
require "stripe/resources/terminal/configuration"
|
144
114
|
require "stripe/resources/terminal/connection_token"
|
145
115
|
require "stripe/resources/terminal/location"
|
146
116
|
require "stripe/resources/terminal/reader"
|
147
|
-
require "stripe/resources/terminal/reader_collected_data"
|
148
117
|
require "stripe/resources/test_helpers/test_clock"
|
149
118
|
require "stripe/resources/token"
|
150
119
|
require "stripe/resources/topup"
|
@@ -4,12 +4,10 @@
|
|
4
4
|
module Stripe
|
5
5
|
module FinancialConnections
|
6
6
|
class AccountService < StripeService
|
7
|
-
attr_reader :
|
7
|
+
attr_reader :owners
|
8
8
|
|
9
9
|
def initialize(requestor)
|
10
10
|
super(requestor)
|
11
|
-
@inferred_balances = Stripe::FinancialConnections::AccountInferredBalanceService
|
12
|
-
.new(@requestor)
|
13
11
|
@owners = Stripe::FinancialConnections::AccountOwnerService.new(@requestor)
|
14
12
|
end
|
15
13
|
|
@@ -3,12 +3,11 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class FinancialConnectionsService < StripeService
|
6
|
-
attr_reader :accounts, :
|
6
|
+
attr_reader :accounts, :sessions, :transactions
|
7
7
|
|
8
8
|
def initialize(requestor)
|
9
9
|
super(requestor)
|
10
10
|
@accounts = Stripe::FinancialConnections::AccountService.new(@requestor)
|
11
|
-
@institutions = Stripe::FinancialConnections::InstitutionService.new(@requestor)
|
12
11
|
@sessions = Stripe::FinancialConnections::SessionService.new(@requestor)
|
13
12
|
@transactions = Stripe::FinancialConnections::TransactionService.new(@requestor)
|
14
13
|
end
|