Class: Peddler::APIs::VendorInvoicesV1::AllowanceDetails

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/vendor_invoices_v1.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#allowance_amountPeddler::Money (readonly)

Returns the value of attribute allowance_amount.

Returns:



58
59
60
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 58

def allowance_amount
  @allowance_amount
end

#descriptionString? (readonly)

Returns the value of attribute description.

Returns:

  • (String, nil)


59
60
61
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 59

def description
  @description
end

#tax_detailsArray[Peddler::APIs::VendorInvoicesV1::TaxDetails]? (readonly)

Returns the value of attribute tax_details.



60
61
62
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 60

def tax_details
  @tax_details
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


61
62
63
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 61

def type
  @type
end

Class Method Details

.[](allowance_amount:, type:, description:, tax_details:) ⇒ Peddler::APIs::VendorInvoicesV1::AllowanceDetails .[](arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::VendorInvoicesV1::AllowanceDetails

Overloads:



51
52
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 51

def self.[]: (allowance_amount: Peddler::Money, type: String, ?description: String?, ?tax_details: Array[Peddler::APIs::VendorInvoicesV1::TaxDetails]?) -> Peddler::APIs::VendorInvoicesV1::AllowanceDetails
| (Peddler::Money, String, String?, Array[Peddler::APIs::VendorInvoicesV1::TaxDetails]?) -> Peddler::APIs::VendorInvoicesV1::AllowanceDetails

.members[ :allowance_amount, :type, :description, :tax_details ]

Returns:

  • ([ :allowance_amount, :type, :description, :tax_details ])


54
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 54

def self.members: () -> [ :allowance_amount, :type, :description, :tax_details ]

.new(allowance_amount:, type:, description:, tax_details:) ⇒ Peddler::APIs::VendorInvoicesV1::AllowanceDetails .new(arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::VendorInvoicesV1::AllowanceDetails

Overloads:



49
50
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 49

def self.new: (allowance_amount: Peddler::Money, type: String, ?description: String?, ?tax_details: Array[Peddler::APIs::VendorInvoicesV1::TaxDetails]?) -> Peddler::APIs::VendorInvoicesV1::AllowanceDetails
| (Peddler::Money, String, String?, Array[Peddler::APIs::VendorInvoicesV1::TaxDetails]?) -> Peddler::APIs::VendorInvoicesV1::AllowanceDetails

.parsePeddler::APIs::VendorInvoicesV1::AllowanceDetails

Parameters:

  • (Hash[String | Symbol, untyped])
  • (Object)

Returns:



56
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 56

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::VendorInvoicesV1::AllowanceDetails

Instance Method Details

#members[ :allowance_amount, :type, :description, :tax_details ]

Returns:

  • ([ :allowance_amount, :type, :description, :tax_details ])


63
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 63

def members: () -> [ :allowance_amount, :type, :description, :tax_details ]

#to_h{ allowance_amount: Peddler::Money, type: String, description: String?, tax_details: Array[Peddler::APIs::VendorInvoicesV1::TaxDetails]? }

Returns:



64
# File 'sig/peddler/apis/vendor_invoices_v1.rbs', line 64

def to_h: () -> { allowance_amount: Peddler::Money, type: String, description: String?, tax_details: Array[Peddler::APIs::VendorInvoicesV1::TaxDetails]? }