Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added support for Line Extras and Name Values to Payment model. Thi…
…s is needed to read payments against invoices. * Released 0.5.0
- Loading branch information
Showing
8 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
module Quickbooks | ||
module Model | ||
class LineEx < BaseModel | ||
|
||
xml_accessor :name_values, :from => "NameValue", :as => [NameValue] | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module Quickbooks | ||
|
||
VERSION = "0.4.9" | ||
VERSION = "0.5.0" | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<Payment domain="QBO"> | ||
<Id>83</Id> | ||
<SyncToken>0</SyncToken> | ||
<MetaData> | ||
<CreateTime>2017-07-17T14:26:54-07:00</CreateTime> | ||
<LastUpdatedTime>2017-07-17T14:26:54-07:00</LastUpdatedTime> | ||
</MetaData> | ||
<TxnDate>2016-09-16</TxnDate> | ||
<CurrencyRef name="United States Dollar">USD</CurrencyRef> | ||
<Line> | ||
<Amount>2400.00</Amount> | ||
<LinkedTxn> | ||
<TxnId>68</TxnId> | ||
<TxnType>Invoice</TxnType> | ||
</LinkedTxn> | ||
<LineEx> | ||
<NameValue> | ||
<Name>txnId</Name> | ||
<Value>68</Value> | ||
</NameValue> | ||
<NameValue> | ||
<Name>txnOpenBalance</Name> | ||
<Value>2400.00</Value> | ||
</NameValue> | ||
<NameValue> | ||
<Name>txnReferenceNumber</Name> | ||
<Value>1246</Value> | ||
</NameValue> | ||
</LineEx> | ||
</Line> | ||
<CustomerRef name="Acme Enterprises">3</CustomerRef> | ||
<DepositToAccountRef>4</DepositToAccountRef> | ||
<TotalAmt>2400.00</TotalAmt> | ||
<UnappliedAmt>0</UnappliedAmt> | ||
<ProcessPayment>false</ProcessPayment> | ||
</Payment> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters