Class: Stripe::Treasury::ReceivedDebit
- Inherits:
-
APIResource
- Object
- StripeObject
- APIResource
- Stripe::Treasury::ReceivedDebit
- Extended by:
- APIOperations::List
- Defined in:
- lib/stripe/resources/treasury/received_debit.rb
Overview
ReceivedDebits represent funds pulled from a [FinancialAccount](stripe.com/docs/api#financial_accounts). These are not initiated from the FinancialAccount.
Defined Under Namespace
Classes: InitiatingPaymentMethodDetails, LinkedFlows, ReversalDetails, TestHelpers
Constant Summary collapse
- OBJECT_NAME =
"treasury.received_debit"
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Amount (in cents) transferred.
-
#created ⇒ Object
readonly
Time at which the object was created.
-
#currency ⇒ Object
readonly
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase.
-
#description ⇒ Object
readonly
An arbitrary string attached to the object.
-
#failure_code ⇒ Object
readonly
Reason for the failure.
-
#financial_account ⇒ Object
readonly
The FinancialAccount that funds were pulled from.
-
#hosted_regulatory_receipt_url ⇒ Object
readonly
A [hosted transaction receipt](stripe.com/docs/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe’s money transmission licenses.
-
#id ⇒ Object
readonly
Unique identifier for the object.
-
#initiating_payment_method_details ⇒ Object
readonly
Attribute for field initiating_payment_method_details.
-
#linked_flows ⇒ Object
readonly
Attribute for field linked_flows.
-
#livemode ⇒ Object
readonly
Has the value ‘true` if the object exists in live mode or the value `false` if the object exists in test mode.
-
#network ⇒ Object
readonly
The network used for the ReceivedDebit.
-
#object ⇒ Object
readonly
String representing the object’s type.
-
#reversal_details ⇒ Object
readonly
Details describing when a ReceivedDebit might be reversed.
-
#status ⇒ Object
readonly
Status of the ReceivedDebit.
-
#transaction ⇒ Object
readonly
The Transaction associated with this object.
Attributes inherited from APIResource
Attributes inherited from StripeObject
Class Method Summary collapse
- .field_remappings ⇒ Object
- .inner_class_types ⇒ Object
-
.list(params = {}, opts = {}) ⇒ Object
Returns a list of ReceivedDebits.
- .object_name ⇒ Object
Instance Method Summary collapse
Methods included from APIOperations::List
Methods inherited from APIResource
class_name, custom_method, #refresh, #request_stripe_object, resource_url, #resource_url, retrieve, save_nested_resource
Methods included from APIOperations::Request
Methods inherited from StripeObject
#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#amount ⇒ Object (readonly)
Amount (in cents) transferred.
148 149 150 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 148 def amount @amount end |
#created ⇒ Object (readonly)
Time at which the object was created. Measured in seconds since the Unix epoch.
150 151 152 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 150 def created @created end |
#currency ⇒ Object (readonly)
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).
152 153 154 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 152 def currency @currency end |
#description ⇒ Object (readonly)
An arbitrary string attached to the object. Often useful for displaying to users.
154 155 156 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 154 def description @description end |
#failure_code ⇒ Object (readonly)
Reason for the failure. A ReceivedDebit might fail because the FinancialAccount doesn’t have sufficient funds, is closed, or is frozen.
156 157 158 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 156 def failure_code @failure_code end |
#financial_account ⇒ Object (readonly)
The FinancialAccount that funds were pulled from.
158 159 160 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 158 def financial_account @financial_account end |
#hosted_regulatory_receipt_url ⇒ Object (readonly)
A [hosted transaction receipt](stripe.com/docs/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe’s money transmission licenses.
160 161 162 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 160 def hosted_regulatory_receipt_url @hosted_regulatory_receipt_url end |
#id ⇒ Object (readonly)
Unique identifier for the object.
162 163 164 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 162 def id @id end |
#initiating_payment_method_details ⇒ Object (readonly)
Attribute for field initiating_payment_method_details
164 165 166 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 164 def initiating_payment_method_details @initiating_payment_method_details end |
#linked_flows ⇒ Object (readonly)
Attribute for field linked_flows
166 167 168 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 166 def linked_flows @linked_flows end |
#livemode ⇒ Object (readonly)
Has the value ‘true` if the object exists in live mode or the value `false` if the object exists in test mode.
168 169 170 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 168 def livemode @livemode end |
#network ⇒ Object (readonly)
The network used for the ReceivedDebit.
170 171 172 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 170 def network @network end |
#object ⇒ Object (readonly)
String representing the object’s type. Objects of the same type share the same value.
172 173 174 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 172 def object @object end |
#reversal_details ⇒ Object (readonly)
Details describing when a ReceivedDebit might be reversed.
174 175 176 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 174 def reversal_details @reversal_details end |
#status ⇒ Object (readonly)
Status of the ReceivedDebit. ReceivedDebits are created with a status of either ‘succeeded` (approved) or `failed` (declined). The failure reason can be found under the `failure_code`.
176 177 178 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 176 def status @status end |
#transaction ⇒ Object (readonly)
The Transaction associated with this object.
178 179 180 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 178 def transaction @transaction end |
Class Method Details
.field_remappings ⇒ Object
219 220 221 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 219 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
211 212 213 214 215 216 217 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 211 def self.inner_class_types @inner_class_types = { initiating_payment_method_details: InitiatingPaymentMethodDetails, linked_flows: LinkedFlows, reversal_details: ReversalDetails, } end |
.list(params = {}, opts = {}) ⇒ Object
Returns a list of ReceivedDebits.
181 182 183 184 185 186 187 188 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 181 def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/treasury/received_debits", params: params, opts: opts ) end |
.object_name ⇒ Object
11 12 13 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 11 def self.object_name "treasury.received_debit" end |
Instance Method Details
#test_helpers ⇒ Object
190 191 192 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 190 def test_helpers TestHelpers.new(self) end |