qbwc_requests 0.4.9 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b399da883ca32c21a800031683bf19ad30afd2ce
4
- data.tar.gz: dfcefe6aa0a76c1d3804031a6d07292f5203da04
3
+ metadata.gz: d334f459f1701c9acae25612b10591a30edb94d3
4
+ data.tar.gz: b73c9315f8cb7fa73b24c5d9ec6283c066ccd44c
5
5
  SHA512:
6
- metadata.gz: c0ed79cd7e9878b56a4dbfa7131de8d87fed250cae6a3fc866a24d65ffad47be7c9b74aa0191d4d07ec9881245973d91922697fcc643c3b00d361c9847f62488
7
- data.tar.gz: a052ec5f2bc7760b14e8234ea8eefaeb7ae77cc23a1930065d9eaa7aed13081839ba52a8cc42ed23009a58a142639aa0331a08c6df292e9413ea062807251347
6
+ metadata.gz: 1f713f143531ecd1ab9cfdb4bd140a5ec96cc28af312213696f822b6adb03aacf3a22ea9b54b3a09179ba3692f61e4b819fe08ce53f2ddb8e9f4449f0297cfb5
7
+ data.tar.gz: 1d274739f8ddae12cfa2871ca02e3af5de4b29cb39b0d2cf6fdcff9b62e08e848d9264de78c187e487f7bf2007133874c345aa89969e94832ffb584c563c5bb8
@@ -4,7 +4,14 @@ module QbwcRequests
4
4
  class Add < QbwcRequests::Base
5
5
 
6
6
  ref_to :vendor, 41
7
-
7
+ field :memo
8
+ field :txn_date
9
+ field :ref_number
10
+ field :due_date
11
+ field :expense_line_add
12
+
13
+ validates :memo, length: { maximum: 4095 }
14
+ validates :ref_number, length: { maximum: 11 }
8
15
  end
9
16
  end
10
17
  end
@@ -3,6 +3,7 @@ module QbwcRequests
3
3
  module V07
4
4
  class Query < QbwcRequests::Base
5
5
  field :max_returned
6
+ field :active_status
6
7
  field :from_modified_date
7
8
  end
8
9
  end
@@ -1,3 +1,3 @@
1
1
  module QbwcRequests
2
- VERSION = "0.4.9"
2
+ VERSION = "0.5.0"
3
3
  end
@@ -8,7 +8,16 @@ describe BillQbxml do
8
8
 
9
9
  describe "add" do
10
10
 
11
- let(:bill){ BillQbxml::Add.factory(vendor_ref: {list_id: 10}) }
11
+ let(:bill) do
12
+ BillQbxml::Add.factory(
13
+ vendor_ref: {list_id: 10},
14
+ memo: 'Hello',
15
+ txn_date: '01/02/2018',
16
+ due_date: '01/03/2018',
17
+ ref_number: '305',
18
+ expense_line_add: {account_ref: {full_name: 'Some item ref full name'}}
19
+ )
20
+ end
12
21
 
13
22
  it "should create an add bill xml" do
14
23
  xml = <<-XML
@@ -21,6 +30,15 @@ describe BillQbxml do
21
30
  <VendorRef>
22
31
  <ListID>10</ListID>
23
32
  </VendorRef>
33
+ <Memo>Hello</Memo>
34
+ <TxnDate>01/02/2018</TxnDate>
35
+ <RefNumber>305</RefNumber>
36
+ <DueDate>01/03/2018</DueDate>
37
+ <ExpenseLineAdd>
38
+ <AccountRef>
39
+ <FullName>Some item ref full name</FullName>
40
+ </AccountRef>
41
+ </ExpenseLineAdd>
24
42
  </BillAdd>
25
43
  </BillAddRq>
26
44
  </QBXMLMsgsRq>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qbwc_requests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Mondaini Calvão
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2018-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: qbxml
@@ -263,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
263
263
  version: '0'
264
264
  requirements: []
265
265
  rubyforge_project:
266
- rubygems_version: 2.5.1
266
+ rubygems_version: 2.6.14
267
267
  signing_key:
268
268
  specification_version: 4
269
269
  summary: This gem helps you generate Qbxml requests