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.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AccountsApi.md +4 -0
  4. data/docs/BalanceSheetsApi.md +4 -0
  5. data/docs/CashFlowStatementsApi.md +4 -0
  6. data/docs/CompanyInfoApi.md +4 -0
  7. data/docs/ContactsApi.md +4 -0
  8. data/docs/CreditNote.md +1 -1
  9. data/docs/CreditNoteLineItem.md +1 -1
  10. data/docs/CreditNotesApi.md +4 -0
  11. data/docs/Expense.md +1 -1
  12. data/docs/ExpenseLine.md +4 -2
  13. data/docs/ExpenseLineRequest.md +4 -2
  14. data/docs/ExpenseRequest.md +1 -1
  15. data/docs/ExpensesApi.md +4 -0
  16. data/docs/ForceResyncApi.md +1 -1
  17. data/docs/IncomeStatementsApi.md +4 -0
  18. data/docs/Invoice.md +1 -1
  19. data/docs/InvoiceLineItem.md +2 -2
  20. data/docs/InvoiceLineItemRequest.md +2 -2
  21. data/docs/InvoiceRequest.md +18 -18
  22. data/docs/InvoicesApi.md +4 -0
  23. data/docs/ItemsApi.md +4 -0
  24. data/docs/JournalEntriesApi.md +4 -0
  25. data/docs/JournalEntry.md +2 -2
  26. data/docs/JournalEntryRequest.md +10 -10
  27. data/docs/JournalLine.md +4 -2
  28. data/docs/JournalLineRequest.md +4 -2
  29. data/docs/PaymentsApi.md +4 -0
  30. data/docs/PurchaseOrder.md +2 -2
  31. data/docs/PurchaseOrderLineItem.md +2 -0
  32. data/docs/PurchaseOrderLineItemRequest.md +2 -0
  33. data/docs/PurchaseOrderRequest.md +12 -12
  34. data/docs/PurchaseOrdersApi.md +4 -0
  35. data/docs/TaxRatesApi.md +4 -0
  36. data/docs/TrackingCategoriesApi.md +4 -0
  37. data/docs/Transaction.md +4 -2
  38. data/docs/TransactionLineItem.md +2 -0
  39. data/docs/TransactionsApi.md +4 -0
  40. data/docs/VendorCredit.md +2 -2
  41. data/docs/VendorCreditLine.md +3 -1
  42. data/docs/VendorCreditsApi.md +4 -0
  43. data/lib/merge_accounting_client/api/accounts_api.rb +14 -0
  44. data/lib/merge_accounting_client/api/balance_sheets_api.rb +14 -0
  45. data/lib/merge_accounting_client/api/cash_flow_statements_api.rb +14 -0
  46. data/lib/merge_accounting_client/api/company_info_api.rb +14 -0
  47. data/lib/merge_accounting_client/api/contacts_api.rb +14 -0
  48. data/lib/merge_accounting_client/api/credit_notes_api.rb +14 -0
  49. data/lib/merge_accounting_client/api/expenses_api.rb +14 -0
  50. data/lib/merge_accounting_client/api/force_resync_api.rb +2 -2
  51. data/lib/merge_accounting_client/api/income_statements_api.rb +14 -0
  52. data/lib/merge_accounting_client/api/invoices_api.rb +14 -0
  53. data/lib/merge_accounting_client/api/items_api.rb +14 -0
  54. data/lib/merge_accounting_client/api/journal_entries_api.rb +14 -0
  55. data/lib/merge_accounting_client/api/payments_api.rb +14 -0
  56. data/lib/merge_accounting_client/api/purchase_orders_api.rb +14 -0
  57. data/lib/merge_accounting_client/api/tax_rates_api.rb +14 -0
  58. data/lib/merge_accounting_client/api/tracking_categories_api.rb +14 -0
  59. data/lib/merge_accounting_client/api/transactions_api.rb +14 -0
  60. data/lib/merge_accounting_client/api/vendor_credits_api.rb +14 -0
  61. data/lib/merge_accounting_client/models/account_integration.rb +3 -3
  62. data/lib/merge_accounting_client/models/credit_note_line_item.rb +9 -9
  63. data/lib/merge_accounting_client/models/expense.rb +3 -3
  64. data/lib/merge_accounting_client/models/expense_line.rb +37 -9
  65. data/lib/merge_accounting_client/models/expense_line_request.rb +37 -9
  66. data/lib/merge_accounting_client/models/expense_request.rb +3 -3
  67. data/lib/merge_accounting_client/models/invoice.rb +3 -3
  68. data/lib/merge_accounting_client/models/invoice_line_item.rb +15 -15
  69. data/lib/merge_accounting_client/models/invoice_line_item_request.rb +15 -15
  70. data/lib/merge_accounting_client/models/invoice_request.rb +3 -3
  71. data/lib/merge_accounting_client/models/journal_entry.rb +3 -3
  72. data/lib/merge_accounting_client/models/journal_entry_request.rb +3 -3
  73. data/lib/merge_accounting_client/models/journal_line.rb +37 -9
  74. data/lib/merge_accounting_client/models/journal_line_request.rb +37 -9
  75. data/lib/merge_accounting_client/models/payment.rb +3 -3
  76. data/lib/merge_accounting_client/models/payment_request.rb +3 -3
  77. data/lib/merge_accounting_client/models/purchase_order.rb +3 -3
  78. data/lib/merge_accounting_client/models/purchase_order_line_item.rb +21 -10
  79. data/lib/merge_accounting_client/models/purchase_order_line_item_request.rb +21 -10
  80. data/lib/merge_accounting_client/models/purchase_order_request.rb +3 -3
  81. data/lib/merge_accounting_client/models/transaction.rb +18 -7
  82. data/lib/merge_accounting_client/models/transaction_line_item.rb +24 -13
  83. data/lib/merge_accounting_client/models/vendor_credit.rb +3 -3
  84. data/lib/merge_accounting_client/models/vendor_credit_line.rb +33 -5
  85. data/lib/merge_accounting_client/version.rb +1 -1
  86. data/spec/api/accounts_api_spec.rb +2 -0
  87. data/spec/api/balance_sheets_api_spec.rb +2 -0
  88. data/spec/api/cash_flow_statements_api_spec.rb +2 -0
  89. data/spec/api/company_info_api_spec.rb +2 -0
  90. data/spec/api/contacts_api_spec.rb +2 -0
  91. data/spec/api/credit_notes_api_spec.rb +2 -0
  92. data/spec/api/expenses_api_spec.rb +2 -0
  93. data/spec/api/force_resync_api_spec.rb +1 -1
  94. data/spec/api/income_statements_api_spec.rb +2 -0
  95. data/spec/api/invoices_api_spec.rb +2 -0
  96. data/spec/api/items_api_spec.rb +2 -0
  97. data/spec/api/journal_entries_api_spec.rb +2 -0
  98. data/spec/api/payments_api_spec.rb +2 -0
  99. data/spec/api/purchase_orders_api_spec.rb +2 -0
  100. data/spec/api/tax_rates_api_spec.rb +2 -0
  101. data/spec/api/tracking_categories_api_spec.rb +2 -0
  102. data/spec/api/transactions_api_spec.rb +2 -0
  103. data/spec/api/vendor_credits_api_spec.rb +2 -0
  104. data/spec/models/expense_line_request_spec.rb +7 -1
  105. data/spec/models/expense_line_spec.rb +7 -1
  106. data/spec/models/invoice_line_item_request_spec.rb +6 -6
  107. data/spec/models/invoice_line_item_spec.rb +6 -6
  108. data/spec/models/journal_line_request_spec.rb +7 -1
  109. data/spec/models/journal_line_spec.rb +7 -1
  110. data/spec/models/purchase_order_line_item_request_spec.rb +6 -0
  111. data/spec/models/purchase_order_line_item_spec.rb +6 -0
  112. data/spec/models/transaction_line_item_spec.rb +6 -0
  113. data/spec/models/transaction_spec.rb +6 -0
  114. data/spec/models/vendor_credit_line_spec.rb +6 -0
  115. metadata +151 -151
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1470079b350d2f9265be2bcf822ad0e1107150ed3b482e40d33eeb4e27b45c5
4
- data.tar.gz: 6069781510fc4f13f9795596e6bfe4b6903246f5b2fdba393bbf29737c5ead44
3
+ metadata.gz: f3e53603a4a6a726b9e780888679f7d0521b6825c2bd75440f5cf8fc2f009894
4
+ data.tar.gz: c755be7f844d05eb535aa60a2557c77fe1b4fa8991c9658601f8823c455dbfa3
5
5
  SHA512:
