Skip to content

Latest commit

 

History

History
53 lines (46 loc) · 2.84 KB

Prepayment.md

File metadata and controls

53 lines (46 loc) · 2.84 KB

XeroRuby::Accounting::Prepayment

Properties

Name Type Description Notes
type String See Prepayment Types [optional]
contact Contact [optional]
date Date The date the prepayment is created YYYY-MM-DD [optional]
status String See Prepayment Status Codes [optional]
line_amount_types LineAmountTypes [optional]
line_items Array<LineItem> See Prepayment Line Items [optional]
sub_total Float The subtotal of the prepayment excluding taxes [optional]
total_tax Float The total tax on the prepayment [optional]
total Float The total of the prepayment(subtotal + total tax) [optional]
reference String Returns Invoice number field. Reference field isn't available. [optional]
updated_date_utc DateTime UTC timestamp of last update to the prepayment [optional]
currency_code CurrencyCode [optional]
prepayment_id String Xero generated unique identifier [optional]
currency_rate Float The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used [optional]
remaining_credit Float The remaining credit balance on the prepayment [optional]
allocations Array<Allocation> See Allocations [optional]
applied_amount Float The amount of applied to an invoice [optional]
has_attachments Boolean boolean to indicate if a prepayment has an attachment [optional] [default to false]
attachments Array<Attachment> See Attachments [optional]

Code Sample

require 'XeroRuby::Accounting'

instance = XeroRuby::Accounting::Prepayment.new(type: null,
                                 contact: null,
                                 date: null,
                                 status: null,
                                 line_amount_types: null,
                                 line_items: null,
                                 sub_total: null,
                                 total_tax: null,
                                 total: null,
                                 reference: null,
                                 updated_date_utc: null,
                                 currency_code: null,
                                 prepayment_id: null,
                                 currency_rate: null,
                                 remaining_credit: null,
                                 allocations: null,
                                 applied_amount: 2.0,
                                 has_attachments: false,
                                 attachments: null)