merge_accounting_client 1.0.5 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AccountsApi.md +4 -0
- data/docs/BalanceSheetsApi.md +4 -0
- data/docs/CashFlowStatementsApi.md +4 -0
- data/docs/CompanyInfoApi.md +4 -0
- data/docs/ContactsApi.md +4 -0
- data/docs/CreditNote.md +1 -1
- data/docs/CreditNoteLineItem.md +1 -1
- data/docs/CreditNotesApi.md +4 -0
- 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/ExpensesApi.md +4 -0
- data/docs/ForceResyncApi.md +1 -1
- data/docs/IncomeStatementsApi.md +4 -0
- 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/InvoicesApi.md +4 -0
- data/docs/ItemsApi.md +4 -0
- data/docs/JournalEntriesApi.md +4 -0
- 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/PaymentsApi.md +4 -0
- 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/PurchaseOrdersApi.md +4 -0
- data/docs/TaxRatesApi.md +4 -0
- data/docs/TrackingCategoriesApi.md +4 -0
- data/docs/Transaction.md +4 -2
- data/docs/TransactionLineItem.md +2 -0
- data/docs/TransactionsApi.md +4 -0
- data/docs/VendorCredit.md +2 -2
- data/docs/VendorCreditLine.md +3 -1
- data/docs/VendorCreditsApi.md +4 -0
- data/lib/merge_accounting_client/api/accounts_api.rb +14 -0
- data/lib/merge_accounting_client/api/balance_sheets_api.rb +14 -0
- data/lib/merge_accounting_client/api/cash_flow_statements_api.rb +14 -0
- data/lib/merge_accounting_client/api/company_info_api.rb +14 -0
- data/lib/merge_accounting_client/api/contacts_api.rb +14 -0
- data/lib/merge_accounting_client/api/credit_notes_api.rb +14 -0
- data/lib/merge_accounting_client/api/expenses_api.rb +14 -0
- data/lib/merge_accounting_client/api/force_resync_api.rb +2 -2
- data/lib/merge_accounting_client/api/income_statements_api.rb +14 -0
- data/lib/merge_accounting_client/api/invoices_api.rb +14 -0
- data/lib/merge_accounting_client/api/items_api.rb +14 -0
- data/lib/merge_accounting_client/api/journal_entries_api.rb +14 -0
- data/lib/merge_accounting_client/api/payments_api.rb +14 -0
- data/lib/merge_accounting_client/api/purchase_orders_api.rb +14 -0
- data/lib/merge_accounting_client/api/tax_rates_api.rb +14 -0
- data/lib/merge_accounting_client/api/tracking_categories_api.rb +14 -0
- data/lib/merge_accounting_client/api/transactions_api.rb +14 -0
- data/lib/merge_accounting_client/api/vendor_credits_api.rb +14 -0
- 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/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/accounts_api_spec.rb +2 -0
- data/spec/api/balance_sheets_api_spec.rb +2 -0
- data/spec/api/cash_flow_statements_api_spec.rb +2 -0
- data/spec/api/company_info_api_spec.rb +2 -0
- data/spec/api/contacts_api_spec.rb +2 -0
- data/spec/api/credit_notes_api_spec.rb +2 -0
- data/spec/api/expenses_api_spec.rb +2 -0
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/income_statements_api_spec.rb +2 -0
- data/spec/api/invoices_api_spec.rb +2 -0
- data/spec/api/items_api_spec.rb +2 -0
- data/spec/api/journal_entries_api_spec.rb +2 -0
- data/spec/api/payments_api_spec.rb +2 -0
- data/spec/api/purchase_orders_api_spec.rb +2 -0
- data/spec/api/tax_rates_api_spec.rb +2 -0
- data/spec/api/tracking_categories_api_spec.rb +2 -0
- data/spec/api/transactions_api_spec.rb +2 -0
- data/spec/api/vendor_credits_api_spec.rb +2 -0
- 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 +151 -151
data/docs/ItemsApi.md
CHANGED
@@ -36,6 +36,7 @@ opts = {
|
|
36
36
|
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
37
37
|
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
38
38
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
39
|
+
expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
39
40
|
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
40
41
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
41
42
|
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
@@ -82,6 +83,7 @@ end
|
|
82
83
|
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
83
84
|
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
84
85
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
86
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
85
87
|
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
86
88
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
87
89
|
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
@@ -130,6 +132,7 @@ api_instance = MergeAccountingClient::ItemsApi.new
|
|
130
132
|
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
131
133
|
id = TODO # String |
|
132
134
|
opts = {
|
135
|
+
expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
133
136
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
134
137
|
remote_fields: 'status', # String | Deprecated. Use show_enum_origins.
|
135
138
|
show_enum_origins: 'status' # String | Which fields should be returned in non-normalized form.
|
@@ -168,6 +171,7 @@ end
|
|
168
171
|
| ---- | ---- | ----------- | ----- |
|
169
172
|
| **x_account_token** | **String** | Token identifying the end user. | |
|
170
173
|
| **id** | [**String**](.md) | | |
|
174
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
171
175
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
172
176
|
| **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
|
173
177
|
| **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
|
data/docs/JournalEntriesApi.md
CHANGED
@@ -117,6 +117,7 @@ opts = {
|
|
117
117
|
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
118
118
|
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
119
119
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
120
|
+
expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
120
121
|
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
121
122
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
122
123
|
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
@@ -163,6 +164,7 @@ end
|
|
163
164
|
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
164
165
|
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
165
166
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
167
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
166
168
|
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
167
169
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
168
170
|
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
@@ -282,6 +284,7 @@ api_instance = MergeAccountingClient::JournalEntriesApi.new
|
|
282
284
|
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
283
285
|
id = TODO # String |
|
284
286
|
opts = {
|
287
|
+
expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
285
288
|
include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
286
289
|
}
|
287
290
|
|
@@ -318,6 +321,7 @@ end
|
|
318
321
|
| ---- | ---- | ----------- | ----- |
|
319
322
|
| **x_account_token** | **String** | Token identifying the end user. | |
|
320
323
|
| **id** | [**String**](.md) | | |
|
324
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
321
325
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
322
326
|
|
323
327
|
### Return type
|
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/PaymentsApi.md
CHANGED
@@ -119,6 +119,7 @@ opts = {
|
|
119
119
|
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
120
120
|
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
121
121
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
122
|
+
expand: 'account', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
122
123
|
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
123
124
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
124
125
|
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
@@ -167,6 +168,7 @@ end
|
|
167
168
|
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
168
169
|
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
169
170
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
171
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
170
172
|
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
171
173
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
172
174
|
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
@@ -286,6 +288,7 @@ api_instance = MergeAccountingClient::PaymentsApi.new
|
|
286
288
|
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
287
289
|
id = TODO # String |
|
288
290
|
opts = {
|
291
|
+
expand: 'account', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
289
292
|
include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
290
293
|
}
|
291
294
|
|
@@ -322,6 +325,7 @@ end
|
|
322
325
|
| ---- | ---- | ----------- | ----- |
|
323
326
|
| **x_account_token** | **String** | Token identifying the end user. | |
|
324
327
|
| **id** | [**String**](.md) | | |
|
328
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
325
329
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
326
330
|
|
327
331
|
### Return type
|
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/PurchaseOrdersApi.md
CHANGED
@@ -117,6 +117,7 @@ opts = {
|
|
117
117
|
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
118
118
|
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
119
119
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
120
|
+
expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
120
121
|
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
121
122
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
122
123
|
issue_date_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
@@ -165,6 +166,7 @@ end
|
|
165
166
|
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
166
167
|
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
167
168
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
169
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
168
170
|
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
169
171
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
170
172
|
| **issue_date_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
@@ -286,6 +288,7 @@ api_instance = MergeAccountingClient::PurchaseOrdersApi.new
|
|
286
288
|
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
287
289
|
id = TODO # String |
|
288
290
|
opts = {
|
291
|
+
expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
289
292
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
290
293
|
remote_fields: 'status', # String | Deprecated. Use show_enum_origins.
|
291
294
|
show_enum_origins: 'status' # String | Which fields should be returned in non-normalized form.
|
@@ -324,6 +327,7 @@ end
|
|
324
327
|
| ---- | ---- | ----------- | ----- |
|
325
328
|
| **x_account_token** | **String** | Token identifying the end user. | |
|
326
329
|
| **id** | [**String**](.md) | | |
|
330
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
327
331
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
328
332
|
| **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
|
329
333
|
| **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
|
data/docs/TaxRatesApi.md
CHANGED
@@ -36,6 +36,7 @@ opts = {
|
|
36
36
|
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
37
37
|
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
38
38
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
39
|
+
expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
39
40
|
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
40
41
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
41
42
|
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
@@ -80,6 +81,7 @@ end
|
|
80
81
|
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
81
82
|
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
82
83
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
84
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
83
85
|
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
84
86
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
85
87
|
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
@@ -126,6 +128,7 @@ api_instance = MergeAccountingClient::TaxRatesApi.new
|
|
126
128
|
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
127
129
|
id = TODO # String |
|
128
130
|
opts = {
|
131
|
+
expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
129
132
|
include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
130
133
|
}
|
131
134
|
|
@@ -162,6 +165,7 @@ end
|
|
162
165
|
| ---- | ---- | ----------- | ----- |
|
163
166
|
| **x_account_token** | **String** | Token identifying the end user. | |
|
164
167
|
| **id** | [**String**](.md) | | |
|
168
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
165
169
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
166
170
|
|
167
171
|
### Return type
|
@@ -36,6 +36,7 @@ opts = {
|
|
36
36
|
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
37
37
|
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
38
38
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
39
|
+
expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
39
40
|
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
40
41
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
41
42
|
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
@@ -82,6 +83,7 @@ end
|
|
82
83
|
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
83
84
|
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
84
85
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
86
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
85
87
|
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
86
88
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
87
89
|
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
@@ -130,6 +132,7 @@ api_instance = MergeAccountingClient::TrackingCategoriesApi.new
|
|
130
132
|
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
131
133
|
id = TODO # String |
|
132
134
|
opts = {
|
135
|
+
expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
133
136
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
134
137
|
remote_fields: 'status', # String | Deprecated. Use show_enum_origins.
|
135
138
|
show_enum_origins: 'status' # String | Which fields should be returned in non-normalized form.
|
@@ -168,6 +171,7 @@ end
|
|
168
171
|
| ---- | ---- | ----------- | ----- |
|
169
172
|
| **x_account_token** | **String** | Token identifying the end user. | |
|
170
173
|
| **id** | [**String**](.md) | | |
|
174
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
171
175
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
172
176
|
| **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
|
173
177
|
| **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
|
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,
|
data/docs/TransactionsApi.md
CHANGED
@@ -36,6 +36,7 @@ opts = {
|
|
36
36
|
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
37
37
|
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
38
38
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
39
|
+
expand: 'account', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
39
40
|
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
40
41
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
41
42
|
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
@@ -82,6 +83,7 @@ end
|
|
82
83
|
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
83
84
|
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
84
85
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
86
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
85
87
|
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
86
88
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
87
89
|
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
@@ -130,6 +132,7 @@ api_instance = MergeAccountingClient::TransactionsApi.new
|
|
130
132
|
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
131
133
|
id = TODO # String |
|
132
134
|
opts = {
|
135
|
+
expand: 'account', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
133
136
|
include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
134
137
|
}
|
135
138
|
|
@@ -166,6 +169,7 @@ end
|
|
166
169
|
| ---- | ---- | ----------- | ----- |
|
167
170
|
| **x_account_token** | **String** | Token identifying the end user. | |
|
168
171
|
| **id** | [**String**](.md) | | |
|
172
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
169
173
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
170
174
|
|
171
175
|
### Return type
|