6
- metadata.gz: ab38cecff562fb6d280e5da05aa5425967a645fe5fd48c6d3fdb615988a1312e0ddbe4d8c5e3fa404674ed42d918dde2852a02298890c07a64a4dc9a46a0aa07
7
- data.tar.gz: c8ea6cca5deb2c0bc3c0c471e557f480346f17fd172cd72f01169bafef42734361d9d5276a5e53d9d967d6fe23ae386fb9fb00f74f24b1683fd0dff0f2ca8452
6
+ metadata.gz: 864b334f6e2a65eaa680a61d3355591a89d17fb42c6844d6f9ec1b431742b64298b2abf170943488eec3ae388c6afe6273231f35020ad592d1e71c52844b10e2
7
+ data.tar.gz: ade8170ad924fb713554a6ceab5c677774cc97f5d6df05286def618cdee117ec4700336734c669d453191a5d2b4795525dfe7636e35096da0263ab35f399a647
data/README.md CHANGED
@@ -7,7 +7,7 @@ The unified API for building rich integrations with multiple Accounting & Financ
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0
10
- - Package version: 1.0.5
10
+ - Package version: 1.0.7
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://www.merge.dev/](https://www.merge.dev/)
13
13
 
@@ -24,16 +24,16 @@ gem build merge_accounting_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./merge_accounting_client-1.0.5.gem
27
+ gem install ./merge_accounting_client-1.0.7.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./merge_accounting_client-1.0.5.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./merge_accounting_client-1.0.7.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'merge_accounting_client', '~> 1.0.5'
36
+ gem 'merge_accounting_client', '~> 1.0.7'
37
37
 
