class Stripe::ApplicationFeeOriginatingTransaction

Overview

ID of the corresponding charge on the platform account, if this fee was the result of a charge using the destination parameter.

Included Modules

Defined in:

stripe/models/application_fee_originating_transaction.cr

Constant Summary

ERROR_MESSAGE_FOR_OBJECT = "invalid value for \"object\", must be one of [charge]."
ERROR_MESSAGE_FOR_STATUS = "invalid value for \"status\", must be one of [failed, pending, succeeded]."
MAX_LENGTH_FOR_AUTHORIZATION_CODE = 5000
MAX_LENGTH_FOR_CALCULATED_STATEMENT_DESCRIPTOR = 5000
MAX_LENGTH_FOR_DESCRIPTION = 40000
MAX_LENGTH_FOR_FAILURE_CODE = 5000
MAX_LENGTH_FOR_FAILURE_MESSAGE = 5000
MAX_LENGTH_FOR_ID = 5000
MAX_LENGTH_FOR_PAYMENT_METHOD = 5000
MAX_LENGTH_FOR_RECEIPT_EMAIL = 5000
MAX_LENGTH_FOR_RECEIPT_NUMBER = 5000
MAX_LENGTH_FOR_RECEIPT_URL = 5000
MAX_LENGTH_FOR_STATEMENT_DESCRIPTOR = 5000
MAX_LENGTH_FOR_STATEMENT_DESCRIPTOR_SUFFIX = 5000
MAX_LENGTH_FOR_TRANSFER_GROUP = 5000
VALID_VALUES_FOR_OBJECT = String.static_array("charge")
VALID_VALUES_FOR_STATUS = String.static_array("failed", "pending", "succeeded")

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module OpenApi::Json

after_initialize after_initialize, eql?(o : self) eql?, to_hash : Hash(String, JSON::Any) to_hash, to_json_any : JSON::Any to_json_any

Class methods inherited from module OpenApi::Json

build_from_hash(hash : Hash) build_from_hash, build_from_json_any(json_any : JSON::Any) build_from_json_any

Instance methods inherited from module OpenApi::Validatable

list_invalid_properties : Array(String) list_invalid_properties, list_invalid_properties_for(key : String) : Array(String) list_invalid_properties_for, valid? : Bool valid?, validate : Nil validate

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, amount : Int64 | Nil = nil, amount_captured : Int64 | Nil = nil, amount_refunded : Int64 | Nil = nil, application : Stripe::ChargeApplication | Nil = nil, application_fee : Stripe::ChargeApplicationFee | Nil = nil, application_fee_amount : Int64 | Nil = nil, balance_transaction : Stripe::ChargeBalanceTransaction | Nil = nil, billing_details : Stripe::BillingDetails | Nil = nil, calculated_statement_descriptor : String | Nil = nil, captured : Bool | Nil = nil, created : Int64 | Nil = nil, currency : String | Nil = nil, customer : Stripe::ChargeCustomer | Nil = nil, description : String | Nil = nil, disputed : Bool | Nil = nil, failure_balance_transaction : Stripe::ChargeFailureBalanceTransaction | Nil = nil, failure_code : String | Nil = nil, failure_message : String | Nil = nil, fraud_details : Stripe::ChargeFraudDetails | Nil = nil, id : String | Nil = nil, invoice : Stripe::ChargeInvoice | Nil = nil, livemode : Bool | Nil = nil, metadata : Hash(String, String) | Nil = nil, object : String | Nil = nil, on_behalf_of : Stripe::ChargeOnBehalfOf | Nil = nil, outcome : Stripe::ChargeOutcome | Nil = nil, paid : Bool | Nil = nil, payment_intent : Stripe::ChargePaymentIntent | Nil = nil, payment_method : String | Nil = nil, payment_method_details : Stripe::PaymentMethodDetails | Nil = nil, receipt_email : String | Nil = nil, receipt_number : String | Nil = nil, receipt_url : String | Nil = nil, refunded : Bool | Nil = nil, review : Stripe::ChargeReview | Nil = nil, shipping : Stripe::Shipping | Nil = nil, source : Stripe::PaymentSource | Nil = nil, source_transfer : Stripe::ChargeSourceTransfer | Nil = nil, statement_descriptor : String | Nil = nil, statement_descriptor_suffix : String | Nil = nil, status : String | Nil = nil, transfer_data : Stripe::ChargeTransferData | Nil = nil, transfer_group : String | Nil = nil, authorization_code : String | Nil = nil, level3 : Stripe::Level3 | Nil = nil, radar_options : Stripe::RadarRadarOptions | Nil = nil, refunds : Stripe::RefundList | Nil = nil, transfer : Stripe::ChargeTransfer | Nil = nil) #

Initializes the object @param [Hash] attributes Model attributes in the form of hash


[View source]

Class Method Detail

def self.openapi_any_of #

List of class defined in anyOf (OpenAPI v3)


[View source]

Instance Method Detail

def ==(other : self) #

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code


def amount : Int64 | Nil #

[View source]
def amount=(amount : Int64 | Nil) #

[View source]
def amount_captured : Int64 | Nil #

[View source]
def amount_captured=(amount_captured : Int64 | Nil) #

[View source]
def amount_refunded : Int64 | Nil #

[View source]
def amount_refunded=(amount_refunded : Int64 | Nil) #

[View source]
def application : Stripe::ChargeApplication | Nil #

[View source]
def application=(application : Stripe::ChargeApplication | Nil) #

[View source]
def application_fee : Stripe::ChargeApplicationFee | Nil #

[View source]
def application_fee=(application_fee : Stripe::ChargeApplicationFee | Nil) #

[View source]
def application_fee_amount : Int64 | Nil #

[View source]
def application_fee_amount=(application_fee_amount : Int64 | Nil) #

[View source]
def authorization_code : String | Nil #

[View source]
def authorization_code=(authorization_code : String | Nil) #

[View source]
def balance_transaction : Stripe::ChargeBalanceTransaction | Nil #

[View source]
def balance_transaction=(balance_transaction : Stripe::ChargeBalanceTransaction | Nil) #

[View source]
def billing_details : Stripe::BillingDetails | Nil #

[View source]
def billing_details=(billing_details : Stripe::BillingDetails | Nil) #

[View source]
def calculated_statement_descriptor : String | Nil #

[View source]
def calculated_statement_descriptor=(calculated_statement_descriptor : String | Nil) #

[View source]
def captured : Bool | Nil #

[View source]
def captured=(captured : Bool | Nil) #

[View source]
def created : Int64 | Nil #

[View source]
def created=(created : Int64 | Nil) #

[View source]
def currency : String | Nil #

[View source]
def currency=(currency : String | Nil) #

[View source]
def customer : Stripe::ChargeCustomer | Nil #

[View source]
def customer=(customer : Stripe::ChargeCustomer | Nil) #

[View source]
def description : String | Nil #

[View source]
def description=(description : String | Nil) #

[View source]
def disputed : Bool | Nil #

[View source]
def disputed=(disputed : Bool | Nil) #

[View source]
def failure_balance_transaction : Stripe::ChargeFailureBalanceTransaction | Nil #

[View source]
def failure_balance_transaction=(failure_balance_transaction : Stripe::ChargeFailureBalanceTransaction | Nil) #

[View source]
def failure_code : String | Nil #

[View source]
def failure_code=(failure_code : String | Nil) #

[View source]
def failure_message : String | Nil #

[View source]
def failure_message=(failure_message : String | Nil) #

[View source]
def fraud_details : Stripe::ChargeFraudDetails | Nil #

[View source]
def fraud_details=(fraud_details : Stripe::ChargeFraudDetails | Nil) #

[View source]
def hash(hasher) #

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code


def id : String | Nil #

[View source]
def id=(id : String | Nil) #

[View source]
def invoice : Stripe::ChargeInvoice | Nil #

[View source]
def invoice=(invoice : Stripe::ChargeInvoice | Nil) #

[View source]
def level3 : Stripe::Level3 | Nil #

[View source]
def level3=(level3 : Stripe::Level3 | Nil) #

[View source]
def list_invalid_properties : Array(String) #

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons


[View source]
def livemode : Bool | Nil #

[View source]
def livemode=(livemode : Bool | Nil) #

[View source]
def metadata : Hash(String, String) | Nil #

[View source]
def metadata=(metadata : Hash(String, String) | Nil) #

[View source]
def object : String | Nil #

[View source]
def object=(object : String | Nil) #

[View source]
def on_behalf_of : Stripe::ChargeOnBehalfOf | Nil #

[View source]
def on_behalf_of=(on_behalf_of : Stripe::ChargeOnBehalfOf | Nil) #

[View source]
def outcome : Stripe::ChargeOutcome | Nil #

[View source]
def outcome=(outcome : Stripe::ChargeOutcome | Nil) #

[View source]
def paid : Bool | Nil #

[View source]
def paid=(paid : Bool | Nil) #

[View source]
def payment_intent : Stripe::ChargePaymentIntent | Nil #

[View source]
def payment_intent=(payment_intent : Stripe::ChargePaymentIntent | Nil) #

[View source]
def payment_method : String | Nil #

[View source]
def payment_method=(payment_method : String | Nil) #

[View source]
def payment_method_details : Stripe::PaymentMethodDetails | Nil #

[View source]
def payment_method_details=(payment_method_details : Stripe::PaymentMethodDetails | Nil) #

[View source]
def radar_options : Stripe::RadarRadarOptions | Nil #

[View source]
def radar_options=(radar_options : Stripe::RadarRadarOptions | Nil) #

[View source]
def receipt_email : String | Nil #

[View source]
def receipt_email=(receipt_email : String | Nil) #

[View source]
def receipt_number : String | Nil #

[View source]
def receipt_number=(receipt_number : String | Nil) #

[View source]
def receipt_url : String | Nil #

[View source]
def receipt_url=(receipt_url : String | Nil) #

[View source]
def refunded : Bool | Nil #

[View source]
def refunded=(refunded : Bool | Nil) #

[View source]
def refunds : Stripe::RefundList | Nil #

[View source]
def refunds=(refunds : Stripe::RefundList | Nil) #

[View source]
def refunds_present=(refunds_present : Bool) #

[View source]
def refunds_present? : Bool #

[View source]
def review : Stripe::ChargeReview | Nil #

[View source]
def review=(review : Stripe::ChargeReview | Nil) #

[View source]
def shipping : Stripe::Shipping | Nil #

[View source]
def shipping=(shipping : Stripe::Shipping | Nil) #

[View source]
def source : Stripe::PaymentSource | Nil #

[View source]
def source=(source : Stripe::PaymentSource | Nil) #

[View source]
def source_transfer : Stripe::ChargeSourceTransfer | Nil #

[View source]
def source_transfer=(source_transfer : Stripe::ChargeSourceTransfer | Nil) #

[View source]
def statement_descriptor : String | Nil #

[View source]
def statement_descriptor=(statement_descriptor : String | Nil) #

[View source]
def statement_descriptor_suffix : String | Nil #

[View source]
def statement_descriptor_suffix=(statement_descriptor_suffix : String | Nil) #

[View source]
def status : String | Nil #

[View source]
def status=(status : String | Nil) #

[View source]
def transfer : Stripe::ChargeTransfer | Nil #

[View source]
def transfer=(transfer : Stripe::ChargeTransfer | Nil) #

[View source]
def transfer_data : Stripe::ChargeTransferData | Nil #

[View source]
def transfer_data=(transfer_data : Stripe::ChargeTransferData | Nil) #

[View source]
def transfer_group : String | Nil #

[View source]
def transfer_group=(transfer_group : String | Nil) #

[View source]
def valid? : Bool #

Check to see if the all the properties in the model are valid @return true if the model is valid


[View source]