merge_accounting_client 1.0.6 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +224 -229
- data/docs/CreditNote.md +1 -1
- data/docs/CreditNoteLineItem.md +1 -1
- data/docs/Expense.md +1 -1
- data/docs/ExpenseLine.md +4 -2
- data/docs/ExpenseLineRequest.md +4 -2
- data/docs/ExpenseRequest.md +1 -1
- data/docs/Invoice.md +1 -1
- data/docs/InvoiceLineItem.md +2 -2
- data/docs/InvoiceLineItemRequest.md +2 -2
- data/docs/InvoiceRequest.md +18 -18
- data/docs/JournalEntry.md +2 -2
- data/docs/JournalEntryRequest.md +10 -10
- data/docs/JournalLine.md +4 -2
- data/docs/JournalLineRequest.md +4 -2
- data/docs/PurchaseOrder.md +2 -2
- data/docs/PurchaseOrderLineItem.md +2 -0
- data/docs/PurchaseOrderLineItemRequest.md +2 -0
- data/docs/PurchaseOrderRequest.md +12 -12
- data/docs/SyncStatusApi.md +11 -15
- data/docs/Transaction.md +4 -2
- data/docs/TransactionLineItem.md +2 -0
- data/docs/VendorCredit.md +2 -2
- data/docs/VendorCreditLine.md +3 -1
- data/lib/merge_accounting_client/api/sync_status_api.rb +2 -2
- data/lib/merge_accounting_client/api/transactions_api.rb +2 -2
- data/lib/merge_accounting_client/models/account_integration.rb +3 -3
- data/lib/merge_accounting_client/models/credit_note_line_item.rb +9 -9
- data/lib/merge_accounting_client/models/expense.rb +3 -3
- data/lib/merge_accounting_client/models/expense_line.rb +37 -9
- data/lib/merge_accounting_client/models/expense_line_request.rb +37 -9
- data/lib/merge_accounting_client/models/expense_request.rb +3 -3
- data/lib/merge_accounting_client/models/invoice.rb +3 -3
- data/lib/merge_accounting_client/models/invoice_line_item.rb +15 -15
- data/lib/merge_accounting_client/models/invoice_line_item_request.rb +15 -15
- data/lib/merge_accounting_client/models/invoice_request.rb +3 -3
- data/lib/merge_accounting_client/models/journal_entry.rb +3 -3
- data/lib/merge_accounting_client/models/journal_entry_request.rb +3 -3
- data/lib/merge_accounting_client/models/journal_line.rb +37 -9
- data/lib/merge_accounting_client/models/journal_line_request.rb +37 -9
- data/lib/merge_accounting_client/models/payment.rb +3 -3
- data/lib/merge_accounting_client/models/payment_request.rb +3 -3
- data/lib/merge_accounting_client/models/purchase_order.rb +3 -3
- data/lib/merge_accounting_client/models/purchase_order_line_item.rb +21 -10
- data/lib/merge_accounting_client/models/purchase_order_line_item_request.rb +21 -10
- data/lib/merge_accounting_client/models/purchase_order_request.rb +3 -3
- data/lib/merge_accounting_client/models/sync_status_status_enum.rb +2 -1
- data/lib/merge_accounting_client/models/transaction.rb +18 -7
- data/lib/merge_accounting_client/models/transaction_line_item.rb +24 -13
- data/lib/merge_accounting_client/models/vendor_credit.rb +3 -3
- data/lib/merge_accounting_client/models/vendor_credit_line.rb +33 -5
- data/lib/merge_accounting_client/version.rb +1 -1
- data/spec/api/sync_status_api_spec.rb +1 -1
- data/spec/models/expense_line_request_spec.rb +7 -1
- data/spec/models/expense_line_spec.rb +7 -1
- data/spec/models/invoice_line_item_request_spec.rb +6 -6
- data/spec/models/invoice_line_item_spec.rb +6 -6
- data/spec/models/journal_line_request_spec.rb +7 -1
- data/spec/models/journal_line_spec.rb +7 -1
- data/spec/models/purchase_order_line_item_request_spec.rb +6 -0
- data/spec/models/purchase_order_line_item_spec.rb +6 -0
- data/spec/models/transaction_line_item_spec.rb +6 -0
- data/spec/models/transaction_spec.rb +6 -0
- data/spec/models/vendor_credit_line_spec.rb +6 -0
- metadata +146 -146
data/docs/ExpenseLine.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
7
8
|
| **item** | **String** | The line's item. | [optional] |
|
8
9
|
| **net_amount** | **Float** | The line's net amount. | [optional] |
|
9
10
|
| **tracking_category** | **String** | | [optional] |
|
@@ -12,7 +13,7 @@
|
|
12
13
|
| **account** | **String** | The expense's payment account. | [optional] |
|
13
14
|
| **contact** | **String** | The expense's contact. | [optional] |
|
14
15
|
| **description** | **String** | The description of the item that was purchased by the company. | [optional] |
|
15
|
-
| **
|
16
|
+
| **exchange_rate** | **String** | The expense line item's exchange rate. | [optional] |
|
16
17
|
|
17
18
|
## Example
|
18
19
|
|
@@ -20,6 +21,7 @@
|
|
20
21
|
require 'merge_accounting_client'
|
21
22
|
|
22
23
|
instance = MergeAccountingClient::ExpenseLine.new(
|
24
|
+
remote_id: 121222,
|
23
25
|
item: b38c59b0-a9d7-4740-b1ee-5436c6751e3d,
|
24
26
|
net_amount: 25.54,
|
25
27
|
tracking_category: b38c59b0-a9d7-4740-b1ee-5436c6751e3d,
|
@@ -28,7 +30,7 @@ instance = MergeAccountingClient::ExpenseLine.new(
|
|
28
30
|
account: 2a56344a-a491-11ec-b909-0242ac120002,
|
29
31
|
contact: c640b80b-fac9-409f-aa19-1f9221aec445,
|
30
32
|
description: MacBook Pro,
|
31
|
-
|
33
|
+
exchange_rate: 2.9
|
32
34
|
)
|
33
35
|
```
|
34
36
|
|
data/docs/ExpenseLineRequest.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
7
8
|
| **item** | **String** | The line's item. | [optional] |
|
8
9
|
| **net_amount** | **Float** | The line's net amount. | [optional] |
|
9
10
|
| **tracking_category** | **String** | | [optional] |
|
@@ -12,7 +13,7 @@
|
|
12
13
|
| **account** | **String** | The expense's payment account. | [optional] |
|
13
14
|
| **contact** | **String** | The expense's contact. | [optional] |
|
14
15
|
| **description** | **String** | The description of the item that was purchased by the company. | [optional] |
|
15
|
-
| **
|
16
|
+
| **exchange_rate** | **String** | The expense line item's exchange rate. | [optional] |
|
16
17
|
| **integration_params** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
|
17
18
|
| **linked_account_params** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
|
18
19
|
|
@@ -22,6 +23,7 @@
|
|
22
23
|
require 'merge_accounting_client'
|
23
24
|
|
24
25
|
instance = MergeAccountingClient::ExpenseLineRequest.new(
|
26
|
+
remote_id: 121222,
|
25
27
|
item: b38c59b0-a9d7-4740-b1ee-5436c6751e3d,
|
26
28
|
net_amount: 25.54,
|
27
29
|
tracking_category: b38c59b0-a9d7-4740-b1ee-5436c6751e3d,
|
@@ -30,7 +32,7 @@ instance = MergeAccountingClient::ExpenseLineRequest.new(
|
|
30
32
|
account: 2a56344a-a491-11ec-b909-0242ac120002,
|
31
33
|
contact: c640b80b-fac9-409f-aa19-1f9221aec445,
|
32
34
|
description: MacBook Pro,
|
33
|
-
|
35
|
+
exchange_rate: 2.9,
|
34
36
|
integration_params: {"unique_integration_field":"unique_integration_field_value"},
|
35
37
|
linked_account_params: {"unique_linked_account_field":"unique_linked_account_field_value"}
|
36
38
|
)
|
data/docs/ExpenseRequest.md
CHANGED
@@ -30,7 +30,7 @@ instance = MergeAccountingClient::ExpenseRequest.new(
|
|
30
30
|
exchange_rate: 2.9,
|
31
31
|
company: 595c8f97-2ac4-45b7-b000-41bdf43240b5,
|
32
32
|
memo: New employee supplies,
|
33
|
-
lines: [{"remote_id":"121222","net_amount":25.54,"tracking_category":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","tracking_categories":["b38c59b0-a9d7-4740-b1ee-5436c6751e3d","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],"company":"595c8f97-2ac4-45b7-b000-41bdf43240b5","item":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","account":"2a56344a-a491-11ec-b909-0242ac120002","contact":"c640b80b-fac9-409f-aa19-1f9221aec445","description":"MacBook Pro"},{"remote_id":"121223","net_amount":10,"tracking_category":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","tracking_categories":["b38c59b0-a9d7-4740-b1ee-5436c6751e3d","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],"item":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","account":"2a56344a-a491-11ec-b909-0242ac120002","description":"Desk Lamp"}],
|
33
|
+
lines: [{"remote_id":"121222","net_amount":25.54,"tracking_category":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","tracking_categories":["b38c59b0-a9d7-4740-b1ee-5436c6751e3d","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],"company":"595c8f97-2ac4-45b7-b000-41bdf43240b5","item":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","account":"2a56344a-a491-11ec-b909-0242ac120002","contact":"c640b80b-fac9-409f-aa19-1f9221aec445","description":"MacBook Pro","exchange_rate":"2.9"},{"remote_id":"121223","net_amount":10,"tracking_category":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","tracking_categories":["b38c59b0-a9d7-4740-b1ee-5436c6751e3d","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],"item":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","account":"2a56344a-a491-11ec-b909-0242ac120002","description":"Desk Lamp"}],
|
34
34
|
integration_params: {"unique_integration_field":"unique_integration_field_value"},
|
35
35
|
linked_account_params: {"unique_linked_account_field":"unique_linked_account_field_value"}
|
36
36
|
)
|
data/docs/Invoice.md
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
| **balance** | **Float** | The invoice's remaining balance. | [optional] |
|
22
22
|
| **remote_updated_at** | **Time** | When the third party's invoice entry was updated. | [optional] |
|
23
23
|
| **payments** | **Array<String>** | Array of `Payment` object IDs. | [optional] |
|
24
|
-
| **line_items** | [**Array<InvoiceLineItem>**](InvoiceLineItem.md) | | [optional] |
|
24
|
+
| **line_items** | [**Array<InvoiceLineItem>**](InvoiceLineItem.md) | | [optional][readonly] |
|
25
25
|
| **remote_was_deleted** | **Boolean** | | [optional][readonly] |
|
26
26
|
| **id** | **String** | | [optional][readonly] |
|
27
27
|
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
data/docs/InvoiceLineItem.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
7
8
|
| **description** | **String** | The line item's description. | [optional] |
|
8
9
|
| **unit_price** | **Float** | The line item's unit price. | [optional] |
|
9
10
|
| **quantity** | **Float** | The line item's quantity. | [optional] |
|
@@ -16,7 +17,6 @@
|
|
16
17
|
| **tracking_categories** | **Array<String>** | | [optional] |
|
17
18
|
| **company** | **String** | The company the line item belongs to. | [optional] |
|
18
19
|
| **id** | **String** | | [optional][readonly] |
|
19
|
-
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
20
20
|
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
21
21
|
|
22
22
|
## Example
|
@@ -25,6 +25,7 @@
|
|
25
25
|
require 'merge_accounting_client'
|
26
26
|
|
27
27
|
instance = MergeAccountingClient::InvoiceLineItem.new(
|
28
|
+
remote_id: 8765432,
|
28
29
|
description: Pickleball lessons,
|
29
30
|
unit_price: 50.0,
|
30
31
|
quantity: 1.0,
|
@@ -37,7 +38,6 @@ instance = MergeAccountingClient::InvoiceLineItem.new(
|
|
37
38
|
tracking_categories: ["b38c59b0-a9d7-4740-b1ee-5436c6751e3d","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],
|
38
39
|
company: 595c8f97-2ac4-45b7-b000-41bdf43240b5,
|
39
40
|
id: 022a2bef-57e5-4def-8ed2-7c41bd9a5ed8,
|
40
|
-
remote_id: 8765432,
|
41
41
|
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}}
|
42
42
|
)
|
43
43
|
```
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
7
8
|
| **description** | **String** | The line item's description. | [optional] |
|
8
9
|
| **unit_price** | **Float** | The line item's unit price. | [optional] |
|
9
10
|
| **quantity** | **Float** | The line item's quantity. | [optional] |
|
@@ -15,7 +16,6 @@
|
|
15
16
|
| **tracking_category** | **String** | | [optional] |
|
16
17
|
| **tracking_categories** | **Array<String>** | | [optional] |
|
17
18
|
| **company** | **String** | The company the line item belongs to. | [optional] |
|
18
|
-
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
19
19
|
| **integration_params** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
|
20
20
|
| **linked_account_params** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
|
21
21
|
|
@@ -25,6 +25,7 @@
|
|
25
25
|
require 'merge_accounting_client'
|
26
26
|
|
27
27
|
instance = MergeAccountingClient::InvoiceLineItemRequest.new(
|
28
|
+
remote_id: 8765432,
|
28
29
|
description: Pickleball lessons,
|
29
30
|
unit_price: 50.0,
|
30
31
|
quantity: 1.0,
|
@@ -36,7 +37,6 @@ instance = MergeAccountingClient::InvoiceLineItemRequest.new(
|
|
36
37
|
tracking_category: b38c59b0-a9d7-4740-b1ee-5436c6751e3d,
|
37
38
|
tracking_categories: ["b38c59b0-a9d7-4740-b1ee-5436c6751e3d","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],
|
38
39
|
company: 595c8f97-2ac4-45b7-b000-41bdf43240b5,
|
39
|
-
remote_id: 8765432,
|
40
40
|
integration_params: {"unique_integration_field":"unique_integration_field_value"},
|
41
41
|
linked_account_params: {"unique_linked_account_field":"unique_linked_account_field_value"}
|
42
42
|
)
|
data/docs/InvoiceRequest.md
CHANGED
@@ -30,25 +30,25 @@
|
|
30
30
|
require 'merge_accounting_client'
|
31
31
|
|
32
32
|
instance = MergeAccountingClient::InvoiceRequest.new(
|
33
|
-
type:
|
34
|
-
contact:
|
35
|
-
number:
|
36
|
-
issue_date:
|
37
|
-
due_date:
|
38
|
-
paid_on_date:
|
39
|
-
memo:
|
40
|
-
company:
|
41
|
-
currency:
|
42
|
-
exchange_rate:
|
33
|
+
type: null,
|
34
|
+
contact: null,
|
35
|
+
number: null,
|
36
|
+
issue_date: null,
|
37
|
+
due_date: null,
|
38
|
+
paid_on_date: null,
|
39
|
+
memo: null,
|
40
|
+
company: null,
|
41
|
+
currency: null,
|
42
|
+
exchange_rate: null,
|
43
43
|
total_discount: null,
|
44
|
-
sub_total:
|
45
|
-
total_tax_amount:
|
46
|
-
total_amount:
|
47
|
-
balance:
|
48
|
-
payments:
|
49
|
-
line_items:
|
50
|
-
integration_params:
|
51
|
-
linked_account_params:
|
44
|
+
sub_total: null,
|
45
|
+
total_tax_amount: null,
|
46
|
+
total_amount: null,
|
47
|
+
balance: null,
|
48
|
+
payments: null,
|
49
|
+
line_items: null,
|
50
|
+
integration_params: null,
|
51
|
+
linked_account_params: null
|
52
52
|
)
|
53
53
|
```
|
54
54
|
|
data/docs/JournalEntry.md
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
| **currency** | [**CurrencyEnum**](CurrencyEnum.md) | The journal's currency. * `XUA` - ADB Unit of Account * `AFN` - Afghan Afghani * `AFA` - Afghan Afghani (1927–2002) * `ALL` - Albanian Lek * `ALK` - Albanian Lek (1946–1965) * `DZD` - Algerian Dinar * `ADP` - Andorran Peseta * `AOA` - Angolan Kwanza * `AOK` - Angolan Kwanza (1977–1991) * `AON` - Angolan New Kwanza (1990–2000) * `AOR` - Angolan Readjusted Kwanza (1995–1999) * `ARA` - Argentine Austral * `ARS` - Argentine Peso * `ARM` - Argentine Peso (1881–1970) * `ARP` - Argentine Peso (1983–1985) * `ARL` - Argentine Peso Ley (1970–1983) * `AMD` - Armenian Dram * `AWG` - Aruban Florin * `AUD` - Australian Dollar * `ATS` - Austrian Schilling * `AZN` - Azerbaijani Manat * `AZM` - Azerbaijani Manat (1993–2006) * `BSD` - Bahamian Dollar * `BHD` - Bahraini Dinar * `BDT` - Bangladeshi Taka * `BBD` - Barbadian Dollar * `BYN` - Belarusian Ruble * `BYB` - Belarusian Ruble (1994–1999) * `BYR` - Belarusian Ruble (2000–2016) * `BEF` - Belgian Franc * `BEC` - Belgian Franc (convertible) * `BEL` - Belgian Franc (financial) * `BZD` - Belize Dollar * `BMD` - Bermudan Dollar * `BTN` - Bhutanese Ngultrum * `BOB` - Bolivian Boliviano * `BOL` - Bolivian Boliviano (1863–1963) * `BOV` - Bolivian Mvdol * `BOP` - Bolivian Peso * `BAM` - Bosnia-Herzegovina Convertible Mark * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) * `BWP` - Botswanan Pula * `BRC` - Brazilian Cruzado (1986–1989) * `BRZ` - Brazilian Cruzeiro (1942–1967) * `BRE` - Brazilian Cruzeiro (1990–1993) * `BRR` - Brazilian Cruzeiro (1993–1994) * `BRN` - Brazilian New Cruzado (1989–1990) * `BRB` - Brazilian New Cruzeiro (1967–1986) * `BRL` - Brazilian Real * `GBP` - British Pound * `BND` - Brunei Dollar * `BGL` - Bulgarian Hard Lev * `BGN` - Bulgarian Lev * `BGO` - Bulgarian Lev (1879–1952) * `BGM` - Bulgarian Socialist Lev * `BUK` - Burmese Kyat * `BIF` - Burundian Franc * `XPF` - CFP Franc * `KHR` - Cambodian Riel * `CAD` - Canadian Dollar * `CVE` - Cape Verdean Escudo * `KYD` - Cayman Islands Dollar * `XAF` - Central African CFA Franc * `CLE` - Chilean Escudo * `CLP` - Chilean Peso * `CLF` - Chilean Unit of Account (UF) * `CNX` - Chinese People’s Bank Dollar * `CNY` - Chinese Yuan * `CNH` - Chinese Yuan (offshore) * `COP` - Colombian Peso * `COU` - Colombian Real Value Unit * `KMF` - Comorian Franc * `CDF` - Congolese Franc * `CRC` - Costa Rican Colón * `HRD` - Croatian Dinar * `HRK` - Croatian Kuna * `CUC` - Cuban Convertible Peso * `CUP` - Cuban Peso * `CYP` - Cypriot Pound * `CZK` - Czech Koruna * `CSK` - Czechoslovak Hard Koruna * `DKK` - Danish Krone * `DJF` - Djiboutian Franc * `DOP` - Dominican Peso * `NLG` - Dutch Guilder * `XCD` - East Caribbean Dollar * `DDM` - East German Mark * `ECS` - Ecuadorian Sucre * `ECV` - Ecuadorian Unit of Constant Value * `EGP` - Egyptian Pound * `GQE` - Equatorial Guinean Ekwele * `ERN` - Eritrean Nakfa * `EEK` - Estonian Kroon * `ETB` - Ethiopian Birr * `EUR` - Euro * `XBA` - European Composite Unit * `XEU` - European Currency Unit * `XBB` - European Monetary Unit * `XBC` - European Unit of Account (XBC) * `XBD` - European Unit of Account (XBD) * `FKP` - Falkland Islands Pound * `FJD` - Fijian Dollar * `FIM` - Finnish Markka * `FRF` - French Franc * `XFO` - French Gold Franc * `XFU` - French UIC-Franc * `GMD` - Gambian Dalasi * `GEK` - Georgian Kupon Larit * `GEL` - Georgian Lari * `DEM` - German Mark * `GHS` - Ghanaian Cedi * `GHC` - Ghanaian Cedi (1979–2007) * `GIP` - Gibraltar Pound * `XAU` - Gold * `GRD` - Greek Drachma * `GTQ` - Guatemalan Quetzal * `GWP` - Guinea-Bissau Peso * `GNF` - Guinean Franc * `GNS` - Guinean Syli * `GYD` - Guyanaese Dollar * `HTG` - Haitian Gourde * `HNL` - Honduran Lempira * `HKD` - Hong Kong Dollar * `HUF` - Hungarian Forint * `IMP` - IMP * `ISK` - Icelandic Króna * `ISJ` - Icelandic Króna (1918–1981) * `INR` - Indian Rupee * `IDR` - Indonesian Rupiah * `IRR` - Iranian Rial * `IQD` - Iraqi Dinar * `IEP` - Irish Pound * `ILS` - Israeli New Shekel * `ILP` - Israeli Pound * `ILR` - Israeli Shekel (1980–1985) * `ITL` - Italian Lira * `JMD` - Jamaican Dollar * `JPY` - Japanese Yen * `JOD` - Jordanian Dinar * `KZT` - Kazakhstani Tenge * `KES` - Kenyan Shilling * `KWD` - Kuwaiti Dinar * `KGS` - Kyrgystani Som * `LAK` - Laotian Kip * `LVL` - Latvian Lats * `LVR` - Latvian Ruble * `LBP` - Lebanese Pound * `LSL` - Lesotho Loti * `LRD` - Liberian Dollar * `LYD` - Libyan Dinar * `LTL` - Lithuanian Litas * `LTT` - Lithuanian Talonas * `LUL` - Luxembourg Financial Franc * `LUC` - Luxembourgian Convertible Franc * `LUF` - Luxembourgian Franc * `MOP` - Macanese Pataca * `MKD` - Macedonian Denar * `MKN` - Macedonian Denar (1992–1993) * `MGA` - Malagasy Ariary * `MGF` - Malagasy Franc * `MWK` - Malawian Kwacha * `MYR` - Malaysian Ringgit * `MVR` - Maldivian Rufiyaa * `MVP` - Maldivian Rupee (1947–1981) * `MLF` - Malian Franc * `MTL` - Maltese Lira * `MTP` - Maltese Pound * `MRU` - Mauritanian Ouguiya * `MRO` - Mauritanian Ouguiya (1973–2017) * `MUR` - Mauritian Rupee * `MXV` - Mexican Investment Unit * `MXN` - Mexican Peso * `MXP` - Mexican Silver Peso (1861–1992) * `MDC` - Moldovan Cupon * `MDL` - Moldovan Leu * `MCF` - Monegasque Franc * `MNT` - Mongolian Tugrik * `MAD` - Moroccan Dirham * `MAF` - Moroccan Franc * `MZE` - Mozambican Escudo * `MZN` - Mozambican Metical * `MZM` - Mozambican Metical (1980–2006) * `MMK` - Myanmar Kyat * `NAD` - Namibian Dollar * `NPR` - Nepalese Rupee * `ANG` - Netherlands Antillean Guilder * `TWD` - New Taiwan Dollar * `NZD` - New Zealand Dollar * `NIO` - Nicaraguan Córdoba * `NIC` - Nicaraguan Córdoba (1988–1991) * `NGN` - Nigerian Naira * `KPW` - North Korean Won * `NOK` - Norwegian Krone * `OMR` - Omani Rial * `PKR` - Pakistani Rupee * `XPD` - Palladium * `PAB` - Panamanian Balboa * `PGK` - Papua New Guinean Kina * `PYG` - Paraguayan Guarani * `PEI` - Peruvian Inti * `PEN` - Peruvian Sol * `PES` - Peruvian Sol (1863–1965) * `PHP` - Philippine Peso * `XPT` - Platinum * `PLN` - Polish Zloty * `PLZ` - Polish Zloty (1950–1995) * `PTE` - Portuguese Escudo * `GWE` - Portuguese Guinea Escudo * `QAR` - Qatari Rial * `XRE` - RINET Funds * `RHD` - Rhodesian Dollar * `RON` - Romanian Leu * `ROL` - Romanian Leu (1952–2006) * `RUB` - Russian Ruble * `RUR` - Russian Ruble (1991–1998) * `RWF` - Rwandan Franc * `SVC` - Salvadoran Colón * `WST` - Samoan Tala * `SAR` - Saudi Riyal * `RSD` - Serbian Dinar * `CSD` - Serbian Dinar (2002–2006) * `SCR` - Seychellois Rupee * `SLL` - Sierra Leonean Leone * `XAG` - Silver * `SGD` - Singapore Dollar * `SKK` - Slovak Koruna * `SIT` - Slovenian Tolar * `SBD` - Solomon Islands Dollar * `SOS` - Somali Shilling * `ZAR` - South African Rand * `ZAL` - South African Rand (financial) * `KRH` - South Korean Hwan (1953–1962) * `KRW` - South Korean Won * `KRO` - South Korean Won (1945–1953) * `SSP` - South Sudanese Pound * `SUR` - Soviet Rouble * `ESP` - Spanish Peseta * `ESA` - Spanish Peseta (A account) * `ESB` - Spanish Peseta (convertible account) * `XDR` - Special Drawing Rights * `LKR` - Sri Lankan Rupee * `SHP` - St. Helena Pound * `XSU` - Sucre * `SDD` - Sudanese Dinar (1992–2007) * `SDG` - Sudanese Pound * `SDP` - Sudanese Pound (1957–1998) * `SRD` - Surinamese Dollar * `SRG` - Surinamese Guilder * `SZL` - Swazi Lilangeni * `SEK` - Swedish Krona * `CHF` - Swiss Franc * `SYP` - Syrian Pound * `STN` - São Tomé & Príncipe Dobra * `STD` - São Tomé & Príncipe Dobra (1977–2017) * `TVD` - TVD * `TJR` - Tajikistani Ruble * `TJS` - Tajikistani Somoni * `TZS` - Tanzanian Shilling * `XTS` - Testing Currency Code * `THB` - Thai Baht * `XXX` - The codes assigned for transactions where no currency is involved * `TPE` - Timorese Escudo * `TOP` - Tongan Paʻanga * `TTD` - Trinidad & Tobago Dollar * `TND` - Tunisian Dinar * `TRY` - Turkish Lira * `TRL` - Turkish Lira (1922–2005) * `TMT` - Turkmenistani Manat * `TMM` - Turkmenistani Manat (1993–2009) * `USD` - US Dollar * `USN` - US Dollar (Next day) * `USS` - US Dollar (Same day) * `UGX` - Ugandan Shilling * `UGS` - Ugandan Shilling (1966–1987) * `UAH` - Ukrainian Hryvnia * `UAK` - Ukrainian Karbovanets * `AED` - United Arab Emirates Dirham * `UYW` - Uruguayan Nominal Wage Index Unit * `UYU` - Uruguayan Peso * `UYP` - Uruguayan Peso (1975–1993) * `UYI` - Uruguayan Peso (Indexed Units) * `UZS` - Uzbekistani Som * `VUV` - Vanuatu Vatu * `VES` - Venezuelan Bolívar * `VEB` - Venezuelan Bolívar (1871–2008) * `VEF` - Venezuelan Bolívar (2008–2018) * `VND` - Vietnamese Dong * `VNN` - Vietnamese Dong (1978–1985) * `CHE` - WIR Euro * `CHW` - WIR Franc * `XOF` - West African CFA Franc * `YDD` - Yemeni Dinar * `YER` - Yemeni Rial * `YUN` - Yugoslavian Convertible Dinar (1990–1992) * `YUD` - Yugoslavian Hard Dinar (1966–1990) * `YUM` - Yugoslavian New Dinar (1994–2002) * `YUR` - Yugoslavian Reformed Dinar (1992–1993) * `ZWN` - ZWN * `ZRN` - Zairean New Zaire (1993–1998) * `ZRZ` - Zairean Zaire (1971–1993) * `ZMW` - Zambian Kwacha * `ZMK` - Zambian Kwacha (1968–2012) * `ZWD` - Zimbabwean Dollar (1980–2008) * `ZWR` - Zimbabwean Dollar (2008) * `ZWL` - Zimbabwean Dollar (2009) | [optional] |
|
13
13
|
| **exchange_rate** | **String** | The journal entry's exchange rate. | [optional] |
|
14
14
|
| **company** | **String** | The company the journal entry belongs to. | [optional] |
|
15
|
-
| **lines** | [**Array<JournalLine>**](JournalLine.md) | | [optional] |
|
15
|
+
| **lines** | [**Array<JournalLine>**](JournalLine.md) | | [optional][readonly] |
|
16
16
|
| **remote_was_deleted** | **Boolean** | | [optional][readonly] |
|
17
17
|
| **posting_status** | [**PostingStatusEnum**](PostingStatusEnum.md) | The journal's posting status. * `UNPOSTED` - UNPOSTED * `POSTED` - POSTED | [optional] |
|
18
18
|
| **id** | **String** | | [optional][readonly] |
|
@@ -34,7 +34,7 @@ instance = MergeAccountingClient::JournalEntry.new(
|
|
34
34
|
currency: USD,
|
35
35
|
exchange_rate: 2.9,
|
36
36
|
company: 595c8f97-2ac4-45b7-b000-41bdf43240b5,
|
37
|
-
lines: [{"remote_id":"121222","account":"9d892439-5fab-4dbb-8bd8-34f7f96c7912","net_amount":25.54,"tracking_category":"d25d609b-945f-4762-b55a-1c8fb220c43c","tracking_categories":["d25d609b-945f-4762-b55a-1c8fb220c43c","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],"contact":"d2d5ea3c-b032-11ec-b909-0242ac120002","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5","description":"Cash payment for lunch"},{"remote_id":"121223","account":"f963f34d-3d2f-4f77-b557-cf36bc7e6498","net_amount":10.0}],
|
37
|
+
lines: [{"remote_id":"121222","account":"9d892439-5fab-4dbb-8bd8-34f7f96c7912","net_amount":25.54,"tracking_category":"d25d609b-945f-4762-b55a-1c8fb220c43c","tracking_categories":["d25d609b-945f-4762-b55a-1c8fb220c43c","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],"contact":"d2d5ea3c-b032-11ec-b909-0242ac120002","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5","description":"Cash payment for lunch","exchange_rate":"2.9"},{"remote_id":"121223","account":"f963f34d-3d2f-4f77-b557-cf36bc7e6498","net_amount":10.0}],
|
38
38
|
remote_was_deleted: null,
|
39
39
|
posting_status: POSTED,
|
40
40
|
id: ecbe05ac-62a3-46c5-ab31-4b478b37d1b4,
|
data/docs/JournalEntryRequest.md
CHANGED
@@ -21,16 +21,16 @@
|
|
21
21
|
require 'merge_accounting_client'
|
22
22
|
|
23
23
|
instance = MergeAccountingClient::JournalEntryRequest.new(
|
24
|
-
transaction_date:
|
25
|
-
payments:
|
26
|
-
memo:
|
27
|
-
currency:
|
28
|
-
exchange_rate:
|
29
|
-
company:
|
30
|
-
lines:
|
31
|
-
posting_status:
|
32
|
-
integration_params:
|
33
|
-
linked_account_params:
|
24
|
+
transaction_date: null,
|
25
|
+
payments: null,
|
26
|
+
memo: null,
|
27
|
+
currency: null,
|
28
|
+
exchange_rate: null,
|
29
|
+
company: null,
|
30
|
+
lines: null,
|
31
|
+
posting_status: null,
|
32
|
+
integration_params: null,
|
33
|
+
linked_account_params: null
|
34
34
|
)
|
35
35
|
```
|
36
36
|
|
data/docs/JournalLine.md
CHANGED
@@ -4,13 +4,14 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
7
8
|
| **account** | **String** | | [optional] |
|
8
9
|
| **net_amount** | **Float** | The value of the line item including taxes and other fees. | [optional] |
|
9
10
|
| **tracking_category** | **String** | | [optional] |
|
10
11
|
| **tracking_categories** | **Array<String>** | | [optional] |
|
11
12
|
| **contact** | **String** | | [optional] |
|
12
13
|
| **description** | **String** | The line's description. | [optional] |
|
13
|
-
| **
|
14
|
+
| **exchange_rate** | **String** | The journal line item's exchange rate. | [optional] |
|
14
15
|
|
15
16
|
## Example
|
16
17
|
|
@@ -18,13 +19,14 @@
|
|
18
19
|
require 'merge_accounting_client'
|
19
20
|
|
20
21
|
instance = MergeAccountingClient::JournalLine.new(
|
22
|
+
remote_id: 121222,
|
21
23
|
account: 9d892439-5fab-4dbb-8bd8-34f7f96c7912,
|
22
24
|
net_amount: 25.54,
|
23
25
|
tracking_category: d25d609b-945f-4762-b55a-1c8fb220c43c,
|
24
26
|
tracking_categories: ["d25d609b-945f-4762-b55a-1c8fb220c43c","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],
|
25
27
|
contact: d2d5ea3c-b032-11ec-b909-0242ac120002,
|
26
28
|
description: Cash payment for lunch,
|
27
|
-
|
29
|
+
exchange_rate: 2.9
|
28
30
|
)
|
29
31
|
```
|
30
32
|
|
data/docs/JournalLineRequest.md
CHANGED
@@ -4,13 +4,14 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
7
8
|
| **account** | **String** | | [optional] |
|
8
9
|
| **net_amount** | **Float** | The value of the line item including taxes and other fees. | [optional] |
|
9
10
|
| **tracking_category** | **String** | | [optional] |
|
10
11
|
| **tracking_categories** | **Array<String>** | | [optional] |
|
11
12
|
| **contact** | **String** | | [optional] |
|
12
13
|
| **description** | **String** | The line's description. | [optional] |
|
13
|
-
| **
|
14
|
+
| **exchange_rate** | **String** | The journal line item's exchange rate. | [optional] |
|
14
15
|
| **integration_params** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
|
15
16
|
| **linked_account_params** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
|
16
17
|
|
@@ -20,13 +21,14 @@
|
|
20
21
|
require 'merge_accounting_client'
|
21
22
|
|
22
23
|
instance = MergeAccountingClient::JournalLineRequest.new(
|
24
|
+
remote_id: 121222,
|
23
25
|
account: 9d892439-5fab-4dbb-8bd8-34f7f96c7912,
|
24
26
|
net_amount: 25.54,
|
25
27
|
tracking_category: d25d609b-945f-4762-b55a-1c8fb220c43c,
|
26
28
|
tracking_categories: ["d25d609b-945f-4762-b55a-1c8fb220c43c","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],
|
27
29
|
contact: d2d5ea3c-b032-11ec-b909-0242ac120002,
|
28
30
|
description: Cash payment for lunch,
|
29
|
-
|
31
|
+
exchange_rate: 2.9,
|
30
32
|
integration_params: {"unique_integration_field":"unique_integration_field_value"},
|
31
33
|
linked_account_params: {"unique_linked_account_field":"unique_linked_account_field_value"}
|
32
34
|
)
|
data/docs/PurchaseOrder.md
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
| **total_amount** | **Float** | The purchase order's total amount. | [optional] |
|
16
16
|
| **currency** | [**CurrencyEnum**](CurrencyEnum.md) | The purchase order's currency. * `XUA` - ADB Unit of Account * `AFN` - Afghan Afghani * `AFA` - Afghan Afghani (1927–2002) * `ALL` - Albanian Lek * `ALK` - Albanian Lek (1946–1965) * `DZD` - Algerian Dinar * `ADP` - Andorran Peseta * `AOA` - Angolan Kwanza * `AOK` - Angolan Kwanza (1977–1991) * `AON` - Angolan New Kwanza (1990–2000) * `AOR` - Angolan Readjusted Kwanza (1995–1999) * `ARA` - Argentine Austral * `ARS` - Argentine Peso * `ARM` - Argentine Peso (1881–1970) * `ARP` - Argentine Peso (1983–1985) * `ARL` - Argentine Peso Ley (1970–1983) * `AMD` - Armenian Dram * `AWG` - Aruban Florin * `AUD` - Australian Dollar * `ATS` - Austrian Schilling * `AZN` - Azerbaijani Manat * `AZM` - Azerbaijani Manat (1993–2006) * `BSD` - Bahamian Dollar * `BHD` - Bahraini Dinar * `BDT` - Bangladeshi Taka * `BBD` - Barbadian Dollar * `BYN` - Belarusian Ruble * `BYB` - Belarusian Ruble (1994–1999) * `BYR` - Belarusian Ruble (2000–2016) * `BEF` - Belgian Franc * `BEC` - Belgian Franc (convertible) * `BEL` - Belgian Franc (financial) * `BZD` - Belize Dollar * `BMD` - Bermudan Dollar * `BTN` - Bhutanese Ngultrum * `BOB` - Bolivian Boliviano * `BOL` - Bolivian Boliviano (1863–1963) * `BOV` - Bolivian Mvdol * `BOP` - Bolivian Peso * `BAM` - Bosnia-Herzegovina Convertible Mark * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) * `BWP` - Botswanan Pula * `BRC` - Brazilian Cruzado (1986–1989) * `BRZ` - Brazilian Cruzeiro (1942–1967) * `BRE` - Brazilian Cruzeiro (1990–1993) * `BRR` - Brazilian Cruzeiro (1993–1994) * `BRN` - Brazilian New Cruzado (1989–1990) * `BRB` - Brazilian New Cruzeiro (1967–1986) * `BRL` - Brazilian Real * `GBP` - British Pound * `BND` - Brunei Dollar * `BGL` - Bulgarian Hard Lev * `BGN` - Bulgarian Lev * `BGO` - Bulgarian Lev (1879–1952) * `BGM` - Bulgarian Socialist Lev * `BUK` - Burmese Kyat * `BIF` - Burundian Franc * `XPF` - CFP Franc * `KHR` - Cambodian Riel * `CAD` - Canadian Dollar * `CVE` - Cape Verdean Escudo * `KYD` - Cayman Islands Dollar * `XAF` - Central African CFA Franc * `CLE` - Chilean Escudo * `CLP` - Chilean Peso * `CLF` - Chilean Unit of Account (UF) * `CNX` - Chinese People’s Bank Dollar * `CNY` - Chinese Yuan * `CNH` - Chinese Yuan (offshore) * `COP` - Colombian Peso * `COU` - Colombian Real Value Unit * `KMF` - Comorian Franc * `CDF` - Congolese Franc * `CRC` - Costa Rican Colón * `HRD` - Croatian Dinar * `HRK` - Croatian Kuna * `CUC` - Cuban Convertible Peso * `CUP` - Cuban Peso * `CYP` - Cypriot Pound * `CZK` - Czech Koruna * `CSK` - Czechoslovak Hard Koruna * `DKK` - Danish Krone * `DJF` - Djiboutian Franc * `DOP` - Dominican Peso * `NLG` - Dutch Guilder * `XCD` - East Caribbean Dollar * `DDM` - East German Mark * `ECS` - Ecuadorian Sucre * `ECV` - Ecuadorian Unit of Constant Value * `EGP` - Egyptian Pound * `GQE` - Equatorial Guinean Ekwele * `ERN` - Eritrean Nakfa * `EEK` - Estonian Kroon * `ETB` - Ethiopian Birr * `EUR` - Euro * `XBA` - European Composite Unit * `XEU` - European Currency Unit * `XBB` - European Monetary Unit * `XBC` - European Unit of Account (XBC) * `XBD` - European Unit of Account (XBD) * `FKP` - Falkland Islands Pound * `FJD` - Fijian Dollar * `FIM` - Finnish Markka * `FRF` - French Franc * `XFO` - French Gold Franc * `XFU` - French UIC-Franc * `GMD` - Gambian Dalasi * `GEK` - Georgian Kupon Larit * `GEL` - Georgian Lari * `DEM` - German Mark * `GHS` - Ghanaian Cedi * `GHC` - Ghanaian Cedi (1979–2007) * `GIP` - Gibraltar Pound * `XAU` - Gold * `GRD` - Greek Drachma * `GTQ` - Guatemalan Quetzal * `GWP` - Guinea-Bissau Peso * `GNF` - Guinean Franc * `GNS` - Guinean Syli * `GYD` - Guyanaese Dollar * `HTG` - Haitian Gourde * `HNL` - Honduran Lempira * `HKD` - Hong Kong Dollar * `HUF` - Hungarian Forint * `IMP` - IMP * `ISK` - Icelandic Króna * `ISJ` - Icelandic Króna (1918–1981) * `INR` - Indian Rupee * `IDR` - Indonesian Rupiah * `IRR` - Iranian Rial * `IQD` - Iraqi Dinar * `IEP` - Irish Pound * `ILS` - Israeli New Shekel * `ILP` - Israeli Pound * `ILR` - Israeli Shekel (1980–1985) * `ITL` - Italian Lira * `JMD` - Jamaican Dollar * `JPY` - Japanese Yen * `JOD` - Jordanian Dinar * `KZT` - Kazakhstani Tenge * `KES` - Kenyan Shilling * `KWD` - Kuwaiti Dinar * `KGS` - Kyrgystani Som * `LAK` - Laotian Kip * `LVL` - Latvian Lats * `LVR` - Latvian Ruble * `LBP` - Lebanese Pound * `LSL` - Lesotho Loti * `LRD` - Liberian Dollar * `LYD` - Libyan Dinar * `LTL` - Lithuanian Litas * `LTT` - Lithuanian Talonas * `LUL` - Luxembourg Financial Franc * `LUC` - Luxembourgian Convertible Franc * `LUF` - Luxembourgian Franc * `MOP` - Macanese Pataca * `MKD` - Macedonian Denar * `MKN` - Macedonian Denar (1992–1993) * `MGA` - Malagasy Ariary * `MGF` - Malagasy Franc * `MWK` - Malawian Kwacha * `MYR` - Malaysian Ringgit * `MVR` - Maldivian Rufiyaa * `MVP` - Maldivian Rupee (1947–1981) * `MLF` - Malian Franc * `MTL` - Maltese Lira * `MTP` - Maltese Pound * `MRU` - Mauritanian Ouguiya * `MRO` - Mauritanian Ouguiya (1973–2017) * `MUR` - Mauritian Rupee * `MXV` - Mexican Investment Unit * `MXN` - Mexican Peso * `MXP` - Mexican Silver Peso (1861–1992) * `MDC` - Moldovan Cupon * `MDL` - Moldovan Leu * `MCF` - Monegasque Franc * `MNT` - Mongolian Tugrik * `MAD` - Moroccan Dirham * `MAF` - Moroccan Franc * `MZE` - Mozambican Escudo * `MZN` - Mozambican Metical * `MZM` - Mozambican Metical (1980–2006) * `MMK` - Myanmar Kyat * `NAD` - Namibian Dollar * `NPR` - Nepalese Rupee * `ANG` - Netherlands Antillean Guilder * `TWD` - New Taiwan Dollar * `NZD` - New Zealand Dollar * `NIO` - Nicaraguan Córdoba * `NIC` - Nicaraguan Córdoba (1988–1991) * `NGN` - Nigerian Naira * `KPW` - North Korean Won * `NOK` - Norwegian Krone * `OMR` - Omani Rial * `PKR` - Pakistani Rupee * `XPD` - Palladium * `PAB` - Panamanian Balboa * `PGK` - Papua New Guinean Kina * `PYG` - Paraguayan Guarani * `PEI` - Peruvian Inti * `PEN` - Peruvian Sol * `PES` - Peruvian Sol (1863–1965) * `PHP` - Philippine Peso * `XPT` - Platinum * `PLN` - Polish Zloty * `PLZ` - Polish Zloty (1950–1995) * `PTE` - Portuguese Escudo * `GWE` - Portuguese Guinea Escudo * `QAR` - Qatari Rial * `XRE` - RINET Funds * `RHD` - Rhodesian Dollar * `RON` - Romanian Leu * `ROL` - Romanian Leu (1952–2006) * `RUB` - Russian Ruble * `RUR` - Russian Ruble (1991–1998) * `RWF` - Rwandan Franc * `SVC` - Salvadoran Colón * `WST` - Samoan Tala * `SAR` - Saudi Riyal * `RSD` - Serbian Dinar * `CSD` - Serbian Dinar (2002–2006) * `SCR` - Seychellois Rupee * `SLL` - Sierra Leonean Leone * `XAG` - Silver * `SGD` - Singapore Dollar * `SKK` - Slovak Koruna * `SIT` - Slovenian Tolar * `SBD` - Solomon Islands Dollar * `SOS` - Somali Shilling * `ZAR` - South African Rand * `ZAL` - South African Rand (financial) * `KRH` - South Korean Hwan (1953–1962) * `KRW` - South Korean Won * `KRO` - South Korean Won (1945–1953) * `SSP` - South Sudanese Pound * `SUR` - Soviet Rouble * `ESP` - Spanish Peseta * `ESA` - Spanish Peseta (A account) * `ESB` - Spanish Peseta (convertible account) * `XDR` - Special Drawing Rights * `LKR` - Sri Lankan Rupee * `SHP` - St. Helena Pound * `XSU` - Sucre * `SDD` - Sudanese Dinar (1992–2007) * `SDG` - Sudanese Pound * `SDP` - Sudanese Pound (1957–1998) * `SRD` - Surinamese Dollar * `SRG` - Surinamese Guilder * `SZL` - Swazi Lilangeni * `SEK` - Swedish Krona * `CHF` - Swiss Franc * `SYP` - Syrian Pound * `STN` - São Tomé & Príncipe Dobra * `STD` - São Tomé & Príncipe Dobra (1977–2017) * `TVD` - TVD * `TJR` - Tajikistani Ruble * `TJS` - Tajikistani Somoni * `TZS` - Tanzanian Shilling * `XTS` - Testing Currency Code * `THB` - Thai Baht * `XXX` - The codes assigned for transactions where no currency is involved * `TPE` - Timorese Escudo * `TOP` - Tongan Paʻanga * `TTD` - Trinidad & Tobago Dollar * `TND` - Tunisian Dinar * `TRY` - Turkish Lira * `TRL` - Turkish Lira (1922–2005) * `TMT` - Turkmenistani Manat * `TMM` - Turkmenistani Manat (1993–2009) * `USD` - US Dollar * `USN` - US Dollar (Next day) * `USS` - US Dollar (Same day) * `UGX` - Ugandan Shilling * `UGS` - Ugandan Shilling (1966–1987) * `UAH` - Ukrainian Hryvnia * `UAK` - Ukrainian Karbovanets * `AED` - United Arab Emirates Dirham * `UYW` - Uruguayan Nominal Wage Index Unit * `UYU` - Uruguayan Peso * `UYP` - Uruguayan Peso (1975–1993) * `UYI` - Uruguayan Peso (Indexed Units) * `UZS` - Uzbekistani Som * `VUV` - Vanuatu Vatu * `VES` - Venezuelan Bolívar * `VEB` - Venezuelan Bolívar (1871–2008) * `VEF` - Venezuelan Bolívar (2008–2018) * `VND` - Vietnamese Dong * `VNN` - Vietnamese Dong (1978–1985) * `CHE` - WIR Euro * `CHW` - WIR Franc * `XOF` - West African CFA Franc * `YDD` - Yemeni Dinar * `YER` - Yemeni Rial * `YUN` - Yugoslavian Convertible Dinar (1990–1992) * `YUD` - Yugoslavian Hard Dinar (1966–1990) * `YUM` - Yugoslavian New Dinar (1994–2002) * `YUR` - Yugoslavian Reformed Dinar (1992–1993) * `ZWN` - ZWN * `ZRN` - Zairean New Zaire (1993–1998) * `ZRZ` - Zairean Zaire (1971–1993) * `ZMW` - Zambian Kwacha * `ZMK` - Zambian Kwacha (1968–2012) * `ZWD` - Zimbabwean Dollar (1980–2008) * `ZWR` - Zimbabwean Dollar (2008) * `ZWL` - Zimbabwean Dollar (2009) | [optional] |
|
17
17
|
| **exchange_rate** | **String** | The purchase order's exchange rate. | [optional] |
|
18
|
-
| **line_items** | [**Array<PurchaseOrderLineItem>**](PurchaseOrderLineItem.md) | | [optional] |
|
18
|
+
| **line_items** | [**Array<PurchaseOrderLineItem>**](PurchaseOrderLineItem.md) | | [optional][readonly] |
|
19
19
|
| **remote_created_at** | **Time** | When the third party's purchase order note was created. | [optional] |
|
20
20
|
| **remote_updated_at** | **Time** | When the third party's purchase order note was updated. | [optional] |
|
21
21
|
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
@@ -41,7 +41,7 @@ instance = MergeAccountingClient::PurchaseOrder.new(
|
|
41
41
|
total_amount: 260.0,
|
42
42
|
currency: USD,
|
43
43
|
exchange_rate: 2.9,
|
44
|
-
line_items: [{"description":"Pickleball paddles","unit_price":25.0,"quantity":10.0,"item":"0958cbc6-6040-430a-848e-aafacbadf4ae","tracking_category":"f1214c24-2702-4617-b74b-3ddecfc0d384","tracking_categories":["f1214c24-2702-4617-b74b-3ddecfc0d384","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],"tax_amount":10.0,"total_line_amount":260.0,"currency":"USD","exchange_rate":"2.9","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5"},{"description":"Pickleball Balls","unit_price":1.0,"quantity":10.0,"item":"249c9faa-3045-4a31-953b-8f22d3613301","tracking_category":"f1214c24-2702-4617-b74b-3ddecfc0d384","tracking_categories":["f1214c24-2702-4617-b74b-3ddecfc0d384","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],"tax_amount":10.0,"total_line_amount":20.0}],
|
44
|
+
line_items: [{"remote_id":"121222","description":"Pickleball paddles","unit_price":25.0,"quantity":10.0,"item":"0958cbc6-6040-430a-848e-aafacbadf4ae","tracking_category":"f1214c24-2702-4617-b74b-3ddecfc0d384","tracking_categories":["f1214c24-2702-4617-b74b-3ddecfc0d384","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],"tax_amount":10.0,"total_line_amount":260.0,"currency":"USD","exchange_rate":"2.9","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5"},{"description":"Pickleball Balls","unit_price":1.0,"quantity":10.0,"item":"249c9faa-3045-4a31-953b-8f22d3613301","tracking_category":"f1214c24-2702-4617-b74b-3ddecfc0d384","tracking_categories":["f1214c24-2702-4617-b74b-3ddecfc0d384","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],"tax_amount":10.0,"total_line_amount":20.0}],
|
45
45
|
remote_created_at: 2020-03-31T00:00Z,
|
46
46
|
remote_updated_at: 2020-03-31T00:00Z,
|
47
47
|
remote_was_deleted: null,
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
7
8
|
| **description** | **String** | A description of the good being purchased. | [optional] |
|
8
9
|
| **unit_price** | **Float** | The line item's unit price. | [optional] |
|
9
10
|
| **quantity** | **Float** | The line item's quantity. | [optional] |
|
@@ -23,6 +24,7 @@
|
|
23
24
|
require 'merge_accounting_client'
|
24
25
|
|
25
26
|
instance = MergeAccountingClient::PurchaseOrderLineItem.new(
|
27
|
+
remote_id: 121222,
|
26
28
|
description: Pickleball paddles,
|
27
29
|
unit_price: 25.0,
|
28
30
|
quantity: 10.0,
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
7
8
|
| **description** | **String** | A description of the good being purchased. | [optional] |
|
8
9
|
| **unit_price** | **Float** | The line item's unit price. | [optional] |
|
9
10
|
| **quantity** | **Float** | The line item's quantity. | [optional] |
|
@@ -25,6 +26,7 @@
|
|
25
26
|
require 'merge_accounting_client'
|
26
27
|
|
27
28
|
instance = MergeAccountingClient::PurchaseOrderLineItemRequest.new(
|
29
|
+
remote_id: 121222,
|
28
30
|
description: Pickleball paddles,
|
29
31
|
unit_price: 25.0,
|
30
32
|
quantity: 10.0,
|
@@ -25,20 +25,20 @@
|
|
25
25
|
require 'merge_accounting_client'
|
26
26
|
|
27
27
|
instance = MergeAccountingClient::PurchaseOrderRequest.new(
|
28
|
-
status:
|
28
|
+
status: null,
|
29
29
|
issue_date: null,
|
30
|
-
delivery_date:
|
30
|
+
delivery_date: null,
|
31
31
|
delivery_address: null,
|
32
|
-
customer:
|
33
|
-
vendor:
|
34
|
-
memo:
|
35
|
-
company:
|
36
|
-
total_amount:
|
37
|
-
currency:
|
38
|
-
exchange_rate:
|
39
|
-
line_items:
|
40
|
-
integration_params:
|
41
|
-
linked_account_params:
|
32
|
+
customer: null,
|
33
|
+
vendor: null,
|
34
|
+
memo: null,
|
35
|
+
company: null,
|
36
|
+
total_amount: null,
|
37
|
+
currency: null,
|
38
|
+
exchange_rate: null,
|
39
|
+
line_items: null,
|
40
|
+
integration_params: null,
|
41
|
+
linked_account_params: null
|
42
42
|
)
|
43
43
|
```
|
44
44
|
|
data/docs/SyncStatusApi.md
CHANGED
@@ -2,18 +2,15 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *https://api.merge.dev/api/accounting/v1*
|
4
4
|
|
5
|
-
| Method
|
6
|
-
|
|
7
|
-
| [**sync_status_list**](SyncStatusApi.md#sync_status_list) | **GET** /sync-status |
|
8
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| --------------------------------------------------------- | -------------------- | ----------- |
|
7
|
+
| [**sync_status_list**](SyncStatusApi.md#sync_status_list) | **GET** /sync-status | |
|
9
8
|
|
10
9
|
## sync_status_list
|
11
10
|
|
12
11
|
> <PaginatedSyncStatusList> sync_status_list(x_account_token, opts)
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`
|
13
|
+
Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`, `PARTIALLY_SYNCED`
|
17
14
|
|
18
15
|
### Examples
|
19
16
|
|
@@ -36,7 +33,7 @@ opts = {
|
|
36
33
|
}
|
37
34
|
|
38
35
|
begin
|
39
|
-
|
36
|
+
|
40
37
|
result = api_instance.sync_status_list(x_account_token, opts)
|
41
38
|
p result
|
42
39
|
rescue MergeAccountingClient::ApiError => e
|
@@ -52,7 +49,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
52
49
|
|
53
50
|
```ruby
|
54
51
|
begin
|
55
|
-
|
52
|
+
|
56
53
|
data, status_code, headers = api_instance.sync_status_list_with_http_info(x_account_token, opts)
|
57
54
|
p status_code # => 2xx
|
58
55
|
p headers # => { ... }
|
@@ -64,11 +61,11 @@ end
|
|
64
61
|
|
65
62
|
### Parameters
|
66
63
|
|
67
|
-
| Name
|
68
|
-
|
|
69
|
-
| **x_account_token** | **String**
|
70
|
-
| **cursor**
|
71
|
-
| **page_size**
|
64
|
+
| Name | Type | Description | Notes |
|
65
|
+
| ------------------- | ----------- | ------------------------------------- | ---------- |
|
66
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
67
|
+
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
68
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
72
69
|
|
73
70
|
### Return type
|
74
71
|
|
@@ -82,4 +79,3 @@ end
|
|
82
79
|
|
83
80
|
- **Content-Type**: Not defined
|
84
81
|
- **Accept**: application/json
|
85
|
-
|
data/docs/Transaction.md
CHANGED
@@ -13,7 +13,8 @@
|
|
13
13
|
| **currency** | [**CurrencyEnum**](CurrencyEnum.md) | The transaction's currency. * `XUA` - ADB Unit of Account * `AFN` - Afghan Afghani * `AFA` - Afghan Afghani (1927–2002) * `ALL` - Albanian Lek * `ALK` - Albanian Lek (1946–1965) * `DZD` - Algerian Dinar * `ADP` - Andorran Peseta * `AOA` - Angolan Kwanza * `AOK` - Angolan Kwanza (1977–1991) * `AON` - Angolan New Kwanza (1990–2000) * `AOR` - Angolan Readjusted Kwanza (1995–1999) * `ARA` - Argentine Austral * `ARS` - Argentine Peso * `ARM` - Argentine Peso (1881–1970) * `ARP` - Argentine Peso (1983–1985) * `ARL` - Argentine Peso Ley (1970–1983) * `AMD` - Armenian Dram * `AWG` - Aruban Florin * `AUD` - Australian Dollar * `ATS` - Austrian Schilling * `AZN` - Azerbaijani Manat * `AZM` - Azerbaijani Manat (1993–2006) * `BSD` - Bahamian Dollar * `BHD` - Bahraini Dinar * `BDT` - Bangladeshi Taka * `BBD` - Barbadian Dollar * `BYN` - Belarusian Ruble * `BYB` - Belarusian Ruble (1994–1999) * `BYR` - Belarusian Ruble (2000–2016) * `BEF` - Belgian Franc * `BEC` - Belgian Franc (convertible) * `BEL` - Belgian Franc (financial) * `BZD` - Belize Dollar * `BMD` - Bermudan Dollar * `BTN` - Bhutanese Ngultrum * `BOB` - Bolivian Boliviano * `BOL` - Bolivian Boliviano (1863–1963) * `BOV` - Bolivian Mvdol * `BOP` - Bolivian Peso * `BAM` - Bosnia-Herzegovina Convertible Mark * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) * `BWP` - Botswanan Pula * `BRC` - Brazilian Cruzado (1986–1989) * `BRZ` - Brazilian Cruzeiro (1942–1967) * `BRE` - Brazilian Cruzeiro (1990–1993) * `BRR` - Brazilian Cruzeiro (1993–1994) * `BRN` - Brazilian New Cruzado (1989–1990) * `BRB` - Brazilian New Cruzeiro (1967–1986) * `BRL` - Brazilian Real * `GBP` - British Pound * `BND` - Brunei Dollar * `BGL` - Bulgarian Hard Lev * `BGN` - Bulgarian Lev * `BGO` - Bulgarian Lev (1879–1952) * `BGM` - Bulgarian Socialist Lev * `BUK` - Burmese Kyat * `BIF` - Burundian Franc * `XPF` - CFP Franc * `KHR` - Cambodian Riel * `CAD` - Canadian Dollar * `CVE` - Cape Verdean Escudo * `KYD` - Cayman Islands Dollar * `XAF` - Central African CFA Franc * `CLE` - Chilean Escudo * `CLP` - Chilean Peso * `CLF` - Chilean Unit of Account (UF) * `CNX` - Chinese People’s Bank Dollar * `CNY` - Chinese Yuan * `CNH` - Chinese Yuan (offshore) * `COP` - Colombian Peso * `COU` - Colombian Real Value Unit * `KMF` - Comorian Franc * `CDF` - Congolese Franc * `CRC` - Costa Rican Colón * `HRD` - Croatian Dinar * `HRK` - Croatian Kuna * `CUC` - Cuban Convertible Peso * `CUP` - Cuban Peso * `CYP` - Cypriot Pound * `CZK` - Czech Koruna * `CSK` - Czechoslovak Hard Koruna * `DKK` - Danish Krone * `DJF` - Djiboutian Franc * `DOP` - Dominican Peso * `NLG` - Dutch Guilder * `XCD` - East Caribbean Dollar * `DDM` - East German Mark * `ECS` - Ecuadorian Sucre * `ECV` - Ecuadorian Unit of Constant Value * `EGP` - Egyptian Pound * `GQE` - Equatorial Guinean Ekwele * `ERN` - Eritrean Nakfa * `EEK` - Estonian Kroon * `ETB` - Ethiopian Birr * `EUR` - Euro * `XBA` - European Composite Unit * `XEU` - European Currency Unit * `XBB` - European Monetary Unit * `XBC` - European Unit of Account (XBC) * `XBD` - European Unit of Account (XBD) * `FKP` - Falkland Islands Pound * `FJD` - Fijian Dollar * `FIM` - Finnish Markka * `FRF` - French Franc * `XFO` - French Gold Franc * `XFU` - French UIC-Franc * `GMD` - Gambian Dalasi * `GEK` - Georgian Kupon Larit * `GEL` - Georgian Lari * `DEM` - German Mark * `GHS` - Ghanaian Cedi * `GHC` - Ghanaian Cedi (1979–2007) * `GIP` - Gibraltar Pound * `XAU` - Gold * `GRD` - Greek Drachma * `GTQ` - Guatemalan Quetzal * `GWP` - Guinea-Bissau Peso * `GNF` - Guinean Franc * `GNS` - Guinean Syli * `GYD` - Guyanaese Dollar * `HTG` - Haitian Gourde * `HNL` - Honduran Lempira * `HKD` - Hong Kong Dollar * `HUF` - Hungarian Forint * `IMP` - IMP * `ISK` - Icelandic Króna * `ISJ` - Icelandic Króna (1918–1981) * `INR` - Indian Rupee * `IDR` - Indonesian Rupiah * `IRR` - Iranian Rial * `IQD` - Iraqi Dinar * `IEP` - Irish Pound * `ILS` - Israeli New Shekel * `ILP` - Israeli Pound * `ILR` - Israeli Shekel (1980–1985) * `ITL` - Italian Lira * `JMD` - Jamaican Dollar * `JPY` - Japanese Yen * `JOD` - Jordanian Dinar * `KZT` - Kazakhstani Tenge * `KES` - Kenyan Shilling * `KWD` - Kuwaiti Dinar * `KGS` - Kyrgystani Som * `LAK` - Laotian Kip * `LVL` - Latvian Lats * `LVR` - Latvian Ruble * `LBP` - Lebanese Pound * `LSL` - Lesotho Loti * `LRD` - Liberian Dollar * `LYD` - Libyan Dinar * `LTL` - Lithuanian Litas * `LTT` - Lithuanian Talonas * `LUL` - Luxembourg Financial Franc * `LUC` - Luxembourgian Convertible Franc * `LUF` - Luxembourgian Franc * `MOP` - Macanese Pataca * `MKD` - Macedonian Denar * `MKN` - Macedonian Denar (1992–1993) * `MGA` - Malagasy Ariary * `MGF` - Malagasy Franc * `MWK` - Malawian Kwacha * `MYR` - Malaysian Ringgit * `MVR` - Maldivian Rufiyaa * `MVP` - Maldivian Rupee (1947–1981) * `MLF` - Malian Franc * `MTL` - Maltese Lira * `MTP` - Maltese Pound * `MRU` - Mauritanian Ouguiya * `MRO` - Mauritanian Ouguiya (1973–2017) * `MUR` - Mauritian Rupee * `MXV` - Mexican Investment Unit * `MXN` - Mexican Peso * `MXP` - Mexican Silver Peso (1861–1992) * `MDC` - Moldovan Cupon * `MDL` - Moldovan Leu * `MCF` - Monegasque Franc * `MNT` - Mongolian Tugrik * `MAD` - Moroccan Dirham * `MAF` - Moroccan Franc * `MZE` - Mozambican Escudo * `MZN` - Mozambican Metical * `MZM` - Mozambican Metical (1980–2006) * `MMK` - Myanmar Kyat * `NAD` - Namibian Dollar * `NPR` - Nepalese Rupee * `ANG` - Netherlands Antillean Guilder * `TWD` - New Taiwan Dollar * `NZD` - New Zealand Dollar * `NIO` - Nicaraguan Córdoba * `NIC` - Nicaraguan Córdoba (1988–1991) * `NGN` - Nigerian Naira * `KPW` - North Korean Won * `NOK` - Norwegian Krone * `OMR` - Omani Rial * `PKR` - Pakistani Rupee * `XPD` - Palladium * `PAB` - Panamanian Balboa * `PGK` - Papua New Guinean Kina * `PYG` - Paraguayan Guarani * `PEI` - Peruvian Inti * `PEN` - Peruvian Sol * `PES` - Peruvian Sol (1863–1965) * `PHP` - Philippine Peso * `XPT` - Platinum * `PLN` - Polish Zloty * `PLZ` - Polish Zloty (1950–1995) * `PTE` - Portuguese Escudo * `GWE` - Portuguese Guinea Escudo * `QAR` - Qatari Rial * `XRE` - RINET Funds * `RHD` - Rhodesian Dollar * `RON` - Romanian Leu * `ROL` - Romanian Leu (1952–2006) * `RUB` - Russian Ruble * `RUR` - Russian Ruble (1991–1998) * `RWF` - Rwandan Franc * `SVC` - Salvadoran Colón * `WST` - Samoan Tala * `SAR` - Saudi Riyal * `RSD` - Serbian Dinar * `CSD` - Serbian Dinar (2002–2006) * `SCR` - Seychellois Rupee * `SLL` - Sierra Leonean Leone * `XAG` - Silver * `SGD` - Singapore Dollar * `SKK` - Slovak Koruna * `SIT` - Slovenian Tolar * `SBD` - Solomon Islands Dollar * `SOS` - Somali Shilling * `ZAR` - South African Rand * `ZAL` - South African Rand (financial) * `KRH` - South Korean Hwan (1953–1962) * `KRW` - South Korean Won * `KRO` - South Korean Won (1945–1953) * `SSP` - South Sudanese Pound * `SUR` - Soviet Rouble * `ESP` - Spanish Peseta * `ESA` - Spanish Peseta (A account) * `ESB` - Spanish Peseta (convertible account) * `XDR` - Special Drawing Rights * `LKR` - Sri Lankan Rupee * `SHP` - St. Helena Pound * `XSU` - Sucre * `SDD` - Sudanese Dinar (1992–2007) * `SDG` - Sudanese Pound * `SDP` - Sudanese Pound (1957–1998) * `SRD` - Surinamese Dollar * `SRG` - Surinamese Guilder * `SZL` - Swazi Lilangeni * `SEK` - Swedish Krona * `CHF` - Swiss Franc * `SYP` - Syrian Pound * `STN` - São Tomé & Príncipe Dobra * `STD` - São Tomé & Príncipe Dobra (1977–2017) * `TVD` - TVD * `TJR` - Tajikistani Ruble * `TJS` - Tajikistani Somoni * `TZS` - Tanzanian Shilling * `XTS` - Testing Currency Code * `THB` - Thai Baht * `XXX` - The codes assigned for transactions where no currency is involved * `TPE` - Timorese Escudo * `TOP` - Tongan Paʻanga * `TTD` - Trinidad & Tobago Dollar * `TND` - Tunisian Dinar * `TRY` - Turkish Lira * `TRL` - Turkish Lira (1922–2005) * `TMT` - Turkmenistani Manat * `TMM` - Turkmenistani Manat (1993–2009) * `USD` - US Dollar * `USN` - US Dollar (Next day) * `USS` - US Dollar (Same day) * `UGX` - Ugandan Shilling * `UGS` - Ugandan Shilling (1966–1987) * `UAH` - Ukrainian Hryvnia * `UAK` - Ukrainian Karbovanets * `AED` - United Arab Emirates Dirham * `UYW` - Uruguayan Nominal Wage Index Unit * `UYU` - Uruguayan Peso * `UYP` - Uruguayan Peso (1975–1993) * `UYI` - Uruguayan Peso (Indexed Units) * `UZS` - Uzbekistani Som * `VUV` - Vanuatu Vatu * `VES` - Venezuelan Bolívar * `VEB` - Venezuelan Bolívar (1871–2008) * `VEF` - Venezuelan Bolívar (2008–2018) * `VND` - Vietnamese Dong * `VNN` - Vietnamese Dong (1978–1985) * `CHE` - WIR Euro * `CHW` - WIR Franc * `XOF` - West African CFA Franc * `YDD` - Yemeni Dinar * `YER` - Yemeni Rial * `YUN` - Yugoslavian Convertible Dinar (1990–1992) * `YUD` - Yugoslavian Hard Dinar (1966–1990) * `YUM` - Yugoslavian New Dinar (1994–2002) * `YUR` - Yugoslavian Reformed Dinar (1992–1993) * `ZWN` - ZWN * `ZRN` - Zairean New Zaire (1993–1998) * `ZRZ` - Zairean Zaire (1971–1993) * `ZMW` - Zambian Kwacha * `ZMK` - Zambian Kwacha (1968–2012) * `ZWD` - Zimbabwean Dollar (1980–2008) * `ZWR` - Zimbabwean Dollar (2008) * `ZWL` - Zimbabwean Dollar (2009) | [optional] |
|
14
14
|
| **exchange_rate** | **String** | The transaction's exchange rate. | [optional] |
|
15
15
|
| **company** | **String** | The company the transaction belongs to. | [optional] |
|
16
|
-
| **
|
16
|
+
| **tracking_categories** | **Array<String>** | | [optional] |
|
17
|
+
| **line_items** | [**Array<TransactionLineItem>**](TransactionLineItem.md) | | [optional][readonly] |
|
17
18
|
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
18
19
|
| **id** | **String** | | [optional][readonly] |
|
19
20
|
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
@@ -35,7 +36,8 @@ instance = MergeAccountingClient::Transaction.new(
|
|
35
36
|
currency: USD,
|
36
37
|
exchange_rate: 2.9,
|
37
38
|
company: 595c8f97-2ac4-45b7-b000-41bdf43240b5,
|
38
|
-
|
39
|
+
tracking_categories: ["b38c59b0-a9d7-4740-b1ee-5436c6751e3d","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],
|
40
|
+
line_items: [{"remote_id":"121222","memo":"Pickleball paddles","unit_price":"25.0","quantity":"10.0","item":"0958cbc6-6040-430a-848e-aafacbadf4ae","account":"2b38c085-2620-4269-b5ec-75dd9095ed2c","tracking_category":"f1214c24-2702-4617-b74b-3ddecfc0d384","tracking_categories":["f1214c24-2702-4617-b74b-3ddecfc0d384","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],"total_line_amount":260.0,"tax_rate":"a12e7c20-1922-9df7-s75n-edfeewnn7384","currency":"USD","exchange_rate":"2.9","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5"},{"memo":"Pickleball Balls","unit_price":1.0,"quantity":10.0,"item":"249c9faa-3045-4a31-953b-8f22d3613301","account":"3e442c5d-8f51-4103-b5c9-dcee39c30a08","tracking_category":"f1214c24-2702-4617-b74b-3ddecfc0d384","tracking_categories":["f1214c24-2702-4617-b74b-3ddecfc0d384","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],"total_line_amount":20.0,"tax_rate":"a12e7c20-1922-9df7-s75n-edfeewnn7384"}],
|
39
41
|
remote_was_deleted: null,
|
40
42
|
id: 0048ea5b-911e-4dff-9364-92070dea62ff,
|
41
43
|
remote_id: 239741,
|
data/docs/TransactionLineItem.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
7
8
|
| **memo** | **String** | An internal note used by the business to clarify purpose of the transaction. | [optional] |
|
8
9
|
| **unit_price** | **String** | The line item's unit price. | [optional] |
|
9
10
|
| **quantity** | **String** | The line item's quantity. | [optional] |
|
@@ -23,6 +24,7 @@
|
|
23
24
|
require 'merge_accounting_client'
|
24
25
|
|
25
26
|
instance = MergeAccountingClient::TransactionLineItem.new(
|
27
|
+
remote_id: 121222,
|
26
28
|
memo: Pickleball paddles,
|
27
29
|
unit_price: 25.0,
|
28
30
|
quantity: 10.0,
|