merge_accounting_client 1.0.0 → 1.0.1
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 +4 -4
- data/README.md +9 -5
- data/docs/Account.md +3 -1
- data/docs/AccountingAttachment.md +3 -1
- data/docs/BalanceSheet.md +3 -1
- data/docs/CashFlowStatement.md +3 -1
- data/docs/CompanyInfo.md +3 -1
- data/docs/Contact.md +3 -1
- data/docs/CreditNote.md +3 -1
- data/docs/Expense.md +3 -1
- data/docs/ForceResyncApi.md +4 -4
- data/docs/IncomeStatement.md +3 -1
- data/docs/Invoice.md +3 -1
- data/docs/InvoiceLineItem.md +3 -1
- data/docs/InvoiceLineItemRequest.md +3 -1
- data/docs/Item.md +3 -1
- data/docs/JournalEntry.md +7 -3
- data/docs/JournalEntryRequest.md +3 -1
- data/docs/JournalLine.md +2 -0
- data/docs/JournalLineRequest.md +2 -0
- data/docs/LinkedAccountsApi.md +14 -14
- data/docs/PaginatedVendorCreditList.md +22 -0
- data/docs/Payment.md +3 -1
- data/docs/PurchaseOrder.md +3 -1
- data/docs/TaxRate.md +3 -1
- data/docs/TrackingCategory.md +3 -1
- data/docs/VendorCredit.md +36 -0
- data/docs/VendorCreditLine.md +26 -0
- data/docs/VendorCreditsApi.md +181 -0
- data/docs/WebhookReceiversApi.md +14 -16
- data/lib/merge_accounting_client/api/force_resync_api.rb +3 -3
- data/lib/merge_accounting_client/api/linked_accounts_api.rb +15 -15
- data/lib/merge_accounting_client/api/vendor_credits_api.rb +196 -0
- data/lib/merge_accounting_client/api/webhook_receivers_api.rb +23 -15
- data/lib/merge_accounting_client/models/account.rb +15 -5
- data/lib/merge_accounting_client/models/account_details_and_actions_status_enum.rb +0 -2
- data/lib/merge_accounting_client/models/account_status_enum.rb +0 -2
- data/lib/merge_accounting_client/models/accounting_attachment.rb +15 -5
- data/lib/merge_accounting_client/models/address_type_enum.rb +0 -2
- data/lib/merge_accounting_client/models/balance_sheet.rb +15 -5
- data/lib/merge_accounting_client/models/cash_flow_statement.rb +15 -5
- data/lib/merge_accounting_client/models/categories_enum.rb +1 -2
- data/lib/merge_accounting_client/models/category_enum.rb +1 -2
- data/lib/merge_accounting_client/models/classification_enum.rb +0 -2
- data/lib/merge_accounting_client/models/company_info.rb +14 -4
- data/lib/merge_accounting_client/models/contact.rb +14 -4
- data/lib/merge_accounting_client/models/country_enum.rb +0 -2
- data/lib/merge_accounting_client/models/credit_note.rb +14 -4
- data/lib/merge_accounting_client/models/credit_note_status_enum.rb +0 -2
- data/lib/merge_accounting_client/models/currency_enum.rb +0 -2
- data/lib/merge_accounting_client/models/encoding_enum.rb +0 -2
- data/lib/merge_accounting_client/models/expense.rb +14 -4
- data/lib/merge_accounting_client/models/income_statement.rb +15 -5
- data/lib/merge_accounting_client/models/invoice.rb +13 -4
- data/lib/merge_accounting_client/models/invoice_line_item.rb +15 -5
- data/lib/merge_accounting_client/models/invoice_line_item_request.rb +15 -5
- data/lib/merge_accounting_client/models/invoice_type_enum.rb +0 -2
- data/lib/merge_accounting_client/models/issue_status_enum.rb +0 -2
- data/lib/merge_accounting_client/models/item.rb +15 -5
- data/lib/merge_accounting_client/models/journal_entry.rb +30 -10
- data/lib/merge_accounting_client/models/journal_entry_request.rb +17 -6
- data/lib/merge_accounting_client/models/journal_line.rb +11 -1
- data/lib/merge_accounting_client/models/journal_line_request.rb +11 -1
- data/lib/merge_accounting_client/models/method_enum.rb +0 -2
- data/lib/merge_accounting_client/models/{paginated_webhook_receiver_list.rb → paginated_vendor_credit_list.rb} +4 -4
- data/lib/merge_accounting_client/models/payment.rb +15 -5
- data/lib/merge_accounting_client/models/purchase_order.rb +15 -5
- data/lib/merge_accounting_client/models/purchase_order_status_enum.rb +0 -2
- data/lib/merge_accounting_client/models/request_format_enum.rb +0 -2
- data/lib/merge_accounting_client/models/state_enum.rb +0 -2
- data/lib/merge_accounting_client/models/status7d1_enum.rb +0 -2
- data/lib/merge_accounting_client/models/sync_status_status_enum.rb +0 -2
- data/lib/merge_accounting_client/models/tax_rate.rb +15 -5
- data/lib/merge_accounting_client/models/tracking_category.rb +15 -5
- data/lib/merge_accounting_client/models/vendor_credit.rb +317 -0
- data/lib/merge_accounting_client/models/vendor_credit_line.rb +265 -0
- data/lib/merge_accounting_client/version.rb +1 -1
- data/lib/merge_accounting_client.rb +4 -1
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/linked_accounts_api_spec.rb +7 -7
- data/spec/api/vendor_credits_api_spec.rb +70 -0
- data/spec/api/webhook_receivers_api_spec.rb +3 -3
- data/spec/models/account_spec.rb +6 -0
- data/spec/models/accounting_attachment_spec.rb +6 -0
- data/spec/models/balance_sheet_spec.rb +6 -0
- data/spec/models/cash_flow_statement_spec.rb +6 -0
- data/spec/models/company_info_spec.rb +6 -0
- data/spec/models/contact_spec.rb +6 -0
- data/spec/models/credit_note_spec.rb +6 -0
- data/spec/models/expense_spec.rb +6 -0
- data/spec/models/income_statement_spec.rb +6 -0
- data/spec/models/invoice_line_item_request_spec.rb +6 -0
- data/spec/models/invoice_line_item_spec.rb +6 -0
- data/spec/models/invoice_spec.rb +6 -0
- data/spec/models/item_spec.rb +6 -0
- data/spec/models/journal_entry_request_spec.rb +6 -0
- data/spec/models/journal_entry_spec.rb +13 -1
- data/spec/models/journal_line_request_spec.rb +6 -0
- data/spec/models/journal_line_spec.rb +6 -0
- data/spec/models/{paginated_webhook_receiver_list_spec.rb → paginated_vendor_credit_list_spec.rb} +6 -6
- data/spec/models/payment_spec.rb +6 -0
- data/spec/models/purchase_order_spec.rb +6 -0
- data/spec/models/tax_rate_spec.rb +6 -0
- data/spec/models/tracking_category_spec.rb +6 -0
- data/spec/models/vendor_credit_line_spec.rb +58 -0
- data/spec/models/vendor_credit_spec.rb +88 -0
- metadata +118 -106
- data/docs/PaginatedWebhookReceiverList.md +0 -22
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df545710529fc3eef1a80c28db2a71f4c87f15808715b29aca41186be3d23c6d
|
|
4
|
+
data.tar.gz: 33704af13f1781c674a2d61a3e9d8a83973b330eb150f03b72b37aa0cce1a679
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 284ca5f6daf298251e7808a4fb5a7ba2b187d4891f0609f477c7a4cae7d6978567254474561286fed339fd385b4015be4b4bb1669d747af88fdb15d2231fee06
|
|
7
|
+
data.tar.gz: 9a0c34c0089417859b012efb78d8dec8c3f642ddd36788e0c5253f625561e32656053b45f27256eaf70a969f2b5734bcfa06565952e59a8651af6d0a4de32b13
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ The unified API for building rich integrations with multiple Accounting & Financ
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: 1.0
|
|
10
|
-
- Package version: 1.0.
|
|
10
|
+
- Package version: 1.0.1
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [https://www.merge.dev/](https://www.merge.dev/)
|
|
13
13
|
|
|
@@ -24,16 +24,16 @@ gem build merge_accounting_client.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./merge_accounting_client-1.0.
|
|
27
|
+
gem install ./merge_accounting_client-1.0.1.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./merge_accounting_client-1.0.
|
|
30
|
+
(for development, run `gem install --dev ./merge_accounting_client-1.0.1.gem` to install the development dependencies)
|
|
31
31
|
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
33
|
|
|
34
34
|
Finally add this to the Gemfile:
|
|
35
35
|
|
|
36
|
-
gem 'merge_accounting_client', '~> 1.0.
|
|
36
|
+
gem 'merge_accounting_client', '~> 1.0.1'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -134,6 +134,8 @@ Class | Method | HTTP request | Description
|
|
|
134
134
|
*MergeAccountingClient::TaxRatesApi* | [**tax_rates_retrieve**](docs/TaxRatesApi.md#tax_rates_retrieve) | **GET** /tax-rates/{id} |
|
|
135
135
|
*MergeAccountingClient::TrackingCategoriesApi* | [**tracking_categories_list**](docs/TrackingCategoriesApi.md#tracking_categories_list) | **GET** /tracking-categories |
|
|
136
136
|
*MergeAccountingClient::TrackingCategoriesApi* | [**tracking_categories_retrieve**](docs/TrackingCategoriesApi.md#tracking_categories_retrieve) | **GET** /tracking-categories/{id} |
|
|
137
|
+
*MergeAccountingClient::VendorCreditsApi* | [**vendor_credits_list**](docs/VendorCreditsApi.md#vendor_credits_list) | **GET** /vendor-credits |
|
|
138
|
+
*MergeAccountingClient::VendorCreditsApi* | [**vendor_credits_retrieve**](docs/VendorCreditsApi.md#vendor_credits_retrieve) | **GET** /vendor-credits/{id} |
|
|
137
139
|
*MergeAccountingClient::WebhookReceiversApi* | [**webhook_receivers_create**](docs/WebhookReceiversApi.md#webhook_receivers_create) | **POST** /webhook-receivers |
|
|
138
140
|
*MergeAccountingClient::WebhookReceiversApi* | [**webhook_receivers_list**](docs/WebhookReceiversApi.md#webhook_receivers_list) | **GET** /webhook-receivers |
|
|
139
141
|
|
|
@@ -215,7 +217,7 @@ Class | Method | HTTP request | Description
|
|
|
215
217
|
- [MergeAccountingClient::PaginatedSyncStatusList](docs/PaginatedSyncStatusList.md)
|
|
216
218
|
- [MergeAccountingClient::PaginatedTaxRateList](docs/PaginatedTaxRateList.md)
|
|
217
219
|
- [MergeAccountingClient::PaginatedTrackingCategoryList](docs/PaginatedTrackingCategoryList.md)
|
|
218
|
-
- [MergeAccountingClient::
|
|
220
|
+
- [MergeAccountingClient::PaginatedVendorCreditList](docs/PaginatedVendorCreditList.md)
|
|
219
221
|
- [MergeAccountingClient::Payment](docs/Payment.md)
|
|
220
222
|
- [MergeAccountingClient::PurchaseOrder](docs/PurchaseOrder.md)
|
|
221
223
|
- [MergeAccountingClient::PurchaseOrderLineItem](docs/PurchaseOrderLineItem.md)
|
|
@@ -234,6 +236,8 @@ Class | Method | HTTP request | Description
|
|
|
234
236
|
- [MergeAccountingClient::TaxRate](docs/TaxRate.md)
|
|
235
237
|
- [MergeAccountingClient::TrackingCategory](docs/TrackingCategory.md)
|
|
236
238
|
- [MergeAccountingClient::ValidationProblemSource](docs/ValidationProblemSource.md)
|
|
239
|
+
- [MergeAccountingClient::VendorCredit](docs/VendorCredit.md)
|
|
240
|
+
- [MergeAccountingClient::VendorCreditLine](docs/VendorCreditLine.md)
|
|
237
241
|
- [MergeAccountingClient::WarningValidationProblem](docs/WarningValidationProblem.md)
|
|
238
242
|
- [MergeAccountingClient::WebhookReceiver](docs/WebhookReceiver.md)
|
|
239
243
|
- [MergeAccountingClient::WebhookReceiverRequest](docs/WebhookReceiverRequest.md)
|
data/docs/Account.md
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
| **current_balance** | **Float** | The account's current balance. | [optional] |
|
|
16
16
|
| **currency** | [**CurrencyEnum**](CurrencyEnum.md) | The account's currency. | [optional] |
|
|
17
17
|
| **account_number** | **String** | The account's number. | [optional] |
|
|
18
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
18
19
|
|
|
19
20
|
## Example
|
|
20
21
|
|
|
@@ -32,7 +33,8 @@ instance = MergeAccountingClient::Account.new(
|
|
|
32
33
|
status: ACTIVE,
|
|
33
34
|
current_balance: null,
|
|
34
35
|
currency: USD,
|
|
35
|
-
account_number: X12Y9AB
|
|
36
|
+
account_number: X12Y9AB,
|
|
37
|
+
remote_was_deleted: null
|
|
36
38
|
)
|
|
37
39
|
```
|
|
38
40
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
|
10
10
|
| **file_name** | **String** | The attachment's name. | [optional] |
|
|
11
11
|
| **file_url** | **String** | The attachment's url. | [optional] |
|
|
12
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,7 +21,8 @@ instance = MergeAccountingClient::AccountingAttachment.new(
|
|
|
20
21
|
remote_id: 1018270,
|
|
21
22
|
remote_data: [{"path":"/actions","data":["Varies by platform"]}],
|
|
22
23
|
file_name: invoice.png,
|
|
23
|
-
file_url: https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png
|
|
24
|
+
file_url: https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png,
|
|
25
|
+
remote_was_deleted: null
|
|
24
26
|
)
|
|
25
27
|
```
|
|
26
28
|
|
data/docs/BalanceSheet.md
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
| **liabilities** | [**Array<ReportItem>**](ReportItem.md) | | [optional][readonly] |
|
|
15
15
|
| **equity** | [**Array<ReportItem>**](ReportItem.md) | | [optional][readonly] |
|
|
16
16
|
| **remote_generated_at** | **Time** | The time that balance sheet was generated by the accounting system. | [optional] |
|
|
17
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
17
18
|
|
|
18
19
|
## Example
|
|
19
20
|
|
|
@@ -30,7 +31,8 @@ instance = MergeAccountingClient::BalanceSheet.new(
|
|
|
30
31
|
assets: [{"remote_id":"10010","name":"Assets","value":1000,"sub_items":null}],
|
|
31
32
|
liabilities: [{"remote_id":"10011","name":"Liabilities","value":500,"sub_items":null}],
|
|
32
33
|
equity: [{"remote_id":"10012","name":"Equity","value":500,"sub_items":null}],
|
|
33
|
-
remote_generated_at: 2021-10-01T00:00Z
|
|
34
|
+
remote_generated_at: 2021-10-01T00:00Z,
|
|
35
|
+
remote_was_deleted: null
|
|
34
36
|
)
|
|
35
37
|
```
|
|
36
38
|
|
data/docs/CashFlowStatement.md
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
| **investing_activities** | [**Array<ReportItem>**](ReportItem.md) | | [optional][readonly] |
|
|
17
17
|
| **financing_activities** | [**Array<ReportItem>**](ReportItem.md) | | [optional][readonly] |
|
|
18
18
|
| **remote_generated_at** | **Time** | The time that cash flow statement was generated by the accounting system. | [optional] |
|
|
19
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
19
20
|
|
|
20
21
|
## Example
|
|
21
22
|
|
|
@@ -34,7 +35,8 @@ instance = MergeAccountingClient::CashFlowStatement.new(
|
|
|
34
35
|
operating_activities: [{"remote_id":"10299","name":"Operating Activities","value":1000,"sub_items":null}],
|
|
35
36
|
investing_activities: [{"remote_id":"10230","name":"Investing Activities","value":1000,"sub_items":null}],
|
|
36
37
|
financing_activities: [{"remote_id":"10231","name":"Financing Activities","value":1000,"sub_items":null}],
|
|
37
|
-
remote_generated_at: 2020-04-01T00:00Z
|
|
38
|
+
remote_generated_at: 2020-04-01T00:00Z,
|
|
39
|
+
remote_was_deleted: null
|
|
38
40
|
)
|
|
39
41
|
```
|
|
40
42
|
|
data/docs/CompanyInfo.md
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
| **urls** | **Array<String>** | The company's urls. | [optional] |
|
|
18
18
|
| **addresses** | [**Array<Address>**](Address.md) | | [optional] |
|
|
19
19
|
| **phone_numbers** | [**Array<AccountingPhoneNumber>**](AccountingPhoneNumber.md) | | [optional] |
|
|
20
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
20
21
|
|
|
21
22
|
## Example
|
|
22
23
|
|
|
@@ -36,7 +37,8 @@ instance = MergeAccountingClient::CompanyInfo.new(
|
|
|
36
37
|
remote_created_at: 2020-03-31T00:00Z,
|
|
37
38
|
urls: https://www.merge.dev,
|
|
38
39
|
addresses: [{"street_1":"2920 Broadway","street_2":"2nd Floor","city":"New York","state":"NY","country":"USA","zip_code":"10027"}],
|
|
39
|
-
phone_numbers: null
|
|
40
|
+
phone_numbers: null,
|
|
41
|
+
remote_was_deleted: null
|
|
40
42
|
)
|
|
41
43
|
```
|
|
42
44
|
|
data/docs/Contact.md
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
| **remote_updated_at** | **Time** | When the third party's contact was updated. | [optional] |
|
|
18
18
|
| **addresses** | **Array<String>** | `Address` object IDs for the given `Contacts` object. | [optional] |
|
|
19
19
|
| **phone_numbers** | [**Array<AccountingPhoneNumber>**](AccountingPhoneNumber.md) | `AccountingPhoneNumber` object for the given `Contacts` object. | [optional] |
|
|
20
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
20
21
|
|
|
21
22
|
## Example
|
|
22
23
|
|
|
@@ -36,7 +37,8 @@ instance = MergeAccountingClient::Contact.new(
|
|
|
36
37
|
currency: USD,
|
|
37
38
|
remote_updated_at: 2020-03-31T00:00Z,
|
|
38
39
|
addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499","d98c7428-8dda-48a8-a1da-c570f65e2375"],
|
|
39
|
-
phone_numbers: [{"number":"+3198675309","type":"Mobile"}]
|
|
40
|
+
phone_numbers: [{"number":"+3198675309","type":"Mobile"}],
|
|
41
|
+
remote_was_deleted: null
|
|
40
42
|
)
|
|
41
43
|
```
|
|
42
44
|
|
data/docs/CreditNote.md
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
| **remote_created_at** | **Time** | When the third party's credit note was created. | [optional] |
|
|
16
16
|
| **remote_updated_at** | **Time** | When the third party's credit note was updated. | [optional] |
|
|
17
17
|
| **payments** | **Array<String>** | Array of `Payment` object IDs | [optional] |
|
|
18
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
18
19
|
|
|
19
20
|
## Example
|
|
20
21
|
|
|
@@ -32,7 +33,8 @@ instance = MergeAccountingClient::CreditNote.new(
|
|
|
32
33
|
currency: USD,
|
|
33
34
|
remote_created_at: 2020-03-31T00:00Z,
|
|
34
35
|
remote_updated_at: 2020-03-31T00:00Z,
|
|
35
|
-
payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"]
|
|
36
|
+
payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"],
|
|
37
|
+
remote_was_deleted: null
|
|
36
38
|
)
|
|
37
39
|
```
|
|
38
40
|
|
data/docs/Expense.md
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
| **currency** | [**CurrencyEnum**](CurrencyEnum.md) | The expense's currency. | [optional] |
|
|
16
16
|
| **memo** | **String** | The expense's private note. | [optional] |
|
|
17
17
|
| **lines** | [**Array<ExpenseLine>**](ExpenseLine.md) | | [optional][readonly] |
|
|
18
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
18
19
|
|
|
19
20
|
## Example
|
|
20
21
|
|
|
@@ -32,7 +33,8 @@ instance = MergeAccountingClient::Expense.new(
|
|
|
32
33
|
total_amount: 10000.0,
|
|
33
34
|
currency: USD,
|
|
34
35
|
memo: New employee supplies,
|
|
35
|
-
lines: [{"remote_id":"121222","net_amount":25.54,"trackingCategory":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","item":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","account":"2a56344a-a491-11ec-b909-0242ac120002","description":"MacBook Pro"},{"remote_id":"121223","net_amount":10,"trackingCategory":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","item":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","account":"2a56344a-a491-11ec-b909-0242ac120002","description":"Desk Lamp"}]
|
|
36
|
+
lines: [{"remote_id":"121222","net_amount":25.54,"trackingCategory":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","item":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","account":"2a56344a-a491-11ec-b909-0242ac120002","description":"MacBook Pro"},{"remote_id":"121223","net_amount":10,"trackingCategory":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","item":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","account":"2a56344a-a491-11ec-b909-0242ac120002","description":"Desk Lamp"}],
|
|
37
|
+
remote_was_deleted: null
|
|
36
38
|
)
|
|
37
39
|
```
|
|
38
40
|
|
data/docs/ForceResyncApi.md
CHANGED
|
@@ -9,7 +9,7 @@ All URIs are relative to *https://api.merge.dev/api/accounting/v1*
|
|
|
9
9
|
|
|
10
10
|
## sync_status_resync_create
|
|
11
11
|
|
|
12
|
-
> <SyncStatus
|
|
12
|
+
> <Array<SyncStatus>> sync_status_resync_create(x_account_token)
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -44,7 +44,7 @@ end
|
|
|
44
44
|
|
|
45
45
|
This returns an Array which contains the response data, status code and headers.
|
|
46
46
|
|
|
47
|
-
> <Array(<SyncStatus
|
|
47
|
+
> <Array(<Array<SyncStatus>>, Integer, Hash)> sync_status_resync_create_with_http_info(x_account_token)
|
|
48
48
|
|
|
49
49
|
```ruby
|
|
50
50
|
begin
|
|
@@ -52,7 +52,7 @@ begin
|
|
|
52
52
|
data, status_code, headers = api_instance.sync_status_resync_create_with_http_info(x_account_token)
|
|
53
53
|
p status_code # => 2xx
|
|
54
54
|
p headers # => { ... }
|
|
55
|
-
p data # => <SyncStatus
|
|
55
|
+
p data # => <Array<SyncStatus>>
|
|
56
56
|
rescue MergeAccountingClient::ApiError => e
|
|
57
57
|
puts "Error when calling ForceResyncApi->sync_status_resync_create_with_http_info: #{e}"
|
|
58
58
|
end
|
|
@@ -66,7 +66,7 @@ end
|
|
|
66
66
|
|
|
67
67
|
### Return type
|
|
68
68
|
|
|
69
|
-
[**SyncStatus
|
|
69
|
+
[**Array<SyncStatus>**](SyncStatus.md)
|
|
70
70
|
|
|
71
71
|
### Authorization
|
|
72
72
|
|
data/docs/IncomeStatement.md
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
| **net_operating_income** | **Float** | The income statement's net operating profit. | [optional] |
|
|
18
18
|
| **non_operating_expenses** | [**Array<ReportItem>**](ReportItem.md) | | [optional][readonly] |
|
|
19
19
|
| **net_income** | **Float** | The income statement's net income. | [optional] |
|
|
20
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
20
21
|
|
|
21
22
|
## Example
|
|
22
23
|
|
|
@@ -36,7 +37,8 @@ instance = MergeAccountingClient::IncomeStatement.new(
|
|
|
36
37
|
operating_expenses: [{"remote_id":"10299","name":"Total Operating Expenses","value":100.0,"sub_items":null}],
|
|
37
38
|
net_operating_income: 200.0,
|
|
38
39
|
non_operating_expenses: [{"remote_id":"10299","name":"Total Non-Operating Expenses","value":100.0,"sub_items":null}],
|
|
39
|
-
net_income: 100.0
|
|
40
|
+
net_income: 100.0,
|
|
41
|
+
remote_was_deleted: null
|
|
40
42
|
)
|
|
41
43
|
```
|
|
42
44
|
|
data/docs/Invoice.md
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
| **remote_updated_at** | **Time** | When the third party's invoice entry was updated. | [optional] |
|
|
24
24
|
| **payments** | **Array<String>** | Array of `Payment` object IDs. | [optional] |
|
|
25
25
|
| **line_items** | [**Array<InvoiceLineItem>**](InvoiceLineItem.md) | | [optional][readonly] |
|
|
26
|
+
| **remote_was_deleted** | **Boolean** | | [optional][readonly] |
|
|
26
27
|
|
|
27
28
|
## Example
|
|
28
29
|
|
|
@@ -48,7 +49,8 @@ instance = MergeAccountingClient::Invoice.new(
|
|
|
48
49
|
balance: 105,
|
|
49
50
|
remote_updated_at: 2020-04-01T00:00Z,
|
|
50
51
|
payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"],
|
|
51
|
-
line_items: [{"id":"022a2bef-57e5-4def-8ed2-7c41bd9a5ed8","remote_id":"8765432","description":"Pickleball lessons","unit_price":50.0,"quantity":2.0,"total_amount":100.0,"item":"5b3c1341-a20f-4e51-b72c-f3830a16c97b","remote_data":[{"path":"/actions","data":["Varies by platform"]}]}]
|
|
52
|
+
line_items: [{"id":"022a2bef-57e5-4def-8ed2-7c41bd9a5ed8","remote_id":"8765432","description":"Pickleball lessons","unit_price":50.0,"quantity":2.0,"total_amount":100.0,"item":"5b3c1341-a20f-4e51-b72c-f3830a16c97b","remote_data":[{"path":"/actions","data":["Varies by platform"]}]}],
|
|
53
|
+
remote_was_deleted: null
|
|
52
54
|
)
|
|
53
55
|
```
|
|
54
56
|
|
data/docs/InvoiceLineItem.md
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
| **total_amount** | **Float** | The line item's total amount. | [optional] |
|
|
14
14
|
| **item** | **String** | | [optional] |
|
|
15
15
|
| **account** | **String** | | [optional] |
|
|
16
|
+
| **tracking_category** | **String** | | [optional] |
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -28,7 +29,8 @@ instance = MergeAccountingClient::InvoiceLineItem.new(
|
|
|
28
29
|
quantity: 1.0,
|
|
29
30
|
total_amount: 50.0,
|
|
30
31
|
item: 5b3c1341-a20f-4e51-b72c-f3830a16c97b,
|
|
31
|
-
account: cd0f32d4-a493-11ec-b909-0242ac120002
|
|
32
|
+
account: cd0f32d4-a493-11ec-b909-0242ac120002,
|
|
33
|
+
tracking_category: b38c59b0-a9d7-4740-b1ee-5436c6751e3d
|
|
32
34
|
)
|
|
33
35
|
```
|
|
34
36
|
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
| **total_amount** | **Float** | The line item's total amount. | [optional] |
|
|
12
12
|
| **item** | **String** | | [optional] |
|
|
13
13
|
| **account** | **String** | | [optional] |
|
|
14
|
+
| **tracking_category** | **String** | | [optional] |
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,7 +25,8 @@ instance = MergeAccountingClient::InvoiceLineItemRequest.new(
|
|
|
24
25
|
quantity: 1.0,
|
|
25
26
|
total_amount: 50.0,
|
|
26
27
|
item: 5b3c1341-a20f-4e51-b72c-f3830a16c97b,
|
|
27
|
-
account: cd0f32d4-a493-11ec-b909-0242ac120002
|
|
28
|
+
account: cd0f32d4-a493-11ec-b909-0242ac120002,
|
|
29
|
+
tracking_category: b38c59b0-a9d7-4740-b1ee-5436c6751e3d
|
|
28
30
|
)
|
|
29
31
|
```
|
|
30
32
|
|
data/docs/Item.md
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
| **purchase_account** | **String** | | [optional] |
|
|
15
15
|
| **sales_account** | **String** | | [optional] |
|
|
16
16
|
| **remote_updated_at** | **Time** | When the third party's item note was updated. | [optional] |
|
|
17
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
17
18
|
|
|
18
19
|
## Example
|
|
19
20
|
|
|
@@ -30,7 +31,8 @@ instance = MergeAccountingClient::Item.new(
|
|
|
30
31
|
purchase_price: 25.0,
|
|
31
32
|
purchase_account: 9871b4a9-f5d2-4f3b-a66b-dfedbed42c46,
|
|
32
33
|
sales_account: 3872b4c9-f5d2-4f3b-a66b-dfedbed42c49,
|
|
33
|
-
remote_updated_at: 2020-03-31T00:00Z
|
|
34
|
+
remote_updated_at: 2020-03-31T00:00Z,
|
|
35
|
+
remote_was_deleted: null
|
|
34
36
|
)
|
|
35
37
|
```
|
|
36
38
|
|
data/docs/JournalEntry.md
CHANGED
|
@@ -10,8 +10,10 @@
|
|
|
10
10
|
| **transaction_date** | **Time** | The journal entry's transaction date. | [optional] |
|
|
11
11
|
| **remote_created_at** | **Time** | When the third party's journal entry was created. | [optional] |
|
|
12
12
|
| **payments** | **Array<String>** | Array of `Payment` object IDs. | [optional] |
|
|
13
|
-
| **lines** | [**Array<JournalLine>**](JournalLine.md) | | [optional][readonly] |
|
|
14
13
|
| **memo** | **String** | The journal entry's private note. | [optional] |
|
|
14
|
+
| **currency** | [**CurrencyEnum**](CurrencyEnum.md) | The journal's currency. | [optional] |
|
|
15
|
+
| **lines** | [**Array<JournalLine>**](JournalLine.md) | | [optional][readonly] |
|
|
16
|
+
| **remote_was_deleted** | **Boolean** | | [optional][readonly] |
|
|
15
17
|
|
|
16
18
|
## Example
|
|
17
19
|
|
|
@@ -25,8 +27,10 @@ instance = MergeAccountingClient::JournalEntry.new(
|
|
|
25
27
|
transaction_date: 2020-03-31T00:00Z,
|
|
26
28
|
remote_created_at: 2020-03-31T00:00Z,
|
|
27
29
|
payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"],
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
memo: Weekly Payment,
|
|
31
|
+
currency: USD,
|
|
32
|
+
lines: [{"remote_id":"121222","contact":"d2d5ea3c-b032-11ec-b909-0242ac120002","account":"9d892439-5fab-4dbb-8bd8-34f7f96c7912","net_amount":25.54,"description":"Cash payment for lunch"},{"remote_id":"121223","account":"f963f34d-3d2f-4f77-b557-cf36bc7e6498","net_amount":10.0}],
|
|
33
|
+
remote_was_deleted: null
|
|
30
34
|
)
|
|
31
35
|
```
|
|
32
36
|
|
data/docs/JournalEntryRequest.md
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
| **remote_created_at** | **Time** | When the third party's journal entry was created. | [optional] |
|
|
10
10
|
| **payments** | **Array<String>** | Array of `Payment` object IDs. | [optional] |
|
|
11
11
|
| **memo** | **String** | The journal entry's private note. | [optional] |
|
|
12
|
+
| **currency** | [**CurrencyEnum**](CurrencyEnum.md) | The journal's currency. | [optional] |
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,7 +21,8 @@ instance = MergeAccountingClient::JournalEntryRequest.new(
|
|
|
20
21
|
transaction_date: 2020-03-31T00:00Z,
|
|
21
22
|
remote_created_at: 2020-03-31T00:00Z,
|
|
22
23
|
payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"],
|
|
23
|
-
memo: Weekly Payment
|
|
24
|
+
memo: Weekly Payment,
|
|
25
|
+
currency: USD
|
|
24
26
|
)
|
|
25
27
|
```
|
|
26
28
|
|
data/docs/JournalLine.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
| **account** | **String** | | [optional] |
|
|
9
9
|
| **net_amount** | **Float** | The line's net amount. | [optional] |
|
|
10
10
|
| **tracking_category** | **String** | | [optional] |
|
|
11
|
+
| **contact** | **String** | | [optional] |
|
|
11
12
|
| **description** | **String** | The line's description. | [optional] |
|
|
12
13
|
|
|
13
14
|
## Example
|
|
@@ -20,6 +21,7 @@ instance = MergeAccountingClient::JournalLine.new(
|
|
|
20
21
|
account: 9d892439-5fab-4dbb-8bd8-34f7f96c7912,
|
|
21
22
|
net_amount: 25.54,
|
|
22
23
|
tracking_category: d25d609b-945f-4762-b55a-1c8fb220c43c,
|
|
24
|
+
contact: d2d5ea3c-b032-11ec-b909-0242ac120002,
|
|
23
25
|
description: Cash payment for lunch
|
|
24
26
|
)
|
|
25
27
|
```
|
data/docs/JournalLineRequest.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
| **account** | **String** | | [optional] |
|
|
9
9
|
| **net_amount** | **Float** | The line's net amount. | [optional] |
|
|
10
10
|
| **tracking_category** | **String** | | [optional] |
|
|
11
|
+
| **contact** | **String** | | [optional] |
|
|
11
12
|
| **description** | **String** | The line's description. | [optional] |
|
|
12
13
|
|
|
13
14
|
## Example
|
|
@@ -20,6 +21,7 @@ instance = MergeAccountingClient::JournalLineRequest.new(
|
|
|
20
21
|
account: 9d892439-5fab-4dbb-8bd8-34f7f96c7912,
|
|
21
22
|
net_amount: 25.54,
|
|
22
23
|
tracking_category: d25d609b-945f-4762-b55a-1c8fb220c43c,
|
|
24
|
+
contact: d2d5ea3c-b032-11ec-b909-0242ac120002,
|
|
23
25
|
description: Cash payment for lunch
|
|
24
26
|
)
|
|
25
27
|
```
|
data/docs/LinkedAccountsApi.md
CHANGED
|
@@ -32,14 +32,14 @@ api_instance = MergeAccountingClient::LinkedAccountsApi.new
|
|
|
32
32
|
opts = {
|
|
33
33
|
category: 'accounting', # String |
|
|
34
34
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
|
35
|
-
end_user_email_address: 'end_user_email_address_example', # String |
|
|
36
|
-
end_user_organization_name: 'end_user_organization_name_example', # String |
|
|
37
|
-
end_user_origin_id: 'end_user_origin_id_example', # String |
|
|
38
|
-
end_user_origin_ids: 'end_user_origin_ids_example', # String | Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once
|
|
35
|
+
end_user_email_address: 'end_user_email_address_example', # String | If provided, will only return linked accounts associated with the given email address.
|
|
36
|
+
end_user_organization_name: 'end_user_organization_name_example', # String | If provided, will only return linked accounts associated with the given organization name.
|
|
37
|
+
end_user_origin_id: 'end_user_origin_id_example', # String | If provided, will only return linked accounts associated with the given origin ID.
|
|
38
|
+
end_user_origin_ids: 'end_user_origin_ids_example', # String | Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
|
|
39
39
|
id: TODO, # String |
|
|
40
|
-
ids: 'ids_example', # String | Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once
|
|
41
|
-
integration_name: 'integration_name_example', # String |
|
|
42
|
-
is_test_account: 'is_test_account_example', # String | If included, will only include test linked accounts. If not included, will only include non-test linked accounts
|
|
40
|
+
ids: 'ids_example', # String | Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
|
|
41
|
+
integration_name: 'integration_name_example', # String | If provided, will only return linked accounts associated with the given integration name.
|
|
42
|
+
is_test_account: 'is_test_account_example', # String | If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
|
|
43
43
|
page_size: 56, # Integer | Number of results to return per page.
|
|
44
44
|
status: 'status_example' # String | Filter by status. Options: `COMPLETE`, `INCOMPLETE`, `RELINK_NEEDED`
|
|
45
45
|
}
|
|
@@ -77,14 +77,14 @@ end
|
|
|
77
77
|
| ---- | ---- | ----------- | ----- |
|
|
78
78
|
| **category** | **String** | | [optional] |
|
|
79
79
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
|
80
|
-
| **end_user_email_address** | **String** |
|
|
81
|
-
| **end_user_organization_name** | **String** |
|
|
82
|
-
| **end_user_origin_id** | **String** |
|
|
83
|
-
| **end_user_origin_ids** | **String** | Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once | [optional] |
|
|
80
|
+
| **end_user_email_address** | **String** | If provided, will only return linked accounts associated with the given email address. | [optional] |
|
|
81
|
+
| **end_user_organization_name** | **String** | If provided, will only return linked accounts associated with the given organization name. | [optional] |
|
|
82
|
+
| **end_user_origin_id** | **String** | If provided, will only return linked accounts associated with the given origin ID. | [optional] |
|
|
83
|
+
| **end_user_origin_ids** | **String** | Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once. | [optional] |
|
|
84
84
|
| **id** | [**String**](.md) | | [optional] |
|
|
85
|
-
| **ids** | **String** | Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once | [optional] |
|
|
86
|
-
| **integration_name** | **String** |
|
|
87
|
-
| **is_test_account** | **String** | If included, will only include test linked accounts. If not included, will only include non-test linked accounts | [optional] |
|
|
85
|
+
| **ids** | **String** | Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once. | [optional] |
|
|
86
|
+
| **integration_name** | **String** | If provided, will only return linked accounts associated with the given integration name. | [optional] |
|
|
87
|
+
| **is_test_account** | **String** | If included, will only include test linked accounts. If not included, will only include non-test linked accounts. | [optional] |
|
|
88
88
|
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
|
89
89
|
| **status** | **String** | Filter by status. Options: `COMPLETE`, `INCOMPLETE`, `RELINK_NEEDED` | [optional] |
|
|
90
90
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# MergeAccountingClient::PaginatedVendorCreditList
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **_next** | **String** | | [optional] |
|
|
8
|
+
| **previous** | **String** | | [optional] |
|
|
9
|
+
| **results** | [**Array<VendorCredit>**](VendorCredit.md) | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'merge_accounting_client'
|
|
15
|
+
|
|
16
|
+
instance = MergeAccountingClient::PaginatedVendorCreditList.new(
|
|
17
|
+
_next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw,
|
|
18
|
+
previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ,
|
|
19
|
+
results: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/Payment.md
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
| **account** | **String** | | [optional] |
|
|
13
13
|
| **total_amount** | **Float** | The payment's total amount. | [optional] |
|
|
14
14
|
| **remote_updated_at** | **Time** | When the third party's payment entry was updated. | [optional] |
|
|
15
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,7 +27,8 @@ instance = MergeAccountingClient::Payment.new(
|
|
|
26
27
|
contact: 5b3c1341-a20f-4e51-b72c-f3830a16c97b,
|
|
27
28
|
account: d6e687d6-0c36-48a1-8114-35324b5cb38f,
|
|
28
29
|
total_amount: 50.0,
|
|
29
|
-
remote_updated_at: 2020-03-31T00:00Z
|
|
30
|
+
remote_updated_at: 2020-03-31T00:00Z,
|
|
31
|
+
remote_was_deleted: null
|
|
30
32
|
)
|
|
31
33
|
```
|
|
32
34
|
|
data/docs/PurchaseOrder.md
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
| **line_items** | [**Array<PurchaseOrderLineItem>**](PurchaseOrderLineItem.md) | | [optional][readonly] |
|
|
17
17
|
| **remote_created_at** | **Time** | When the third party's purchase order note was created. | [optional] |
|
|
18
18
|
| **remote_updated_at** | **Time** | When the third party's purchase order note was updated. | [optional] |
|
|
19
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
19
20
|
|
|
20
21
|
## Example
|
|
21
22
|
|
|
@@ -34,7 +35,8 @@ instance = MergeAccountingClient::PurchaseOrder.new(
|
|
|
34
35
|
currency: USD,
|
|
35
36
|
line_items: [{"description":"Pickleball paddles","unit_price":25.0,"quantity":10.0,"item":"0958cbc6-6040-430a-848e-aafacbadf4ae"},{"description":"Pickleball Balls","unit_price":1.0,"quantity":10.0,"item":"249c9faa-3045-4a31-953b-8f22d3613301"}],
|
|
36
37
|
remote_created_at: 2020-03-31T00:00Z,
|
|
37
|
-
remote_updated_at: 2020-03-31T00:00Z
|
|
38
|
+
remote_updated_at: 2020-03-31T00:00Z,
|
|
39
|
+
remote_was_deleted: null
|
|
38
40
|
)
|
|
39
41
|
```
|
|
40
42
|
|
data/docs/TaxRate.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
| **description** | **String** | The tax rate's description. | [optional] |
|
|
11
11
|
| **total_tax_rate** | **Float** | The tax rate's total tax rate. | [optional] |
|
|
12
12
|
| **effective_tax_rate** | **Float** | The tax rate's effective tax rate. | [optional] |
|
|
13
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
@@ -22,7 +23,8 @@ instance = MergeAccountingClient::TaxRate.new(
|
|
|
22
23
|
remote_data: [{"path":"/actions","data":["Varies by platform"]}],
|
|
23
24
|
description: Sales Tax,
|
|
24
25
|
total_tax_rate: 15.0,
|
|
25
|
-
effective_tax_rate: 15.0
|
|
26
|
+
effective_tax_rate: 15.0,
|
|
27
|
+
remote_was_deleted: null
|
|
26
28
|
)
|
|
27
29
|
```
|
|
28
30
|
|
data/docs/TrackingCategory.md
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
|
10
10
|
| **name** | **String** | The tracking category's name. | [optional] |
|
|
11
11
|
| **status** | [**Status7d1Enum**](Status7d1Enum.md) | The tracking category's status. | [optional] |
|
|
12
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,7 +21,8 @@ instance = MergeAccountingClient::TrackingCategory.new(
|
|
|
20
21
|
remote_id: 948201,
|
|
21
22
|
remote_data: [{"path":"/actions","data":["Varies by platform"]}],
|
|
22
23
|
name: Marketing Department,
|
|
23
|
-
status: ACTIVE
|
|
24
|
+
status: ACTIVE,
|
|
25
|
+
remote_was_deleted: null
|
|
24
26
|
)
|
|
25
27
|
```
|
|
26
28
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# MergeAccountingClient::VendorCredit
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional][readonly] |
|
|
8
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
|
9
|
+
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
|
10
|
+
| **number** | **String** | The vendor credit's number. | [optional] |
|
|
11
|
+
| **transaction_date** | **Time** | The vendor credit's transaction date. | [optional] |
|
|
12
|
+
| **vendor** | **String** | | [optional] |
|
|
13
|
+
| **total_amount** | **Float** | The vendor credit's total amount. | [optional] |
|
|
14
|
+
| **currency** | [**CurrencyEnum**](CurrencyEnum.md) | The vendor credit's currency. | [optional] |
|
|
15
|
+
| **lines** | [**Array<VendorCreditLine>**](VendorCreditLine.md) | | [optional][readonly] |
|
|
16
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted on the third-party. | [optional][readonly] |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'merge_accounting_client'
|
|
22
|
+
|
|
23
|
+
instance = MergeAccountingClient::VendorCredit.new(
|
|
24
|
+
id: ecbe05ac-62a3-46c5-ab31-4b478b37d1b4,
|
|
25
|
+
remote_id: 088899,
|
|
26
|
+
remote_data: [{"path":"/actions","data":["Varies by platform"]}],
|
|
27
|
+
number: 6,
|
|
28
|
+
transaction_date: 2020-03-31T00:00Z,
|
|
29
|
+
vendor: 3d263469-51a1-4766-9205-f6c997826be1,
|
|
30
|
+
total_amount: 10000,
|
|
31
|
+
currency: USD,
|
|
32
|
+
lines: [{"remote_id":"121222","net_amount":25.54,"tracking_category":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","description":"Gifted Merge Credit","account":"9d892439-5fab-4dbb-8bd8-34f7f96c7912"},{"remote_id":"121223","net_amount":10,"tracking_category":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","description":"Refund for overpayment","account":"9d892439-5fab-4dbb-8bd8-34f7f96c7912"}],
|
|
33
|
+
remote_was_deleted: null
|
|
34
|
+
)
|
|
35
|
+
```
|
|
36
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# MergeAccountingClient::VendorCreditLine
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
|
8
|
+
| **net_amount** | **Float** | The line's net amount. | [optional] |
|
|
9
|
+
| **tracking_category** | **String** | The line's associated tracking category. | [optional] |
|
|
10
|
+
| **description** | **String** | The line's description. | [optional] |
|
|
11
|
+
| **account** | **String** | The line's account. | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'merge_accounting_client'
|
|
17
|
+
|
|
18
|
+
instance = MergeAccountingClient::VendorCreditLine.new(
|
|
19
|
+
remote_id: 121222,
|
|
20
|
+
net_amount: 25.54,
|
|
21
|
+
tracking_category: b38c59b0-a9d7-4740-b1ee-5436c6751e3d,
|
|
22
|
+
description: Gifted Merge Credit,
|
|
23
|
+
account: 9d892439-5fab-4dbb-8bd8-34f7f96c7912
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|