netsuite 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODJmNDM3OWYyMGRlNGJkMDU0Nzk1YWUzNGNhNDEyMTk1Y2JmNzg2Yw==
4
+ MzU4NWNkY2Y0MzllYWE4ODhkYzQ2OTRiYWM4N2QwZTNmMjhmOWIxZQ==
5
5
  data.tar.gz: !binary |-
6
- ZWMyNGQ1NTBkNDZmNzJkNGM0NmNiZGJiMDA4NjE3NTRiOWMyYmJhOQ==
6
+ MDFiMjY3ZmI5NzYyOWQ3OTVkNDAxMzA1MDIwZjk2MTM1MjUwODFkMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Yzg4YzU5ODc0ZWE1NDFjNjU1M2FhNDc3MmU4ZDY3NmMzNjMxZDJmZmI3NjM1
10
- ZmQ5OGM1ODc3ODRkZDFkODQxYWM5OTZiYzAzMmM5ZDUxZTYwMGFiYjA5ODJm
11
- OGYyMWQxYTdlM2QyOTgzNzlkOWQ1MjY0Mjg2NzdlNDUxMGZlZDI=
9
+ MTUzODZjM2QwMDNjNWE2NTdjMWMxNjYwYTA5ZmE0M2I5NTA1YWJkZGEwYjBk
10
+ NTIyNDBmY2Q0ODcwNjk1MmY0OWRjNGFkMjE2MTE3MDUzNzZjM2IwMWIzMzYy
11
+ OWI0NDZjOWU4MDY4Y2IwMzQzZjVkMTA4ZWMzY2E4NjhlYTE4ZTE=
12
12
  data.tar.gz: !binary |-
13
- ZGIxOWEyYzE4ODUwMmFkYzhkMzIxZTI0YWIwYTBkYTRhMzczY2MxZmNhYzgz
14
- MTcxNjI1YjBlYmNhM2RhMmEzMmY5NGE1NTNmMGFhZTE2MGYzM2M5YWEyMTg5
15
- NGMwYzdlN2QwNTc1Y2JhNTU5NjA0NGM5ZWVkZjc4ZjZjMDU1YmY=
13
+ Zjc2ZGU1OTU2MzhiZWM5NTlhOTA1NDEzNmNkOGE0YmNkNTUzYzhiYzI0MDIw
14
+ OWFlZTlmOTYyMmVhOTcxZDI2Y2FhNGYxZGViZTJiZjM1YWYyMTcwNjk3NDk0
15
+ ZTI2NzljOTNiNzY2YWM3ZGUyNDExYmE2MGE5M2QwNzNlZTA0NjY=
data/README.md CHANGED
@@ -383,6 +383,14 @@ NetSuite::Records::CustomRecord.get_list(
383
383
  ).each do |record|
384
384
  # do your thing...
385
385
  end
386
+
387
+ # Adding a Customer Deposit example. The customer associated with the
388
+ # sales order would be linked to the deposit.
389
+
390
+ deposit = CustomerDeposit.new
391
+ deposit.sales_order = RecordRef.new(internal_id: 7279)
392
+ deposit.payment = 20
393
+ deposit.add
386
394
  ```
387
395
 
388
396
  #### Non-standard Operations
@@ -1,13 +1,8 @@
1
1
  module NetSuite
2
2
  module Records
3
- # Adding a Customer Deposit example. The customer associated with the sales
4
- # order would be linked to the deposit.
5
- #
6
- # deposit = CustomerDeposit.new
7
- # deposit.sales_order = RecordRef.new(internal_id: 7279)
8
- # deposit.payment = 20
9
- # deposit.add
10
- #
3
+
4
+ # https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2014_1/schema/record/customerdeposit.html
5
+
11
6
  class CustomerDeposit
12
7
  include Support::Actions
13
8
  include Support::RecordRefs
@@ -15,14 +10,15 @@ module NetSuite
15
10
  include Support::Records
16
11
  include Namespaces::TranCust
17
12
 
18
- actions :add, :get, :upsert
19
13
 
20
- fields :custom_form, :payment, :tran_date, :exchange_rate, :undep_funds, :memo,
21
- :check_num, :klass
14
+ actions :get, :get_list, :initialize, :add, :delete, :update, :upsert
15
+
16
+ fields :created_date, :last_modified_date, :status, :payment, :tran_date, :exchange_rate, :undep_funds, :memo,
17
+ :check_num, :klass, :currency_name, :is_recurring_payment
22
18
 
23
19
  field :custom_field_list, CustomFieldList
24
20
 
25
- record_refs :customer, :sales_order, :account, :department, :payment_method
21
+ record_refs :customer, :sales_order, :account, :department, :payment_method, :custom_form, :currency, :posting_period
26
22
 
27
23
  attr_reader :internal_id
28
24
  attr_accessor :external_id
@@ -1,3 +1,3 @@
1
1
  module Netsuite
2
- VERSION = '0.4.7'
2
+ VERSION = '0.4.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netsuite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Moran