abstract struct Mollie::Base::Payment

Included Modules

Direct Known Subclasses

Defined in:

mollie/base/payment.cr

Constructors

Instance Method Summary

Instance methods inherited from module Mollie::Mixins::Linkable

id_from_link(key : Symbol | String) id_from_link, id_from_link?(key : Symbol | String) id_from_link?, link_for(key : Symbol | String) link_for, link_for?(key : Symbol | String) link_for?, links : Links links

Instance methods inherited from struct Mollie::Base::Resource

cancel(data : Hash | NamedTuple = HS2.new, client : Client = Client.instance) cancel, delete(data : Hash | NamedTuple = HS2.new, client : Client = Client.instance) delete, update(data : Hash | NamedTuple, client : Client = Client.instance) update

Constructor methods inherited from struct Mollie::Base::Resource

new(pull : JSON::PullParser) new

Class methods inherited from struct Mollie::Base::Resource

all(options : Hash | NamedTuple = HS2.new, client : Client = Client.instance) all, cancel(id : String, data : Hash | NamedTuple = HS2.new, client : Client = Client.instance) cancel, create(data : Hash | NamedTuple, options : Hash | NamedTuple = HS2.new, client : Client = Client.instance) create, delete(id : String, data : Hash | NamedTuple = HS2.new, client : Client = Client.instance) delete, get(id : String, options : Hash | NamedTuple = HS2.new, client : Client = Client.instance) get, id_param id_param, parent_param parent_param, resource_name(parent_id : String | Nil = nil) resource_name, update(id : String, data : Hash | NamedTuple, client : Client = Client.instance) update

Macros inherited from struct Mollie::Base::Resource

status_enum_methods status_enum_methods

Macros inherited from module Mollie::Json::Serializable

json_field(name, type) json_field

Constructor Detail

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

[View source]

Instance Method Detail

def amount : Amount #

def amount_captured : Union(Amount, Nil) #

def amount_refunded : Union(Amount, Nil) #

def amount_remaining : Union(Amount, Nil) #

def application_fee : Union(Payment::ApplicationFee, Nil) #

def authorized? #

[View source]
def authorized_at : Union(Time, Nil) #

def canceled? #

[View source]
def canceled_at : Union(Time, Nil) #

def captures(options : Hash | NamedTuple = HS2.new) #

[View source]
def chargebacks(options : Hash | NamedTuple = HS2.new) #

[View source]
def checkout_url #

[View source]
def country_code : Union(String, Nil) #

def created_at : Time #

def customer(options : Hash | NamedTuple = HS2.new) #

[View source]
def customer_id : Union(String, Nil) #

def description : String #

def details : HSBFIS | Nil #

[View source]
def expired? #

[View source]
def expired_at : Union(Time, Nil) #

def expires_at : Union(Time, Nil) #

def failed? #

[View source]
def failed_at : Union(Time, Nil) #

def id : String #

def is_cancelable : Union(Bool, Nil) #

def locale : Union(String, Nil) #

def mandate(options : Hash | NamedTuple = HS2.new) #

[View source]
def mandate_id : Union(String, Nil) #

def metadata : Union(HSBFIS, Nil) #

def method : Union(String, Nil) #

def mode : String #

def open? #

[View source]
def order(options : Hash | NamedTuple = HS2.new) #

[View source]
def order_id : Union(String, Nil) #

def paid? #

[View source]
def pending? #

[View source]
def profile_id : String #

def redirect_url : Union(String, Nil) #

def refund!(options : Hash | NamedTuple = HS2.new) #

[View source]
def refunded? #

[View source]
def refunds(options : Hash | NamedTuple = HS2.new) #

[View source]
def restrict_payment_methods_to_country : Union(String, Nil) #

def sequence_type : Union(String, Nil) #

def settlement(options : Hash | NamedTuple = HS2.new) #

[View source]
def settlement_amount : Union(Amount, Nil) #

def settlement_id : Union(String, Nil) #

def status : String #

def subscription(options : Hash | NamedTuple = HS2.new) #

[View source]
def subscription_id : Union(String, Nil) #

def webhook_url : Union(String, Nil) #