mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-07 00:05:33 -04:00
126 lines
6.5 KiB
Ruby
126 lines
6.5 KiB
Ruby
# File generated from our OpenAPI spec
|
|
# frozen_string_literal: true
|
|
|
|
module Stripe
|
|
module V2
|
|
# OutboundPayment represents a single money movement from one FinancialAccount you own to a payout method someone else owns.
|
|
class OutboundPayment < APIResource
|
|
OBJECT_NAME = "v2.money_management.outbound_payment"
|
|
def self.object_name
|
|
"v2.money_management.outbound_payment"
|
|
end
|
|
|
|
class DeliveryOptions < Stripe::StripeObject
|
|
# Open Enum. Method for bank account.
|
|
attr_reader :bank_account
|
|
end
|
|
|
|
class From < Stripe::StripeObject
|
|
# The monetary amount debited from the sender, only set on responses.
|
|
attr_reader :debited
|
|
# The FinancialAccount that funds were pulled from.
|
|
attr_reader :financial_account
|
|
end
|
|
|
|
class RecipientNotification < Stripe::StripeObject
|
|
# Closed Enum. Configuration option to enable or disable notifications to recipients.
|
|
# Do not send notifications when setting is NONE. Default to account setting when setting is CONFIGURED or not set.
|
|
attr_reader :setting
|
|
end
|
|
|
|
class StatusDetails < Stripe::StripeObject
|
|
class Failed < Stripe::StripeObject
|
|
# Open Enum. The `failed` status reason.
|
|
attr_reader :reason
|
|
end
|
|
|
|
class Returned < Stripe::StripeObject
|
|
# Open Enum. The `returned` status reason.
|
|
attr_reader :reason
|
|
end
|
|
# The `failed` status reason.
|
|
attr_reader :failed
|
|
# The `returned` status reason.
|
|
attr_reader :returned
|
|
end
|
|
|
|
class StatusTransitions < Stripe::StripeObject
|
|
# Timestamp describing when an OutboundPayment changed status to `canceled`.
|
|
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
attr_reader :canceled_at
|
|
# Timestamp describing when an OutboundPayment changed status to `failed`.
|
|
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
attr_reader :failed_at
|
|
# Timestamp describing when an OutboundPayment changed status to `posted`.
|
|
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
attr_reader :posted_at
|
|
# Timestamp describing when an OutboundPayment changed status to `returned`.
|
|
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
attr_reader :returned_at
|
|
end
|
|
|
|
class To < Stripe::StripeObject
|
|
# The monetary amount being credited to the destination.
|
|
attr_reader :credited
|
|
# The payout method which the OutboundPayment uses to send payout.
|
|
attr_reader :payout_method
|
|
# To which account the OutboundPayment is sent.
|
|
attr_reader :recipient
|
|
end
|
|
|
|
class TraceId < Stripe::StripeObject
|
|
# Possible values are `pending`, `supported`, and `unsupported`. Initially set to `pending`, it changes to
|
|
# `supported` when the recipient bank provides a trace ID, or `unsupported` if the recipient bank doesn't support it.
|
|
# Note that this status may not align with the OutboundPayment or OutboundTransfer status and can remain `pending`
|
|
# even after the payment or transfer is posted.
|
|
attr_reader :status
|
|
# The trace ID value if `trace_id.status` is `supported`, otherwise empty.
|
|
attr_reader :value
|
|
end
|
|
# The "presentment amount" for the OutboundPayment.
|
|
attr_reader :amount
|
|
# Returns true if the OutboundPayment can be canceled, and false otherwise.
|
|
attr_reader :cancelable
|
|
# Time at which the OutboundPayment was created.
|
|
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
attr_reader :created
|
|
# Delivery options to be used to send the OutboundPayment.
|
|
attr_reader :delivery_options
|
|
# An arbitrary string attached to the OutboundPayment. Often useful for displaying to users.
|
|
attr_reader :description
|
|
# The date when funds are expected to arrive in the payout method. This field is not set if the payout method is in a `failed`, `canceled`, or `returned` state.
|
|
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
attr_reader :expected_arrival_date
|
|
# The FinancialAccount that funds were pulled from.
|
|
attr_reader :from
|
|
# Unique identifier for the OutboundPayment.
|
|
attr_reader :id
|
|
# Set of key-value pairs 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
|
|
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
attr_reader :object
|
|
# The quote for this OutboundPayment. Only required for countries with regulatory mandates to display fee estimates before OutboundPayment creation.
|
|
attr_reader :outbound_payment_quote
|
|
# A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
|
|
attr_reader :receipt_url
|
|
# Details about the OutboundPayment notification settings for recipient.
|
|
attr_reader :recipient_notification
|
|
# The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer).
|
|
attr_reader :statement_descriptor
|
|
# Closed Enum. Current status of the OutboundPayment: `processing`, `failed`, `posted`, `returned`, `canceled`.
|
|
# An OutboundPayment is `processing` if it has been created and is processing.
|
|
# The status changes to `posted` once the OutboundPayment has been "confirmed" and funds have left the account, or to `failed` or `canceled`.
|
|
# If an OutboundPayment fails to arrive at its payout method, its status will change to `returned`.
|
|
attr_reader :status
|
|
# Status details for an OutboundPayment in a `failed` or `returned` state.
|
|
attr_reader :status_details
|
|
# Hash containing timestamps of when the object transitioned to a particular status.
|
|
attr_reader :status_transitions
|
|
# To which payout method the OutboundPayment was sent.
|
|
attr_reader :to
|
|
# A unique identifier that can be used to track this OutboundPayment with recipient bank. Banks might call this a “reference number” or something similar.
|
|
attr_reader :trace_id
|
|
end
|
|
end
|
|
end
|