38
38
  ### Install from Git
39
39
 
data/docs/AccountsApi.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::AccountsApi.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
  remote_fields: 'classification', # String | Deprecated. Use show_enum_origins.
287
290
  show_enum_origins: 'classification' # String | Which fields should be returned in non-normalized form.
@@ -320,6 +323,7 @@ end
320
323
  | ---- | ---- | ----------- | ----- |
321
324
  | **x_account_token** | **String** | Token identifying the end user. | |
322
325
  | **id** | [**String**](.md) | | |
326
+ | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
323
327
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
324
328
  | **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
325
329
  | **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
@@ -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::BalanceSheetsApi.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.
@@ -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::CashFlowStatementsApi.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
@@ -35,6 +35,7 @@ opts = {
35
35
  created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
36
36
  created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
37
37
  cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
38
+ expand: 'addresses', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
38
39
  include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
39
40
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
40
41
  modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
@@ -78,6 +79,7 @@ end
78
79
  | **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
79
80
  | **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
80
81
  | **cursor** | **String** | The pagination cursor value. | [optional] |
82
+ | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
81
83
  | **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
82
84
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
83
85
  | **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
@@ -124,6 +126,7 @@ api_instance = MergeAccountingClient::CompanyInfoApi.new
124
126
  x_account_token = 'x_account_token_example' # String | Token identifying the end user.
125
127
  id = TODO # String |
126
128
  opts = {
129
+ expand: 'addresses', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
127
130
  include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
128
131
  }
129
132
 
@@ -160,6 +163,7 @@ end
160
163
  | ---- | ---- | ----------- | ----- |
161
164
  | **x_account_token** | **String** | Token identifying the end user. | |
162
165
  | **id** | [**String**](.md) | | |
166
+ | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
163
167
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
164
168
 
165
169
  ### Return type
data/docs/ContactsApi.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: 'addresses', # 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::ContactsApi.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: 'addresses', # 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
  remote_fields: 'status', # String | Deprecated. Use show_enum_origins.
287
290
  show_enum_origins: 'status' # String | Which fields should be returned in non-normalized form.
@@ -320,6 +323,7 @@ end
320
323
  | ---- | ---- | ----------- | ----- |
321
324
  | **x_account_token** | **String** | Token identifying the end user. | |
322
325
  | **id** | [**String**](.md) | | |
326
+ | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
323
327
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
324
328
  | **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
325
329
  | **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
data/docs/CreditNote.md CHANGED
@@ -37,7 +37,7 @@ instance = MergeAccountingClient::CreditNote.new(
37
37
  company: 595c8f97-2ac4-45b7-b000-41bdf43240b5,
38
38
  total_amount: 50.0,
39
39
  remaining_credit: 20.0,
40
- line_items: [{"item":"0e3fd929-436c-4fd4-a48b-0c61f68d6178","name":"Basic Monthly","description":"prorated amount for items","quantity":1,"memo":"privNote","unit_price":"5.0","tax_rate":"8d9fd929-436c-4fd4-a48b-0c61f68d6178","total_line_amount":"5.0","tracking_category":"8d9fd929-436c-4fd4-a48b-0c61f68d6178","tracking_categories":["8d9fd929-436c-4fd4-a48b-0c61f68d6178","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],"account":"8d9fd929-436c-4fd4-a48b-0c61f68d6178","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5"}],
40
+ line_items: [{"item":"0e3fd929-436c-4fd4-a48b-0c61f68d6178","name":"Basic Monthly","description":"prorated amount for items","quantity":1,"memo":"privNote","unit_price":"5.0","tax_rate":"8d9fd929-436c-4fd4-a48b-0c61f68d6178","total_line_amount":"5.0","tracking_category":"8d9fd929-436c-4fd4-a48b-0c61f68d6178","tracking_categories":["8d9fd929-436c-4fd4-a48b-0c61f68d6178","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],"account":"8d9fd929-436c-4fd4-a48b-0c61f68d6178","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5","remote_id":"121222"}],
41
41
  currency: USD,
42
42
  remote_created_at: 2020-03-31T00:00Z,
43
43
  remote_updated_at: 2020-03-31T00:00Z,
@@ -36,7 +36,7 @@ instance = MergeAccountingClient::CreditNoteLineItem.new(
36
36
  tracking_categories: ["8d9fd929-436c-4fd4-a48b-0c61f68d6178","9b840d2-686a-465a-8a8e-7b028498f8e4","a47e11b6-c73b-4a0c-be31-130fc48177fa"],
37
37
  account: 8d9fd929-436c-4fd4-a48b-0c61f68d6178,
38
38
  company: 595c8f97-2ac4-45b7-b000-41bdf43240b5,
39
- remote_id: 088899
39
+ remote_id: 121222
40
40
  )
41
41
  ```
42
42
 
@@ -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: 'line_items', # 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.
@@ -84,6 +85,7 @@ end
84
85
  | **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
85
86
  | **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
86
87
  | **cursor** | **String** | The pagination cursor value. | [optional] |
88
+ | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
87
89
  | **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
88
90
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
89
91
  | **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
@@ -134,6 +136,7 @@ api_instance = MergeAccountingClient::CreditNotesApi.new
134
136
  x_account_token = 'x_account_token_example' # String | Token identifying the end user.
135
137
  id = TODO # String |
136
138
  opts = {
139
+ expand: 'line_items', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
137
140
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
138
141
  remote_fields: 'status', # String | Deprecated. Use show_enum_origins.
139
142
  show_enum_origins: 'status' # String | Which fields should be returned in non-normalized form.
@@ -172,6 +175,7 @@ end
172
175
  | ---- | ---- | ----------- | ----- |
173
176
  | **x_account_token** | **String** | Token identifying the end user. | |
174
177
  | **id** | [**String**](.md) | | |
178
+ | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
175
179
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
176
180
  | **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
177
181
  | **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
data/docs/Expense.md CHANGED
@@ -35,7 +35,7 @@ instance = MergeAccountingClient::Expense.new(
35
35
  exchange_rate: 2.9,
36
36
  company: 595c8f97-2ac4-45b7-b000-41bdf43240b5,
37
37
  memo: New employee supplies,
38
- 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"}],
38
+ 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"}],
39
39
  remote_was_deleted: null,
40
40
  id: ecbe05ac-62a3-46c5-ab31-4b478b37d1b4,
41
41
  remote_id: 088899,
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
- | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
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
- remote_id: 121222
33
+ exchange_rate: 2.9
32
34
  )
33
35
  ```
34
36
 
@@ -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
- | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
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
- remote_id: 121222,
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
  )
@@ -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/ExpensesApi.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: 'account', # 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::ExpensesApi.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: 'account', # 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
@@ -13,7 +13,7 @@ All URIs are relative to *https://api.merge.dev/api/accounting/v1*
13
13
 
14
14
 
15
15
 
16
- Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
16
+ Force re-sync of all models. This is available for all organizations via the dashboard. Force re-sync is also available for monthly and quarterly sync frequency customers on the Core, Professional, or Enterprise plans.
17
17
 
18
18
  ### Examples
19
19
 
@@ -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::IncomeStatementsApi.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
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] |
@@ -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
  )
@@ -30,25 +30,25 @@
30
30
  require 'merge_accounting_client'
31
31
 
32
32
  instance = MergeAccountingClient::InvoiceRequest.new(
33
- type: ACCOUNTS_RECEIVABLE,
34
- contact: 022a2bef-57e5-4def-8ed2-7c41bd9a5ed8,
35
- number: AIQ12546,
36
- issue_date: 2020-03-31T00:00Z,
37
- due_date: 2020-04-15T00:00Z,
38
- paid_on_date: 2020-04-01T00:00Z,
39
- memo: Weekly Payment,
40
- company: 595c8f97-2ac4-45b7-b000-41bdf43240b5,
41
- currency: USD,
42
- exchange_rate: 2.9,
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: 100,
45
- total_tax_amount: 5,
46
- total_amount: 105,
47
- balance: 105,
48
- payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"],
49
- line_items: [{"id":"022a2bef-57e5-4def-8ed2-7c41bd9a5ed8","remote_id":"8765432","description":"Pickleball lessons","unit_price":50.0,"quantity":1.0,"total_amount":50.0,"currency":"USD","exchange_rate":"2.9","item":"5b3c1341-a20f-4e51-b72c-f3830a16c97b","account":"cd0f32d4-a493-11ec-b909-0242ac120002","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","remote_data":[{"path":"/actions","data":["Varies by platform"]}]}],
50
- integration_params: {"unique_integration_field":"unique_integration_field_value"},
51
- linked_account_params: {"unique_linked_account_field":"unique_linked_account_field_value"}
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/InvoicesApi.md CHANGED
@@ -118,6 +118,7 @@ opts = {
118
118
  created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
119
119
  created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
120
120
  cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
121
+ expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
121
122
  include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
122
123
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
123
124
  issue_date_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
@@ -168,6 +169,7 @@ end
168
169
  | **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
169
170
  | **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
170
171
  | **cursor** | **String** | The pagination cursor value. | [optional] |
172
+ | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
171
173
  | **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
172
174
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
173
175
  | **issue_date_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
@@ -290,6 +292,7 @@ api_instance = MergeAccountingClient::InvoicesApi.new
290
292
  x_account_token = 'x_account_token_example' # String | Token identifying the end user.
291
293
  id = TODO # String |
292
294
  opts = {
295
+ expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
293
296
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
294
297
  remote_fields: 'type', # String | Deprecated. Use show_enum_origins.
295
298
  show_enum_origins: 'type' # String | Which fields should be returned in non-normalized form.
@@ -328,6 +331,7 @@ end
328
331
  | ---- | ---- | ----------- | ----- |
329
332
  | **x_account_token** | **String** | Token identifying the end user. | |
330
333
  | **id** | [**String**](.md) | | |
334
+ | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
331
335
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
332
336
  | **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
333
337
  | **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |