stripe 13.3.0.pre.beta.1 → 13.3.0.pre.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +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 +49 -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 +76 -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 +96 -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 +73 -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 +197 -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
@@ -12,6 +12,41 @@ module Stripe
|
|
12
12
|
"financial_connections.institution"
|
13
13
|
end
|
14
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
|
+
|
15
50
|
# Returns a list of Financial Connections Institution objects.
|
16
51
|
def self.list(filters = {}, opts = {})
|
17
52
|
request_stripe_object(
|
@@ -12,6 +12,55 @@ module Stripe
|
|
12
12
|
"financial_connections.session"
|
13
13
|
end
|
14
14
|
|
15
|
+
class AccountHolder < Stripe::StripeObject
|
16
|
+
attr_reader :account, :customer, :type
|
17
|
+
end
|
18
|
+
|
19
|
+
class Filters < Stripe::StripeObject
|
20
|
+
attr_reader :account_subcategories, :countries, :institution
|
21
|
+
end
|
22
|
+
|
23
|
+
class Limits < Stripe::StripeObject
|
24
|
+
attr_reader :accounts
|
25
|
+
end
|
26
|
+
|
27
|
+
class ManualEntry < Stripe::StripeObject; end
|
28
|
+
|
29
|
+
class StatusDetails < Stripe::StripeObject
|
30
|
+
class Cancelled < Stripe::StripeObject
|
31
|
+
attr_reader :reason
|
32
|
+
end
|
33
|
+
attr_reader :cancelled
|
34
|
+
end
|
35
|
+
# The account holder for whom accounts are collected in this session.
|
36
|
+
attr_reader :account_holder
|
37
|
+
# The accounts that were collected as part of this Session.
|
38
|
+
attr_reader :accounts
|
39
|
+
# A value that will be passed to the client to launch the authentication flow.
|
40
|
+
attr_reader :client_secret
|
41
|
+
# Attribute for field filters
|
42
|
+
attr_reader :filters
|
43
|
+
# Unique identifier for the object.
|
44
|
+
attr_reader :id
|
45
|
+
# Attribute for field limits
|
46
|
+
attr_reader :limits
|
47
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
48
|
+
attr_reader :livemode
|
49
|
+
# Attribute for field manual_entry
|
50
|
+
attr_reader :manual_entry
|
51
|
+
# String representing the object's type. Objects of the same type share the same value.
|
52
|
+
attr_reader :object
|
53
|
+
# Permissions requested for accounts collected during this session.
|
54
|
+
attr_reader :permissions
|
55
|
+
# Data features requested to be retrieved upon account creation.
|
56
|
+
attr_reader :prefetch
|
57
|
+
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
58
|
+
attr_reader :return_url
|
59
|
+
# The current state of the session.
|
60
|
+
attr_reader :status
|
61
|
+
# Attribute for field status_details
|
62
|
+
attr_reader :status_details
|
63
|
+
|
15
64
|
# To launch the Financial Connections authorization flow, create a Session. The session's client_secret can be used to launch the flow using Stripe.js.
|
16
65
|
def self.create(params = {}, opts = {})
|
17
66
|
request_stripe_object(
|
@@ -12,6 +12,34 @@ module Stripe
|
|
12
12
|
"financial_connections.transaction"
|
13
13
|
end
|
14
14
|
|
15
|
+
class StatusTransitions < Stripe::StripeObject
|
16
|
+
attr_reader :posted_at, :void_at
|
17
|
+
end
|
18
|
+
# The ID of the Financial Connections Account this transaction belongs to.
|
19
|
+
attr_reader :account
|
20
|
+
# The amount of this transaction, in cents (or local equivalent).
|
21
|
+
attr_reader :amount
|
22
|
+
# 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).
|
23
|
+
attr_reader :currency
|
24
|
+
# The description of this transaction.
|
25
|
+
attr_reader :description
|
26
|
+
# Unique identifier for the object.
|
27
|
+
attr_reader :id
|
28
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
29
|
+
attr_reader :livemode
|
30
|
+
# String representing the object's type. Objects of the same type share the same value.
|
31
|
+
attr_reader :object
|
32
|
+
# The status of the transaction.
|
33
|
+
attr_reader :status
|
34
|
+
# Attribute for field status_transitions
|
35
|
+
attr_reader :status_transitions
|
36
|
+
# Time at which the transaction was transacted. Measured in seconds since the Unix epoch.
|
37
|
+
attr_reader :transacted_at
|
38
|
+
# The token of the transaction refresh that last updated or created this transaction.
|
39
|
+
attr_reader :transaction_refresh
|
40
|
+
# Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
41
|
+
attr_reader :updated
|
42
|
+
|
15
43
|
# Returns a list of Financial Connections Transaction objects.
|
16
44
|
def self.list(filters = {}, opts = {})
|
17
45
|
request_stripe_object(
|
@@ -28,6 +28,46 @@ module Stripe
|
|
28
28
|
"forwarding.request"
|
29
29
|
end
|
30
30
|
|
31
|
+
class RequestContext < Stripe::StripeObject
|
32
|
+
attr_reader :destination_duration, :destination_ip_address
|
33
|
+
end
|
34
|
+
|
35
|
+
class RequestDetails < Stripe::StripeObject
|
36
|
+
class Header < Stripe::StripeObject
|
37
|
+
attr_reader :name, :value
|
38
|
+
end
|
39
|
+
attr_reader :body, :headers, :http_method
|
40
|
+
end
|
41
|
+
|
42
|
+
class ResponseDetails < Stripe::StripeObject
|
43
|
+
class Header < Stripe::StripeObject
|
44
|
+
attr_reader :name, :value
|
45
|
+
end
|
46
|
+
attr_reader :body, :headers, :status
|
47
|
+
end
|
48
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
49
|
+
attr_reader :created
|
50
|
+
# Unique identifier for the object.
|
51
|
+
attr_reader :id
|
52
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
53
|
+
attr_reader :livemode
|
54
|
+
# 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.
|
55
|
+
attr_reader :metadata
|
56
|
+
# String representing the object's type. Objects of the same type share the same value.
|
57
|
+
attr_reader :object
|
58
|
+
# The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed.
|
59
|
+
attr_reader :payment_method
|
60
|
+
# The field kinds to be replaced in the forwarded request.
|
61
|
+
attr_reader :replacements
|
62
|
+
# Context about the request from Stripe's servers to the destination endpoint.
|
63
|
+
attr_reader :request_context
|
64
|
+
# The request that was sent to the destination endpoint. We redact any sensitive fields.
|
65
|
+
attr_reader :request_details
|
66
|
+
# The response that the destination endpoint returned to us. We redact any sensitive fields.
|
67
|
+
attr_reader :response_details
|
68
|
+
# The destination URL for the forwarded request. Must be supported by the config.
|
69
|
+
attr_reader :url
|
70
|
+
|
31
71
|
# Creates a ForwardingRequest object.
|
32
72
|
def self.create(params = {}, opts = {})
|
33
73
|
request_stripe_object(
|
@@ -13,6 +13,88 @@ module Stripe
|
|
13
13
|
"funding_instructions"
|
14
14
|
end
|
15
15
|
|
16
|
+
class BankTransfer < Stripe::StripeObject
|
17
|
+
class FinancialAddress < Stripe::StripeObject
|
18
|
+
class Aba < Stripe::StripeObject
|
19
|
+
class AccountHolderAddress < Stripe::StripeObject
|
20
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
21
|
+
end
|
22
|
+
|
23
|
+
class BankAddress < Stripe::StripeObject
|
24
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
25
|
+
end
|
26
|
+
attr_reader :account_holder_address, :account_holder_name, :account_number, :account_type, :bank_address, :bank_name, :routing_number
|
27
|
+
end
|
28
|
+
|
29
|
+
class Iban < Stripe::StripeObject
|
30
|
+
class AccountHolderAddress < Stripe::StripeObject
|
31
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
32
|
+
end
|
33
|
+
|
34
|
+
class BankAddress < Stripe::StripeObject
|
35
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
36
|
+
end
|
37
|
+
attr_reader :account_holder_address, :account_holder_name, :bank_address, :bic, :country, :iban
|
38
|
+
end
|
39
|
+
|
40
|
+
class SortCode < Stripe::StripeObject
|
41
|
+
class AccountHolderAddress < Stripe::StripeObject
|
42
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
43
|
+
end
|
44
|
+
|
45
|
+
class BankAddress < Stripe::StripeObject
|
46
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
47
|
+
end
|
48
|
+
attr_reader :account_holder_address, :account_holder_name, :account_number, :bank_address, :sort_code
|
49
|
+
end
|
50
|
+
|
51
|
+
class Spei < Stripe::StripeObject
|
52
|
+
class AccountHolderAddress < Stripe::StripeObject
|
53
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
54
|
+
end
|
55
|
+
|
56
|
+
class BankAddress < Stripe::StripeObject
|
57
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
58
|
+
end
|
59
|
+
attr_reader :account_holder_address, :account_holder_name, :bank_address, :bank_code, :bank_name, :clabe
|
60
|
+
end
|
61
|
+
|
62
|
+
class Swift < Stripe::StripeObject
|
63
|
+
class AccountHolderAddress < Stripe::StripeObject
|
64
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
65
|
+
end
|
66
|
+
|
67
|
+
class BankAddress < Stripe::StripeObject
|
68
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
69
|
+
end
|
70
|
+
attr_reader :account_holder_address, :account_holder_name, :account_number, :account_type, :bank_address, :bank_name, :swift_code
|
71
|
+
end
|
72
|
+
|
73
|
+
class Zengin < Stripe::StripeObject
|
74
|
+
class AccountHolderAddress < Stripe::StripeObject
|
75
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
76
|
+
end
|
77
|
+
|
78
|
+
class BankAddress < Stripe::StripeObject
|
79
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
80
|
+
end
|
81
|
+
attr_reader :account_holder_address, :account_holder_name, :account_number, :account_type, :bank_address, :bank_code, :bank_name, :branch_code, :branch_name
|
82
|
+
end
|
83
|
+
attr_reader :aba, :iban, :sort_code, :spei, :supported_networks, :swift, :type, :zengin
|
84
|
+
end
|
85
|
+
attr_reader :country, :financial_addresses, :type
|
86
|
+
end
|
87
|
+
# Attribute for field bank_transfer
|
88
|
+
attr_reader :bank_transfer
|
89
|
+
# 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).
|
90
|
+
attr_reader :currency
|
91
|
+
# The `funding_type` of the returned instructions
|
92
|
+
attr_reader :funding_type
|
93
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
94
|
+
attr_reader :livemode
|
95
|
+
# String representing the object's type. Objects of the same type share the same value.
|
96
|
+
attr_reader :object
|
97
|
+
|
16
98
|
def resource_url
|
17
99
|
if !respond_to?(:customer) || customer.nil?
|
18
100
|
raise NotImplementedError,
|
@@ -15,6 +15,43 @@ module Stripe
|
|
15
15
|
"gift_cards.card"
|
16
16
|
end
|
17
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
|
+
|
18
55
|
# Creates a new gift card object.
|
19
56
|
def self.create(params = {}, opts = {})
|
20
57
|
request_stripe_object(
|
@@ -19,6 +19,45 @@ module Stripe
|
|
19
19
|
"gift_cards.transaction"
|
20
20
|
end
|
21
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
|
+
|
22
61
|
# Cancel a gift card transaction
|
23
62
|
def cancel(params = {}, opts = {})
|
24
63
|
request_stripe_object(
|
@@ -22,6 +22,98 @@ module Stripe
|
|
22
22
|
"identity.verification_report"
|
23
23
|
end
|
24
24
|
|
25
|
+
class Document < Stripe::StripeObject
|
26
|
+
class Address < Stripe::StripeObject
|
27
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
28
|
+
end
|
29
|
+
|
30
|
+
class Dob < Stripe::StripeObject
|
31
|
+
attr_reader :day, :month, :year
|
32
|
+
end
|
33
|
+
|
34
|
+
class Error < Stripe::StripeObject
|
35
|
+
attr_reader :code, :reason
|
36
|
+
end
|
37
|
+
|
38
|
+
class ExpirationDate < Stripe::StripeObject
|
39
|
+
attr_reader :day, :month, :year
|
40
|
+
end
|
41
|
+
|
42
|
+
class IssuedDate < Stripe::StripeObject
|
43
|
+
attr_reader :day, :month, :year
|
44
|
+
end
|
45
|
+
attr_reader :address, :dob, :error, :expiration_date, :files, :first_name, :issued_date, :issuing_country, :last_name, :number, :status, :type
|
46
|
+
end
|
47
|
+
|
48
|
+
class Email < Stripe::StripeObject
|
49
|
+
class Error < Stripe::StripeObject
|
50
|
+
attr_reader :code, :reason
|
51
|
+
end
|
52
|
+
attr_reader :email, :error, :status
|
53
|
+
end
|
54
|
+
|
55
|
+
class IdNumber < Stripe::StripeObject
|
56
|
+
class Dob < Stripe::StripeObject
|
57
|
+
attr_reader :day, :month, :year
|
58
|
+
end
|
59
|
+
|
60
|
+
class Error < Stripe::StripeObject
|
61
|
+
attr_reader :code, :reason
|
62
|
+
end
|
63
|
+
attr_reader :dob, :error, :first_name, :id_number, :id_number_type, :last_name, :status
|
64
|
+
end
|
65
|
+
|
66
|
+
class Options < Stripe::StripeObject
|
67
|
+
class Document < Stripe::StripeObject
|
68
|
+
attr_reader :allowed_types, :require_id_number, :require_live_capture, :require_matching_selfie
|
69
|
+
end
|
70
|
+
|
71
|
+
class IdNumber < Stripe::StripeObject; end
|
72
|
+
attr_reader :document, :id_number
|
73
|
+
end
|
74
|
+
|
75
|
+
class Phone < Stripe::StripeObject
|
76
|
+
class Error < Stripe::StripeObject
|
77
|
+
attr_reader :code, :reason
|
78
|
+
end
|
79
|
+
attr_reader :error, :phone, :status
|
80
|
+
end
|
81
|
+
|
82
|
+
class Selfie < Stripe::StripeObject
|
83
|
+
class Error < Stripe::StripeObject
|
84
|
+
attr_reader :code, :reason
|
85
|
+
end
|
86
|
+
attr_reader :document, :error, :selfie, :status
|
87
|
+
end
|
88
|
+
# A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
|
89
|
+
attr_reader :client_reference_id
|
90
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
91
|
+
attr_reader :created
|
92
|
+
# Result from a document check
|
93
|
+
attr_reader :document
|
94
|
+
# Result from a email check
|
95
|
+
attr_reader :email
|
96
|
+
# Unique identifier for the object.
|
97
|
+
attr_reader :id
|
98
|
+
# Result from an id_number check
|
99
|
+
attr_reader :id_number
|
100
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
101
|
+
attr_reader :livemode
|
102
|
+
# String representing the object's type. Objects of the same type share the same value.
|
103
|
+
attr_reader :object
|
104
|
+
# Attribute for field options
|
105
|
+
attr_reader :options
|
106
|
+
# Result from a phone check
|
107
|
+
attr_reader :phone
|
108
|
+
# Result from a selfie check
|
109
|
+
attr_reader :selfie
|
110
|
+
# Type of report.
|
111
|
+
attr_reader :type
|
112
|
+
# The configuration token of a verification flow from the dashboard.
|
113
|
+
attr_reader :verification_flow
|
114
|
+
# ID of the VerificationSession that created this report.
|
115
|
+
attr_reader :verification_session
|
116
|
+
|
25
117
|
# List all verification reports.
|
26
118
|
def self.list(filters = {}, opts = {})
|
27
119
|
request_stripe_object(
|
@@ -24,6 +24,82 @@ module Stripe
|
|
24
24
|
"identity.verification_session"
|
25
25
|
end
|
26
26
|
|
27
|
+
class LastError < Stripe::StripeObject
|
28
|
+
attr_reader :code, :reason
|
29
|
+
end
|
30
|
+
|
31
|
+
class Options < Stripe::StripeObject
|
32
|
+
class Document < Stripe::StripeObject
|
33
|
+
attr_reader :allowed_types, :require_id_number, :require_live_capture, :require_matching_selfie
|
34
|
+
end
|
35
|
+
|
36
|
+
class Email < Stripe::StripeObject
|
37
|
+
attr_reader :require_verification
|
38
|
+
end
|
39
|
+
|
40
|
+
class IdNumber < Stripe::StripeObject; end
|
41
|
+
|
42
|
+
class Phone < Stripe::StripeObject
|
43
|
+
attr_reader :require_verification
|
44
|
+
end
|
45
|
+
attr_reader :document, :email, :id_number, :phone
|
46
|
+
end
|
47
|
+
|
48
|
+
class ProvidedDetails < Stripe::StripeObject
|
49
|
+
attr_reader :email, :phone
|
50
|
+
end
|
51
|
+
|
52
|
+
class Redaction < Stripe::StripeObject
|
53
|
+
attr_reader :status
|
54
|
+
end
|
55
|
+
|
56
|
+
class VerifiedOutputs < Stripe::StripeObject
|
57
|
+
class Address < Stripe::StripeObject
|
58
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
59
|
+
end
|
60
|
+
|
61
|
+
class Dob < Stripe::StripeObject
|
62
|
+
attr_reader :day, :month, :year
|
63
|
+
end
|
64
|
+
attr_reader :address, :dob, :email, :first_name, :id_number, :id_number_type, :last_name, :phone
|
65
|
+
end
|
66
|
+
# A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
|
67
|
+
attr_reader :client_reference_id
|
68
|
+
# The short-lived client secret used by Stripe.js to [show a verification modal](https://stripe.com/docs/js/identity/modal) inside your app. This client secret expires after 24 hours and can only be used once. Don’t store it, log it, embed it in a URL, or expose it to anyone other than the user. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs on [passing the client secret to the frontend](https://stripe.com/docs/identity/verification-sessions#client-secret) to learn more.
|
69
|
+
attr_reader :client_secret
|
70
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
71
|
+
attr_reader :created
|
72
|
+
# Unique identifier for the object.
|
73
|
+
attr_reader :id
|
74
|
+
# If present, this property tells you the last error encountered when processing the verification.
|
75
|
+
attr_reader :last_error
|
76
|
+
# ID of the most recent VerificationReport. [Learn more about accessing detailed verification results.](https://stripe.com/docs/identity/verification-sessions#results)
|
77
|
+
attr_reader :last_verification_report
|
78
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
79
|
+
attr_reader :livemode
|
80
|
+
# 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.
|
81
|
+
attr_reader :metadata
|
82
|
+
# String representing the object's type. Objects of the same type share the same value.
|
83
|
+
attr_reader :object
|
84
|
+
# A set of options for the session’s verification checks.
|
85
|
+
attr_reader :options
|
86
|
+
# Details provided about the user being verified. These details may be shown to the user.
|
87
|
+
attr_reader :provided_details
|
88
|
+
# Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null.
|
89
|
+
attr_reader :redaction
|
90
|
+
# Token referencing a Customer resource.
|
91
|
+
attr_reader :related_customer
|
92
|
+
# Status of this VerificationSession. [Learn more about the lifecycle of sessions](https://stripe.com/docs/identity/how-sessions-work).
|
93
|
+
attr_reader :status
|
94
|
+
# The type of [verification check](https://stripe.com/docs/identity/verification-checks) to be performed.
|
95
|
+
attr_reader :type
|
96
|
+
# The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 48 hours and can only be used once. Don’t store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on [verifying identity documents](https://stripe.com/docs/identity/verify-identity-documents?platform=web&type=redirect) to learn how to redirect users to Stripe.
|
97
|
+
attr_reader :url
|
98
|
+
# The configuration token of a verification flow from the dashboard.
|
99
|
+
attr_reader :verification_flow
|
100
|
+
# The user’s verified data.
|
101
|
+
attr_reader :verified_outputs
|
102
|
+
|
27
103
|
# A VerificationSession object can be canceled when it is in requires_input [status](https://stripe.com/docs/identity/how-sessions-work).
|
28
104
|
#
|
29
105
|
# Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://stripe.com/docs/identity/verification-sessions#cancel).
|