mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-09-25 00:01:27 -04:00
Compare commits
11 Commits
v15.6.0-al
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
cf0db6f745 | ||
|
4cde8ca569 | ||
|
c279c39d87 | ||
|
8a0ca5aae1 | ||
|
401626c2bf | ||
|
742abc2abd | ||
|
8066e925ca | ||
|
6c294313be | ||
|
07b68c97b0 | ||
|
6ae1f4a853 | ||
|
b6298969ae |
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -14,6 +14,7 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- beta
|
||||
- private-preview
|
||||
- sdk-release/**
|
||||
- feature/**
|
||||
|
||||
|
10
.rubocop.yml
10
.rubocop.yml
@ -19,6 +19,7 @@ Layout/LineLength:
|
||||
- "lib/stripe/stripe_client.rb"
|
||||
- "lib/stripe/resources/**/*.rb"
|
||||
- "lib/stripe/services/**/*.rb"
|
||||
- "lib/stripe/events/**/*.rb"
|
||||
- "test/**/*.rb"
|
||||
|
||||
Lint/MissingSuper:
|
||||
@ -40,6 +41,12 @@ Metrics/BlockLength:
|
||||
Metrics/ClassLength:
|
||||
Enabled: false
|
||||
|
||||
Metrics/CollectionLiteralLength:
|
||||
Enabled: true
|
||||
Exclude:
|
||||
# We have thin event types that are automatically generated from the OpenAPI spec
|
||||
- "lib/stripe/event_types.rb"
|
||||
|
||||
# There are several methods with many branches in api_requestor due to
|
||||
# request logic.
|
||||
Metrics/CyclomaticComplexity:
|
||||
@ -63,6 +70,7 @@ Metrics/MethodLength:
|
||||
- "lib/stripe/api_requestor.rb"
|
||||
AllowedMethods:
|
||||
- initialize
|
||||
- inner_class_types
|
||||
|
||||
# TODO(xavdid): remove this once the first `basil` release is out
|
||||
Naming/MethodName:
|
||||
@ -208,8 +216,6 @@ Lint/UselessRescue: # new in 1.43
|
||||
Enabled: true
|
||||
Lint/UselessRuby2Keywords: # new in 1.23
|
||||
Enabled: true
|
||||
Metrics/CollectionLiteralLength: # new in 1.47
|
||||
Enabled: true
|
||||
Naming/BlockForwarding: # new in 1.24
|
||||
Enabled: true
|
||||
Security/CompoundHash: # new in 1.28
|
||||
|
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -2,7 +2,8 @@
|
||||
// Show the repo name in the top window bar.
|
||||
"window.title": "${rootName}${separator}${activeEditorMedium}",
|
||||
|
||||
"editor.formatOnSave": true,
|
||||
// formatting on save is very slow in ruby
|
||||
"editor.formatOnSave": false,
|
||||
"files.trimTrailingWhitespace": true,
|
||||
|
||||
// Rubocop settings
|
||||
|
@ -1 +1 @@
|
||||
2025-08-27.basil
|
||||
2025-09-30.clover
|
@ -1 +1 @@
|
||||
v1932
|
||||
v2023
|
@ -5,7 +5,7 @@ From the examples folder, run:
|
||||
|
||||
e.g.
|
||||
|
||||
`RUBYLIB=../lib ruby thinevent_webhook_handler.rb`
|
||||
`RUBYLIB=../lib ruby event_notification_webhook_handler.rb`
|
||||
|
||||
## Adding a new example
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
# typed: false
|
||||
|
||||
# thinevent_webhook_handler.rb - receive and process thin events like the
|
||||
# event_notification_webhook_handler.rb - receive and process event notification like the
|
||||
# v1.billing.meter.error_report_triggered event.
|
||||
#
|
||||
# In this example, we:
|
||||
# - create a StripeClient called client
|
||||
# - use client.parse_thin_event to parse the received thin event webhook body
|
||||
# - use client.parse_event_notification to parse the received event notification webhook body
|
||||
# - call client.v2.core.events.retrieve to retrieve the full event object
|
||||
# - if it is a V1BillingMeterErrorReportTriggeredEvent event type, call
|
||||
# event.fetchRelatedObject to retrieve the Billing Meter object associated
|
||||
@ -24,12 +24,10 @@ client = Stripe::StripeClient.new(api_key)
|
||||
post "/webhook" do
|
||||
webhook_body = request.body.read
|
||||
sig_header = request.env["HTTP_STRIPE_SIGNATURE"]
|
||||
thin_event = client.parse_thin_event(webhook_body, sig_header, webhook_secret)
|
||||
event_notification = client.parse_event_notification(webhook_body, sig_header, webhook_secret)
|
||||
|
||||
# Fetch the event data to understand the failure
|
||||
event = client.v2.core.events.retrieve(thin_event.id)
|
||||
if event.instance_of? Stripe::V1BillingMeterErrorReportTriggeredEvent
|
||||
meter = event.fetch_related_object
|
||||
if event_notification.instance_of?(Stripe::Events::V1BillingMeterErrorReportTriggeredEventNotification)
|
||||
meter = event_notification.fetch_related_object
|
||||
meter_id = meter.id
|
||||
puts "Success!", meter_id
|
||||
end
|
@ -51,7 +51,7 @@ require "stripe/api_resource_test_helpers"
|
||||
require "stripe/singleton_api_resource"
|
||||
require "stripe/webhook"
|
||||
require "stripe/stripe_configuration"
|
||||
require "stripe/thin_event"
|
||||
require "stripe/event_notification"
|
||||
|
||||
# Named API resources
|
||||
require "stripe/resources"
|
||||
|
@ -211,7 +211,8 @@ module Stripe
|
||||
|
||||
api_mode = Util.get_api_mode(path)
|
||||
Util.convert_to_stripe_object_with_params(resp.data, params, RequestOptions.persistable(req_opts), resp,
|
||||
api_mode: api_mode, requestor: self)
|
||||
api_mode: api_mode, requestor: self,
|
||||
v2_deleted_object: method == :delete && api_mode == :v2)
|
||||
end
|
||||
|
||||
# Execute request without instantiating a new object if the relevant object's name matches the class
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
module Stripe
|
||||
module ApiVersion
|
||||
CURRENT = "2025-08-27.basil"
|
||||
CURRENT_MAJOR = "basil"
|
||||
CURRENT = "2025-09-30.clover"
|
||||
CURRENT_MAJOR = "clover"
|
||||
end
|
||||
end
|
||||
|
70
lib/stripe/event_notification.rb
Normal file
70
lib/stripe/event_notification.rb
Normal file
@ -0,0 +1,70 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
module V2
|
||||
class EventReasonRequest
|
||||
attr_reader :id, :idempotency_key
|
||||
|
||||
def initialize(event_reason_request_payload = {})
|
||||
@id = event_reason_request_payload[:id]
|
||||
@idempotency_key = event_reason_request_payload[:idempotency_key]
|
||||
end
|
||||
end
|
||||
|
||||
class EventReason
|
||||
attr_reader :type, :request
|
||||
|
||||
def initialize(event_reason_payload = {})
|
||||
@type = event_reason_payload[:type]
|
||||
@request = EventReasonRequest.new(event_reason_payload[:request])
|
||||
end
|
||||
end
|
||||
|
||||
class RelatedObject
|
||||
attr_reader :id, :type, :url
|
||||
|
||||
def initialize(related_object)
|
||||
@id = related_object[:id]
|
||||
@type = related_object[:type]
|
||||
@url = related_object[:url]
|
||||
end
|
||||
end
|
||||
|
||||
class EventNotification
|
||||
attr_reader :id, :type, :created, :context, :livemode, :reason
|
||||
|
||||
def initialize(event_payload, client)
|
||||
@id = event_payload[:id]
|
||||
@type = event_payload[:type]
|
||||
@created = event_payload[:created]
|
||||
@livemode = event_payload[:livemode]
|
||||
@context = event_payload[:context]
|
||||
@reason = EventReason.new(event_payload[:reason]) if event_payload[:reason]
|
||||
# private unless a child declares an attr_reader
|
||||
@related_object = RelatedObject.new(event_payload[:related_object]) if event_payload[:related_object]
|
||||
|
||||
# internal use
|
||||
@client = client
|
||||
end
|
||||
|
||||
# Retrieves the Event that generated this EventNotification.
|
||||
def fetch_event
|
||||
resp = @client.raw_request(:get, "/v2/core/events/#{id}", opts: { stripe_context: context },
|
||||
usage: ["fetch_event"])
|
||||
@client.deserialize(resp.http_body, api_mode: :v2)
|
||||
end
|
||||
end
|
||||
|
||||
class UnknownEventNotification < EventNotification
|
||||
attr_reader :related_object
|
||||
|
||||
def fetch_related_object
|
||||
return nil if @related_object.nil?
|
||||
|
||||
resp = @client.raw_request(:get, related_object.url, opts: { stripe_context: context },
|
||||
usage: ["fetch_related_object"])
|
||||
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
@ -2,13 +2,27 @@
|
||||
|
||||
module Stripe
|
||||
module EventTypes
|
||||
def self.thin_event_names_to_classes
|
||||
def self.v2_event_types_to_classes
|
||||
{
|
||||
# The beginning of the section generated from our OpenAPI spec
|
||||
V1BillingMeterErrorReportTriggeredEvent.lookup_type => V1BillingMeterErrorReportTriggeredEvent,
|
||||
V1BillingMeterNoMeterFoundEvent.lookup_type => V1BillingMeterNoMeterFoundEvent,
|
||||
V2CoreEventDestinationPingEvent.lookup_type => V2CoreEventDestinationPingEvent,
|
||||
# The end of the section generated from our OpenAPI spec
|
||||
# v2 event types: The beginning of the section generated from our OpenAPI spec
|
||||
Events::V1BillingMeterErrorReportTriggeredEvent.lookup_type =>
|
||||
Events::V1BillingMeterErrorReportTriggeredEvent,
|
||||
Events::V1BillingMeterNoMeterFoundEvent.lookup_type => Events::V1BillingMeterNoMeterFoundEvent,
|
||||
Events::V2CoreEventDestinationPingEvent.lookup_type => Events::V2CoreEventDestinationPingEvent,
|
||||
# v2 event types: The end of the section generated from our OpenAPI spec
|
||||
}
|
||||
end
|
||||
|
||||
def self.event_notification_types_to_classes
|
||||
{
|
||||
# event notification types: The beginning of the section generated from our OpenAPI spec
|
||||
Events::V1BillingMeterErrorReportTriggeredEventNotification.lookup_type =>
|
||||
Events::V1BillingMeterErrorReportTriggeredEventNotification,
|
||||
Events::V1BillingMeterNoMeterFoundEventNotification.lookup_type =>
|
||||
Events::V1BillingMeterNoMeterFoundEventNotification,
|
||||
Events::V2CoreEventDestinationPingEventNotification.lookup_type =>
|
||||
Events::V2CoreEventDestinationPingEventNotification,
|
||||
# event notification types: The end of the section generated from our OpenAPI spec
|
||||
}
|
||||
end
|
||||
end
|
||||
|
@ -2,22 +2,122 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a Meter has invalid async usage events.
|
||||
class V1BillingMeterErrorReportTriggeredEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v1.billing.meter.error_report_triggered"
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
module Events
|
||||
# Occurs when a Meter has invalid async usage events.
|
||||
class V1BillingMeterErrorReportTriggeredEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v1.billing.meter.error_report_triggered"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
class V1BillingMeterErrorReportTriggeredEventData < Stripe::StripeObject
|
||||
class Reason < Stripe::StripeObject
|
||||
class ErrorType < Stripe::StripeObject
|
||||
class SampleError < Stripe::StripeObject
|
||||
class Request < Stripe::StripeObject
|
||||
# The request idempotency key.
|
||||
attr_reader :identifier
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The error message.
|
||||
attr_reader :error_message
|
||||
# The request causes the error.
|
||||
attr_reader :request
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { request: Request }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Open Enum.
|
||||
attr_reader :code
|
||||
# The number of errors of this type.
|
||||
attr_reader :error_count
|
||||
# A list of sample errors of this type.
|
||||
attr_reader :sample_errors
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { sample_errors: SampleError }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The total error count within this window.
|
||||
attr_reader :error_count
|
||||
# The error details.
|
||||
attr_reader :error_types
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { error_types: ErrorType }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# This contains information about why meter error happens.
|
||||
attr_reader :reason
|
||||
# Extra field included in the event's `data` when fetched from /v2/events.
|
||||
attr_reader :developer_message_summary
|
||||
# The start of the window that is encapsulated by this summary.
|
||||
attr_reader :validation_start
|
||||
# The end of the window that is encapsulated by this summary.
|
||||
attr_reader :validation_end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { reason: Reason }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { data: V1BillingMeterErrorReportTriggeredEventData }
|
||||
end
|
||||
attr_reader :data, :related_object
|
||||
|
||||
# Retrieves the related object from the API. Makes an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_context: context }
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
# Occurs when a Meter has invalid async usage events.
|
||||
class V1BillingMeterErrorReportTriggeredEventNotification < Stripe::V2::EventNotification
|
||||
def self.lookup_type
|
||||
"v1.billing.meter.error_report_triggered"
|
||||
end
|
||||
|
||||
attr_reader :related_object
|
||||
|
||||
# Retrieves the Meter related to this EventNotification from the Stripe API. Makes an API request on every call.
|
||||
def fetch_related_object
|
||||
resp = @client.raw_request(
|
||||
:get,
|
||||
related_object.url,
|
||||
opts: { stripe_context: context },
|
||||
usage: ["fetch_related_object"]
|
||||
)
|
||||
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -2,12 +2,99 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Occurs when a Meter's id is missing or invalid in async usage events.
|
||||
class V1BillingMeterNoMeterFoundEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v1.billing.meter.no_meter_found"
|
||||
module Events
|
||||
# Occurs when a Meter's id is missing or invalid in async usage events.
|
||||
class V1BillingMeterNoMeterFoundEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v1.billing.meter.no_meter_found"
|
||||
end
|
||||
|
||||
class V1BillingMeterNoMeterFoundEventData < Stripe::StripeObject
|
||||
class Reason < Stripe::StripeObject
|
||||
class ErrorType < Stripe::StripeObject
|
||||
class SampleError < Stripe::StripeObject
|
||||
class Request < Stripe::StripeObject
|
||||
# The request idempotency key.
|
||||
attr_reader :identifier
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The error message.
|
||||
attr_reader :error_message
|
||||
# The request causes the error.
|
||||
attr_reader :request
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { request: Request }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Open Enum.
|
||||
attr_reader :code
|
||||
# The number of errors of this type.
|
||||
attr_reader :error_count
|
||||
# A list of sample errors of this type.
|
||||
attr_reader :sample_errors
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { sample_errors: SampleError }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The total error count within this window.
|
||||
attr_reader :error_count
|
||||
# The error details.
|
||||
attr_reader :error_types
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { error_types: ErrorType }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# This contains information about why meter error happens.
|
||||
attr_reader :reason
|
||||
# Extra field included in the event's `data` when fetched from /v2/events.
|
||||
attr_reader :developer_message_summary
|
||||
# The start of the window that is encapsulated by this summary.
|
||||
attr_reader :validation_start
|
||||
# The end of the window that is encapsulated by this summary.
|
||||
attr_reader :validation_end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { reason: Reason }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { data: V1BillingMeterNoMeterFoundEventData }
|
||||
end
|
||||
attr_reader :data
|
||||
end
|
||||
|
||||
# Occurs when a Meter's id is missing or invalid in async usage events.
|
||||
class V1BillingMeterNoMeterFoundEventNotification < Stripe::V2::EventNotification
|
||||
def self.lookup_type
|
||||
"v1.billing.meter.no_meter_found"
|
||||
end
|
||||
end
|
||||
# There is additional data present for this event, accessible with the `data` property.
|
||||
# See the Stripe API docs for more information.
|
||||
end
|
||||
end
|
||||
|
@ -2,20 +2,43 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# A ping event used to test the connection to an EventDestination.
|
||||
class V2CoreEventDestinationPingEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.event_destination.ping"
|
||||
module Events
|
||||
# A ping event used to test the connection to an EventDestination.
|
||||
class V2CoreEventDestinationPingEvent < Stripe::V2::Event
|
||||
def self.lookup_type
|
||||
"v2.core.event_destination.ping"
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Makes an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_context: context }
|
||||
)
|
||||
end
|
||||
attr_reader :related_object
|
||||
end
|
||||
|
||||
# Retrieves the related object from the API. Make an API request on every call.
|
||||
def fetch_related_object
|
||||
_request(
|
||||
method: :get,
|
||||
path: related_object.url,
|
||||
base_address: :api,
|
||||
opts: { stripe_account: context }
|
||||
)
|
||||
# A ping event used to test the connection to an EventDestination.
|
||||
class V2CoreEventDestinationPingEventNotification < Stripe::V2::EventNotification
|
||||
def self.lookup_type
|
||||
"v2.core.event_destination.ping"
|
||||
end
|
||||
|
||||
attr_reader :related_object
|
||||
|
||||
# Retrieves the EventDestination related to this EventNotification from the Stripe API. Makes an API request on every call.
|
||||
def fetch_related_object
|
||||
resp = @client.raw_request(
|
||||
:get,
|
||||
related_object.url,
|
||||
opts: { stripe_context: context },
|
||||
usage: ["fetch_related_object"]
|
||||
)
|
||||
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -21,6 +21,7 @@ module Stripe
|
||||
ApplicationFeeRefund.object_name => ApplicationFeeRefund,
|
||||
Apps::Secret.object_name => Apps::Secret,
|
||||
Balance.object_name => Balance,
|
||||
BalanceSettings.object_name => BalanceSettings,
|
||||
BalanceTransaction.object_name => BalanceTransaction,
|
||||
BankAccount.object_name => BankAccount,
|
||||
Billing::Alert.object_name => Billing::Alert,
|
||||
|
@ -10,6 +10,7 @@ require "stripe/resources/application_fee"
|
||||
require "stripe/resources/application_fee_refund"
|
||||
require "stripe/resources/apps/secret"
|
||||
require "stripe/resources/balance"
|
||||
require "stripe/resources/balance_settings"
|
||||
require "stripe/resources/balance_transaction"
|
||||
require "stripe/resources/bank_account"
|
||||
require "stripe/resources/billing/alert"
|
||||
@ -140,6 +141,7 @@ require "stripe/resources/treasury/transaction_entry"
|
||||
require "stripe/resources/v2/billing/meter_event"
|
||||
require "stripe/resources/v2/billing/meter_event_adjustment"
|
||||
require "stripe/resources/v2/billing/meter_event_session"
|
||||
require "stripe/resources/v2/deleted_object"
|
||||
require "stripe/resources/v2/event"
|
||||
require "stripe/resources/v2/event_destination"
|
||||
require "stripe/resources/webhook_endpoint"
|
||||
|
@ -42,6 +42,14 @@ module Stripe
|
||||
attr_reader :currency
|
||||
# The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
|
||||
attr_reader :fiscal_year_end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class MonthlyEstimatedRevenue < Stripe::StripeObject
|
||||
@ -49,6 +57,14 @@ module Stripe
|
||||
attr_reader :amount
|
||||
# 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).
|
||||
attr_reader :currency
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SupportAddress < Stripe::StripeObject
|
||||
@ -56,14 +72,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The applicant's gross annual revenue for its preceding fiscal year.
|
||||
attr_reader :annual_revenue
|
||||
@ -89,6 +113,18 @@ module Stripe
|
||||
attr_reader :support_url
|
||||
# The business's publicly available website.
|
||||
attr_reader :url
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
annual_revenue: AnnualRevenue,
|
||||
monthly_estimated_revenue: MonthlyEstimatedRevenue,
|
||||
support_address: SupportAddress,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Capabilities < Stripe::StripeObject
|
||||
@ -156,6 +192,8 @@ module Stripe
|
||||
attr_reader :legacy_payments
|
||||
# The status of the link_payments capability of the account, or whether the account can directly process Link charges.
|
||||
attr_reader :link_payments
|
||||
# The status of the MB WAY payments capability of the account, or whether the account can directly process MB WAY charges.
|
||||
attr_reader :mb_way_payments
|
||||
# The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
|
||||
attr_reader :mobilepay_payments
|
||||
# The status of the Multibanco payments capability of the account, or whether the account can directly process Multibanco charges.
|
||||
@ -176,6 +214,8 @@ module Stripe
|
||||
attr_reader :payco_payments
|
||||
# The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
|
||||
attr_reader :paynow_payments
|
||||
# The status of the Paypay capability of the account, or whether the account can directly process Paypay payments.
|
||||
attr_reader :paypay_payments
|
||||
# The status of the pix payments capability of the account, or whether the account can directly process pix charges.
|
||||
attr_reader :pix_payments
|
||||
# The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
|
||||
@ -210,6 +250,14 @@ module Stripe
|
||||
attr_reader :us_bank_transfer_payments
|
||||
# The status of the Zip capability of the account, or whether the account can directly process Zip charges.
|
||||
attr_reader :zip_payments
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Company < Stripe::StripeObject
|
||||
@ -218,14 +266,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class AddressKana < Stripe::StripeObject
|
||||
@ -243,6 +299,14 @@ module Stripe
|
||||
attr_reader :state
|
||||
# Town/cho-me.
|
||||
attr_reader :town
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class AddressKanji < Stripe::StripeObject
|
||||
@ -260,6 +324,14 @@ module Stripe
|
||||
attr_reader :state
|
||||
# Town/cho-me.
|
||||
attr_reader :town
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class DirectorshipDeclaration < Stripe::StripeObject
|
||||
@ -269,6 +341,14 @@ module Stripe
|
||||
attr_reader :ip
|
||||
# The user-agent string from the browser where the directorship declaration attestation was made.
|
||||
attr_reader :user_agent
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class OwnershipDeclaration < Stripe::StripeObject
|
||||
@ -278,6 +358,14 @@ module Stripe
|
||||
attr_reader :ip
|
||||
# The user-agent string from the browser where the beneficial owner attestation was made.
|
||||
attr_reader :user_agent
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class RegistrationDate < Stripe::StripeObject
|
||||
@ -287,6 +375,14 @@ module Stripe
|
||||
attr_reader :month
|
||||
# The four-digit year of registration.
|
||||
attr_reader :year
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Verification < Stripe::StripeObject
|
||||
@ -299,9 +395,25 @@ module Stripe
|
||||
attr_reader :details_code
|
||||
# The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](/file-upload#uploading-a-file).
|
||||
attr_reader :front
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field document
|
||||
attr_reader :document
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { document: Document }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field address
|
||||
attr_reader :address
|
||||
@ -345,22 +457,62 @@ module Stripe
|
||||
attr_reader :vat_id_provided
|
||||
# Information on the verification state of the company.
|
||||
attr_reader :verification
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
address: Address,
|
||||
address_kana: AddressKana,
|
||||
address_kanji: AddressKanji,
|
||||
directorship_declaration: DirectorshipDeclaration,
|
||||
ownership_declaration: OwnershipDeclaration,
|
||||
registration_date: RegistrationDate,
|
||||
verification: Verification,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Controller < Stripe::StripeObject
|
||||
class Fees < Stripe::StripeObject
|
||||
# A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
|
||||
attr_reader :payer
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Losses < Stripe::StripeObject
|
||||
# A value indicating who is liable when this account can't pay back negative balances from payments.
|
||||
attr_reader :payments
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class StripeDashboard < Stripe::StripeObject
|
||||
# A value indicating the Stripe dashboard this account has access to independent of the Connect application.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field fees
|
||||
attr_reader :fees
|
||||
@ -374,6 +526,14 @@ module Stripe
|
||||
attr_reader :stripe_dashboard
|
||||
# The controller type. Can be `application`, if a Connect application controls the account, or `account`, if the account controls itself.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { fees: Fees, losses: Losses, stripe_dashboard: StripeDashboard }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class FutureRequirements < Stripe::StripeObject
|
||||
@ -382,6 +542,14 @@ module Stripe
|
||||
attr_reader :alternative_fields_due
|
||||
# Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
|
||||
attr_reader :original_fields_due
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Error < Stripe::StripeObject
|
||||
@ -391,6 +559,14 @@ module Stripe
|
||||
attr_reader :reason
|
||||
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
||||
attr_reader :requirement
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
||||
attr_reader :alternatives
|
||||
@ -408,11 +584,27 @@ module Stripe
|
||||
attr_reader :past_due
|
||||
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due` or `currently_due`. Fields might appear in `eventually_due` or `currently_due` and in `pending_verification` if verification fails but another verification is still pending.
|
||||
attr_reader :pending_verification
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { alternatives: Alternative, errors: Error }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Groups < Stripe::StripeObject
|
||||
# The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
|
||||
attr_reader :payments_pricing
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Requirements < Stripe::StripeObject
|
||||
@ -421,6 +613,14 @@ module Stripe
|
||||
attr_reader :alternative_fields_due
|
||||
# Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
|
||||
attr_reader :original_fields_due
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Error < Stripe::StripeObject
|
||||
@ -430,6 +630,14 @@ module Stripe
|
||||
attr_reader :reason
|
||||
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
||||
attr_reader :requirement
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
||||
attr_reader :alternatives
|
||||
@ -447,6 +655,14 @@ module Stripe
|
||||
attr_reader :past_due
|
||||
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
||||
attr_reader :pending_verification
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { alternatives: Alternative, errors: Error }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Settings < Stripe::StripeObject
|
||||
@ -455,6 +671,14 @@ module Stripe
|
||||
attr_reader :display_name
|
||||
# The Bacs Direct Debit Service user number for this account. For payments made with Bacs Direct Debit, this number is a unique identifier of the account with our banking partners.
|
||||
attr_reader :service_user_number
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Branding < Stripe::StripeObject
|
||||
@ -466,6 +690,14 @@ module Stripe
|
||||
attr_reader :primary_color
|
||||
# A CSS hex color value representing the secondary branding color for this account
|
||||
attr_reader :secondary_color
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CardIssuing < Stripe::StripeObject
|
||||
@ -476,9 +708,25 @@ module Stripe
|
||||
attr_reader :ip
|
||||
# The user agent of the browser from which the account representative accepted the service agreement.
|
||||
attr_reader :user_agent
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field tos_acceptance
|
||||
attr_reader :tos_acceptance
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { tos_acceptance: TosAcceptance }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CardPayments < Stripe::StripeObject
|
||||
@ -487,6 +735,14 @@ module Stripe
|
||||
attr_reader :avs_failure
|
||||
# Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
|
||||
attr_reader :cvc_failure
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field decline_on
|
||||
attr_reader :decline_on
|
||||
@ -496,6 +752,14 @@ module Stripe
|
||||
attr_reader :statement_descriptor_prefix_kana
|
||||
# The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
|
||||
attr_reader :statement_descriptor_prefix_kanji
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { decline_on: DeclineOn }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Dashboard < Stripe::StripeObject
|
||||
@ -503,6 +767,14 @@ module Stripe
|
||||
attr_reader :display_name
|
||||
# The timezone used in the Stripe Dashboard for this account. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones).
|
||||
attr_reader :timezone
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Invoices < Stripe::StripeObject
|
||||
@ -510,6 +782,14 @@ module Stripe
|
||||
attr_reader :default_account_tax_ids
|
||||
# Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
|
||||
attr_reader :hosted_payment_method_save
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Payments < Stripe::StripeObject
|
||||
@ -523,6 +803,14 @@ module Stripe
|
||||
attr_reader :statement_descriptor_prefix_kana
|
||||
# The Kanji variation of `statement_descriptor_prefix` used for card charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
|
||||
attr_reader :statement_descriptor_prefix_kanji
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Payouts < Stripe::StripeObject
|
||||
@ -539,6 +827,14 @@ module Stripe
|
||||
attr_reader :weekly_anchor
|
||||
# The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
|
||||
attr_reader :weekly_payout_days
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
|
||||
attr_reader :debit_negative_balances
|
||||
@ -546,11 +842,27 @@ module Stripe
|
||||
attr_reader :schedule
|
||||
# The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
|
||||
attr_reader :statement_descriptor
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { schedule: Schedule }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SepaDebitPayments < Stripe::StripeObject
|
||||
# SEPA creditor identifier that identifies the company making the payment.
|
||||
attr_reader :creditor_id
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Treasury < Stripe::StripeObject
|
||||
@ -561,9 +873,25 @@ module Stripe
|
||||
attr_reader :ip
|
||||
# The user agent of the browser from which the account representative accepted the service agreement.
|
||||
attr_reader :user_agent
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field tos_acceptance
|
||||
attr_reader :tos_acceptance
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { tos_acceptance: TosAcceptance }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field bacs_debit_payments
|
||||
attr_reader :bacs_debit_payments
|
||||
@ -585,6 +913,25 @@ module Stripe
|
||||
attr_reader :sepa_debit_payments
|
||||
# Attribute for field treasury
|
||||
attr_reader :treasury
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
bacs_debit_payments: BacsDebitPayments,
|
||||
branding: Branding,
|
||||
card_issuing: CardIssuing,
|
||||
card_payments: CardPayments,
|
||||
dashboard: Dashboard,
|
||||
invoices: Invoices,
|
||||
payments: Payments,
|
||||
payouts: Payouts,
|
||||
sepa_debit_payments: SepaDebitPayments,
|
||||
treasury: Treasury,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class TosAcceptance < Stripe::StripeObject
|
||||
@ -596,6 +943,14 @@ module Stripe
|
||||
attr_reader :service_agreement
|
||||
# The user agent of the browser from which the account representative accepted their service agreement
|
||||
attr_reader :user_agent
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class DeleteParams < Stripe::RequestParams; end
|
||||
@ -669,9 +1024,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -1037,6 +1392,15 @@ module Stripe
|
||||
end
|
||||
end
|
||||
|
||||
class MbWayPayments < Stripe::RequestParams
|
||||
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
||||
attr_accessor :requested
|
||||
|
||||
def initialize(requested: nil)
|
||||
@requested = requested
|
||||
end
|
||||
end
|
||||
|
||||
class MobilepayPayments < Stripe::RequestParams
|
||||
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
||||
attr_accessor :requested
|
||||
@ -1127,6 +1491,15 @@ module Stripe
|
||||
end
|
||||
end
|
||||
|
||||
class PaypayPayments < Stripe::RequestParams
|
||||
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
||||
attr_accessor :requested
|
||||
|
||||
def initialize(requested: nil)
|
||||
@requested = requested
|
||||
end
|
||||
end
|
||||
|
||||
class PixPayments < Stripe::RequestParams
|
||||
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
||||
attr_accessor :requested
|
||||
@ -1343,6 +1716,8 @@ module Stripe
|
||||
attr_accessor :legacy_payments
|
||||
# The link_payments capability.
|
||||
attr_accessor :link_payments
|
||||
# The mb_way_payments capability.
|
||||
attr_accessor :mb_way_payments
|
||||
# The mobilepay_payments capability.
|
||||
attr_accessor :mobilepay_payments
|
||||
# The multibanco_payments capability.
|
||||
@ -1363,6 +1738,8 @@ module Stripe
|
||||
attr_accessor :payco_payments
|
||||
# The paynow_payments capability.
|
||||
attr_accessor :paynow_payments
|
||||
# The paypay_payments capability.
|
||||
attr_accessor :paypay_payments
|
||||
# The pix_payments capability.
|
||||
attr_accessor :pix_payments
|
||||
# The promptpay_payments capability.
|
||||
@ -1431,6 +1808,7 @@ module Stripe
|
||||
kr_card_payments: nil,
|
||||
legacy_payments: nil,
|
||||
link_payments: nil,
|
||||
mb_way_payments: nil,
|
||||
mobilepay_payments: nil,
|
||||
multibanco_payments: nil,
|
||||
mx_bank_transfer_payments: nil,
|
||||
@ -1441,6 +1819,7 @@ module Stripe
|
||||
pay_by_bank_payments: nil,
|
||||
payco_payments: nil,
|
||||
paynow_payments: nil,
|
||||
paypay_payments: nil,
|
||||
pix_payments: nil,
|
||||
promptpay_payments: nil,
|
||||
revolut_pay_payments: nil,
|
||||
@ -1491,6 +1870,7 @@ module Stripe
|
||||
@kr_card_payments = kr_card_payments
|
||||
@legacy_payments = legacy_payments
|
||||
@link_payments = link_payments
|
||||
@mb_way_payments = mb_way_payments
|
||||
@mobilepay_payments = mobilepay_payments
|
||||
@multibanco_payments = multibanco_payments
|
||||
@mx_bank_transfer_payments = mx_bank_transfer_payments
|
||||
@ -1501,6 +1881,7 @@ module Stripe
|
||||
@pay_by_bank_payments = pay_by_bank_payments
|
||||
@payco_payments = payco_payments
|
||||
@paynow_payments = paynow_payments
|
||||
@paypay_payments = paypay_payments
|
||||
@pix_payments = pix_payments
|
||||
@promptpay_payments = promptpay_payments
|
||||
@revolut_pay_payments = revolut_pay_payments
|
||||
@ -1609,9 +1990,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -2001,9 +2382,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -2117,9 +2498,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -2428,9 +2809,9 @@ module Stripe
|
||||
attr_accessor :monthly_anchor
|
||||
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
|
||||
attr_accessor :monthly_payout_days
|
||||
# The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
|
||||
# The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. Required and applicable only if `interval` is `weekly`.
|
||||
attr_accessor :weekly_anchor
|
||||
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
|
||||
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. Required and applicable only if `interval` is `weekly`.
|
||||
attr_accessor :weekly_payout_days
|
||||
|
||||
def initialize(
|
||||
@ -2720,9 +3101,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -3088,6 +3469,15 @@ module Stripe
|
||||
end
|
||||
end
|
||||
|
||||
class MbWayPayments < Stripe::RequestParams
|
||||
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
||||
attr_accessor :requested
|
||||
|
||||
def initialize(requested: nil)
|
||||
@requested = requested
|
||||
end
|
||||
end
|
||||
|
||||
class MobilepayPayments < Stripe::RequestParams
|
||||
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
||||
attr_accessor :requested
|
||||
@ -3178,6 +3568,15 @@ module Stripe
|
||||
end
|
||||
end
|
||||
|
||||
class PaypayPayments < Stripe::RequestParams
|
||||
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
||||
attr_accessor :requested
|
||||
|
||||
def initialize(requested: nil)
|
||||
@requested = requested
|
||||
end
|
||||
end
|
||||
|
||||
class PixPayments < Stripe::RequestParams
|
||||
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
||||
attr_accessor :requested
|
||||
@ -3394,6 +3793,8 @@ module Stripe
|
||||
attr_accessor :legacy_payments
|
||||
# The link_payments capability.
|
||||
attr_accessor :link_payments
|
||||
# The mb_way_payments capability.
|
||||
attr_accessor :mb_way_payments
|
||||
# The mobilepay_payments capability.
|
||||
attr_accessor :mobilepay_payments
|
||||
# The multibanco_payments capability.
|
||||
@ -3414,6 +3815,8 @@ module Stripe
|
||||
attr_accessor :payco_payments
|
||||
# The paynow_payments capability.
|
||||
attr_accessor :paynow_payments
|
||||
# The paypay_payments capability.
|
||||
attr_accessor :paypay_payments
|
||||
# The pix_payments capability.
|
||||
attr_accessor :pix_payments
|
||||
# The promptpay_payments capability.
|
||||
@ -3482,6 +3885,7 @@ module Stripe
|
||||
kr_card_payments: nil,
|
||||
legacy_payments: nil,
|
||||
link_payments: nil,
|
||||
mb_way_payments: nil,
|
||||
mobilepay_payments: nil,
|
||||
multibanco_payments: nil,
|
||||
mx_bank_transfer_payments: nil,
|
||||
@ -3492,6 +3896,7 @@ module Stripe
|
||||
pay_by_bank_payments: nil,
|
||||
payco_payments: nil,
|
||||
paynow_payments: nil,
|
||||
paypay_payments: nil,
|
||||
pix_payments: nil,
|
||||
promptpay_payments: nil,
|
||||
revolut_pay_payments: nil,
|
||||
@ -3542,6 +3947,7 @@ module Stripe
|
||||
@kr_card_payments = kr_card_payments
|
||||
@legacy_payments = legacy_payments
|
||||
@link_payments = link_payments
|
||||
@mb_way_payments = mb_way_payments
|
||||
@mobilepay_payments = mobilepay_payments
|
||||
@multibanco_payments = multibanco_payments
|
||||
@mx_bank_transfer_payments = mx_bank_transfer_payments
|
||||
@ -3552,6 +3958,7 @@ module Stripe
|
||||
@pay_by_bank_payments = pay_by_bank_payments
|
||||
@payco_payments = payco_payments
|
||||
@paynow_payments = paynow_payments
|
||||
@paypay_payments = paypay_payments
|
||||
@pix_payments = pix_payments
|
||||
@promptpay_payments = promptpay_payments
|
||||
@revolut_pay_payments = revolut_pay_payments
|
||||
@ -3660,9 +4067,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -4096,9 +4503,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -4212,9 +4619,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -4520,9 +4927,9 @@ module Stripe
|
||||
attr_accessor :monthly_anchor
|
||||
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
|
||||
attr_accessor :monthly_payout_days
|
||||
# The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
|
||||
# The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. Required and applicable only if `interval` is `weekly`.
|
||||
attr_accessor :weekly_anchor
|
||||
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
|
||||
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. Required and applicable only if `interval` is `weekly`.
|
||||
attr_accessor :weekly_payout_days
|
||||
|
||||
def initialize(
|
||||
@ -5074,5 +5481,23 @@ module Stripe
|
||||
end
|
||||
update_hash
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
business_profile: BusinessProfile,
|
||||
capabilities: Capabilities,
|
||||
company: Company,
|
||||
controller: Controller,
|
||||
future_requirements: FutureRequirements,
|
||||
groups: Groups,
|
||||
requirements: Requirements,
|
||||
settings: Settings,
|
||||
tos_acceptance: TosAcceptance,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -74,5 +74,13 @@ module Stripe
|
||||
def self.create(params = {}, opts = {})
|
||||
request_stripe_object(method: :post, path: "/v1/account_links", params: params, opts: opts)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -24,11 +24,27 @@ module Stripe
|
||||
attr_reader :disable_stripe_user_authentication
|
||||
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
||||
attr_reader :external_account_collection
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class AccountOnboarding < Stripe::StripeObject
|
||||
@ -37,19 +53,51 @@ module Stripe
|
||||
attr_reader :disable_stripe_user_authentication
|
||||
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
||||
attr_reader :external_account_collection
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class BalanceReport < Stripe::StripeObject
|
||||
class Features < Stripe::StripeObject; end
|
||||
class Features < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Balances < Stripe::StripeObject
|
||||
@ -64,11 +112,27 @@ module Stripe
|
||||
attr_reader :instant_payouts
|
||||
# Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
||||
attr_reader :standard_payouts
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class DisputesList < Stripe::StripeObject
|
||||
@ -81,19 +145,51 @@ module Stripe
|
||||
attr_reader :dispute_management
|
||||
# Whether sending refunds is enabled. This is `true` by default.
|
||||
attr_reader :refund_management
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Documents < Stripe::StripeObject
|
||||
class Features < Stripe::StripeObject; end
|
||||
class Features < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class FinancialAccount < Stripe::StripeObject
|
||||
@ -106,22 +202,54 @@ module Stripe
|
||||
attr_reader :send_money
|
||||
# Whether to allow transferring balance.
|
||||
attr_reader :transfer_balance
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class FinancialAccountTransactions < Stripe::StripeObject
|
||||
class Features < Stripe::StripeObject
|
||||
# Whether to allow card spend dispute management features.
|
||||
attr_reader :card_spend_dispute_management
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class InstantPayoutsPromotion < Stripe::StripeObject
|
||||
@ -132,11 +260,27 @@ module Stripe
|
||||
attr_reader :external_account_collection
|
||||
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
||||
attr_reader :instant_payouts
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class IssuingCard < Stripe::StripeObject
|
||||
@ -149,11 +293,27 @@ module Stripe
|
||||
attr_reader :cardholder_management
|
||||
# Whether to allow spend control management features.
|
||||
attr_reader :spend_control_management
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class IssuingCardsList < Stripe::StripeObject
|
||||
@ -168,11 +328,27 @@ module Stripe
|
||||
attr_reader :disable_stripe_user_authentication
|
||||
# Whether to allow spend control management features.
|
||||
attr_reader :spend_control_management
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class NotificationBanner < Stripe::StripeObject
|
||||
@ -181,11 +357,27 @@ module Stripe
|
||||
attr_reader :disable_stripe_user_authentication
|
||||
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
||||
attr_reader :external_account_collection
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PaymentDetails < Stripe::StripeObject
|
||||
@ -198,11 +390,27 @@ module Stripe
|
||||
attr_reader :dispute_management
|
||||
# Whether sending refunds is enabled. This is `true` by default.
|
||||
attr_reader :refund_management
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PaymentDisputes < Stripe::StripeObject
|
||||
@ -213,11 +421,27 @@ module Stripe
|
||||
attr_reader :dispute_management
|
||||
# Whether sending refunds is enabled. This is `true` by default.
|
||||
attr_reader :refund_management
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Payments < Stripe::StripeObject
|
||||
@ -230,27 +454,75 @@ module Stripe
|
||||
attr_reader :dispute_management
|
||||
# Whether sending refunds is enabled. This is `true` by default.
|
||||
attr_reader :refund_management
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PayoutDetails < Stripe::StripeObject
|
||||
class Features < Stripe::StripeObject; end
|
||||
class Features < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PayoutReconciliationReport < Stripe::StripeObject
|
||||
class Features < Stripe::StripeObject; end
|
||||
class Features < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Payouts < Stripe::StripeObject
|
||||
@ -265,35 +537,99 @@ module Stripe
|
||||
attr_reader :instant_payouts
|
||||
# Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
||||
attr_reader :standard_payouts
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PayoutsList < Stripe::StripeObject
|
||||
class Features < Stripe::StripeObject; end
|
||||
class Features < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class TaxRegistrations < Stripe::StripeObject
|
||||
class Features < Stripe::StripeObject; end
|
||||
class Features < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class TaxSettings < Stripe::StripeObject
|
||||
class Features < Stripe::StripeObject; end
|
||||
class Features < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the embedded component is enabled.
|
||||
attr_reader :enabled
|
||||
# Attribute for field features
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field account_management
|
||||
attr_reader :account_management
|
||||
@ -337,6 +673,36 @@ module Stripe
|
||||
attr_reader :tax_registrations
|
||||
# Attribute for field tax_settings
|
||||
attr_reader :tax_settings
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
account_management: AccountManagement,
|
||||
account_onboarding: AccountOnboarding,
|
||||
balance_report: BalanceReport,
|
||||
balances: Balances,
|
||||
disputes_list: DisputesList,
|
||||
documents: Documents,
|
||||
financial_account: FinancialAccount,
|
||||
financial_account_transactions: FinancialAccountTransactions,
|
||||
instant_payouts_promotion: InstantPayoutsPromotion,
|
||||
issuing_card: IssuingCard,
|
||||
issuing_cards_list: IssuingCardsList,
|
||||
notification_banner: NotificationBanner,
|
||||
payment_details: PaymentDetails,
|
||||
payment_disputes: PaymentDisputes,
|
||||
payments: Payments,
|
||||
payout_details: PayoutDetails,
|
||||
payout_reconciliation_report: PayoutReconciliationReport,
|
||||
payouts: Payouts,
|
||||
payouts_list: PayoutsList,
|
||||
tax_registrations: TaxRegistrations,
|
||||
tax_settings: TaxSettings,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CreateParams < Stripe::RequestParams
|
||||
@ -996,5 +1362,13 @@ module Stripe
|
||||
def self.create(params = {}, opts = {})
|
||||
request_stripe_object(method: :post, path: "/v1/account_sessions", params: params, opts: opts)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { components: Components }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -104,5 +104,13 @@ module Stripe
|
||||
def self.resource_url
|
||||
"/v1/apple_pay/domains"
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -16,5 +16,13 @@ module Stripe
|
||||
attr_reader :object
|
||||
# Always true for a deleted object
|
||||
attr_reader :deleted
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -20,6 +20,14 @@ module Stripe
|
||||
attr_reader :payout
|
||||
# Type of object that created the application fee.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -104,5 +112,13 @@ module Stripe
|
||||
def self.list(params = {}, opts = {})
|
||||
request_stripe_object(method: :get, path: "/v1/application_fees", params: params, opts: opts)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { fee_source: FeeSource }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -51,5 +51,13 @@ module Stripe
|
||||
"application fee ID. Retrieve an application fee refund using " \
|
||||
"`ApplicationFee.retrieve_refund('fee_id', 'refund_id')`"
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -26,6 +26,14 @@ module Stripe
|
||||
attr_reader :type
|
||||
# The user ID, if type is set to "user"
|
||||
attr_reader :user
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -191,6 +199,14 @@ module Stripe
|
||||
def self.list(params = {}, opts = {})
|
||||
request_stripe_object(method: :get, path: "/v1/apps/secrets", params: params, opts: opts)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { scope: Scope }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -22,6 +22,14 @@ module Stripe
|
||||
attr_reader :card
|
||||
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
attr_reader :fpx
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Balance amount.
|
||||
attr_reader :amount
|
||||
@ -29,6 +37,14 @@ module Stripe
|
||||
attr_reader :currency
|
||||
# Attribute for field source_types
|
||||
attr_reader :source_types
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { source_types: SourceTypes }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ConnectReserved < Stripe::StripeObject
|
||||
@ -39,6 +55,14 @@ module Stripe
|
||||
attr_reader :card
|
||||
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
attr_reader :fpx
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Balance amount.
|
||||
attr_reader :amount
|
||||
@ -46,6 +70,14 @@ module Stripe
|
||||
attr_reader :currency
|
||||
# Attribute for field source_types
|
||||
attr_reader :source_types
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { source_types: SourceTypes }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class InstantAvailable < Stripe::StripeObject
|
||||
@ -57,6 +89,14 @@ module Stripe
|
||||
attr_reader :card
|
||||
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
attr_reader :fpx
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Net balance amount, subtracting fees from platform-set pricing.
|
||||
attr_reader :amount
|
||||
@ -64,6 +104,14 @@ module Stripe
|
||||
attr_reader :destination
|
||||
# Attribute for field source_types
|
||||
attr_reader :source_types
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { source_types: SourceTypes }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SourceTypes < Stripe::StripeObject
|
||||
@ -73,6 +121,14 @@ module Stripe
|
||||
attr_reader :card
|
||||
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
attr_reader :fpx
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Balance amount.
|
||||
attr_reader :amount
|
||||
@ -82,6 +138,14 @@ module Stripe
|
||||
attr_reader :net_available
|
||||
# Attribute for field source_types
|
||||
attr_reader :source_types
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { net_available: NetAvailable, source_types: SourceTypes }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Issuing < Stripe::StripeObject
|
||||
@ -93,6 +157,14 @@ module Stripe
|
||||
attr_reader :card
|
||||
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
attr_reader :fpx
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Balance amount.
|
||||
attr_reader :amount
|
||||
@ -100,9 +172,25 @@ module Stripe
|
||||
attr_reader :currency
|
||||
# Attribute for field source_types
|
||||
attr_reader :source_types
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { source_types: SourceTypes }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Funds that are available for use.
|
||||
attr_reader :available
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { available: Available }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Pending < Stripe::StripeObject
|
||||
@ -113,6 +201,14 @@ module Stripe
|
||||
attr_reader :card
|
||||
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
attr_reader :fpx
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Balance amount.
|
||||
attr_reader :amount
|
||||
@ -120,6 +216,14 @@ module Stripe
|
||||
attr_reader :currency
|
||||
# Attribute for field source_types
|
||||
attr_reader :source_types
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { source_types: SourceTypes }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class RefundAndDisputePrefunding < Stripe::StripeObject
|
||||
@ -131,6 +235,14 @@ module Stripe
|
||||
attr_reader :card
|
||||
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
attr_reader :fpx
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Balance amount.
|
||||
attr_reader :amount
|
||||
@ -138,6 +250,14 @@ module Stripe
|
||||
attr_reader :currency
|
||||
# Attribute for field source_types
|
||||
attr_reader :source_types
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { source_types: SourceTypes }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Pending < Stripe::StripeObject
|
||||
@ -148,6 +268,14 @@ module Stripe
|
||||
attr_reader :card
|
||||
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
attr_reader :fpx
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Balance amount.
|
||||
attr_reader :amount
|
||||
@ -155,11 +283,27 @@ module Stripe
|
||||
attr_reader :currency
|
||||
# Attribute for field source_types
|
||||
attr_reader :source_types
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { source_types: SourceTypes }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Funds that are available for use.
|
||||
attr_reader :available
|
||||
# Funds that are pending
|
||||
attr_reader :pending
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { available: Available, pending: Pending }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
|
||||
attr_reader :available
|
||||
@ -177,5 +321,20 @@ module Stripe
|
||||
attr_reader :pending
|
||||
# Attribute for field refund_and_dispute_prefunding
|
||||
attr_reader :refund_and_dispute_prefunding
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
available: Available,
|
||||
connect_reserved: ConnectReserved,
|
||||
instant_available: InstantAvailable,
|
||||
issuing: Issuing,
|
||||
pending: Pending,
|
||||
refund_and_dispute_prefunding: RefundAndDisputePrefunding,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
155
lib/stripe/resources/balance_settings.rb
Normal file
155
lib/stripe/resources/balance_settings.rb
Normal file
@ -0,0 +1,155 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# Options for customizing account balances and payout settings for a Stripe platform's connected accounts.
|
||||
class BalanceSettings < SingletonAPIResource
|
||||
include Stripe::APIOperations::SingletonSave
|
||||
|
||||
OBJECT_NAME = "balance_settings"
|
||||
def self.object_name
|
||||
"balance_settings"
|
||||
end
|
||||
|
||||
class Payments < Stripe::StripeObject
|
||||
class Payouts < Stripe::StripeObject
|
||||
class Schedule < Stripe::StripeObject
|
||||
# How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`.
|
||||
attr_reader :interval
|
||||
# The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
|
||||
attr_reader :monthly_payout_days
|
||||
# The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
|
||||
attr_reader :weekly_payout_days
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](/payouts/minimum-balances-for-automatic-payouts).
|
||||
attr_reader :minimum_balance_by_currency
|
||||
# Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation for details.
|
||||
attr_reader :schedule
|
||||
# The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
|
||||
attr_reader :statement_descriptor
|
||||
# Whether the funds in this account can be paid out.
|
||||
attr_reader :status
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { schedule: Schedule }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SettlementTiming < Stripe::StripeObject
|
||||
# The number of days charge funds are held before becoming available.
|
||||
attr_reader :delay_days
|
||||
# The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account.
|
||||
attr_reader :delay_days_override
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
|
||||
attr_reader :debit_negative_balances
|
||||
# Settings specific to the account's payouts.
|
||||
attr_reader :payouts
|
||||
# Attribute for field settlement_timing
|
||||
attr_reader :settlement_timing
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { payouts: Payouts, settlement_timing: SettlementTiming }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class UpdateParams < Stripe::RequestParams
|
||||
class Payments < Stripe::RequestParams
|
||||
class Payouts < Stripe::RequestParams
|
||||
class Schedule < Stripe::RequestParams
|
||||
# How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
|
||||
attr_accessor :interval
|
||||
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
|
||||
attr_accessor :monthly_payout_days
|
||||
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. Required and applicable only if `interval` is `weekly`.
|
||||
attr_accessor :weekly_payout_days
|
||||
|
||||
def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil)
|
||||
@interval = interval
|
||||
@monthly_payout_days = monthly_payout_days
|
||||
@weekly_payout_days = weekly_payout_days
|
||||
end
|
||||
end
|
||||
# The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](/payouts/minimum-balances-for-automatic-payouts).
|
||||
attr_accessor :minimum_balance_by_currency
|
||||
# Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
|
||||
attr_accessor :schedule
|
||||
# The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
|
||||
attr_accessor :statement_descriptor
|
||||
|
||||
def initialize(minimum_balance_by_currency: nil, schedule: nil, statement_descriptor: nil)
|
||||
@minimum_balance_by_currency = minimum_balance_by_currency
|
||||
@schedule = schedule
|
||||
@statement_descriptor = statement_descriptor
|
||||
end
|
||||
end
|
||||
|
||||
class SettlementTiming < Stripe::RequestParams
|
||||
# Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](/connect/manage-payout-schedule).
|
||||
attr_accessor :delay_days_override
|
||||
|
||||
def initialize(delay_days_override: nil)
|
||||
@delay_days_override = delay_days_override
|
||||
end
|
||||
end
|
||||
# A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
|
||||
attr_accessor :debit_negative_balances
|
||||
# Settings specific to the account's payouts.
|
||||
attr_accessor :payouts
|
||||
# Settings related to the account's balance settlement timing.
|
||||
attr_accessor :settlement_timing
|
||||
|
||||
def initialize(debit_negative_balances: nil, payouts: nil, settlement_timing: nil)
|
||||
@debit_negative_balances = debit_negative_balances
|
||||
@payouts = payouts
|
||||
@settlement_timing = settlement_timing
|
||||
end
|
||||
end
|
||||
# Specifies which fields in the response should be expanded.
|
||||
attr_accessor :expand
|
||||
# Settings that apply to the [Payments Balance](https://docs.stripe.com/api/balance).
|
||||
attr_accessor :payments
|
||||
|
||||
def initialize(expand: nil, payments: nil)
|
||||
@expand = expand
|
||||
@payments = payments
|
||||
end
|
||||
end
|
||||
# String representing the object's type. Objects of the same type share the same value.
|
||||
attr_reader :object
|
||||
# Attribute for field payments
|
||||
attr_reader :payments
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { payments: Payments }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
@ -25,6 +25,14 @@ module Stripe
|
||||
attr_reader :description
|
||||
# Type of the fee, one of: `application_fee`, `payment_method_passthrough_fee`, `stripe_fee` or `tax`.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -130,5 +138,13 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { fee_details: FeeDetail }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -27,6 +27,14 @@ module Stripe
|
||||
attr_reader :reason
|
||||
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
||||
attr_reader :requirement
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Fields that need to be collected to keep the external account enabled. If not collected by `current_deadline`, these fields appear in `past_due` as well, and the account is disabled.
|
||||
attr_reader :currently_due
|
||||
@ -36,6 +44,14 @@ module Stripe
|
||||
attr_reader :past_due
|
||||
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
||||
attr_reader :pending_verification
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { errors: Error }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Requirements < Stripe::StripeObject
|
||||
@ -46,6 +62,14 @@ module Stripe
|
||||
attr_reader :reason
|
||||
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
||||
attr_reader :requirement
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Fields that need to be collected to keep the external account enabled. If not collected by `current_deadline`, these fields appear in `past_due` as well, and the account is disabled.
|
||||
attr_reader :currently_due
|
||||
@ -55,6 +79,14 @@ module Stripe
|
||||
attr_reader :past_due
|
||||
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
||||
attr_reader :pending_verification
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { errors: Error }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The account this bank account belongs to. Only applicable on Accounts (not customers or recipients) This property is only available when returned as an [External Account](/api/external_account_bank_accounts/object) where [controller.is_controller](/api/accounts/object#account_object-controller-is_controller) is `true`.
|
||||
attr_reader :account
|
||||
@ -170,5 +202,13 @@ module Stripe
|
||||
"`Customer.list_sources('customer_id')` " \
|
||||
"or `Account.list_external_accounts('account_id')`"
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { future_requirements: FutureRequirements, requirements: Requirements }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -19,6 +19,14 @@ module Stripe
|
||||
attr_reader :customer
|
||||
# Attribute for field type
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The filters allow limiting the scope of this usage alert. You can only specify up to one filter at this time.
|
||||
attr_reader :filters
|
||||
@ -28,6 +36,14 @@ module Stripe
|
||||
attr_reader :meter
|
||||
# Defines how the alert will behave.
|
||||
attr_reader :recurrence
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { filters: Filter }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -80,7 +96,7 @@ module Stripe
|
||||
attr_accessor :gte
|
||||
# The [Billing Meter](/api/billing/meter) ID whose usage is monitored.
|
||||
attr_accessor :meter
|
||||
# Whether the alert should only fire only once, or once per billing cycle.
|
||||
# Defines how the alert will behave.
|
||||
attr_accessor :recurrence
|
||||
|
||||
def initialize(filters: nil, gte: nil, meter: nil, recurrence: nil)
|
||||
@ -217,6 +233,14 @@ module Stripe
|
||||
def self.list(params = {}, opts = {})
|
||||
request_stripe_object(method: :get, path: "/v1/billing/alerts", params: params, opts: opts)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { usage_threshold: UsageThreshold }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -21,6 +21,14 @@ module Stripe
|
||||
attr_reader :object
|
||||
# The value triggering the alert
|
||||
attr_reader :value
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -17,11 +17,27 @@ module Stripe
|
||||
attr_reader :currency
|
||||
# A positive integer representing the amount.
|
||||
attr_reader :value
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The monetary amount.
|
||||
attr_reader :monetary
|
||||
# The type of this amount. We currently only support `monetary` billing credits.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { monetary: Monetary }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class LedgerBalance < Stripe::StripeObject
|
||||
@ -30,16 +46,40 @@ module Stripe
|
||||
attr_reader :currency
|
||||
# A positive integer representing the amount.
|
||||
attr_reader :value
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The monetary amount.
|
||||
attr_reader :monetary
|
||||
# The type of this amount. We currently only support `monetary` billing credits.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { monetary: Monetary }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field available_balance
|
||||
attr_reader :available_balance
|
||||
# Attribute for field ledger_balance
|
||||
attr_reader :ledger_balance
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { available_balance: AvailableBalance, ledger_balance: LedgerBalance }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry.
|
||||
attr_reader :balances
|
||||
@ -49,6 +89,14 @@ module Stripe
|
||||
attr_reader :livemode
|
||||
# String representing the object's type. Objects of the same type share the same value.
|
||||
attr_reader :object
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { balances: Balance }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -19,11 +19,27 @@ module Stripe
|
||||
attr_reader :currency
|
||||
# A positive integer representing the amount.
|
||||
attr_reader :value
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The monetary amount.
|
||||
attr_reader :monetary
|
||||
# The type of this amount. We currently only support `monetary` billing credits.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { monetary: Monetary }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CreditsApplicationInvoiceVoided < Stripe::StripeObject
|
||||
@ -31,6 +47,14 @@ module Stripe
|
||||
attr_reader :invoice
|
||||
# The invoice line item to which the reinstated billing credits were originally applied.
|
||||
attr_reader :invoice_line_item
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field amount
|
||||
attr_reader :amount
|
||||
@ -38,6 +62,17 @@ module Stripe
|
||||
attr_reader :credits_application_invoice_voided
|
||||
# The type of credit transaction.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
amount: Amount,
|
||||
credits_application_invoice_voided: CreditsApplicationInvoiceVoided,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Debit < Stripe::StripeObject
|
||||
@ -47,11 +82,27 @@ module Stripe
|
||||
attr_reader :currency
|
||||
# A positive integer representing the amount.
|
||||
attr_reader :value
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The monetary amount.
|
||||
attr_reader :monetary
|
||||
# The type of this amount. We currently only support `monetary` billing credits.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { monetary: Monetary }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CreditsApplied < Stripe::StripeObject
|
||||
@ -59,6 +110,14 @@ module Stripe
|
||||
attr_reader :invoice
|
||||
# The invoice line item to which the billing credits were applied.
|
||||
attr_reader :invoice_line_item
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field amount
|
||||
attr_reader :amount
|
||||
@ -66,6 +125,14 @@ module Stripe
|
||||
attr_reader :credits_applied
|
||||
# The type of debit transaction.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { amount: Amount, credits_applied: CreditsApplied }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -128,6 +195,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { credit: Credit, debit: Debit }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -22,11 +22,27 @@ module Stripe
|
||||
attr_reader :currency
|
||||
# A positive integer representing the amount.
|
||||
attr_reader :value
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The monetary amount.
|
||||
attr_reader :monetary
|
||||
# The type of this amount. We currently only support `monetary` billing credits.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { monetary: Monetary }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ApplicabilityConfig < Stripe::StripeObject
|
||||
@ -34,14 +50,38 @@ module Stripe
|
||||
class Price < Stripe::StripeObject
|
||||
# Unique identifier for the object.
|
||||
attr_reader :id
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `prices`.
|
||||
attr_reader :price_type
|
||||
# The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `price_type`.
|
||||
attr_reader :prices
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { prices: Price }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field scope
|
||||
attr_reader :scope
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { scope: Scope }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -302,6 +342,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { amount: Amount, applicability_config: ApplicabilityConfig }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -26,21 +26,53 @@ module Stripe
|
||||
attr_reader :event_payload_key
|
||||
# The method for mapping a meter event to a customer.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class DefaultAggregation < Stripe::StripeObject
|
||||
# Specifies how events are aggregated.
|
||||
attr_reader :formula
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class StatusTransitions < Stripe::StripeObject
|
||||
# The time the meter was deactivated, if any. Measured in seconds since Unix epoch.
|
||||
attr_reader :deactivated_at
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ValueSettings < Stripe::StripeObject
|
||||
# The key in the meter event payload to use as the value for this meter.
|
||||
attr_reader :event_payload_key
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -249,6 +281,19 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
customer_mapping: CustomerMapping,
|
||||
default_aggregation: DefaultAggregation,
|
||||
status_transitions: StatusTransitions,
|
||||
value_settings: ValueSettings,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -56,6 +56,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -15,6 +15,14 @@ module Stripe
|
||||
class Cancel < Stripe::StripeObject
|
||||
# Unique identifier for the event.
|
||||
attr_reader :identifier
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CreateParams < Stripe::RequestParams
|
||||
@ -64,6 +72,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { cancel: Cancel }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -27,6 +27,14 @@ module Stripe
|
||||
attr_reader :object
|
||||
# Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
|
||||
attr_reader :start_time
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -21,6 +21,14 @@ module Stripe
|
||||
attr_reader :privacy_policy_url
|
||||
# A link to the business’s publicly available terms of service.
|
||||
attr_reader :terms_of_service_url
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Features < Stripe::StripeObject
|
||||
@ -29,16 +37,40 @@ module Stripe
|
||||
attr_reader :allowed_updates
|
||||
# Whether the feature is enabled.
|
||||
attr_reader :enabled
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class InvoiceHistory < Stripe::StripeObject
|
||||
# Whether the feature is enabled.
|
||||
attr_reader :enabled
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PaymentMethodUpdate < Stripe::StripeObject
|
||||
# Whether the feature is enabled.
|
||||
attr_reader :enabled
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionCancel < Stripe::StripeObject
|
||||
@ -47,6 +79,14 @@ module Stripe
|
||||
attr_reader :enabled
|
||||
# Which cancellation reasons will be given as options to the customer.
|
||||
attr_reader :options
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field cancellation_reason
|
||||
attr_reader :cancellation_reason
|
||||
@ -56,6 +96,14 @@ module Stripe
|
||||
attr_reader :mode
|
||||
# Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`.
|
||||
attr_reader :proration_behavior
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { cancellation_reason: CancellationReason }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionUpdate < Stripe::StripeObject
|
||||
@ -67,6 +115,14 @@ module Stripe
|
||||
attr_reader :maximum
|
||||
# The minimum quantity that can be set for the product.
|
||||
attr_reader :minimum
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field adjustable_quantity
|
||||
attr_reader :adjustable_quantity
|
||||
@ -74,15 +130,39 @@ module Stripe
|
||||
attr_reader :prices
|
||||
# The product ID.
|
||||
attr_reader :product
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { adjustable_quantity: AdjustableQuantity }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ScheduleAtPeriodEnd < Stripe::StripeObject
|
||||
class Condition < Stripe::StripeObject
|
||||
# The type of condition.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# List of conditions. When any condition is true, an update will be scheduled at the end of the current period.
|
||||
attr_reader :conditions
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { conditions: Condition }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The types of subscription updates that are supported for items listed in the `products` attribute. When empty, subscriptions are not updateable.
|
||||
attr_reader :default_allowed_updates
|
||||
@ -94,6 +174,16 @@ module Stripe
|
||||
attr_reader :proration_behavior
|
||||
# Attribute for field schedule_at_period_end
|
||||
attr_reader :schedule_at_period_end
|
||||
# Determines how handle updates to trialing subscriptions. Valid values are `end_trial` and `continue_trial`. Defaults to a value of `end_trial` if you don't set it during creation.
|
||||
attr_reader :trial_update_behavior
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { products: Product, schedule_at_period_end: ScheduleAtPeriodEnd }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field customer_update
|
||||
attr_reader :customer_update
|
||||
@ -105,6 +195,20 @@ module Stripe
|
||||
attr_reader :subscription_cancel
|
||||
# Attribute for field subscription_update
|
||||
attr_reader :subscription_update
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
customer_update: CustomerUpdate,
|
||||
invoice_history: InvoiceHistory,
|
||||
payment_method_update: PaymentMethodUpdate,
|
||||
subscription_cancel: SubscriptionCancel,
|
||||
subscription_update: SubscriptionUpdate,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class LoginPage < Stripe::StripeObject
|
||||
@ -114,6 +218,14 @@ module Stripe
|
||||
attr_reader :enabled
|
||||
# A shareable URL to the hosted portal login page. Your customers will be able to log in with their [email](https://stripe.com/docs/api/customers/object#customer_object-email) and receive a link to their customer portal.
|
||||
attr_reader :url
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -284,19 +396,23 @@ module Stripe
|
||||
attr_accessor :proration_behavior
|
||||
# Setting to control when an update should be scheduled at the end of the period instead of applying immediately.
|
||||
attr_accessor :schedule_at_period_end
|
||||
# The behavior when updating a subscription that is trialing.
|
||||
attr_accessor :trial_update_behavior
|
||||
|
||||
def initialize(
|
||||
default_allowed_updates: nil,
|
||||
enabled: nil,
|
||||
products: nil,
|
||||
proration_behavior: nil,
|
||||
schedule_at_period_end: nil
|
||||
schedule_at_period_end: nil,
|
||||
trial_update_behavior: nil
|
||||
)
|
||||
@default_allowed_updates = default_allowed_updates
|
||||
@enabled = enabled
|
||||
@products = products
|
||||
@proration_behavior = proration_behavior
|
||||
@schedule_at_period_end = schedule_at_period_end
|
||||
@trial_update_behavior = trial_update_behavior
|
||||
end
|
||||
end
|
||||
# Information about updating the customer details in the portal.
|
||||
@ -504,19 +620,23 @@ module Stripe
|
||||
attr_accessor :proration_behavior
|
||||
# Setting to control when an update should be scheduled at the end of the period instead of applying immediately.
|
||||
attr_accessor :schedule_at_period_end
|
||||
# The behavior when updating a subscription that is trialing.
|
||||
attr_accessor :trial_update_behavior
|
||||
|
||||
def initialize(
|
||||
default_allowed_updates: nil,
|
||||
enabled: nil,
|
||||
products: nil,
|
||||
proration_behavior: nil,
|
||||
schedule_at_period_end: nil
|
||||
schedule_at_period_end: nil,
|
||||
trial_update_behavior: nil
|
||||
)
|
||||
@default_allowed_updates = default_allowed_updates
|
||||
@enabled = enabled
|
||||
@products = products
|
||||
@proration_behavior = proration_behavior
|
||||
@schedule_at_period_end = schedule_at_period_end
|
||||
@trial_update_behavior = trial_update_behavior
|
||||
end
|
||||
end
|
||||
# Information about updating the customer details in the portal.
|
||||
@ -650,6 +770,18 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
business_profile: BusinessProfile,
|
||||
features: Features,
|
||||
login_page: LoginPage,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -30,11 +30,27 @@ module Stripe
|
||||
class HostedConfirmation < Stripe::StripeObject
|
||||
# A custom message to display to the customer after the flow is completed.
|
||||
attr_reader :custom_message
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Redirect < Stripe::StripeObject
|
||||
# The URL the customer will be redirected to after the flow is completed.
|
||||
attr_reader :return_url
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Configuration when `after_completion.type=hosted_confirmation`.
|
||||
attr_reader :hosted_confirmation
|
||||
@ -42,6 +58,14 @@ module Stripe
|
||||
attr_reader :redirect
|
||||
# The specified type of behavior after the flow is completed.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { hosted_confirmation: HostedConfirmation, redirect: Redirect }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionCancel < Stripe::StripeObject
|
||||
@ -49,21 +73,53 @@ module Stripe
|
||||
class CouponOffer < Stripe::StripeObject
|
||||
# The ID of the coupon to be offered.
|
||||
attr_reader :coupon
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Configuration when `retention.type=coupon_offer`.
|
||||
attr_reader :coupon_offer
|
||||
# Type of retention strategy that will be used.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { coupon_offer: CouponOffer }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Specify a retention strategy to be used in the cancellation flow.
|
||||
attr_reader :retention
|
||||
# The ID of the subscription to be canceled.
|
||||
attr_reader :subscription
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { retention: Retention }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionUpdate < Stripe::StripeObject
|
||||
# The ID of the subscription to be updated.
|
||||
attr_reader :subscription
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionUpdateConfirm < Stripe::StripeObject
|
||||
@ -72,6 +128,14 @@ module Stripe
|
||||
attr_reader :coupon
|
||||
# The ID of a promotion code to apply to this subscription update.
|
||||
attr_reader :promotion_code
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Item < Stripe::StripeObject
|
||||
@ -81,6 +145,14 @@ module Stripe
|
||||
attr_reader :price
|
||||
# [Quantity](https://stripe.com/docs/subscriptions/quantities) for this item that the customer should subscribe to through this flow.
|
||||
attr_reader :quantity
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The coupon or promotion code to apply to this subscription update.
|
||||
attr_reader :discounts
|
||||
@ -88,6 +160,14 @@ module Stripe
|
||||
attr_reader :items
|
||||
# The ID of the subscription to be updated.
|
||||
attr_reader :subscription
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { discounts: Discount, items: Item }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field after_completion
|
||||
attr_reader :after_completion
|
||||
@ -99,6 +179,19 @@ module Stripe
|
||||
attr_reader :subscription_update_confirm
|
||||
# Type of flow that the customer will go through.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
after_completion: AfterCompletion,
|
||||
subscription_cancel: SubscriptionCancel,
|
||||
subscription_update: SubscriptionUpdate,
|
||||
subscription_update_confirm: SubscriptionUpdateConfirm,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CreateParams < Stripe::RequestParams
|
||||
@ -305,6 +398,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { flow: Flow }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -19,6 +19,14 @@ module Stripe
|
||||
attr_reader :alternative_fields_due
|
||||
# Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
|
||||
attr_reader :original_fields_due
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Error < Stripe::StripeObject
|
||||
@ -28,6 +36,14 @@ module Stripe
|
||||
attr_reader :reason
|
||||
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
||||
attr_reader :requirement
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
||||
attr_reader :alternatives
|
||||
@ -45,6 +61,14 @@ module Stripe
|
||||
attr_reader :past_due
|
||||
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due` or `currently_due`. Fields might appear in `eventually_due` or `currently_due` and in `pending_verification` if verification fails but another verification is still pending.
|
||||
attr_reader :pending_verification
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { alternatives: Alternative, errors: Error }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Requirements < Stripe::StripeObject
|
||||
@ -53,6 +77,14 @@ module Stripe
|
||||
attr_reader :alternative_fields_due
|
||||
# Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
|
||||
attr_reader :original_fields_due
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Error < Stripe::StripeObject
|
||||
@ -62,6 +94,14 @@ module Stripe
|
||||
attr_reader :reason
|
||||
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
||||
attr_reader :requirement
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
||||
attr_reader :alternatives
|
||||
@ -79,6 +119,14 @@ module Stripe
|
||||
attr_reader :past_due
|
||||
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
||||
attr_reader :pending_verification
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { alternatives: Alternative, errors: Error }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The account for which the capability enables functionality.
|
||||
attr_reader :account
|
||||
@ -119,5 +167,13 @@ module Stripe
|
||||
"capability using `Account.update_capability('account_id', " \
|
||||
"'capability_id', update_params)`"
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { future_requirements: FutureRequirements, requirements: Requirements }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -20,6 +20,14 @@ module Stripe
|
||||
class Networks < Stripe::StripeObject
|
||||
# The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
|
||||
attr_reader :preferred
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field account
|
||||
attr_reader :account
|
||||
@ -43,7 +51,7 @@ module Stripe
|
||||
attr_reader :allow_redisplay
|
||||
# A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout.
|
||||
attr_reader :available_payout_methods
|
||||
# Card brand. Can be `American Express`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
||||
# Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
||||
attr_reader :brand
|
||||
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
||||
attr_reader :country
|
||||
@ -142,5 +150,13 @@ module Stripe
|
||||
"'customer_id')` or " \
|
||||
"`Account.list_external_accounts('account_id')`"
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { networks: Networks }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -14,6 +14,14 @@ module Stripe
|
||||
attr_reader :reconciliation_mode
|
||||
# A flag to indicate if reconciliation mode returned is the user's default or is specific to this customer cash balance
|
||||
attr_reader :using_merchant_default
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# A hash of all cash balances available to this customer. You cannot delete a customer with any cash balances, even if the balance is 0. Amounts are represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
||||
attr_reader :available
|
||||
@ -39,5 +47,13 @@ module Stripe
|
||||
"Customer Cash Balance cannot be retrieved without a customer ID. " \
|
||||
"Retrieve a Customer Cash Balance using `Customer.retrieve_cash_balance('cus_123')`"
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { settings: Settings }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -18,6 +18,14 @@ module Stripe
|
||||
class Beneficiary < Stripe::StripeObject
|
||||
# Publicly displayable name for the end beneficiary of carbon removal.
|
||||
attr_reader :public_name
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class DeliveryDetail < Stripe::StripeObject
|
||||
@ -32,6 +40,14 @@ module Stripe
|
||||
attr_reader :longitude
|
||||
# The state/county/province/region where the supplier is located.
|
||||
attr_reader :region
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Time at which the delivery occurred. Measured in seconds since the Unix epoch.
|
||||
attr_reader :delivered_at
|
||||
@ -43,6 +59,14 @@ module Stripe
|
||||
attr_reader :registry_url
|
||||
# A supplier of carbon removal.
|
||||
attr_reader :supplier
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { location: Location }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -229,6 +253,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { beneficiary: Beneficiary, delivery_details: DeliveryDetail }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -20,6 +20,14 @@ module Stripe
|
||||
attr_reader :amount_subtotal
|
||||
# Total for one metric ton of carbon removal (including fees) in the currency's smallest unit.
|
||||
attr_reader :amount_total
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -69,6 +77,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { current_prices_per_metric_ton: CurrentPricesPerMetricTon }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -23,6 +23,14 @@ module Stripe
|
||||
attr_reader :longitude
|
||||
# The state/county/province/region where the supplier is located.
|
||||
attr_reader :region
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -66,6 +74,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { locations: Location }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -20,5 +20,13 @@ module Stripe
|
||||
attr_reader :livemode
|
||||
# String representing the object's type. Objects of the same type share the same value.
|
||||
attr_reader :object
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -22,6 +22,14 @@ module Stripe
|
||||
attr_reader :additional
|
||||
# Fields which every account must eventually provide.
|
||||
attr_reader :minimum
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Individual < Stripe::StripeObject
|
||||
@ -29,11 +37,27 @@ module Stripe
|
||||
attr_reader :additional
|
||||
# Fields which every account must eventually provide.
|
||||
attr_reader :minimum
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field company
|
||||
attr_reader :company
|
||||
# Attribute for field individual
|
||||
attr_reader :individual
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { company: Company, individual: Individual }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -74,5 +98,13 @@ module Stripe
|
||||
def self.list(params = {}, opts = {})
|
||||
request_stripe_object(method: :get, path: "/v1/country_specs", params: params, opts: opts)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { verification_fields: VerificationFields }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -19,11 +19,27 @@ module Stripe
|
||||
class AppliesTo < Stripe::StripeObject
|
||||
# A list of product IDs this coupon applies to
|
||||
attr_reader :products
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CurrencyOptions < Stripe::StripeObject
|
||||
# Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer.
|
||||
attr_reader :amount_off
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class DeleteParams < Stripe::RequestParams; end
|
||||
@ -245,5 +261,13 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { applies_to: AppliesTo, currency_options: CurrencyOptions }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -20,6 +20,14 @@ module Stripe
|
||||
attr_reader :amount
|
||||
# The discount that was applied to get this discount amount.
|
||||
attr_reader :discount
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PretaxCreditAmount < Stripe::StripeObject
|
||||
@ -31,6 +39,14 @@ module Stripe
|
||||
attr_reader :discount
|
||||
# Type of the pretax credit amount referenced.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Refund < Stripe::StripeObject
|
||||
@ -38,6 +54,14 @@ module Stripe
|
||||
attr_reader :amount_refunded
|
||||
# ID of the refund.
|
||||
attr_reader :refund
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingCost < Stripe::StripeObject
|
||||
@ -52,6 +76,14 @@ module Stripe
|
||||
attr_reader :taxability_reason
|
||||
# The amount on which tax is calculated, in cents (or local equivalent).
|
||||
attr_reader :taxable_amount
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Total shipping cost before any taxes are applied.
|
||||
attr_reader :amount_subtotal
|
||||
@ -63,12 +95,28 @@ module Stripe
|
||||
attr_reader :shipping_rate
|
||||
# The taxes applied to the shipping rate.
|
||||
attr_reader :taxes
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { taxes: Tax }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class TotalTax < Stripe::StripeObject
|
||||
class TaxRateDetails < Stripe::StripeObject
|
||||
# Attribute for field tax_rate
|
||||
attr_reader :tax_rate
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The amount of the tax, in cents (or local equivalent).
|
||||
attr_reader :amount
|
||||
@ -82,6 +130,14 @@ module Stripe
|
||||
attr_reader :taxable_amount
|
||||
# The type of tax information.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { tax_rate_details: TaxRateDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -729,5 +785,19 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
discount_amounts: DiscountAmount,
|
||||
pretax_credit_amounts: PretaxCreditAmount,
|
||||
refunds: Refund,
|
||||
shipping_cost: ShippingCost,
|
||||
total_taxes: TotalTax,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -14,6 +14,14 @@ module Stripe
|
||||
attr_reader :amount
|
||||
# The discount that was applied to get this discount amount.
|
||||
attr_reader :discount
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PretaxCreditAmount < Stripe::StripeObject
|
||||
@ -25,12 +33,28 @@ module Stripe
|
||||
attr_reader :discount
|
||||
# Type of the pretax credit amount referenced.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Tax < Stripe::StripeObject
|
||||
class TaxRateDetails < Stripe::StripeObject
|
||||
# Attribute for field tax_rate
|
||||
attr_reader :tax_rate
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The amount of the tax, in cents (or local equivalent).
|
||||
attr_reader :amount
|
||||
@ -44,6 +68,14 @@ module Stripe
|
||||
attr_reader :taxable_amount
|
||||
# The type of tax information.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { tax_rate_details: TaxRateDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
|
||||
attr_reader :amount
|
||||
@ -75,5 +107,17 @@ module Stripe
|
||||
attr_reader :unit_amount
|
||||
# Same as `unit_amount`, but contains a decimal value with at most 12 decimal places.
|
||||
attr_reader :unit_amount_decimal
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
discount_amounts: DiscountAmount,
|
||||
pretax_credit_amounts: PretaxCreditAmount,
|
||||
taxes: Tax,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -27,14 +27,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class InvoiceSettings < Stripe::StripeObject
|
||||
@ -43,6 +51,14 @@ module Stripe
|
||||
attr_reader :name
|
||||
# The value of the custom field.
|
||||
attr_reader :value
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class RenderingOptions < Stripe::StripeObject
|
||||
@ -50,6 +66,14 @@ module Stripe
|
||||
attr_reader :amount_tax_display
|
||||
# ID of the invoice rendering template to be used for this customer's invoices. If set, the template will be used on all invoices for this customer unless a template is set directly on the invoice.
|
||||
attr_reader :template
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Default custom fields to be displayed on invoices for this customer.
|
||||
attr_reader :custom_fields
|
||||
@ -59,6 +83,14 @@ module Stripe
|
||||
attr_reader :footer
|
||||
# Default options for invoice PDF rendering for this customer.
|
||||
attr_reader :rendering_options
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { custom_fields: CustomField, rendering_options: RenderingOptions }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Shipping < Stripe::StripeObject
|
||||
@ -67,14 +99,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field address
|
||||
attr_reader :address
|
||||
@ -86,6 +126,14 @@ module Stripe
|
||||
attr_reader :phone
|
||||
# The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
||||
attr_reader :tracking_number
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { address: Address }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Tax < Stripe::StripeObject
|
||||
@ -96,6 +144,14 @@ module Stripe
|
||||
attr_reader :source
|
||||
# The identified tax state, county, province, or region of the customer.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Surfaces if automatic tax computation is possible given the current customer location information.
|
||||
attr_reader :automatic_tax
|
||||
@ -103,6 +159,14 @@ module Stripe
|
||||
attr_reader :ip_address
|
||||
# The identified tax location of the customer.
|
||||
attr_reader :location
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { location: Location }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class DeleteParams < Stripe::RequestParams; end
|
||||
@ -113,9 +177,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -209,9 +273,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -263,6 +327,8 @@ module Stripe
|
||||
attr_accessor :address
|
||||
# An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
|
||||
attr_accessor :balance
|
||||
# The customer's business name. This may be up to *150 characters*.
|
||||
attr_accessor :business_name
|
||||
# Balance information and default balance settings for this customer.
|
||||
attr_accessor :cash_balance
|
||||
# If you are using payment methods created via the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method) parameter.
|
||||
@ -277,6 +343,8 @@ module Stripe
|
||||
attr_accessor :email
|
||||
# Specifies which fields in the response should be expanded.
|
||||
attr_accessor :expand
|
||||
# The customer's full name. This may be up to *150 characters*.
|
||||
attr_accessor :individual_name
|
||||
# The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
|
||||
attr_accessor :invoice_prefix
|
||||
# Default invoice settings for this customer.
|
||||
@ -305,11 +373,13 @@ module Stripe
|
||||
def initialize(
|
||||
address: nil,
|
||||
balance: nil,
|
||||
business_name: nil,
|
||||
cash_balance: nil,
|
||||
default_source: nil,
|
||||
description: nil,
|
||||
email: nil,
|
||||
expand: nil,
|
||||
individual_name: nil,
|
||||
invoice_prefix: nil,
|
||||
invoice_settings: nil,
|
||||
metadata: nil,
|
||||
@ -325,11 +395,13 @@ module Stripe
|
||||
)
|
||||
@address = address
|
||||
@balance = balance
|
||||
@business_name = business_name
|
||||
@cash_balance = cash_balance
|
||||
@default_source = default_source
|
||||
@description = description
|
||||
@email = email
|
||||
@expand = expand
|
||||
@individual_name = individual_name
|
||||
@invoice_prefix = invoice_prefix
|
||||
@invoice_settings = invoice_settings
|
||||
@metadata = metadata
|
||||
@ -405,9 +477,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -501,9 +573,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -567,6 +639,8 @@ module Stripe
|
||||
attr_accessor :address
|
||||
# An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
|
||||
attr_accessor :balance
|
||||
# The customer's business name. This may be up to *150 characters*.
|
||||
attr_accessor :business_name
|
||||
# Balance information and default balance settings for this customer.
|
||||
attr_accessor :cash_balance
|
||||
# An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard.
|
||||
@ -575,6 +649,8 @@ module Stripe
|
||||
attr_accessor :email
|
||||
# Specifies which fields in the response should be expanded.
|
||||
attr_accessor :expand
|
||||
# The customer's full name. This may be up to *150 characters*.
|
||||
attr_accessor :individual_name
|
||||
# The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
|
||||
attr_accessor :invoice_prefix
|
||||
# Default invoice settings for this customer.
|
||||
@ -609,10 +685,12 @@ module Stripe
|
||||
def initialize(
|
||||
address: nil,
|
||||
balance: nil,
|
||||
business_name: nil,
|
||||
cash_balance: nil,
|
||||
description: nil,
|
||||
email: nil,
|
||||
expand: nil,
|
||||
individual_name: nil,
|
||||
invoice_prefix: nil,
|
||||
invoice_settings: nil,
|
||||
metadata: nil,
|
||||
@ -631,10 +709,12 @@ module Stripe
|
||||
)
|
||||
@address = address
|
||||
@balance = balance
|
||||
@business_name = business_name
|
||||
@cash_balance = cash_balance
|
||||
@description = description
|
||||
@email = email
|
||||
@expand = expand
|
||||
@individual_name = individual_name
|
||||
@invoice_prefix = invoice_prefix
|
||||
@invoice_settings = invoice_settings
|
||||
@metadata = metadata
|
||||
@ -783,6 +863,8 @@ module Stripe
|
||||
attr_reader :address
|
||||
# The current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see [invoice_credit_balance](https://stripe.com/docs/api/customers/object#customer_object-invoice_credit_balance).
|
||||
attr_reader :balance
|
||||
# The customer's business name.
|
||||
attr_reader :business_name
|
||||
# The current funds being held by Stripe on behalf of the customer. You can apply these funds towards payment intents when the source is "cash_balance". The `settings[reconciliation_mode]` field describes if these funds apply to these payment intents manually or automatically.
|
||||
attr_reader :cash_balance
|
||||
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
@ -807,6 +889,8 @@ module Stripe
|
||||
attr_reader :email
|
||||
# Unique identifier for the object.
|
||||
attr_reader :id
|
||||
# The customer's individual name.
|
||||
attr_reader :individual_name
|
||||
# The current multi-currency balances, if any, that's stored on the customer. If positive in a currency, the customer has a credit to apply to their next invoice denominated in that currency. If negative, the customer has an amount owed that's added to their next invoice denominated in that currency. These balances don't apply to unpaid invoices. They solely track amounts that Stripe hasn't successfully applied to any invoice. Stripe only applies a balance in a specific currency to an invoice after that invoice (which is in the same currency) finalizes.
|
||||
attr_reader :invoice_credit_balance
|
||||
# The prefix for the customer used to generate unique invoice numbers.
|
||||
@ -1036,5 +1120,18 @@ module Stripe
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
address: Address,
|
||||
invoice_settings: InvoiceSettings,
|
||||
shipping: Shipping,
|
||||
tax: Tax,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -64,5 +64,13 @@ module Stripe
|
||||
"Customer Balance Transactions cannot be retrieved without a customer ID. " \
|
||||
"Update a Customer Balance Transaction using `Customer.update_balance_transaction('cus_123', 'cbtxn_123', params)`"
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -17,11 +17,27 @@ module Stripe
|
||||
attr_reader :balance_transaction
|
||||
# The [Cash Balance Transaction](https://stripe.com/docs/api/cash_balance_transactions/object) that brought the customer balance negative, triggering the clawback of funds.
|
||||
attr_reader :linked_transaction
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class AppliedToPayment < Stripe::StripeObject
|
||||
# The [Payment Intent](https://stripe.com/docs/api/payment_intents/object) that funds were applied to.
|
||||
attr_reader :payment_intent
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Funded < Stripe::StripeObject
|
||||
@ -33,6 +49,14 @@ module Stripe
|
||||
attr_reader :iban_last4
|
||||
# The full name of the sender, as supplied by the sending bank.
|
||||
attr_reader :sender_name
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class GbBankTransfer < Stripe::StripeObject
|
||||
@ -42,6 +66,14 @@ module Stripe
|
||||
attr_reader :sender_name
|
||||
# The sort code of the bank of the sender of the funding
|
||||
attr_reader :sort_code
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class JpBankTransfer < Stripe::StripeObject
|
||||
@ -51,6 +83,14 @@ module Stripe
|
||||
attr_reader :sender_branch
|
||||
# The full name of the sender, as supplied by the sending bank.
|
||||
attr_reader :sender_name
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class UsBankTransfer < Stripe::StripeObject
|
||||
@ -58,6 +98,14 @@ module Stripe
|
||||
attr_reader :network
|
||||
# The full name of the sender, as supplied by the sending bank.
|
||||
attr_reader :sender_name
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field eu_bank_transfer
|
||||
attr_reader :eu_bank_transfer
|
||||
@ -71,24 +119,69 @@ module Stripe
|
||||
attr_reader :type
|
||||
# Attribute for field us_bank_transfer
|
||||
attr_reader :us_bank_transfer
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
eu_bank_transfer: EuBankTransfer,
|
||||
gb_bank_transfer: GbBankTransfer,
|
||||
jp_bank_transfer: JpBankTransfer,
|
||||
us_bank_transfer: UsBankTransfer,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field bank_transfer
|
||||
attr_reader :bank_transfer
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { bank_transfer: BankTransfer }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class RefundedFromPayment < Stripe::StripeObject
|
||||
# The [Refund](https://stripe.com/docs/api/refunds/object) that moved these funds into the customer's cash balance.
|
||||
attr_reader :refund
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class TransferredToBalance < Stripe::StripeObject
|
||||
# The [Balance Transaction](https://stripe.com/docs/api/balance_transactions/object) that corresponds to funds transferred to your Stripe balance.
|
||||
attr_reader :balance_transaction
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class UnappliedFromPayment < Stripe::StripeObject
|
||||
# The [Payment Intent](https://stripe.com/docs/api/payment_intents/object) that funds were unapplied from.
|
||||
attr_reader :payment_intent
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field adjusted_for_overdraft
|
||||
attr_reader :adjusted_for_overdraft
|
||||
@ -120,5 +213,20 @@ module Stripe
|
||||
attr_reader :type
|
||||
# Attribute for field unapplied_from_payment
|
||||
attr_reader :unapplied_from_payment
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
adjusted_for_overdraft: AdjustedForOverdraft,
|
||||
applied_to_payment: AppliedToPayment,
|
||||
funded: Funded,
|
||||
refunded_from_payment: RefundedFromPayment,
|
||||
transferred_to_balance: TransferredToBalance,
|
||||
unapplied_from_payment: UnappliedFromPayment,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -20,6 +20,14 @@ module Stripe
|
||||
class BuyButton < Stripe::StripeObject
|
||||
# Whether the buy button is enabled.
|
||||
attr_reader :enabled
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PaymentElement < Stripe::StripeObject
|
||||
@ -44,16 +52,40 @@ module Stripe
|
||||
#
|
||||
# When using SetupIntents, directly configure the [`usage`](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-usage) value on SetupIntent creation.
|
||||
attr_reader :payment_method_save_usage
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the Payment Element is enabled.
|
||||
attr_reader :enabled
|
||||
# This hash defines whether the Payment Element supports certain features.
|
||||
attr_reader :features
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PricingTable < Stripe::StripeObject
|
||||
# Whether the pricing table is enabled.
|
||||
attr_reader :enabled
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# This hash contains whether the buy button is enabled.
|
||||
attr_reader :buy_button
|
||||
@ -61,6 +93,18 @@ module Stripe
|
||||
attr_reader :payment_element
|
||||
# This hash contains whether the pricing table is enabled.
|
||||
attr_reader :pricing_table
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
buy_button: BuyButton,
|
||||
payment_element: PaymentElement,
|
||||
pricing_table: PricingTable,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CreateParams < Stripe::RequestParams
|
||||
@ -184,5 +228,13 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { components: Components }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -12,12 +12,22 @@ module Stripe
|
||||
"discount"
|
||||
end
|
||||
|
||||
class Source < Stripe::StripeObject
|
||||
# The coupon that was redeemed to create this discount.
|
||||
attr_reader :coupon
|
||||
# The source type of the discount.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode.
|
||||
attr_reader :checkout_session
|
||||
# A coupon contains information about a percent-off or amount-off discount you
|
||||
# might want to apply to a customer. Coupons may be applied to [subscriptions](https://stripe.com/docs/api#subscriptions), [invoices](https://stripe.com/docs/api#invoices),
|
||||
# [checkout sessions](https://stripe.com/docs/api/checkout/sessions), [quotes](https://stripe.com/docs/api#quotes), and more. Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge) or [payment intents](https://stripe.com/docs/api/payment_intents).
|
||||
attr_reader :coupon
|
||||
# The ID of the customer associated with this discount.
|
||||
attr_reader :customer
|
||||
# If the coupon has a duration of `repeating`, the date that this discount will end. If the coupon has a duration of `once` or `forever`, this attribute will be null.
|
||||
@ -32,6 +42,8 @@ module Stripe
|
||||
attr_reader :object
|
||||
# The promotion code applied to create this discount.
|
||||
attr_reader :promotion_code
|
||||
# Attribute for field source
|
||||
attr_reader :source
|
||||
# Date that the coupon was applied.
|
||||
attr_reader :start
|
||||
# The subscription that this coupon is applied to, if it is applied to a particular subscription.
|
||||
@ -40,5 +52,13 @@ module Stripe
|
||||
attr_reader :subscription_item
|
||||
# Always true for a deleted object
|
||||
attr_reader :deleted
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { source: Source }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -25,14 +25,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# User Account ID used to log into business platform. Must be recognizable by the user.
|
||||
attr_reader :customer_account_id
|
||||
@ -50,6 +58,14 @@ module Stripe
|
||||
attr_reader :product_description
|
||||
# The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
|
||||
attr_reader :shipping_address
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { shipping_address: ShippingAddress }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PriorUndisputedTransaction < Stripe::StripeObject
|
||||
@ -58,14 +74,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge.
|
||||
attr_reader :charge
|
||||
@ -83,21 +107,59 @@ module Stripe
|
||||
attr_reader :product_description
|
||||
# The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
|
||||
attr_reader :shipping_address
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { shipping_address: ShippingAddress }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission.
|
||||
attr_reader :disputed_transaction
|
||||
# List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission.
|
||||
attr_reader :prior_undisputed_transactions
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
disputed_transaction: DisputedTransaction,
|
||||
prior_undisputed_transactions: PriorUndisputedTransaction,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class VisaCompliance < Stripe::StripeObject
|
||||
# A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute.
|
||||
attr_reader :fee_acknowledged
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field visa_compelling_evidence_3
|
||||
attr_reader :visa_compelling_evidence_3
|
||||
# Attribute for field visa_compliance
|
||||
attr_reader :visa_compliance
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
visa_compelling_evidence_3: VisaCompellingEvidence3,
|
||||
visa_compliance: VisaCompliance,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity.
|
||||
attr_reader :access_activity_log
|
||||
@ -155,6 +217,14 @@ module Stripe
|
||||
attr_reader :uncategorized_file
|
||||
# Any additional evidence or statements.
|
||||
attr_reader :uncategorized_text
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { enhanced_evidence: EnhancedEvidence }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class EvidenceDetails < Stripe::StripeObject
|
||||
@ -164,16 +234,43 @@ module Stripe
|
||||
attr_reader :required_actions
|
||||
# Visa Compelling Evidence 3.0 eligibility status.
|
||||
attr_reader :status
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class VisaCompliance < Stripe::StripeObject
|
||||
# Visa compliance eligibility status.
|
||||
attr_reader :status
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field visa_compelling_evidence_3
|
||||
attr_reader :visa_compelling_evidence_3
|
||||
# Attribute for field visa_compliance
|
||||
attr_reader :visa_compliance
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
visa_compelling_evidence_3: VisaCompellingEvidence3,
|
||||
visa_compliance: VisaCompliance,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Date by which evidence must be submitted in order to successfully challenge dispute. Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute.
|
||||
attr_reader :due_by
|
||||
@ -185,12 +282,28 @@ module Stripe
|
||||
attr_reader :past_due
|
||||
# The number of times evidence has been submitted. Typically, you may only submit evidence once.
|
||||
attr_reader :submission_count
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { enhanced_eligibility: EnhancedEligibility }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PaymentMethodDetails < Stripe::StripeObject
|
||||
class AmazonPay < Stripe::StripeObject
|
||||
# The AmazonPay dispute type, chargeback or claim
|
||||
attr_reader :dispute_type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Card < Stripe::StripeObject
|
||||
@ -200,11 +313,29 @@ module Stripe
|
||||
attr_reader :case_type
|
||||
# The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network.
|
||||
attr_reader :network_reason_code
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Klarna < Stripe::StripeObject
|
||||
# Chargeback loss reason mapped by Stripe from Klarna's chargeback loss reason
|
||||
attr_reader :chargeback_loss_reason_code
|
||||
# The reason for the dispute as defined by Klarna
|
||||
attr_reader :reason_code
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Paypal < Stripe::StripeObject
|
||||
@ -212,6 +343,14 @@ module Stripe
|
||||
attr_reader :case_id
|
||||
# The reason for the dispute as defined by PayPal
|
||||
attr_reader :reason_code
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field amazon_pay
|
||||
attr_reader :amazon_pay
|
||||
@ -223,6 +362,14 @@ module Stripe
|
||||
attr_reader :paypal
|
||||
# Payment method type.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { amazon_pay: AmazonPay, card: Card, klarna: Klarna, paypal: Paypal }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -287,9 +434,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -356,9 +503,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -666,5 +813,17 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
evidence: Evidence,
|
||||
evidence_details: EvidenceDetails,
|
||||
payment_method_details: PaymentMethodDetails,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -58,6 +58,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -18,6 +18,14 @@ module Stripe
|
||||
attr_reader :livemode
|
||||
# String representing the object's type. Objects of the same type share the same value.
|
||||
attr_reader :object
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -125,6 +125,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -60,5 +60,13 @@ module Stripe
|
||||
end
|
||||
super
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -33,6 +33,14 @@ module Stripe
|
||||
attr_reader :object
|
||||
# Object containing the names of the updated attributes and their values prior to the event (only included in events of type `*.updated`). If an array attribute has any updated elements, this object contains the entire array. In Stripe API versions 2017-04-06 or earlier, an updated array attribute in this object includes only the updated array elements.
|
||||
attr_reader :previous_attributes
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Request < Stripe::StripeObject
|
||||
@ -40,6 +48,14 @@ module Stripe
|
||||
attr_reader :id
|
||||
# The idempotency key transmitted during the request, if any. *Note: This property is populated only for events on or after May 23, 2017*.
|
||||
attr_reader :idempotency_key
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -124,5 +140,13 @@ module Stripe
|
||||
def self.list(params = {}, opts = {})
|
||||
request_stripe_object(method: :get, path: "/v1/events", params: params, opts: opts)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { data: Data, request: Request }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -2,6 +2,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# [Deprecated] The `ExchangeRate` APIs are deprecated. Please use the [FX Quotes API](https://docs.stripe.com/payments/currencies/localize-prices/fx-quotes-api) instead.
|
||||
#
|
||||
# `ExchangeRate` objects allow you to determine the rates that Stripe is currently
|
||||
# using to convert from one currency to another. Since this number is variable
|
||||
# throughout the day, there are various reasons why you might want to know the current
|
||||
@ -29,6 +31,7 @@ module Stripe
|
||||
#
|
||||
# *Using this Exchange Rates API beta for any purpose other than to transact on Stripe is strictly prohibited and constitutes a violation of Stripe's terms of service.*
|
||||
class ExchangeRate < APIResource
|
||||
extend Gem::Deprecate
|
||||
extend Stripe::APIOperations::List
|
||||
|
||||
OBJECT_NAME = "exchange_rate"
|
||||
@ -60,9 +63,24 @@ module Stripe
|
||||
# Hash where the keys are supported currencies and the values are the exchange rate at which the base id currency converts to the key currency.
|
||||
attr_reader :rates
|
||||
|
||||
# [Deprecated] The ExchangeRate APIs are deprecated. Please use the [FX Quotes API](https://docs.stripe.com/payments/currencies/localize-prices/fx-quotes-api) instead.
|
||||
#
|
||||
# Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports.
|
||||
def self.list(params = {}, opts = {})
|
||||
request_stripe_object(method: :get, path: "/v1/exchange_rates", params: params, opts: opts)
|
||||
end
|
||||
|
||||
class << self
|
||||
extend Gem::Deprecate
|
||||
deprecate :list, :none, 2024, 3
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -156,5 +156,13 @@ module Stripe
|
||||
def self.resource_url
|
||||
"/v1/files"
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -137,5 +137,13 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -19,6 +19,14 @@ module Stripe
|
||||
attr_reader :customer
|
||||
# Type of account holder that this account belongs to.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Balance < Stripe::StripeObject
|
||||
@ -29,6 +37,14 @@ module Stripe
|
||||
#
|
||||
# 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.
|
||||
attr_reader :available
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Credit < Stripe::StripeObject
|
||||
@ -38,6 +54,14 @@ module Stripe
|
||||
#
|
||||
# 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.
|
||||
attr_reader :used
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The time that the external institution calculated this balance. Measured in seconds since the Unix epoch.
|
||||
attr_reader :as_of
|
||||
@ -53,6 +77,14 @@ module Stripe
|
||||
attr_reader :current
|
||||
# The `type` of the balance. An additional hash is included on the balance with a name matching this value.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { cash: Cash, credit: Credit }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class BalanceRefresh < Stripe::StripeObject
|
||||
@ -62,6 +94,14 @@ module Stripe
|
||||
attr_reader :next_refresh_available_at
|
||||
# The status of the last refresh attempt.
|
||||
attr_reader :status
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class OwnershipRefresh < Stripe::StripeObject
|
||||
@ -71,6 +111,14 @@ module Stripe
|
||||
attr_reader :next_refresh_available_at
|
||||
# The status of the last refresh attempt.
|
||||
attr_reader :status
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class TransactionRefresh < Stripe::StripeObject
|
||||
@ -82,6 +130,14 @@ module Stripe
|
||||
attr_reader :next_refresh_available_at
|
||||
# The status of the last refresh attempt.
|
||||
attr_reader :status
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -358,6 +414,20 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
account_holder: AccountHolder,
|
||||
balance: Balance,
|
||||
balance_refresh: BalanceRefresh,
|
||||
ownership_refresh: OwnershipRefresh,
|
||||
transaction_refresh: TransactionRefresh,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -26,6 +26,14 @@ module Stripe
|
||||
attr_reader :raw_address
|
||||
# The timestamp of the refresh that updated this owner.
|
||||
attr_reader :refreshed_at
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -18,6 +18,14 @@ module Stripe
|
||||
attr_reader :object
|
||||
# A paginated list of owners for this account.
|
||||
attr_reader :owners
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -19,6 +19,14 @@ module Stripe
|
||||
attr_reader :customer
|
||||
# Type of account holder that this account belongs to.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Filters < Stripe::StripeObject
|
||||
@ -26,6 +34,14 @@ module Stripe
|
||||
attr_reader :account_subcategories
|
||||
# List of countries from which to filter accounts.
|
||||
attr_reader :countries
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CreateParams < Stripe::RequestParams
|
||||
@ -116,6 +132,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { account_holder: AccountHolder, filters: Filters }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -17,6 +17,14 @@ module Stripe
|
||||
attr_reader :posted_at
|
||||
# Time at which this transaction was voided. Measured in seconds since the Unix epoch.
|
||||
attr_reader :void_at
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -113,6 +121,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { status_transitions: StatusTransitions }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -33,6 +33,14 @@ module Stripe
|
||||
attr_reader :destination_duration
|
||||
# The IP address of the destination.
|
||||
attr_reader :destination_ip_address
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class RequestDetails < Stripe::StripeObject
|
||||
@ -41,6 +49,14 @@ module Stripe
|
||||
attr_reader :name
|
||||
# The header value.
|
||||
attr_reader :value
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The body payload to send to the destination endpoint.
|
||||
attr_reader :body
|
||||
@ -48,6 +64,14 @@ module Stripe
|
||||
attr_reader :headers
|
||||
# The HTTP method used to call the destination endpoint.
|
||||
attr_reader :http_method
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { headers: Header }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ResponseDetails < Stripe::StripeObject
|
||||
@ -56,6 +80,14 @@ module Stripe
|
||||
attr_reader :name
|
||||
# The header value.
|
||||
attr_reader :value
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The response body from the destination endpoint to Stripe.
|
||||
attr_reader :body
|
||||
@ -63,6 +95,14 @@ module Stripe
|
||||
attr_reader :headers
|
||||
# The HTTP status code that the destination endpoint returned.
|
||||
attr_reader :status
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { headers: Header }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -203,6 +243,18 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
request_context: RequestContext,
|
||||
request_details: RequestDetails,
|
||||
response_details: ResponseDetails,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -21,14 +21,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class BankAddress < Stripe::StripeObject
|
||||
@ -36,14 +44,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field account_holder_address
|
||||
attr_reader :account_holder_address
|
||||
@ -59,6 +75,17 @@ module Stripe
|
||||
attr_reader :bank_name
|
||||
# The ABA routing number
|
||||
attr_reader :routing_number
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
account_holder_address: AccountHolderAddress,
|
||||
bank_address: BankAddress,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Iban < Stripe::StripeObject
|
||||
@ -67,14 +94,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class BankAddress < Stripe::StripeObject
|
||||
@ -82,14 +117,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field account_holder_address
|
||||
attr_reader :account_holder_address
|
||||
@ -103,6 +146,17 @@ module Stripe
|
||||
attr_reader :country
|
||||
# The IBAN of the account.
|
||||
attr_reader :iban
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
account_holder_address: AccountHolderAddress,
|
||||
bank_address: BankAddress,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SortCode < Stripe::StripeObject
|
||||
@ -111,14 +165,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class BankAddress < Stripe::StripeObject
|
||||
@ -126,14 +188,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field account_holder_address
|
||||
attr_reader :account_holder_address
|
||||
@ -145,6 +215,17 @@ module Stripe
|
||||
attr_reader :bank_address
|
||||
# The six-digit sort code
|
||||
attr_reader :sort_code
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
account_holder_address: AccountHolderAddress,
|
||||
bank_address: BankAddress,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Spei < Stripe::StripeObject
|
||||
@ -153,14 +234,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class BankAddress < Stripe::StripeObject
|
||||
@ -168,14 +257,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field account_holder_address
|
||||
attr_reader :account_holder_address
|
||||
@ -189,6 +286,17 @@ module Stripe
|
||||
attr_reader :bank_name
|
||||
# The CLABE number
|
||||
attr_reader :clabe
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
account_holder_address: AccountHolderAddress,
|
||||
bank_address: BankAddress,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Swift < Stripe::StripeObject
|
||||
@ -197,14 +305,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class BankAddress < Stripe::StripeObject
|
||||
@ -212,14 +328,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field account_holder_address
|
||||
attr_reader :account_holder_address
|
||||
@ -235,6 +359,17 @@ module Stripe
|
||||
attr_reader :bank_name
|
||||
# The SWIFT code
|
||||
attr_reader :swift_code
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
account_holder_address: AccountHolderAddress,
|
||||
bank_address: BankAddress,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Zengin < Stripe::StripeObject
|
||||
@ -243,14 +378,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class BankAddress < Stripe::StripeObject
|
||||
@ -258,14 +401,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field account_holder_address
|
||||
attr_reader :account_holder_address
|
||||
@ -285,6 +436,17 @@ module Stripe
|
||||
attr_reader :branch_code
|
||||
# The branch name of the account
|
||||
attr_reader :branch_name
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
account_holder_address: AccountHolderAddress,
|
||||
bank_address: BankAddress,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# ABA Records contain U.S. bank account details per the ABA format.
|
||||
attr_reader :aba
|
||||
@ -302,6 +464,21 @@ module Stripe
|
||||
attr_reader :type
|
||||
# Zengin Records contain Japan bank account details per the Zengin format.
|
||||
attr_reader :zengin
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
aba: Aba,
|
||||
iban: Iban,
|
||||
sort_code: SortCode,
|
||||
spei: Spei,
|
||||
swift: Swift,
|
||||
zengin: Zengin,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The country of the bank account to fund
|
||||
attr_reader :country
|
||||
@ -309,6 +486,14 @@ module Stripe
|
||||
attr_reader :financial_addresses
|
||||
# The bank_transfer type
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { financial_addresses: FinancialAddress }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field bank_transfer
|
||||
attr_reader :bank_transfer
|
||||
@ -328,5 +513,13 @@ module Stripe
|
||||
end
|
||||
"#{Customer.resource_url}/#{CGI.escape(customer)}/funding_instructions" + "/#{CGI.escape(id)}"
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { bank_transfer: BankTransfer }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -28,14 +28,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Dob < Stripe::StripeObject
|
||||
@ -45,6 +53,14 @@ module Stripe
|
||||
attr_reader :month
|
||||
# The four-digit year.
|
||||
attr_reader :year
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Error < Stripe::StripeObject
|
||||
@ -52,6 +68,14 @@ module Stripe
|
||||
attr_reader :code
|
||||
# A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
||||
attr_reader :reason
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ExpirationDate < Stripe::StripeObject
|
||||
@ -61,6 +85,14 @@ module Stripe
|
||||
attr_reader :month
|
||||
# The four-digit year.
|
||||
attr_reader :year
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class IssuedDate < Stripe::StripeObject
|
||||
@ -70,6 +102,14 @@ module Stripe
|
||||
attr_reader :month
|
||||
# The four-digit year.
|
||||
attr_reader :year
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Address as it appears in the document.
|
||||
attr_reader :address
|
||||
@ -101,6 +141,20 @@ module Stripe
|
||||
attr_reader :unparsed_place_of_birth
|
||||
# Sex as it appears in the document.
|
||||
attr_reader :unparsed_sex
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
address: Address,
|
||||
dob: Dob,
|
||||
error: Error,
|
||||
expiration_date: ExpirationDate,
|
||||
issued_date: IssuedDate,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Email < Stripe::StripeObject
|
||||
@ -109,6 +163,14 @@ module Stripe
|
||||
attr_reader :code
|
||||
# A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
||||
attr_reader :reason
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Email to be verified.
|
||||
attr_reader :email
|
||||
@ -116,6 +178,14 @@ module Stripe
|
||||
attr_reader :error
|
||||
# Status of this `email` check.
|
||||
attr_reader :status
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { error: Error }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class IdNumber < Stripe::StripeObject
|
||||
@ -126,6 +196,14 @@ module Stripe
|
||||
attr_reader :month
|
||||
# The four-digit year.
|
||||
attr_reader :year
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Error < Stripe::StripeObject
|
||||
@ -133,6 +211,14 @@ module Stripe
|
||||
attr_reader :code
|
||||
# A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
||||
attr_reader :reason
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Date of birth.
|
||||
attr_reader :dob
|
||||
@ -148,6 +234,14 @@ module Stripe
|
||||
attr_reader :last_name
|
||||
# Status of this `id_number` check.
|
||||
attr_reader :status
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { dob: Dob, error: Error }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Options < Stripe::StripeObject
|
||||
@ -160,13 +254,37 @@ module Stripe
|
||||
attr_reader :require_live_capture
|
||||
# Capture a face image and perform a [selfie check](https://stripe.com/docs/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user’s face. [Learn more](https://stripe.com/docs/identity/selfie).
|
||||
attr_reader :require_matching_selfie
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class IdNumber < Stripe::StripeObject; end
|
||||
class IdNumber < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field document
|
||||
attr_reader :document
|
||||
# Attribute for field id_number
|
||||
attr_reader :id_number
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { document: Document, id_number: IdNumber }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Phone < Stripe::StripeObject
|
||||
@ -175,6 +293,14 @@ module Stripe
|
||||
attr_reader :code
|
||||
# A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
||||
attr_reader :reason
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Details on the verification error. Present when status is `unverified`.
|
||||
attr_reader :error
|
||||
@ -182,6 +308,14 @@ module Stripe
|
||||
attr_reader :phone
|
||||
# Status of this `phone` check.
|
||||
attr_reader :status
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { error: Error }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Selfie < Stripe::StripeObject
|
||||
@ -190,6 +324,14 @@ module Stripe
|
||||
attr_reader :code
|
||||
# A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
||||
attr_reader :reason
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# ID of the [File](https://stripe.com/docs/api/files) holding the image of the identity document used in this check.
|
||||
attr_reader :document
|
||||
@ -199,6 +341,14 @@ module Stripe
|
||||
attr_reader :selfie
|
||||
# Status of this `selfie` check.
|
||||
attr_reader :status
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { error: Error }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -294,6 +444,21 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
document: Document,
|
||||
email: Email,
|
||||
id_number: IdNumber,
|
||||
options: Options,
|
||||
phone: Phone,
|
||||
selfie: Selfie,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -29,6 +29,14 @@ module Stripe
|
||||
attr_reader :code
|
||||
# A message that explains the reason for verification or user-session failure.
|
||||
attr_reader :reason
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Options < Stripe::StripeObject
|
||||
@ -41,25 +49,65 @@ module Stripe
|
||||
attr_reader :require_live_capture
|
||||
# Capture a face image and perform a [selfie check](https://stripe.com/docs/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user’s face. [Learn more](https://stripe.com/docs/identity/selfie).
|
||||
attr_reader :require_matching_selfie
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Email < Stripe::StripeObject
|
||||
# Request one time password verification of `provided_details.email`.
|
||||
attr_reader :require_verification
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class IdNumber < Stripe::StripeObject; end
|
||||
class IdNumber < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Matching < Stripe::StripeObject
|
||||
# Strictness of the DOB matching policy to apply.
|
||||
attr_reader :dob
|
||||
# Strictness of the name matching policy to apply.
|
||||
attr_reader :name
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Phone < Stripe::StripeObject
|
||||
# Request one time password verification of `provided_details.phone`.
|
||||
attr_reader :require_verification
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field document
|
||||
attr_reader :document
|
||||
@ -71,6 +119,20 @@ module Stripe
|
||||
attr_reader :matching
|
||||
# Attribute for field phone
|
||||
attr_reader :phone
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
document: Document,
|
||||
email: Email,
|
||||
id_number: IdNumber,
|
||||
matching: Matching,
|
||||
phone: Phone,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ProvidedDetails < Stripe::StripeObject
|
||||
@ -78,11 +140,27 @@ module Stripe
|
||||
attr_reader :email
|
||||
# Phone number of user being verified
|
||||
attr_reader :phone
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Redaction < Stripe::StripeObject
|
||||
# Indicates whether this object and its related objects have been redacted or not.
|
||||
attr_reader :status
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class RelatedPerson < Stripe::StripeObject
|
||||
@ -90,6 +168,14 @@ module Stripe
|
||||
attr_reader :account
|
||||
# Token referencing the related Person resource.
|
||||
attr_reader :person
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class VerifiedOutputs < Stripe::StripeObject
|
||||
@ -98,14 +184,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Dob < Stripe::StripeObject
|
||||
@ -115,6 +209,14 @@ module Stripe
|
||||
attr_reader :month
|
||||
# The four-digit year.
|
||||
attr_reader :year
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The user's verified address.
|
||||
attr_reader :address
|
||||
@ -138,6 +240,14 @@ module Stripe
|
||||
attr_reader :unparsed_place_of_birth
|
||||
# The user's verified sex as it appears in the document.
|
||||
attr_reader :unparsed_sex
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { address: Address, dob: Dob }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -534,6 +644,21 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
last_error: LastError,
|
||||
options: Options,
|
||||
provided_details: ProvidedDetails,
|
||||
redaction: Redaction,
|
||||
related_person: RelatedPerson,
|
||||
verified_outputs: VerifiedOutputs,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -55,6 +55,14 @@ module Stripe
|
||||
attr_reader :account
|
||||
# Type of the account referenced.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# If Stripe disabled automatic tax, this enum describes why.
|
||||
attr_reader :disabled_reason
|
||||
@ -66,6 +74,14 @@ module Stripe
|
||||
attr_reader :provider
|
||||
# The status of the most recent automated tax calculation for this invoice.
|
||||
attr_reader :status
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { liability: Liability }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ConfirmationSecret < Stripe::StripeObject
|
||||
@ -73,6 +89,14 @@ module Stripe
|
||||
attr_reader :client_secret
|
||||
# The type of client_secret. Currently this is always payment_intent, referencing the default payment_intent that Stripe creates during invoice finalization
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CustomField < Stripe::StripeObject
|
||||
@ -80,6 +104,14 @@ module Stripe
|
||||
attr_reader :name
|
||||
# The value of the custom field.
|
||||
attr_reader :value
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CustomerAddress < Stripe::StripeObject
|
||||
@ -87,14 +119,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CustomerShipping < Stripe::StripeObject
|
||||
@ -103,14 +143,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field address
|
||||
attr_reader :address
|
||||
@ -122,6 +170,14 @@ module Stripe
|
||||
attr_reader :phone
|
||||
# The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
||||
attr_reader :tracking_number
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { address: Address }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CustomerTaxId < Stripe::StripeObject
|
||||
@ -129,6 +185,14 @@ module Stripe
|
||||
attr_reader :type
|
||||
# The value of the tax ID.
|
||||
attr_reader :value
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class FromInvoice < Stripe::StripeObject
|
||||
@ -136,6 +200,14 @@ module Stripe
|
||||
attr_reader :action
|
||||
# The invoice that was cloned.
|
||||
attr_reader :invoice
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Issuer < Stripe::StripeObject
|
||||
@ -143,6 +215,14 @@ module Stripe
|
||||
attr_reader :account
|
||||
# Type of the account referenced.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class LastFinalizationError < Stripe::StripeObject
|
||||
@ -212,12 +292,28 @@ module Stripe
|
||||
attr_reader :source
|
||||
# The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Parent < Stripe::StripeObject
|
||||
class QuoteDetails < Stripe::StripeObject
|
||||
# The quote that generated this invoice
|
||||
attr_reader :quote
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionDetails < Stripe::StripeObject
|
||||
@ -228,6 +324,14 @@ module Stripe
|
||||
attr_reader :subscription
|
||||
# Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
|
||||
attr_reader :subscription_proration_date
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Details about the quote that generated this invoice
|
||||
attr_reader :quote_details
|
||||
@ -235,6 +339,17 @@ module Stripe
|
||||
attr_reader :subscription_details
|
||||
# The type of parent that generated this invoice
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
quote_details: QuoteDetails,
|
||||
subscription_details: SubscriptionDetails,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PaymentSettings < Stripe::StripeObject
|
||||
@ -243,27 +358,67 @@ module Stripe
|
||||
class MandateOptions < Stripe::StripeObject
|
||||
# Transaction type of the mandate.
|
||||
attr_reader :transaction_type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field mandate_options
|
||||
attr_reader :mandate_options
|
||||
# Bank account verification method.
|
||||
attr_reader :verification_method
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { mandate_options: MandateOptions }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Bancontact < Stripe::StripeObject
|
||||
# Preferred language of the Bancontact authorization page that the customer is redirected to.
|
||||
attr_reader :preferred_language
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Card < Stripe::StripeObject
|
||||
class Installments < Stripe::StripeObject
|
||||
# Whether Installments are enabled for this Invoice.
|
||||
attr_reader :enabled
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field installments
|
||||
attr_reader :installments
|
||||
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
||||
attr_reader :request_three_d_secure
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { installments: Installments }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CustomerBalance < Stripe::StripeObject
|
||||
@ -271,26 +426,75 @@ module Stripe
|
||||
class EuBankTransfer < Stripe::StripeObject
|
||||
# The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
|
||||
attr_reader :country
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field eu_bank_transfer
|
||||
attr_reader :eu_bank_transfer
|
||||
# The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { eu_bank_transfer: EuBankTransfer }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field bank_transfer
|
||||
attr_reader :bank_transfer
|
||||
# The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
|
||||
attr_reader :funding_type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { bank_transfer: BankTransfer }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Konbini < Stripe::StripeObject; end
|
||||
class SepaDebit < Stripe::StripeObject; end
|
||||
class Konbini < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SepaDebit < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class UsBankAccount < Stripe::StripeObject
|
||||
class FinancialConnections < Stripe::StripeObject
|
||||
class Filters < Stripe::StripeObject
|
||||
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
||||
attr_reader :account_subcategories
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field filters
|
||||
attr_reader :filters
|
||||
@ -298,11 +502,27 @@ module Stripe
|
||||
attr_reader :permissions
|
||||
# Data features requested to be retrieved upon account creation.
|
||||
attr_reader :prefetch
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { filters: Filters }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field financial_connections
|
||||
attr_reader :financial_connections
|
||||
# Bank account verification method.
|
||||
attr_reader :verification_method
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { financial_connections: FinancialConnections }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
|
||||
attr_reader :acss_debit
|
||||
@ -318,6 +538,22 @@ module Stripe
|
||||
attr_reader :sepa_debit
|
||||
# If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
|
||||
attr_reader :us_bank_account
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
acss_debit: AcssDebit,
|
||||
bancontact: Bancontact,
|
||||
card: Card,
|
||||
customer_balance: CustomerBalance,
|
||||
konbini: Konbini,
|
||||
sepa_debit: SepaDebit,
|
||||
us_bank_account: UsBankAccount,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
|
||||
attr_reader :default_mandate
|
||||
@ -325,12 +561,28 @@ module Stripe
|
||||
attr_reader :payment_method_options
|
||||
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
|
||||
attr_reader :payment_method_types
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { payment_method_options: PaymentMethodOptions }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Rendering < Stripe::StripeObject
|
||||
class Pdf < Stripe::StripeObject
|
||||
# Page size of invoice pdf. Options include a4, letter, and auto. If set to auto, page size will be switched to a4 or letter based on customer locale.
|
||||
attr_reader :page_size
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
|
||||
attr_reader :amount_tax_display
|
||||
@ -340,6 +592,14 @@ module Stripe
|
||||
attr_reader :template
|
||||
# Version of the rendering template that the invoice is using.
|
||||
attr_reader :template_version
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { pdf: Pdf }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingCost < Stripe::StripeObject
|
||||
@ -354,6 +614,14 @@ module Stripe
|
||||
attr_reader :taxability_reason
|
||||
# The amount on which tax is calculated, in cents (or local equivalent).
|
||||
attr_reader :taxable_amount
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Total shipping cost before any taxes are applied.
|
||||
attr_reader :amount_subtotal
|
||||
@ -365,6 +633,14 @@ module Stripe
|
||||
attr_reader :shipping_rate
|
||||
# The taxes applied to the shipping rate.
|
||||
attr_reader :taxes
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { taxes: Tax }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingDetails < Stripe::StripeObject
|
||||
@ -373,14 +649,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field address
|
||||
attr_reader :address
|
||||
@ -392,6 +676,14 @@ module Stripe
|
||||
attr_reader :phone
|
||||
# The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
||||
attr_reader :tracking_number
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { address: Address }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class StatusTransitions < Stripe::StripeObject
|
||||
@ -403,6 +695,14 @@ module Stripe
|
||||
attr_reader :paid_at
|
||||
# The time that the invoice was voided.
|
||||
attr_reader :voided_at
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ThresholdReason < Stripe::StripeObject
|
||||
@ -411,11 +711,27 @@ module Stripe
|
||||
attr_reader :line_item_ids
|
||||
# The quantity threshold boundary that applied to the given line item.
|
||||
attr_reader :usage_gte
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The total invoice amount threshold boundary if it triggered the threshold invoice.
|
||||
attr_reader :amount_gte
|
||||
# Indicates which line items triggered a threshold invoice.
|
||||
attr_reader :item_reasons
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { item_reasons: ItemReason }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class TotalDiscountAmount < Stripe::StripeObject
|
||||
@ -423,6 +739,14 @@ module Stripe
|
||||
attr_reader :amount
|
||||
# The discount that was applied to get this discount amount.
|
||||
attr_reader :discount
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class TotalPretaxCreditAmount < Stripe::StripeObject
|
||||
@ -434,12 +758,28 @@ module Stripe
|
||||
attr_reader :discount
|
||||
# Type of the pretax credit amount referenced.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class TotalTax < Stripe::StripeObject
|
||||
class TaxRateDetails < Stripe::StripeObject
|
||||
# Attribute for field tax_rate
|
||||
attr_reader :tax_rate
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The amount of the tax, in cents (or local equivalent).
|
||||
attr_reader :amount
|
||||
@ -453,6 +793,14 @@ module Stripe
|
||||
attr_reader :taxable_amount
|
||||
# The type of tax information.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { tax_rate_details: TaxRateDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class DeleteParams < Stripe::RequestParams; end
|
||||
@ -696,7 +1044,7 @@ module Stripe
|
||||
attr_accessor :default_mandate
|
||||
# Payment-method-specific configuration to provide to the invoice’s PaymentIntent.
|
||||
attr_accessor :payment_method_options
|
||||
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
|
||||
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
|
||||
attr_accessor :payment_method_types
|
||||
|
||||
def initialize(default_mandate: nil, payment_method_options: nil, payment_method_types: nil)
|
||||
@ -846,9 +1194,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -1343,7 +1691,7 @@ module Stripe
|
||||
attr_accessor :default_mandate
|
||||
# Payment-method-specific configuration to provide to the invoice’s PaymentIntent.
|
||||
attr_accessor :payment_method_options
|
||||
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
|
||||
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
|
||||
attr_accessor :payment_method_types
|
||||
|
||||
def initialize(default_mandate: nil, payment_method_options: nil, payment_method_types: nil)
|
||||
@ -1493,9 +1841,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -1736,13 +2084,23 @@ module Stripe
|
||||
attr_accessor :name
|
||||
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
||||
attr_accessor :tax_code
|
||||
# A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
||||
attr_accessor :unit_label
|
||||
|
||||
def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil)
|
||||
def initialize(
|
||||
description: nil,
|
||||
images: nil,
|
||||
metadata: nil,
|
||||
name: nil,
|
||||
tax_code: nil,
|
||||
unit_label: nil
|
||||
)
|
||||
@description = description
|
||||
@images = images
|
||||
@metadata = metadata
|
||||
@name = name
|
||||
@tax_code = tax_code
|
||||
@unit_label = unit_label
|
||||
end
|
||||
end
|
||||
# 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).
|
||||
@ -2063,13 +2421,23 @@ module Stripe
|
||||
attr_accessor :name
|
||||
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
||||
attr_accessor :tax_code
|
||||
# A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
||||
attr_accessor :unit_label
|
||||
|
||||
def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil)
|
||||
def initialize(
|
||||
description: nil,
|
||||
images: nil,
|
||||
metadata: nil,
|
||||
name: nil,
|
||||
tax_code: nil,
|
||||
unit_label: nil
|
||||
)
|
||||
@description = description
|
||||
@images = images
|
||||
@metadata = metadata
|
||||
@name = name
|
||||
@tax_code = tax_code
|
||||
@unit_label = unit_label
|
||||
end
|
||||
end
|
||||
# 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).
|
||||
@ -2283,9 +2651,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -2315,9 +2683,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -2547,10 +2915,21 @@ module Stripe
|
||||
|
||||
class ScheduleDetails < Stripe::RequestParams
|
||||
class BillingMode < Stripe::RequestParams
|
||||
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
|
||||
class Flexible < Stripe::RequestParams
|
||||
# Controls how invoices and invoice items display proration amounts and discount amounts.
|
||||
attr_accessor :proration_discounts
|
||||
|
||||
def initialize(proration_discounts: nil)
|
||||
@proration_discounts = proration_discounts
|
||||
end
|
||||
end
|
||||
# Configure behavior for flexible billing mode.
|
||||
attr_accessor :flexible
|
||||
# Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default is `flexible`.
|
||||
attr_accessor :type
|
||||
|
||||
def initialize(type: nil)
|
||||
def initialize(flexible: nil, type: nil)
|
||||
@flexible = flexible
|
||||
@type = type
|
||||
end
|
||||
end
|
||||
@ -2637,7 +3016,7 @@ module Stripe
|
||||
attr_accessor :discounts
|
||||
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
||||
attr_accessor :metadata
|
||||
# The period associated with this invoice item. Defaults to the period of the underlying subscription that surrounds the start of the phase.
|
||||
# The period associated with this invoice item. If not set, `period.start.type` defaults to `max_item_period_start` and `period.end.type` defaults to `min_item_period_end`.
|
||||
attr_accessor :period
|
||||
# The ID of the price object. One of `price` or `price_data` is required.
|
||||
attr_accessor :price
|
||||
@ -2900,8 +3279,6 @@ module Stripe
|
||||
attr_accessor :invoice_settings
|
||||
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
|
||||
attr_accessor :items
|
||||
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
|
||||
attr_accessor :iterations
|
||||
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
|
||||
attr_accessor :metadata
|
||||
# The account on behalf of which to charge, for each of the associated subscription's invoices.
|
||||
@ -2933,7 +3310,6 @@ module Stripe
|
||||
end_date: nil,
|
||||
invoice_settings: nil,
|
||||
items: nil,
|
||||
iterations: nil,
|
||||
metadata: nil,
|
||||
on_behalf_of: nil,
|
||||
proration_behavior: nil,
|
||||
@ -2957,7 +3333,6 @@ module Stripe
|
||||
@end_date = end_date
|
||||
@invoice_settings = invoice_settings
|
||||
@items = items
|
||||
@iterations = iterations
|
||||
@metadata = metadata
|
||||
@on_behalf_of = on_behalf_of
|
||||
@proration_behavior = proration_behavior
|
||||
@ -2986,10 +3361,21 @@ module Stripe
|
||||
|
||||
class SubscriptionDetails < Stripe::RequestParams
|
||||
class BillingMode < Stripe::RequestParams
|
||||
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
|
||||
class Flexible < Stripe::RequestParams
|
||||
# Controls how invoices and invoice items display proration amounts and discount amounts.
|
||||
attr_accessor :proration_discounts
|
||||
|
||||
def initialize(proration_discounts: nil)
|
||||
@proration_discounts = proration_discounts
|
||||
end
|
||||
end
|
||||
# Configure behavior for flexible billing mode.
|
||||
attr_accessor :flexible
|
||||
# Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default is `flexible`.
|
||||
attr_accessor :type
|
||||
|
||||
def initialize(type: nil)
|
||||
def initialize(flexible: nil, type: nil)
|
||||
@flexible = flexible
|
||||
@type = type
|
||||
end
|
||||
end
|
||||
@ -3662,5 +4048,33 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
automatic_tax: AutomaticTax,
|
||||
confirmation_secret: ConfirmationSecret,
|
||||
custom_fields: CustomField,
|
||||
customer_address: CustomerAddress,
|
||||
customer_shipping: CustomerShipping,
|
||||
customer_tax_ids: CustomerTaxId,
|
||||
from_invoice: FromInvoice,
|
||||
issuer: Issuer,
|
||||
last_finalization_error: LastFinalizationError,
|
||||
parent: Parent,
|
||||
payment_settings: PaymentSettings,
|
||||
rendering: Rendering,
|
||||
shipping_cost: ShippingCost,
|
||||
shipping_details: ShippingDetails,
|
||||
status_transitions: StatusTransitions,
|
||||
threshold_reason: ThresholdReason,
|
||||
total_discount_amounts: TotalDiscountAmount,
|
||||
total_pretax_credit_amounts: TotalPretaxCreditAmount,
|
||||
total_taxes: TotalTax,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -27,11 +27,27 @@ module Stripe
|
||||
attr_reader :subscription
|
||||
# The subscription item that generated this invoice item
|
||||
attr_reader :subscription_item
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Details about the subscription that generated this invoice item
|
||||
attr_reader :subscription_details
|
||||
# The type of parent that generated this invoice item
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { subscription_details: SubscriptionDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Period < Stripe::StripeObject
|
||||
@ -39,6 +55,14 @@ module Stripe
|
||||
attr_reader :end
|
||||
# The start of the period. This value is inclusive.
|
||||
attr_reader :start
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Pricing < Stripe::StripeObject
|
||||
@ -47,6 +71,14 @@ module Stripe
|
||||
attr_reader :price
|
||||
# The ID of the product this item is associated with.
|
||||
attr_reader :product
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field price_details
|
||||
attr_reader :price_details
|
||||
@ -54,6 +86,41 @@ module Stripe
|
||||
attr_reader :type
|
||||
# The unit amount (in the `currency` specified) of the item which contains a decimal value with at most 12 decimal places.
|
||||
attr_reader :unit_amount_decimal
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { price_details: PriceDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ProrationDetails < Stripe::StripeObject
|
||||
class DiscountAmount < Stripe::StripeObject
|
||||
# The amount, in cents (or local equivalent), of the discount.
|
||||
attr_reader :amount
|
||||
# The discount that was applied to get this discount amount.
|
||||
attr_reader :discount
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Discount amounts applied when the proration was created.
|
||||
attr_reader :discount_amounts
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { discount_amounts: DiscountAmount }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class DeleteParams < Stripe::RequestParams; end
|
||||
@ -401,6 +468,8 @@ module Stripe
|
||||
attr_reader :livemode
|
||||
# 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.
|
||||
attr_reader :metadata
|
||||
# The amount after discounts, but before credits and taxes. This field is `null` for `discountable=true` items.
|
||||
attr_reader :net_amount
|
||||
# String representing the object's type. Objects of the same type share the same value.
|
||||
attr_reader :object
|
||||
# The parent that generated this invoice item.
|
||||
@ -411,6 +480,8 @@ module Stripe
|
||||
attr_reader :pricing
|
||||
# Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
|
||||
attr_reader :proration
|
||||
# Attribute for field proration_details
|
||||
attr_reader :proration_details
|
||||
# Quantity of units for the invoice item. If the invoice item is a proration, the quantity of the subscription that the proration was computed for.
|
||||
attr_reader :quantity
|
||||
# The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item.
|
||||
@ -459,5 +530,18 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
parent: Parent,
|
||||
period: Period,
|
||||
pricing: Pricing,
|
||||
proration_details: ProrationDetails,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -18,6 +18,14 @@ module Stripe
|
||||
attr_reader :amount
|
||||
# The discount that was applied to get this discount amount.
|
||||
attr_reader :discount
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Parent < Stripe::StripeObject
|
||||
@ -28,9 +36,25 @@ module Stripe
|
||||
attr_reader :invoice
|
||||
# Credited invoice line items
|
||||
attr_reader :invoice_line_items
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# For a credit proration `line_item`, the original debit line_items to which the credit proration applies.
|
||||
attr_reader :credited_items
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { credited_items: CreditedItems }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The invoice item that generated this line item
|
||||
attr_reader :invoice_item
|
||||
@ -40,6 +64,14 @@ module Stripe
|
||||
attr_reader :proration_details
|
||||
# The subscription that the invoice item belongs to
|
||||
attr_reader :subscription
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { proration_details: ProrationDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionItemDetails < Stripe::StripeObject
|
||||
@ -49,9 +81,25 @@ module Stripe
|
||||
attr_reader :invoice
|
||||
# Credited invoice line items
|
||||
attr_reader :invoice_line_items
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# For a credit proration `line_item`, the original debit line_items to which the credit proration applies.
|
||||
attr_reader :credited_items
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { credited_items: CreditedItems }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The invoice item that generated this line item
|
||||
attr_reader :invoice_item
|
||||
@ -63,6 +111,14 @@ module Stripe
|
||||
attr_reader :subscription
|
||||
# The subscription item that generated this line item
|
||||
attr_reader :subscription_item
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { proration_details: ProrationDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Details about the invoice item that generated this line item
|
||||
attr_reader :invoice_item_details
|
||||
@ -70,6 +126,17 @@ module Stripe
|
||||
attr_reader :subscription_item_details
|
||||
# The type of parent that generated this line item
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
invoice_item_details: InvoiceItemDetails,
|
||||
subscription_item_details: SubscriptionItemDetails,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Period < Stripe::StripeObject
|
||||
@ -77,6 +144,14 @@ module Stripe
|
||||
attr_reader :end
|
||||
# The start of the period. This value is inclusive.
|
||||
attr_reader :start
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PretaxCreditAmount < Stripe::StripeObject
|
||||
@ -88,6 +163,14 @@ module Stripe
|
||||
attr_reader :discount
|
||||
# Type of the pretax credit amount referenced.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Pricing < Stripe::StripeObject
|
||||
@ -96,6 +179,14 @@ module Stripe
|
||||
attr_reader :price
|
||||
# The ID of the product this item is associated with.
|
||||
attr_reader :product
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field price_details
|
||||
attr_reader :price_details
|
||||
@ -103,12 +194,28 @@ module Stripe
|
||||
attr_reader :type
|
||||
# The unit amount (in the `currency` specified) of the item which contains a decimal value with at most 12 decimal places.
|
||||
attr_reader :unit_amount_decimal
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { price_details: PriceDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Tax < Stripe::StripeObject
|
||||
class TaxRateDetails < Stripe::StripeObject
|
||||
# Attribute for field tax_rate
|
||||
attr_reader :tax_rate
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The amount of the tax, in cents (or local equivalent).
|
||||
attr_reader :amount
|
||||
@ -122,6 +229,14 @@ module Stripe
|
||||
attr_reader :taxable_amount
|
||||
# The type of tax information.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { tax_rate_details: TaxRateDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class UpdateParams < Stripe::RequestParams
|
||||
@ -164,13 +279,23 @@ module Stripe
|
||||
attr_accessor :name
|
||||
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
||||
attr_accessor :tax_code
|
||||
# A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
||||
attr_accessor :unit_label
|
||||
|
||||
def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil)
|
||||
def initialize(
|
||||
description: nil,
|
||||
images: nil,
|
||||
metadata: nil,
|
||||
name: nil,
|
||||
tax_code: nil,
|
||||
unit_label: nil
|
||||
)
|
||||
@description = description
|
||||
@images = images
|
||||
@metadata = metadata
|
||||
@name = name
|
||||
@tax_code = tax_code
|
||||
@unit_label = unit_label
|
||||
end
|
||||
end
|
||||
# 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).
|
||||
@ -375,5 +500,20 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
discount_amounts: DiscountAmount,
|
||||
parent: Parent,
|
||||
period: Period,
|
||||
pretax_credit_amounts: PretaxCreditAmount,
|
||||
pricing: Pricing,
|
||||
taxes: Tax,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -25,6 +25,14 @@ module Stripe
|
||||
attr_reader :payment_intent
|
||||
# Type of payment object associated with this invoice payment.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class StatusTransitions < Stripe::StripeObject
|
||||
@ -32,6 +40,14 @@ module Stripe
|
||||
attr_reader :canceled_at
|
||||
# The time that the payment succeeded.
|
||||
attr_reader :paid_at
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -108,5 +124,13 @@ module Stripe
|
||||
def self.list(params = {}, opts = {})
|
||||
request_stripe_object(method: :get, path: "/v1/invoice_payments", params: params, opts: opts)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { payment: Payment, status_transitions: StatusTransitions }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -116,5 +116,13 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -23,6 +23,14 @@ module Stripe
|
||||
attr_reader :atm_fee
|
||||
# The amount of cash requested by the cardholder.
|
||||
attr_reader :cashback_amount
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Fleet < Stripe::StripeObject
|
||||
@ -39,17 +47,41 @@ module Stripe
|
||||
attr_reader :user_id
|
||||
# Vehicle number.
|
||||
attr_reader :vehicle_number
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ReportedBreakdown < Stripe::StripeObject
|
||||
class Fuel < Stripe::StripeObject
|
||||
# Gross fuel amount that should equal Fuel Quantity multiplied by Fuel Unit Cost, inclusive of taxes.
|
||||
attr_reader :gross_amount_decimal
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class NonFuel < Stripe::StripeObject
|
||||
# Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
||||
attr_reader :gross_amount_decimal
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Tax < Stripe::StripeObject
|
||||
@ -57,6 +89,14 @@ module Stripe
|
||||
attr_reader :local_amount_decimal
|
||||
# Amount of national Sales Tax or VAT included in the transaction amount. `null` if not reported by merchant or not subject to tax.
|
||||
attr_reader :national_amount_decimal
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Breakdown of fuel portion of the purchase.
|
||||
attr_reader :fuel
|
||||
@ -64,6 +104,14 @@ module Stripe
|
||||
attr_reader :non_fuel
|
||||
# Information about tax included in this transaction.
|
||||
attr_reader :tax
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { fuel: Fuel, non_fuel: NonFuel, tax: Tax }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
|
||||
attr_reader :cardholder_prompt_data
|
||||
@ -73,6 +121,17 @@ module Stripe
|
||||
attr_reader :reported_breakdown
|
||||
# The type of fuel service.
|
||||
attr_reader :service_type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
cardholder_prompt_data: CardholderPromptData,
|
||||
reported_breakdown: ReportedBreakdown,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class FraudChallenge < Stripe::StripeObject
|
||||
@ -82,6 +141,14 @@ module Stripe
|
||||
attr_reader :status
|
||||
# If the challenge is not deliverable, the reason why.
|
||||
attr_reader :undeliverable_reason
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Fuel < Stripe::StripeObject
|
||||
@ -95,6 +162,14 @@ module Stripe
|
||||
attr_reader :unit
|
||||
# The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
||||
attr_reader :unit_cost_decimal
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class MerchantData < Stripe::StripeObject
|
||||
@ -120,6 +195,14 @@ module Stripe
|
||||
attr_reader :terminal_id
|
||||
# URL provided by the merchant on a 3DS request
|
||||
attr_reader :url
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class NetworkData < Stripe::StripeObject
|
||||
@ -129,6 +212,14 @@ module Stripe
|
||||
attr_reader :system_trace_audit_number
|
||||
# Unique identifier for the authorization assigned by the card network used to match subsequent messages, disputes, and transactions.
|
||||
attr_reader :transaction_id
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PendingRequest < Stripe::StripeObject
|
||||
@ -137,6 +228,14 @@ module Stripe
|
||||
attr_reader :atm_fee
|
||||
# The amount of cash requested by the cardholder.
|
||||
attr_reader :cashback_amount
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The additional amount Stripe will hold if the authorization is approved, in the card's [currency](https://stripe.com/docs/api#issuing_authorization_object-pending-request-currency) and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
||||
attr_reader :amount
|
||||
@ -152,6 +251,14 @@ module Stripe
|
||||
attr_reader :merchant_currency
|
||||
# The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99.
|
||||
attr_reader :network_risk_score
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { amount_details: AmountDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class RequestHistory < Stripe::StripeObject
|
||||
@ -160,6 +267,14 @@ module Stripe
|
||||
attr_reader :atm_fee
|
||||
# The amount of cash requested by the cardholder.
|
||||
attr_reader :cashback_amount
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The `pending_request.amount` at the time of the request, presented in your card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Stripe held this amount from your account to fund the authorization if the request was approved.
|
||||
attr_reader :amount
|
||||
@ -185,6 +300,14 @@ module Stripe
|
||||
attr_reader :reason_message
|
||||
# Time when the card network received an authorization request from the acquirer in UTC. Referred to by networks as transmission time.
|
||||
attr_reader :requested_at
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { amount_details: AmountDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Treasury < Stripe::StripeObject
|
||||
@ -194,6 +317,14 @@ module Stripe
|
||||
attr_reader :received_debits
|
||||
# The Treasury [Transaction](https://stripe.com/docs/api/treasury/transactions) associated with this authorization
|
||||
attr_reader :transaction
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class VerificationData < Stripe::StripeObject
|
||||
@ -202,11 +333,27 @@ module Stripe
|
||||
attr_reader :claimed_by
|
||||
# The specific exemption claimed for this authorization.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ThreeDSecure < Stripe::StripeObject
|
||||
# The outcome of the 3D Secure authentication request.
|
||||
attr_reader :result
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Whether the cardholder provided an address first line and if it matched the cardholder’s `billing.address.line1`.
|
||||
attr_reader :address_line1_check
|
||||
@ -222,6 +369,17 @@ module Stripe
|
||||
attr_reader :postal_code
|
||||
# 3D Secure details.
|
||||
attr_reader :three_d_secure
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
authentication_exemption: AuthenticationExemption,
|
||||
three_d_secure: ThreeDSecure,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -504,6 +662,48 @@ module Stripe
|
||||
end
|
||||
end
|
||||
|
||||
class RiskAssessment < Stripe::RequestParams
|
||||
class CardTestingRisk < Stripe::RequestParams
|
||||
# The % of declines due to a card number not existing in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of card testing activity, meaning bad actors may be attempting different card number combinations to guess a correct one. Takes on values between 0 and 100.
|
||||
attr_accessor :invalid_account_number_decline_rate_past_hour
|
||||
# The % of declines due to incorrect verification data (like CVV or expiry) in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of bad actors attempting to utilize valid card credentials at merchants with verification requirements. Takes on values between 0 and 100.
|
||||
attr_accessor :invalid_credentials_decline_rate_past_hour
|
||||
# The likelihood that this authorization is associated with card testing activity. This is assessed by evaluating decline activity over the last hour.
|
||||
attr_accessor :risk_level
|
||||
|
||||
def initialize(
|
||||
invalid_account_number_decline_rate_past_hour: nil,
|
||||
invalid_credentials_decline_rate_past_hour: nil,
|
||||
risk_level: nil
|
||||
)
|
||||
@invalid_account_number_decline_rate_past_hour = invalid_account_number_decline_rate_past_hour
|
||||
@invalid_credentials_decline_rate_past_hour = invalid_credentials_decline_rate_past_hour
|
||||
@risk_level = risk_level
|
||||
end
|
||||
end
|
||||
|
||||
class MerchantDisputeRisk < Stripe::RequestParams
|
||||
# The dispute rate observed across all Stripe Issuing authorizations for this merchant. For example, a value of 50 means 50% of authorizations from this merchant on Stripe Issuing have resulted in a dispute. Higher values mean a higher likelihood the authorization is disputed. Takes on values between 0 and 100.
|
||||
attr_accessor :dispute_rate
|
||||
# The likelihood that authorizations from this merchant will result in a dispute based on their history on Stripe Issuing.
|
||||
attr_accessor :risk_level
|
||||
|
||||
def initialize(dispute_rate: nil, risk_level: nil)
|
||||
@dispute_rate = dispute_rate
|
||||
@risk_level = risk_level
|
||||
end
|
||||
end
|
||||
# Stripe's assessment of this authorization's likelihood of being card testing activity.
|
||||
attr_accessor :card_testing_risk
|
||||
# The dispute risk of the merchant (the seller on a purchase) on an authorization based on all Stripe Issuing activity.
|
||||
attr_accessor :merchant_dispute_risk
|
||||
|
||||
def initialize(card_testing_risk: nil, merchant_dispute_risk: nil)
|
||||
@card_testing_risk = card_testing_risk
|
||||
@merchant_dispute_risk = merchant_dispute_risk
|
||||
end
|
||||
end
|
||||
|
||||
class VerificationData < Stripe::RequestParams
|
||||
class AuthenticationExemption < Stripe::RequestParams
|
||||
# The entity that requested the exemption, either the acquiring merchant or the Issuing user.
|
||||
@ -568,6 +768,8 @@ module Stripe
|
||||
attr_accessor :expand
|
||||
# Fleet-specific information for authorizations using Fleet cards.
|
||||
attr_accessor :fleet
|
||||
# Probability that this transaction can be disputed in the event of fraud. Assessed by comparing the characteristics of the authorization to card network rules.
|
||||
attr_accessor :fraud_disputability_likelihood
|
||||
# Information about fuel that was purchased with this transaction.
|
||||
attr_accessor :fuel
|
||||
# If set `true`, you may provide [amount](https://stripe.com/docs/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.
|
||||
@ -580,6 +782,8 @@ module Stripe
|
||||
attr_accessor :merchant_data
|
||||
# Details about the authorization, such as identifiers, set by the card network.
|
||||
attr_accessor :network_data
|
||||
# Stripe’s assessment of the fraud risk for this authorization.
|
||||
attr_accessor :risk_assessment
|
||||
# Verifications that Stripe performed on information that the cardholder provided to the merchant.
|
||||
attr_accessor :verification_data
|
||||
# The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. Will populate as `null` when no digital wallet was utilized.
|
||||
@ -593,12 +797,14 @@ module Stripe
|
||||
currency: nil,
|
||||
expand: nil,
|
||||
fleet: nil,
|
||||
fraud_disputability_likelihood: nil,
|
||||
fuel: nil,
|
||||
is_amount_controllable: nil,
|
||||
merchant_amount: nil,
|
||||
merchant_currency: nil,
|
||||
merchant_data: nil,
|
||||
network_data: nil,
|
||||
risk_assessment: nil,
|
||||
verification_data: nil,
|
||||
wallet: nil
|
||||
)
|
||||
@ -609,12 +815,14 @@ module Stripe
|
||||
@currency = currency
|
||||
@expand = expand
|
||||
@fleet = fleet
|
||||
@fraud_disputability_likelihood = fraud_disputability_likelihood
|
||||
@fuel = fuel
|
||||
@is_amount_controllable = is_amount_controllable
|
||||
@merchant_amount = merchant_amount
|
||||
@merchant_currency = merchant_currency
|
||||
@merchant_data = merchant_data
|
||||
@network_data = network_data
|
||||
@risk_assessment = risk_assessment
|
||||
@verification_data = verification_data
|
||||
@wallet = wallet
|
||||
end
|
||||
@ -1338,6 +1546,25 @@ module Stripe
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
amount_details: AmountDetails,
|
||||
fleet: Fleet,
|
||||
fraud_challenges: FraudChallenge,
|
||||
fuel: Fuel,
|
||||
merchant_data: MerchantData,
|
||||
network_data: NetworkData,
|
||||
pending_request: PendingRequest,
|
||||
request_history: RequestHistory,
|
||||
treasury: Treasury,
|
||||
verification_data: VerificationData,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -20,14 +20,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class AddressValidation < Stripe::StripeObject
|
||||
@ -36,14 +44,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The address validation capabilities to use.
|
||||
attr_reader :mode
|
||||
@ -51,11 +67,27 @@ module Stripe
|
||||
attr_reader :normalized_address
|
||||
# The validation result for the shipping address.
|
||||
attr_reader :result
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { normalized_address: NormalizedAddress }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Customs < Stripe::StripeObject
|
||||
# A registration number used for customs in Europe. See [https://www.gov.uk/eori](https://www.gov.uk/eori) for the UK and [https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en](https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en) for the EU.
|
||||
attr_reader :eori_number
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field address
|
||||
attr_reader :address
|
||||
@ -83,6 +115,18 @@ module Stripe
|
||||
attr_reader :tracking_url
|
||||
# Packaging options.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
address: Address,
|
||||
address_validation: AddressValidation,
|
||||
customs: Customs,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SpendingControls < Stripe::StripeObject
|
||||
@ -93,6 +137,14 @@ module Stripe
|
||||
attr_reader :categories
|
||||
# Interval (or event) to which the amount applies.
|
||||
attr_reader :interval
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. All other categories will be blocked. Cannot be set with `blocked_categories`.
|
||||
attr_reader :allowed_categories
|
||||
@ -106,6 +158,14 @@ module Stripe
|
||||
attr_reader :spending_limits
|
||||
# Currency of the amounts within `spending_limits`. Always the same as the currency of the card.
|
||||
attr_reader :spending_limits_currency
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { spending_limits: SpendingLimit }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Wallets < Stripe::StripeObject
|
||||
@ -114,6 +174,14 @@ module Stripe
|
||||
attr_reader :eligible
|
||||
# Reason the card is ineligible for Apple Pay
|
||||
attr_reader :ineligible_reason
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class GooglePay < Stripe::StripeObject
|
||||
@ -121,6 +189,14 @@ module Stripe
|
||||
attr_reader :eligible
|
||||
# Reason the card is ineligible for Google Pay
|
||||
attr_reader :ineligible_reason
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field apple_pay
|
||||
attr_reader :apple_pay
|
||||
@ -128,6 +204,14 @@ module Stripe
|
||||
attr_reader :google_pay
|
||||
# Unique identifier for a card used with digital wallets
|
||||
attr_reader :primary_account_identifier
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { apple_pay: ApplePay, google_pay: GooglePay }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -218,9 +302,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -425,9 +509,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -668,6 +752,8 @@ module Stripe
|
||||
attr_reader :replacement_for
|
||||
# The reason why the previous card needed to be replaced.
|
||||
attr_reader :replacement_reason
|
||||
# Text separate from cardholder name, printed on the card.
|
||||
attr_reader :second_line
|
||||
# Where and how the card will be shipped.
|
||||
attr_reader :shipping
|
||||
# Attribute for field spending_controls
|
||||
@ -809,6 +895,18 @@ module Stripe
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
shipping: Shipping,
|
||||
spending_controls: SpendingControls,
|
||||
wallets: Wallets,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -22,22 +22,46 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field address
|
||||
attr_reader :address
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { address: Address }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Company < Stripe::StripeObject
|
||||
# Whether the company's business ID number was provided.
|
||||
attr_reader :tax_id_provided
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Individual < Stripe::StripeObject
|
||||
@ -49,9 +73,25 @@ module Stripe
|
||||
attr_reader :ip
|
||||
# The user agent of the browser from which the cardholder accepted the Authorized User Terms.
|
||||
attr_reader :user_agent
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Information about cardholder acceptance of Celtic [Authorized User Terms](https://stripe.com/docs/issuing/cards#accept-authorized-user-terms). Required for cards backed by a Celtic program.
|
||||
attr_reader :user_terms_acceptance
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { user_terms_acceptance: UserTermsAcceptance }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Dob < Stripe::StripeObject
|
||||
@ -61,6 +101,14 @@ module Stripe
|
||||
attr_reader :month
|
||||
# The four-digit year of birth.
|
||||
attr_reader :year
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Verification < Stripe::StripeObject
|
||||
@ -69,9 +117,25 @@ module Stripe
|
||||
attr_reader :back
|
||||
# The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`.
|
||||
attr_reader :front
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# An identifying document, either a passport or local ID card.
|
||||
attr_reader :document
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { document: Document }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Information related to the card_issuing program for this cardholder.
|
||||
attr_reader :card_issuing
|
||||
@ -83,6 +147,14 @@ module Stripe
|
||||
attr_reader :last_name
|
||||
# Government-issued ID document for this cardholder.
|
||||
attr_reader :verification
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { card_issuing: CardIssuing, dob: Dob, verification: Verification }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Requirements < Stripe::StripeObject
|
||||
@ -90,6 +162,14 @@ module Stripe
|
||||
attr_reader :disabled_reason
|
||||
# Array of fields that need to be collected in order to verify and re-enable the cardholder.
|
||||
attr_reader :past_due
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SpendingControls < Stripe::StripeObject
|
||||
@ -100,6 +180,14 @@ module Stripe
|
||||
attr_reader :categories
|
||||
# Interval (or event) to which the amount applies.
|
||||
attr_reader :interval
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. All other categories will be blocked. Cannot be set with `blocked_categories`.
|
||||
attr_reader :allowed_categories
|
||||
@ -113,6 +201,14 @@ module Stripe
|
||||
attr_reader :spending_limits
|
||||
# Currency of the amounts within `spending_limits`.
|
||||
attr_reader :spending_limits_currency
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { spending_limits: SpendingLimit }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -182,9 +278,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -414,9 +510,9 @@ module Stripe
|
||||
attr_accessor :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_accessor :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_accessor :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_accessor :line2
|
||||
# ZIP or postal code.
|
||||
attr_accessor :postal_code
|
||||
@ -693,6 +789,20 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
billing: Billing,
|
||||
company: Company,
|
||||
individual: Individual,
|
||||
requirements: Requirements,
|
||||
spending_controls: SpendingControls,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -38,6 +38,14 @@ module Stripe
|
||||
attr_reader :return_status
|
||||
# Date when the product was returned or attempted to be returned.
|
||||
attr_reader :returned_at
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Duplicate < Stripe::StripeObject
|
||||
@ -53,6 +61,14 @@ module Stripe
|
||||
attr_reader :explanation
|
||||
# Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of. Of the two or more transactions that are copies of each other, this is original undisputed one.
|
||||
attr_reader :original_transaction
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Fraudulent < Stripe::StripeObject
|
||||
@ -60,6 +76,14 @@ module Stripe
|
||||
attr_reader :additional_documentation
|
||||
# Explanation of why the cardholder is disputing this transaction.
|
||||
attr_reader :explanation
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class MerchandiseNotAsDescribed < Stripe::StripeObject
|
||||
@ -75,6 +99,14 @@ module Stripe
|
||||
attr_reader :return_status
|
||||
# Date when the product was returned or attempted to be returned.
|
||||
attr_reader :returned_at
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class NoValidAuthorization < Stripe::StripeObject
|
||||
@ -82,6 +114,14 @@ module Stripe
|
||||
attr_reader :additional_documentation
|
||||
# Explanation of why the cardholder is disputing this transaction.
|
||||
attr_reader :explanation
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class NotReceived < Stripe::StripeObject
|
||||
@ -95,6 +135,14 @@ module Stripe
|
||||
attr_reader :product_description
|
||||
# Whether the product was a merchandise or service.
|
||||
attr_reader :product_type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Other < Stripe::StripeObject
|
||||
@ -106,6 +154,14 @@ module Stripe
|
||||
attr_reader :product_description
|
||||
# Whether the product was a merchandise or service.
|
||||
attr_reader :product_type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ServiceNotAsDescribed < Stripe::StripeObject
|
||||
@ -119,6 +175,14 @@ module Stripe
|
||||
attr_reader :explanation
|
||||
# Date when the product was received.
|
||||
attr_reader :received_at
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field canceled
|
||||
attr_reader :canceled
|
||||
@ -138,6 +202,23 @@ module Stripe
|
||||
attr_reader :reason
|
||||
# Attribute for field service_not_as_described
|
||||
attr_reader :service_not_as_described
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
canceled: Canceled,
|
||||
duplicate: Duplicate,
|
||||
fraudulent: Fraudulent,
|
||||
merchandise_not_as_described: MerchandiseNotAsDescribed,
|
||||
no_valid_authorization: NoValidAuthorization,
|
||||
not_received: NotReceived,
|
||||
other: Other,
|
||||
service_not_as_described: ServiceNotAsDescribed,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Treasury < Stripe::StripeObject
|
||||
@ -145,6 +226,14 @@ module Stripe
|
||||
attr_reader :debit_reversal
|
||||
# The Treasury [ReceivedDebit](https://stripe.com/docs/api/treasury/received_debits) that is being disputed.
|
||||
attr_reader :received_debit
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -846,6 +935,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { evidence: Evidence, treasury: Treasury }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -23,6 +23,14 @@ module Stripe
|
||||
attr_reader :header_body
|
||||
# The header title text of the carrier letter.
|
||||
attr_reader :header_title
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Preferences < Stripe::StripeObject
|
||||
@ -30,6 +38,14 @@ module Stripe
|
||||
attr_reader :is_default
|
||||
# Whether this personalization design is used to create cards when one is not specified and a default for this connected account does not exist.
|
||||
attr_reader :is_platform_default
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class RejectionReasons < Stripe::StripeObject
|
||||
@ -37,6 +53,14 @@ module Stripe
|
||||
attr_reader :card_logo
|
||||
# The reason(s) the carrier text was rejected.
|
||||
attr_reader :carrier_text
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -390,6 +414,18 @@ module Stripe
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
carrier_text: CarrierText,
|
||||
preferences: Preferences,
|
||||
rejection_reasons: RejectionReasons,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -19,6 +19,14 @@ module Stripe
|
||||
attr_reader :carrier_text
|
||||
# The policy for how to use a second line on a card with this physical bundle.
|
||||
attr_reader :second_line
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -75,6 +83,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { features: Features }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -27,6 +27,14 @@ module Stripe
|
||||
attr_reader :phone_number
|
||||
# The type of device used for tokenization.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Mastercard < Stripe::StripeObject
|
||||
@ -38,6 +46,14 @@ module Stripe
|
||||
attr_reader :token_requestor_id
|
||||
# The name of the entity requesting tokenization, if known. This is directly provided from MasterCard.
|
||||
attr_reader :token_requestor_name
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Visa < Stripe::StripeObject
|
||||
@ -49,6 +65,14 @@ module Stripe
|
||||
attr_reader :token_requestor_id
|
||||
# Degree of risk associated with the token between `01` and `99`, with higher number indicating higher risk. A `00` value indicates the token was not scored by Visa.
|
||||
attr_reader :token_risk_score
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class WalletProvider < Stripe::StripeObject
|
||||
@ -57,6 +81,14 @@ module Stripe
|
||||
attr_reader :line1
|
||||
# The postal code of the cardholder tokenizing the card.
|
||||
attr_reader :postal_code
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The wallet provider-given account ID of the digital wallet the token belongs to.
|
||||
attr_reader :account_id
|
||||
@ -78,6 +110,14 @@ module Stripe
|
||||
attr_reader :suggested_decision
|
||||
# The version of the standard for mapping reason codes followed by the wallet provider.
|
||||
attr_reader :suggested_decision_version
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { cardholder_address: CardholderAddress }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field device
|
||||
attr_reader :device
|
||||
@ -89,6 +129,19 @@ module Stripe
|
||||
attr_reader :visa
|
||||
# Attribute for field wallet_provider
|
||||
attr_reader :wallet_provider
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
device: Device,
|
||||
mastercard: Mastercard,
|
||||
visa: Visa,
|
||||
wallet_provider: WalletProvider,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -193,6 +246,14 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { network_data: NetworkData }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -22,6 +22,14 @@ module Stripe
|
||||
attr_reader :atm_fee
|
||||
# The amount of cash requested by the cardholder.
|
||||
attr_reader :cashback_amount
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class MerchantData < Stripe::StripeObject
|
||||
@ -47,6 +55,14 @@ module Stripe
|
||||
attr_reader :terminal_id
|
||||
# URL provided by the merchant on a 3DS request
|
||||
attr_reader :url
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class NetworkData < Stripe::StripeObject
|
||||
@ -56,6 +72,14 @@ module Stripe
|
||||
attr_reader :processing_date
|
||||
# Unique identifier for the authorization assigned by the card network used to match subsequent messages, disputes, and transactions.
|
||||
attr_reader :transaction_id
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PurchaseDetails < Stripe::StripeObject
|
||||
@ -71,17 +95,41 @@ module Stripe
|
||||
attr_reader :user_id
|
||||
# Vehicle number.
|
||||
attr_reader :vehicle_number
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ReportedBreakdown < Stripe::StripeObject
|
||||
class Fuel < Stripe::StripeObject
|
||||
# Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
||||
attr_reader :gross_amount_decimal
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class NonFuel < Stripe::StripeObject
|
||||
# Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
||||
attr_reader :gross_amount_decimal
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Tax < Stripe::StripeObject
|
||||
@ -89,6 +137,14 @@ module Stripe
|
||||
attr_reader :local_amount_decimal
|
||||
# Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
||||
attr_reader :national_amount_decimal
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Breakdown of fuel portion of the purchase.
|
||||
attr_reader :fuel
|
||||
@ -96,6 +152,14 @@ module Stripe
|
||||
attr_reader :non_fuel
|
||||
# Information about tax included in this transaction.
|
||||
attr_reader :tax
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { fuel: Fuel, non_fuel: NonFuel, tax: Tax }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Answers to prompts presented to cardholder at point of sale.
|
||||
attr_reader :cardholder_prompt_data
|
||||
@ -105,6 +169,17 @@ module Stripe
|
||||
attr_reader :reported_breakdown
|
||||
# The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
||||
attr_reader :service_type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
cardholder_prompt_data: CardholderPromptData,
|
||||
reported_breakdown: ReportedBreakdown,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Flight < Stripe::StripeObject
|
||||
@ -121,6 +196,14 @@ module Stripe
|
||||
attr_reader :service_class
|
||||
# Whether a stopover is allowed on this flight.
|
||||
attr_reader :stopover_allowed
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The time that the flight departed.
|
||||
attr_reader :departure_at
|
||||
@ -132,6 +215,14 @@ module Stripe
|
||||
attr_reader :segments
|
||||
# The travel agency that issued the ticket.
|
||||
attr_reader :travel_agency
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { segments: Segment }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Fuel < Stripe::StripeObject
|
||||
@ -145,6 +236,14 @@ module Stripe
|
||||
attr_reader :unit
|
||||
# The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
||||
attr_reader :unit_cost_decimal
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Lodging < Stripe::StripeObject
|
||||
@ -152,6 +251,14 @@ module Stripe
|
||||
attr_reader :check_in_at
|
||||
# The number of nights stayed at the lodging.
|
||||
attr_reader :nights
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Receipt < Stripe::StripeObject
|
||||
@ -163,6 +270,14 @@ module Stripe
|
||||
attr_reader :total
|
||||
# The unit cost of the item in cents.
|
||||
attr_reader :unit_cost
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Fleet-specific information for transactions using Fleet cards.
|
||||
attr_reader :fleet
|
||||
@ -176,6 +291,20 @@ module Stripe
|
||||
attr_reader :receipt
|
||||
# A merchant-specific order number.
|
||||
attr_reader :reference
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
fleet: Fleet,
|
||||
flight: Flight,
|
||||
fuel: Fuel,
|
||||
lodging: Lodging,
|
||||
receipt: Receipt,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Treasury < Stripe::StripeObject
|
||||
@ -183,6 +312,14 @@ module Stripe
|
||||
attr_reader :received_credit
|
||||
# The Treasury [ReceivedDebit](https://stripe.com/docs/api/treasury/received_debits) representing this Issuing transaction if it is a capture
|
||||
attr_reader :received_debit
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -999,6 +1136,20 @@ module Stripe
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
amount_details: AmountDetails,
|
||||
merchant_data: MerchantData,
|
||||
network_data: NetworkData,
|
||||
purchase_details: PurchaseDetails,
|
||||
treasury: Treasury,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -17,6 +17,14 @@ module Stripe
|
||||
#
|
||||
# Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
|
||||
attr_reader :discount
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Tax < Stripe::StripeObject
|
||||
@ -30,6 +38,14 @@ module Stripe
|
||||
attr_reader :taxability_reason
|
||||
# The amount on which tax is calculated, in cents (or local equivalent).
|
||||
attr_reader :taxable_amount
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Total discount amount applied. If no discounts were applied, defaults to 0.
|
||||
attr_reader :amount_discount
|
||||
@ -55,5 +71,13 @@ module Stripe
|
||||
attr_reader :quantity
|
||||
# The taxes applied to the line item.
|
||||
attr_reader :taxes
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { discounts: Discount, taxes: Tax }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -23,5 +23,13 @@ module Stripe
|
||||
"only be created using `Account.create_login_link('account_id', " \
|
||||
"create_params)`"
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -10,13 +10,29 @@ module Stripe
|
||||
end
|
||||
|
||||
class CustomerAcceptance < Stripe::StripeObject
|
||||
class Offline < Stripe::StripeObject; end
|
||||
class Offline < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Online < Stripe::StripeObject
|
||||
# The customer accepts the mandate from this IP address.
|
||||
attr_reader :ip_address
|
||||
# The customer accepts the mandate using the user agent of the browser.
|
||||
attr_reader :user_agent
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The time that the customer accepts the mandate.
|
||||
attr_reader :accepted_at
|
||||
@ -26,9 +42,25 @@ module Stripe
|
||||
attr_reader :online
|
||||
# The mandate includes the type of customer acceptance information, such as: `online` or `offline`.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { offline: Offline, online: Online }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class MultiUse < Stripe::StripeObject; end
|
||||
class MultiUse < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PaymentMethodDetails < Stripe::StripeObject
|
||||
class AcssDebit < Stripe::StripeObject
|
||||
@ -40,13 +72,37 @@ module Stripe
|
||||
attr_reader :payment_schedule
|
||||
# Transaction type of the mandate.
|
||||
attr_reader :transaction_type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class AmazonPay < Stripe::StripeObject; end
|
||||
class AmazonPay < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class AuBecsDebit < Stripe::StripeObject
|
||||
# The URL of the mandate. This URL generally contains sensitive information about the customer and should be shared with them exclusively.
|
||||
attr_reader :url
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class BacsDebit < Stripe::StripeObject
|
||||
@ -58,36 +114,147 @@ module Stripe
|
||||
attr_reader :revocation_reason
|
||||
# The URL that will contain the mandate that the customer has signed.
|
||||
attr_reader :url
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Card < Stripe::StripeObject; end
|
||||
class Cashapp < Stripe::StripeObject; end
|
||||
class KakaoPay < Stripe::StripeObject; end
|
||||
class Klarna < Stripe::StripeObject; end
|
||||
class KrCard < Stripe::StripeObject; end
|
||||
class Link < Stripe::StripeObject; end
|
||||
class NaverPay < Stripe::StripeObject; end
|
||||
class NzBankAccount < Stripe::StripeObject; end
|
||||
class Card < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Cashapp < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class KakaoPay < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Klarna < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class KrCard < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Link < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class NaverPay < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class NzBankAccount < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Paypal < Stripe::StripeObject
|
||||
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
||||
attr_reader :billing_agreement_id
|
||||
# PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
||||
attr_reader :payer_id
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class RevolutPay < Stripe::StripeObject; end
|
||||
class RevolutPay < Stripe::StripeObject
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SepaDebit < Stripe::StripeObject
|
||||
# The unique reference of the mandate.
|
||||
attr_reader :reference
|
||||
# The URL of the mandate. This URL generally contains sensitive information about the customer and should be shared with them exclusively.
|
||||
attr_reader :url
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class UsBankAccount < Stripe::StripeObject
|
||||
# Mandate collection method
|
||||
attr_reader :collection_method
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field acss_debit
|
||||
attr_reader :acss_debit
|
||||
@ -123,6 +290,31 @@ module Stripe
|
||||
attr_reader :type
|
||||
# Attribute for field us_bank_account
|
||||
attr_reader :us_bank_account
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
acss_debit: AcssDebit,
|
||||
amazon_pay: AmazonPay,
|
||||
au_becs_debit: AuBecsDebit,
|
||||
bacs_debit: BacsDebit,
|
||||
card: Card,
|
||||
cashapp: Cashapp,
|
||||
kakao_pay: KakaoPay,
|
||||
klarna: Klarna,
|
||||
kr_card: KrCard,
|
||||
link: Link,
|
||||
naver_pay: NaverPay,
|
||||
nz_bank_account: NzBankAccount,
|
||||
paypal: Paypal,
|
||||
revolut_pay: RevolutPay,
|
||||
sepa_debit: SepaDebit,
|
||||
us_bank_account: UsBankAccount,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SingleUse < Stripe::StripeObject
|
||||
@ -130,6 +322,14 @@ module Stripe
|
||||
attr_reader :amount
|
||||
# The currency of the payment on a single use mandate.
|
||||
attr_reader :currency
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field customer_acceptance
|
||||
attr_reader :customer_acceptance
|
||||
@ -153,5 +353,18 @@ module Stripe
|
||||
attr_reader :status
|
||||
# The type of the mandate.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
customer_acceptance: CustomerAcceptance,
|
||||
multi_use: MultiUse,
|
||||
payment_method_details: PaymentMethodDetails,
|
||||
single_use: SingleUse,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -21,11 +21,27 @@ module Stripe
|
||||
class HostedConfirmation < Stripe::StripeObject
|
||||
# The custom message that is displayed to the customer after the purchase is complete.
|
||||
attr_reader :custom_message
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Redirect < Stripe::StripeObject
|
||||
# The URL the customer will be redirected to after the purchase is complete.
|
||||
attr_reader :url
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field hosted_confirmation
|
||||
attr_reader :hosted_confirmation
|
||||
@ -33,6 +49,14 @@ module Stripe
|
||||
attr_reader :redirect
|
||||
# The specified behavior after the purchase is complete.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { hosted_confirmation: HostedConfirmation, redirect: Redirect }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class AutomaticTax < Stripe::StripeObject
|
||||
@ -41,11 +65,27 @@ module Stripe
|
||||
attr_reader :account
|
||||
# Type of the account referenced.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# If `true`, tax will be calculated automatically using the customer's location.
|
||||
attr_reader :enabled
|
||||
# The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
|
||||
attr_reader :liability
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { liability: Liability }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ConsentCollection < Stripe::StripeObject
|
||||
@ -54,6 +94,14 @@ module Stripe
|
||||
#
|
||||
# When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.
|
||||
attr_reader :position
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Settings related to the payment method reuse text shown in the Checkout UI.
|
||||
attr_reader :payment_method_reuse_agreement
|
||||
@ -61,6 +109,14 @@ module Stripe
|
||||
attr_reader :promotions
|
||||
# If set to `required`, it requires cutomers to accept the terms of service before being able to pay. If set to `none`, customers won't be shown a checkbox to accept the terms of service.
|
||||
attr_reader :terms_of_service
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { payment_method_reuse_agreement: PaymentMethodReuseAgreement }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CustomField < Stripe::StripeObject
|
||||
@ -70,11 +126,27 @@ module Stripe
|
||||
attr_reader :label
|
||||
# The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.
|
||||
attr_reader :value
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The value that will pre-fill on the payment page.
|
||||
attr_reader :default_value
|
||||
# The options available for the customer to select. Up to 200 options allowed.
|
||||
attr_reader :options
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { options: Option }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Label < Stripe::StripeObject
|
||||
@ -82,6 +154,14 @@ module Stripe
|
||||
attr_reader :custom
|
||||
# The type of the label.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Numeric < Stripe::StripeObject
|
||||
@ -91,6 +171,14 @@ module Stripe
|
||||
attr_reader :maximum_length
|
||||
# The minimum character length requirement for the customer's input.
|
||||
attr_reader :minimum_length
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Text < Stripe::StripeObject
|
||||
@ -100,6 +188,14 @@ module Stripe
|
||||
attr_reader :maximum_length
|
||||
# The minimum character length requirement for the customer's input.
|
||||
attr_reader :minimum_length
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field dropdown
|
||||
attr_reader :dropdown
|
||||
@ -115,27 +211,67 @@ module Stripe
|
||||
attr_reader :text
|
||||
# The type of the field.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { dropdown: Dropdown, label: Label, numeric: Numeric, text: Text }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class CustomText < Stripe::StripeObject
|
||||
class AfterSubmit < Stripe::StripeObject
|
||||
# Text may be up to 1200 characters in length.
|
||||
attr_reader :message
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingAddress < Stripe::StripeObject
|
||||
# Text may be up to 1200 characters in length.
|
||||
attr_reader :message
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Submit < Stripe::StripeObject
|
||||
# Text may be up to 1200 characters in length.
|
||||
attr_reader :message
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class TermsOfServiceAcceptance < Stripe::StripeObject
|
||||
# Text may be up to 1200 characters in length.
|
||||
attr_reader :message
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Custom text that should be displayed after the payment confirmation button.
|
||||
attr_reader :after_submit
|
||||
@ -145,6 +281,19 @@ module Stripe
|
||||
attr_reader :submit
|
||||
# Custom text that should be displayed in place of the default terms of service agreement text.
|
||||
attr_reader :terms_of_service_acceptance
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
after_submit: AfterSubmit,
|
||||
shipping_address: ShippingAddress,
|
||||
submit: Submit,
|
||||
terms_of_service_acceptance: TermsOfServiceAcceptance,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class InvoiceCreation < Stripe::StripeObject
|
||||
@ -154,6 +303,14 @@ module Stripe
|
||||
attr_reader :name
|
||||
# The value of the custom field.
|
||||
attr_reader :value
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Issuer < Stripe::StripeObject
|
||||
@ -161,6 +318,14 @@ module Stripe
|
||||
attr_reader :account
|
||||
# Type of the account referenced.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class RenderingOptions < Stripe::StripeObject
|
||||
@ -168,6 +333,14 @@ module Stripe
|
||||
attr_reader :amount_tax_display
|
||||
# ID of the invoice rendering template to be used for the generated invoice.
|
||||
attr_reader :template
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The account tax IDs associated with the invoice.
|
||||
attr_reader :account_tax_ids
|
||||
@ -183,11 +356,31 @@ module Stripe
|
||||
attr_reader :metadata
|
||||
# Options for invoice PDF rendering.
|
||||
attr_reader :rendering_options
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
custom_fields: CustomField,
|
||||
issuer: Issuer,
|
||||
rendering_options: RenderingOptions,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Enable creating an invoice on successful payment.
|
||||
attr_reader :enabled
|
||||
# Configuration for the invoice. Default invoice values will be used if unspecified.
|
||||
attr_reader :invoice_data
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { invoice_data: InvoiceData }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class OptionalItem < Stripe::StripeObject
|
||||
@ -198,6 +391,14 @@ module Stripe
|
||||
attr_reader :maximum
|
||||
# The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0.
|
||||
attr_reader :minimum
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field adjustable_quantity
|
||||
attr_reader :adjustable_quantity
|
||||
@ -205,6 +406,14 @@ module Stripe
|
||||
attr_reader :price
|
||||
# Attribute for field quantity
|
||||
attr_reader :quantity
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { adjustable_quantity: AdjustableQuantity }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PaymentIntentData < Stripe::StripeObject
|
||||
@ -222,11 +431,27 @@ module Stripe
|
||||
attr_reader :statement_descriptor_suffix
|
||||
# A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
|
||||
attr_reader :transfer_group
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class PhoneNumberCollection < Stripe::StripeObject
|
||||
# If `true`, a phone number will be collected during checkout.
|
||||
attr_reader :enabled
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Restrictions < Stripe::StripeObject
|
||||
@ -235,14 +460,38 @@ module Stripe
|
||||
attr_reader :count
|
||||
# The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met.
|
||||
attr_reader :limit
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field completed_sessions
|
||||
attr_reader :completed_sessions
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { completed_sessions: CompletedSessions }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingAddressCollection < Stripe::StripeObject
|
||||
# An array of two-letter ISO country codes representing which countries Checkout should provide as options for shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`.
|
||||
attr_reader :allowed_countries
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingOption < Stripe::StripeObject
|
||||
@ -250,6 +499,14 @@ module Stripe
|
||||
attr_reader :shipping_amount
|
||||
# The ID of the Shipping Rate to use for this shipping option.
|
||||
attr_reader :shipping_rate
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionData < Stripe::StripeObject
|
||||
@ -259,18 +516,50 @@ module Stripe
|
||||
attr_reader :account
|
||||
# Type of the account referenced.
|
||||
attr_reader :type
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Attribute for field issuer
|
||||
attr_reader :issuer
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { issuer: Issuer }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class TrialSettings < Stripe::StripeObject
|
||||
class EndBehavior < Stripe::StripeObject
|
||||
# Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
||||
attr_reader :missing_payment_method
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Defines how a subscription behaves when a free trial ends.
|
||||
attr_reader :end_behavior
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { end_behavior: EndBehavior }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
||||
attr_reader :description
|
||||
@ -282,6 +571,14 @@ module Stripe
|
||||
attr_reader :trial_period_days
|
||||
# Settings related to subscription trials.
|
||||
attr_reader :trial_settings
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { invoice_settings: InvoiceSettings, trial_settings: TrialSettings }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class TaxIdCollection < Stripe::StripeObject
|
||||
@ -289,6 +586,14 @@ module Stripe
|
||||
attr_reader :enabled
|
||||
# Attribute for field required
|
||||
attr_reader :required
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class TransferData < Stripe::StripeObject
|
||||
@ -296,6 +601,14 @@ module Stripe
|
||||
attr_reader :amount
|
||||
# The connected account receiving the transfer.
|
||||
attr_reader :destination
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -670,13 +983,23 @@ module Stripe
|
||||
attr_accessor :name
|
||||
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
||||
attr_accessor :tax_code
|
||||
# A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
||||
attr_accessor :unit_label
|
||||
|
||||
def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil)
|
||||
def initialize(
|
||||
description: nil,
|
||||
images: nil,
|
||||
metadata: nil,
|
||||
name: nil,
|
||||
tax_code: nil,
|
||||
unit_label: nil
|
||||
)
|
||||
@description = description
|
||||
@images = images
|
||||
@metadata = metadata
|
||||
@name = name
|
||||
@tax_code = tax_code
|
||||
@unit_label = unit_label
|
||||
end
|
||||
end
|
||||
|
||||
@ -1766,5 +2089,29 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
after_completion: AfterCompletion,
|
||||
automatic_tax: AutomaticTax,
|
||||
consent_collection: ConsentCollection,
|
||||
custom_fields: CustomField,
|
||||
custom_text: CustomText,
|
||||
invoice_creation: InvoiceCreation,
|
||||
optional_items: OptionalItem,
|
||||
payment_intent_data: PaymentIntentData,
|
||||
phone_number_collection: PhoneNumberCollection,
|
||||
restrictions: Restrictions,
|
||||
shipping_address_collection: ShippingAddressCollection,
|
||||
shipping_options: ShippingOption,
|
||||
subscription_data: SubscriptionData,
|
||||
tax_id_collection: TaxIdCollection,
|
||||
transfer_data: TransferData,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -20,66 +20,162 @@ module Stripe
|
||||
class StatusDetails < Stripe::StripeObject
|
||||
# The error message associated with the status of the payment method on the domain.
|
||||
attr_reader :error_message
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The status of the payment method on the domain.
|
||||
attr_reader :status
|
||||
# Contains additional details about the status of a payment method for a specific payment method domain.
|
||||
attr_reader :status_details
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { status_details: StatusDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ApplePay < Stripe::StripeObject
|
||||
class StatusDetails < Stripe::StripeObject
|
||||
# The error message associated with the status of the payment method on the domain.
|
||||
attr_reader :error_message
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The status of the payment method on the domain.
|
||||
attr_reader :status
|
||||
# Contains additional details about the status of a payment method for a specific payment method domain.
|
||||
attr_reader :status_details
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { status_details: StatusDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class GooglePay < Stripe::StripeObject
|
||||
class StatusDetails < Stripe::StripeObject
|
||||
# The error message associated with the status of the payment method on the domain.
|
||||
attr_reader :error_message
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The status of the payment method on the domain.
|
||||
attr_reader :status
|
||||
# Contains additional details about the status of a payment method for a specific payment method domain.
|
||||
attr_reader :status_details
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { status_details: StatusDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Klarna < Stripe::StripeObject
|
||||
class StatusDetails < Stripe::StripeObject
|
||||
# The error message associated with the status of the payment method on the domain.
|
||||
attr_reader :error_message
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The status of the payment method on the domain.
|
||||
attr_reader :status
|
||||
# Contains additional details about the status of a payment method for a specific payment method domain.
|
||||
attr_reader :status_details
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { status_details: StatusDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Link < Stripe::StripeObject
|
||||
class StatusDetails < Stripe::StripeObject
|
||||
# The error message associated with the status of the payment method on the domain.
|
||||
attr_reader :error_message
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The status of the payment method on the domain.
|
||||
attr_reader :status
|
||||
# Contains additional details about the status of a payment method for a specific payment method domain.
|
||||
attr_reader :status_details
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { status_details: StatusDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Paypal < Stripe::StripeObject
|
||||
class StatusDetails < Stripe::StripeObject
|
||||
# The error message associated with the status of the payment method on the domain.
|
||||
attr_reader :error_message
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The status of the payment method on the domain.
|
||||
attr_reader :status
|
||||
# Contains additional details about the status of a payment method for a specific payment method domain.
|
||||
attr_reader :status_details
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { status_details: StatusDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -232,5 +328,20 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
amazon_pay: AmazonPay,
|
||||
apple_pay: ApplePay,
|
||||
google_pay: GooglePay,
|
||||
klarna: Klarna,
|
||||
link: Link,
|
||||
paypal: Paypal,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -25,6 +25,14 @@ module Stripe
|
||||
attr_reader :status
|
||||
# The trace ID value if `trace_id.status` is `supported`, otherwise `nil`.
|
||||
attr_reader :value
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class ListParams < Stripe::RequestParams
|
||||
@ -302,5 +310,13 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { trace_id: TraceId }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -23,9 +23,25 @@ module Stripe
|
||||
attr_reader :ip
|
||||
# The user agent of the browser from which the legal guardian accepted the service agreement.
|
||||
attr_reader :user_agent
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Details on the legal guardian's acceptance of the main Stripe service agreement.
|
||||
attr_reader :account
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { account: Account }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Address < Stripe::StripeObject
|
||||
@ -33,14 +49,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class AddressKana < Stripe::StripeObject
|
||||
@ -58,6 +82,14 @@ module Stripe
|
||||
attr_reader :state
|
||||
# Town/cho-me.
|
||||
attr_reader :town
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class AddressKanji < Stripe::StripeObject
|
||||
@ -75,6 +107,14 @@ module Stripe
|
||||
attr_reader :state
|
||||
# Town/cho-me.
|
||||
attr_reader :town
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Dob < Stripe::StripeObject
|
||||
@ -84,6 +124,14 @@ module Stripe
|
||||
attr_reader :month
|
||||
# The four-digit year of birth.
|
||||
attr_reader :year
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class FutureRequirements < Stripe::StripeObject
|
||||
@ -92,6 +140,14 @@ module Stripe
|
||||
attr_reader :alternative_fields_due
|
||||
# Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
|
||||
attr_reader :original_fields_due
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Error < Stripe::StripeObject
|
||||
@ -101,6 +157,14 @@ module Stripe
|
||||
attr_reader :reason
|
||||
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
||||
attr_reader :requirement
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
||||
attr_reader :alternatives
|
||||
@ -114,6 +178,14 @@ module Stripe
|
||||
attr_reader :past_due
|
||||
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due` or `currently_due`. Fields might appear in `eventually_due` or `currently_due` and in `pending_verification` if verification fails but another verification is still pending.
|
||||
attr_reader :pending_verification
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { alternatives: Alternative, errors: Error }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class RegisteredAddress < Stripe::StripeObject
|
||||
@ -121,14 +193,22 @@ module Stripe
|
||||
attr_reader :city
|
||||
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
||||
attr_reader :country
|
||||
# Address line 1 (e.g., street, PO Box, or company name).
|
||||
# Address line 1, such as the street, PO Box, or company name.
|
||||
attr_reader :line1
|
||||
# Address line 2 (e.g., apartment, suite, unit, or building).
|
||||
# Address line 2, such as the apartment, suite, unit, or building.
|
||||
attr_reader :line2
|
||||
# ZIP or postal code.
|
||||
attr_reader :postal_code
|
||||
# State, county, province, or region.
|
||||
attr_reader :state
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Relationship < Stripe::StripeObject
|
||||
@ -148,6 +228,14 @@ module Stripe
|
||||
attr_reader :representative
|
||||
# The person's title (e.g., CEO, Support Engineer).
|
||||
attr_reader :title
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Requirements < Stripe::StripeObject
|
||||
@ -156,6 +244,14 @@ module Stripe
|
||||
attr_reader :alternative_fields_due
|
||||
# Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
|
||||
attr_reader :original_fields_due
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Error < Stripe::StripeObject
|
||||
@ -165,6 +261,14 @@ module Stripe
|
||||
attr_reader :reason
|
||||
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
||||
attr_reader :requirement
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
||||
attr_reader :alternatives
|
||||
@ -178,6 +282,14 @@ module Stripe
|
||||
attr_reader :past_due
|
||||
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
||||
attr_reader :pending_verification
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { alternatives: Alternative, errors: Error }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class UsCfpbData < Stripe::StripeObject
|
||||
@ -186,6 +298,14 @@ module Stripe
|
||||
attr_reader :ethnicity
|
||||
# Please specify your origin, when other is selected.
|
||||
attr_reader :ethnicity_other
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class RaceDetails < Stripe::StripeObject
|
||||
@ -193,6 +313,14 @@ module Stripe
|
||||
attr_reader :race
|
||||
# Please specify your race, when other is selected.
|
||||
attr_reader :race_other
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The persons ethnicity details
|
||||
attr_reader :ethnicity_details
|
||||
@ -200,6 +328,14 @@ module Stripe
|
||||
attr_reader :race_details
|
||||
# The persons self-identified gender
|
||||
attr_reader :self_identified_gender
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { ethnicity_details: EthnicityDetails, race_details: RaceDetails }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Verification < Stripe::StripeObject
|
||||
@ -212,6 +348,14 @@ module Stripe
|
||||
attr_reader :details_code
|
||||
# The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`.
|
||||
attr_reader :front
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
|
||||
class Document < Stripe::StripeObject
|
||||
@ -223,6 +367,14 @@ module Stripe
|
||||
attr_reader :details_code
|
||||
# The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`.
|
||||
attr_reader :front
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
|
||||
attr_reader :additional_document
|
||||
@ -234,6 +386,14 @@ module Stripe
|
||||
attr_reader :document
|
||||
# The state of verification for the person. Possible values are `unverified`, `pending`, or `verified`. Please refer [guide](https://stripe.com/docs/connect/handling-api-verification) to handle verification updates.
|
||||
attr_reader :status
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = { additional_document: AdditionalDocument, document: Document }
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
# The account the person is associated with.
|
||||
attr_reader :account
|
||||
@ -322,5 +482,25 @@ module Stripe
|
||||
"person using `Account.update_person('account_id', 'person_id', " \
|
||||
"update_params)`"
|
||||
end
|
||||
|
||||
def self.inner_class_types
|
||||
@inner_class_types = {
|
||||
additional_tos_acceptances: AdditionalTosAcceptances,
|
||||
address: Address,
|
||||
address_kana: AddressKana,
|
||||
address_kanji: AddressKanji,
|
||||
dob: Dob,
|
||||
future_requirements: FutureRequirements,
|
||||
registered_address: RegisteredAddress,
|
||||
relationship: Relationship,
|
||||
requirements: Requirements,
|
||||
us_cfpb_data: UsCfpbData,
|
||||
verification: Verification,
|
||||
}
|
||||
end
|
||||
|
||||
def self.field_remappings
|
||||
@field_remappings = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user