abstract struct Mollie::Base::Line

Included Modules

Direct Known Subclasses

Defined in:

mollie/base/line.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

Constructor Detail

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

[View source]

Instance Method Detail

def amount_canceled : Union(Amount, Nil) #

def amount_refunded : Union(Amount, Nil) #

def amount_shipped : Union(Amount, Nil) #

def cancelable? #

[View source]
def cancelable_quantity : Union(Int32, Nil) #

def created_at : Time #

def discount_amount : Union(Amount, Nil) #

def discounted? #

[View source]
def id : String #

def image_url #

[View source]
def is_cancelable : Union(Bool, Nil) #

def metadata : Union(HSBFIS, Nil) #

def name : String #

def order_id : String #

def product_url #

[View source]
def quantity : Int32 #

def quantity_canceled : Int32 #

def quantity_refunded : Int32 #

def quantity_shipped : Int32 #

def refundable? #

[View source]
def refundable_quantity : Int32 #

def shippable? #

[View source]
def shippable_quantity : Int32 #

def sku : String #

def status : String #

def total_amount : Amount #

def type : String #

def unit_price : Amount #

def vat_amount : Amount #

def vat_rate : String #