/
customer_refund.rb
31 lines (24 loc) · 1.06 KB
/
customer_refund.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module NetSuite
module Records
class CustomerRefund
include Support::Fields
include Support::RecordRefs
include Support::Records
include Support::Actions
include Namespaces::TranCust
actions :get, :initialize, :add
fields :address, :balance, :cc_approved, :cc_expire_date, :cc_name, :cc_number, :cc_street, :cc_zip_code, :charge_it,
:created_date, :currency_name, :debit_card_issue_no, :exchange_rate, :last_modified_date, :memo, :pn_ref_num, :status,
:to_be_printed, :tran_date, :tran_id, :valid_from
field :custom_field_list, CustomFieldList
field :apply_list, CustomerRefundApplyList
field :deposit_list, CustomerRefundDepositList
read_only_fields :total
record_refs :account, :ar_acct, :credit_card, :credit_card_processor, :custom_form, :customer, :department, :klass,
:location, :payment_method, :posting_period, :subsidiary, :void_journal
def initialize(attributes = {})
initialize_from_attributes_hash(attributes)
end
end
end
end