merge_accounting_client 1.0.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +18 -4
- data/docs/Account.md +3 -1
- data/docs/AccountIntegration.md +4 -2
- data/docs/AccountingAttachment.md +3 -1
- data/docs/AccountingPeriod.md +30 -0
- data/docs/AccountingPeriodStatusEnum.md +15 -0
- data/docs/AccountingPeriodsApi.md +167 -0
- data/docs/AccountingPhoneNumber.md +2 -0
- data/docs/Address.md +2 -0
- data/docs/AddressRequest.md +34 -0
- data/docs/AuditLogEvent.md +32 -0
- data/docs/AuditTrailApi.md +91 -0
- data/docs/BalanceSheet.md +3 -1
- data/docs/CashFlowStatement.md +3 -1
- data/docs/CompanyInfo.md +3 -1
- data/docs/Contact.md +4 -2
- data/docs/ContactRequest.md +1 -1
- data/docs/ContactsApi.md +4 -0
- data/docs/CreditNote.md +8 -2
- data/docs/CreditNoteLineItem.md +6 -0
- data/docs/CreditNotesApi.md +2 -2
- data/docs/EndUserDetailsRequest.md +1 -1
- data/docs/EventTypeEnum.md +15 -0
- data/docs/Expense.md +10 -2
- data/docs/ExpenseLine.md +8 -0
- data/docs/ExpenseLineRequest.md +2 -0
- data/docs/ExpenseRequest.md +7 -1
- data/docs/IncomeStatement.md +3 -1
- data/docs/Invoice.md +11 -1
- data/docs/InvoiceLineItem.md +5 -1
- data/docs/InvoiceRequest.md +4 -0
- data/docs/InvoiceStatusEnum.md +15 -0
- data/docs/InvoicesApi.md +2 -2
- data/docs/Issue.md +1 -1
- data/docs/Item.md +3 -1
- data/docs/JournalEntriesApi.md +2 -2
- data/docs/JournalEntry.md +9 -1
- data/docs/JournalEntryRequest.md +4 -0
- data/docs/JournalLine.md +10 -0
- data/docs/JournalLineRequest.md +4 -0
- data/docs/LinkedAccountsApi.md +2 -2
- data/docs/MetaResponse.md +2 -2
- data/docs/PaginatedAccountingPeriodList.md +22 -0
- data/docs/PaginatedAuditLogEventList.md +22 -0
- data/docs/Payment.md +7 -1
- data/docs/PaymentLineItem.md +32 -0
- data/docs/PaymentLineItemRequest.md +30 -0
- data/docs/PaymentRequest.md +4 -0
- data/docs/PurchaseOrder.md +9 -3
- data/docs/PurchaseOrderLineItem.md +6 -0
- data/docs/PurchaseOrderRequest.md +2 -0
- data/docs/PurchaseOrdersApi.md +2 -2
- data/docs/ReportItem.md +2 -0
- data/docs/RoleEnum.md +15 -0
- data/docs/SyncStatusApi.md +1 -1
- data/docs/TaxRate.md +3 -1
- data/docs/TrackingCategory.md +3 -1
- data/docs/Transaction.md +7 -3
- data/docs/TransactionLineItem.md +6 -0
- data/docs/VendorCredit.md +6 -2
- data/docs/VendorCreditLine.md +6 -0
- data/docs/VendorCreditsApi.md +2 -2
- data/lib/merge_accounting_client/api/accounting_periods_api.rb +167 -0
- data/lib/merge_accounting_client/api/audit_trail_api.rb +95 -0
- data/lib/merge_accounting_client/api/contacts_api.rb +6 -0
- data/lib/merge_accounting_client/api/credit_notes_api.rb +2 -2
- data/lib/merge_accounting_client/api/expenses_api.rb +2 -2
- data/lib/merge_accounting_client/api/invoices_api.rb +2 -2
- data/lib/merge_accounting_client/api/journal_entries_api.rb +2 -2
- data/lib/merge_accounting_client/api/linked_accounts_api.rb +3 -3
- data/lib/merge_accounting_client/api/payments_api.rb +2 -2
- data/lib/merge_accounting_client/api/purchase_orders_api.rb +2 -2
- data/lib/merge_accounting_client/api/sync_status_api.rb +2 -2
- data/lib/merge_accounting_client/api/transactions_api.rb +2 -2
- data/lib/merge_accounting_client/api/vendor_credits_api.rb +2 -2
- data/lib/merge_accounting_client/configuration.rb +4 -0
- data/lib/merge_accounting_client/models/account.rb +12 -3
- data/lib/merge_accounting_client/models/account_integration.rb +15 -4
- data/lib/merge_accounting_client/models/account_request.rb +1 -1
- data/lib/merge_accounting_client/models/accounting_attachment.rb +11 -2
- data/lib/merge_accounting_client/models/accounting_period.rb +296 -0
- data/lib/merge_accounting_client/models/accounting_period_status_enum.rb +45 -0
- data/lib/merge_accounting_client/models/accounting_phone_number.rb +10 -1
- data/lib/merge_accounting_client/models/address.rb +10 -1
- data/lib/merge_accounting_client/models/address_request.rb +311 -0
- data/lib/merge_accounting_client/models/audit_log_event.rb +356 -0
- data/lib/merge_accounting_client/models/balance_sheet.rb +11 -2
- data/lib/merge_accounting_client/models/cash_flow_statement.rb +11 -2
- data/lib/merge_accounting_client/models/company_info.rb +12 -3
- data/lib/merge_accounting_client/models/contact.rb +13 -4
- data/lib/merge_accounting_client/models/contact_request.rb +2 -2
- data/lib/merge_accounting_client/models/credit_note.rb +35 -3
- data/lib/merge_accounting_client/models/credit_note_line_item.rb +29 -1
- data/lib/merge_accounting_client/models/end_user_details_request.rb +1 -1
- data/lib/merge_accounting_client/models/event_type_enum.rb +67 -0
- data/lib/merge_accounting_client/models/expense.rb +45 -3
- data/lib/merge_accounting_client/models/expense_line.rb +40 -1
- data/lib/merge_accounting_client/models/expense_line_request.rb +12 -1
- data/lib/merge_accounting_client/models/expense_request.rb +35 -2
- data/lib/merge_accounting_client/models/income_statement.rb +11 -2
- data/lib/merge_accounting_client/models/invoice.rb +55 -1
- data/lib/merge_accounting_client/models/invoice_line_item.rb +20 -1
- data/lib/merge_accounting_client/models/invoice_request.rb +23 -1
- data/lib/merge_accounting_client/models/invoice_status_enum.rb +49 -0
- data/lib/merge_accounting_client/models/item.rb +11 -2
- data/lib/merge_accounting_client/models/journal_entry.rb +60 -2
- data/lib/merge_accounting_client/models/journal_entry_request.rb +38 -1
- data/lib/merge_accounting_client/models/journal_line.rb +51 -1
- data/lib/merge_accounting_client/models/journal_line_request.rb +23 -1
- data/lib/merge_accounting_client/models/paginated_accounting_period_list.rb +240 -0
- data/lib/merge_accounting_client/models/paginated_audit_log_event_list.rb +240 -0
- data/lib/merge_accounting_client/models/payment.rb +34 -2
- data/lib/merge_accounting_client/models/payment_line_item.rb +308 -0
- data/lib/merge_accounting_client/models/payment_line_item_request.rb +319 -0
- data/lib/merge_accounting_client/models/payment_request.rb +24 -1
- data/lib/merge_accounting_client/models/purchase_order.rb +49 -3
- data/lib/merge_accounting_client/models/purchase_order_line_item.rb +29 -1
- data/lib/merge_accounting_client/models/purchase_order_request.rb +12 -1
- data/lib/merge_accounting_client/models/report_item.rb +10 -1
- data/lib/merge_accounting_client/models/role_enum.rb +49 -0
- data/lib/merge_accounting_client/models/tax_rate.rb +11 -2
- data/lib/merge_accounting_client/models/tracking_category.rb +12 -3
- data/lib/merge_accounting_client/models/transaction.rb +23 -3
- data/lib/merge_accounting_client/models/transaction_line_item.rb +29 -1
- data/lib/merge_accounting_client/models/vendor_credit.rb +23 -3
- data/lib/merge_accounting_client/models/vendor_credit_line.rb +29 -1
- data/lib/merge_accounting_client/version.rb +1 -1
- data/lib/merge_accounting_client.rb +13 -9
- data/spec/api/accounting_periods_api_spec.rb +63 -0
- data/spec/api/audit_trail_api_spec.rb +51 -0
- data/spec/api/contacts_api_spec.rb +2 -0
- data/spec/api/linked_accounts_api_spec.rb +1 -1
- data/spec/api/sync_status_api_spec.rb +1 -1
- data/spec/models/account_integration_spec.rb +6 -0
- data/spec/models/account_spec.rb +6 -0
- data/spec/models/accounting_attachment_spec.rb +6 -0
- data/spec/models/accounting_period_spec.rb +70 -0
- data/spec/models/accounting_period_status_enum_spec.rb +28 -0
- data/spec/models/accounting_phone_number_spec.rb +6 -0
- data/spec/models/address_request_spec.rb +82 -0
- data/spec/models/address_spec.rb +6 -0
- data/spec/models/audit_log_event_spec.rb +76 -0
- data/spec/models/balance_sheet_spec.rb +6 -0
- data/spec/models/cash_flow_statement_spec.rb +6 -0
- data/spec/models/company_info_spec.rb +6 -0
- data/spec/models/contact_spec.rb +6 -0
- data/spec/models/credit_note_line_item_spec.rb +18 -0
- data/spec/models/credit_note_spec.rb +18 -0
- data/spec/models/event_type_enum_spec.rb +28 -0
- data/spec/models/expense_line_request_spec.rb +6 -0
- data/spec/models/expense_line_spec.rb +24 -0
- data/spec/models/expense_request_spec.rb +18 -0
- data/spec/models/expense_spec.rb +24 -0
- data/spec/models/income_statement_spec.rb +6 -0
- data/spec/models/invoice_line_item_spec.rb +12 -0
- data/spec/models/invoice_request_spec.rb +12 -0
- data/spec/models/invoice_spec.rb +30 -0
- data/spec/models/invoice_status_enum_spec.rb +28 -0
- data/spec/models/item_spec.rb +6 -0
- data/spec/models/journal_entry_request_spec.rb +12 -0
- data/spec/models/journal_entry_spec.rb +24 -0
- data/spec/models/journal_line_request_spec.rb +12 -0
- data/spec/models/journal_line_spec.rb +30 -0
- data/spec/models/paginated_accounting_period_list_spec.rb +46 -0
- data/spec/models/paginated_audit_log_event_list_spec.rb +46 -0
- data/spec/models/payment_line_item_request_spec.rb +70 -0
- data/spec/models/payment_line_item_spec.rb +76 -0
- data/spec/models/payment_request_spec.rb +12 -0
- data/spec/models/payment_spec.rb +18 -0
- data/spec/models/purchase_order_line_item_spec.rb +18 -0
- data/spec/models/purchase_order_request_spec.rb +6 -0
- data/spec/models/purchase_order_spec.rb +18 -0
- data/spec/models/report_item_spec.rb +6 -0
- data/spec/models/role_enum_spec.rb +28 -0
- data/spec/models/tax_rate_spec.rb +6 -0
- data/spec/models/tracking_category_spec.rb +6 -0
- data/spec/models/transaction_line_item_spec.rb +18 -0
- data/spec/models/transaction_spec.rb +12 -0
- data/spec/models/vendor_credit_line_spec.rb +18 -0
- data/spec/models/vendor_credit_spec.rb +12 -0
- metadata +204 -152
@@ -45,9 +45,11 @@ module MergeAccountingClient
|
|
45
45
|
# The time that balance sheet was generated by the accounting system.
|
46
46
|
attr_accessor :remote_generated_at
|
47
47
|
|
48
|
-
# Indicates whether or not this object has been deleted
|
48
|
+
# Indicates whether or not this object has been deleted in the third party platform.
|
49
49
|
attr_accessor :remote_was_deleted
|
50
50
|
|
51
|
+
attr_accessor :created_at
|
52
|
+
|
51
53
|
# This is the datetime that this object was last updated by Merge
|
52
54
|
attr_accessor :modified_at
|
53
55
|
|
@@ -70,6 +72,7 @@ module MergeAccountingClient
|
|
70
72
|
:'equity' => :'equity',
|
71
73
|
:'remote_generated_at' => :'remote_generated_at',
|
72
74
|
:'remote_was_deleted' => :'remote_was_deleted',
|
75
|
+
:'created_at' => :'created_at',
|
73
76
|
:'modified_at' => :'modified_at',
|
74
77
|
:'field_mappings' => :'field_mappings',
|
75
78
|
:'remote_data' => :'remote_data'
|
@@ -96,6 +99,7 @@ module MergeAccountingClient
|
|
96
99
|
:'equity' => :'Array<ReportItem>',
|
97
100
|
:'remote_generated_at' => :'Time',
|
98
101
|
:'remote_was_deleted' => :'Boolean',
|
102
|
+
:'created_at' => :'Time',
|
99
103
|
:'modified_at' => :'Time',
|
100
104
|
:'field_mappings' => :'Hash<String, Object>',
|
101
105
|
:'remote_data' => :'Array<RemoteData>'
|
@@ -186,6 +190,10 @@ module MergeAccountingClient
|
|
186
190
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
187
191
|
end
|
188
192
|
|
193
|
+
if attributes.key?(:'created_at')
|
194
|
+
self.created_at = attributes[:'created_at']
|
195
|
+
end
|
196
|
+
|
189
197
|
if attributes.key?(:'modified_at')
|
190
198
|
self.modified_at = attributes[:'modified_at']
|
191
199
|
end
|
@@ -233,6 +241,7 @@ module MergeAccountingClient
|
|
233
241
|
equity == o.equity &&
|
234
242
|
remote_generated_at == o.remote_generated_at &&
|
235
243
|
remote_was_deleted == o.remote_was_deleted &&
|
244
|
+
created_at == o.created_at &&
|
236
245
|
modified_at == o.modified_at &&
|
237
246
|
field_mappings == o.field_mappings &&
|
238
247
|
remote_data == o.remote_data
|
@@ -247,7 +256,7 @@ module MergeAccountingClient
|
|
247
256
|
# Calculates hash code according to all attributes.
|
248
257
|
# @return [Integer] Hash code
|
249
258
|
def hash
|
250
|
-
[id, remote_id, name, currency, company, date, net_assets, assets, liabilities, equity, remote_generated_at, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
259
|
+
[id, remote_id, name, currency, company, date, net_assets, assets, liabilities, equity, remote_generated_at, remote_was_deleted, created_at, modified_at, field_mappings, remote_data].hash
|
251
260
|
end
|
252
261
|
|
253
262
|
# Builds the object from hash
|
@@ -51,9 +51,11 @@ module MergeAccountingClient
|
|
51
51
|
# The time that cash flow statement was generated by the accounting system.
|
52
52
|
attr_accessor :remote_generated_at
|
53
53
|
|
54
|
-
# Indicates whether or not this object has been deleted
|
54
|
+
# Indicates whether or not this object has been deleted in the third party platform.
|
55
55
|
attr_accessor :remote_was_deleted
|
56
56
|
|
57
|
+
attr_accessor :created_at
|
58
|
+
|
57
59
|
# This is the datetime that this object was last updated by Merge
|
58
60
|
attr_accessor :modified_at
|
59
61
|
|
@@ -78,6 +80,7 @@ module MergeAccountingClient
|
|
78
80
|
:'financing_activities' => :'financing_activities',
|
79
81
|
:'remote_generated_at' => :'remote_generated_at',
|
80
82
|
:'remote_was_deleted' => :'remote_was_deleted',
|
83
|
+
:'created_at' => :'created_at',
|
81
84
|
:'modified_at' => :'modified_at',
|
82
85
|
:'field_mappings' => :'field_mappings',
|
83
86
|
:'remote_data' => :'remote_data'
|
@@ -106,6 +109,7 @@ module MergeAccountingClient
|
|
106
109
|
:'financing_activities' => :'Array<ReportItem>',
|
107
110
|
:'remote_generated_at' => :'Time',
|
108
111
|
:'remote_was_deleted' => :'Boolean',
|
112
|
+
:'created_at' => :'Time',
|
109
113
|
:'modified_at' => :'Time',
|
110
114
|
:'field_mappings' => :'Hash<String, Object>',
|
111
115
|
:'remote_data' => :'Array<RemoteData>'
|
@@ -206,6 +210,10 @@ module MergeAccountingClient
|
|
206
210
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
207
211
|
end
|
208
212
|
|
213
|
+
if attributes.key?(:'created_at')
|
214
|
+
self.created_at = attributes[:'created_at']
|
215
|
+
end
|
216
|
+
|
209
217
|
if attributes.key?(:'modified_at')
|
210
218
|
self.modified_at = attributes[:'modified_at']
|
211
219
|
end
|
@@ -255,6 +263,7 @@ module MergeAccountingClient
|
|
255
263
|
financing_activities == o.financing_activities &&
|
256
264
|
remote_generated_at == o.remote_generated_at &&
|
257
265
|
remote_was_deleted == o.remote_was_deleted &&
|
266
|
+
created_at == o.created_at &&
|
258
267
|
modified_at == o.modified_at &&
|
259
268
|
field_mappings == o.field_mappings &&
|
260
269
|
remote_data == o.remote_data
|
@@ -269,7 +278,7 @@ module MergeAccountingClient
|
|
269
278
|
# Calculates hash code according to all attributes.
|
270
279
|
# @return [Integer] Hash code
|
271
280
|
def hash
|
272
|
-
[id, remote_id, name, currency, company, start_period, end_period, cash_at_beginning_of_period, cash_at_end_of_period, operating_activities, investing_activities, financing_activities, remote_generated_at, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
281
|
+
[id, remote_id, name, currency, company, start_period, end_period, cash_at_beginning_of_period, cash_at_end_of_period, operating_activities, investing_activities, financing_activities, remote_generated_at, remote_was_deleted, created_at, modified_at, field_mappings, remote_data].hash
|
273
282
|
end
|
274
283
|
|
275
284
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeAccountingClient
|
17
|
-
# # The CompanyInfo Object ### Description The `CompanyInfo` object
|
17
|
+
# # The CompanyInfo Object ### Description The `CompanyInfo` object contains information about the company of the linked account. If the company has multiple entities (also known as subsidiaries), each entity may show up as a single `CompanyInfo` record. ### Usage Example Fetch from the `GET CompanyInfo` endpoint and view a company's information.
|
18
18
|
class CompanyInfo
|
19
19
|
attr_accessor :id
|
20
20
|
|
@@ -49,9 +49,11 @@ module MergeAccountingClient
|
|
49
49
|
|
50
50
|
attr_accessor :phone_numbers
|
51
51
|
|
52
|
-
# Indicates whether or not this object has been deleted
|
52
|
+
# Indicates whether or not this object has been deleted in the third party platform.
|
53
53
|
attr_accessor :remote_was_deleted
|
54
54
|
|
55
|
+
attr_accessor :created_at
|
56
|
+
|
55
57
|
# This is the datetime that this object was last updated by Merge
|
56
58
|
attr_accessor :modified_at
|
57
59
|
|
@@ -75,6 +77,7 @@ module MergeAccountingClient
|
|
75
77
|
:'addresses' => :'addresses',
|
76
78
|
:'phone_numbers' => :'phone_numbers',
|
77
79
|
:'remote_was_deleted' => :'remote_was_deleted',
|
80
|
+
:'created_at' => :'created_at',
|
78
81
|
:'modified_at' => :'modified_at',
|
79
82
|
:'field_mappings' => :'field_mappings',
|
80
83
|
:'remote_data' => :'remote_data'
|
@@ -102,6 +105,7 @@ module MergeAccountingClient
|
|
102
105
|
:'addresses' => :'Array<Address>',
|
103
106
|
:'phone_numbers' => :'Array<AccountingPhoneNumber>',
|
104
107
|
:'remote_was_deleted' => :'Boolean',
|
108
|
+
:'created_at' => :'Time',
|
105
109
|
:'modified_at' => :'Time',
|
106
110
|
:'field_mappings' => :'Hash<String, Object>',
|
107
111
|
:'remote_data' => :'Array<RemoteData>'
|
@@ -198,6 +202,10 @@ module MergeAccountingClient
|
|
198
202
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
199
203
|
end
|
200
204
|
|
205
|
+
if attributes.key?(:'created_at')
|
206
|
+
self.created_at = attributes[:'created_at']
|
207
|
+
end
|
208
|
+
|
201
209
|
if attributes.key?(:'modified_at')
|
202
210
|
self.modified_at = attributes[:'modified_at']
|
203
211
|
end
|
@@ -294,6 +302,7 @@ module MergeAccountingClient
|
|
294
302
|
addresses == o.addresses &&
|
295
303
|
phone_numbers == o.phone_numbers &&
|
296
304
|
remote_was_deleted == o.remote_was_deleted &&
|
305
|
+
created_at == o.created_at &&
|
297
306
|
modified_at == o.modified_at &&
|
298
307
|
field_mappings == o.field_mappings &&
|
299
308
|
remote_data == o.remote_data
|
@@ -308,7 +317,7 @@ module MergeAccountingClient
|
|
308
317
|
# Calculates hash code according to all attributes.
|
309
318
|
# @return [Integer] Hash code
|
310
319
|
def hash
|
311
|
-
[id, remote_id, name, legal_name, tax_number, fiscal_year_end_month, fiscal_year_end_day, currency, remote_created_at, urls, addresses, phone_numbers, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
320
|
+
[id, remote_id, name, legal_name, tax_number, fiscal_year_end_month, fiscal_year_end_day, currency, remote_created_at, urls, addresses, phone_numbers, remote_was_deleted, created_at, modified_at, field_mappings, remote_data].hash
|
312
321
|
end
|
313
322
|
|
314
323
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeAccountingClient
|
17
|
-
# # The Contact Object ### Description The `Contact`
|
17
|
+
# # The Contact Object ### Description A `Contact` is an individual or business entity to which products and services are sold to or purchased from. The `Contact` model contains both Customers, in which products and services are sold to, and Vendors (or Suppliers), in which products and services are purchased from. * A `Contact` is a Vendor/Supplier if the `is_supplier` property is true. * A `Contact` is a customer if the `is_customer` property is true. ### Usage Example Fetch from the `LIST Contacts` endpoint and view a company's contacts.
|
18
18
|
class Contact
|
19
19
|
attr_accessor :id
|
20
20
|
|
@@ -54,9 +54,11 @@ module MergeAccountingClient
|
|
54
54
|
# `AccountingPhoneNumber` object for the given `Contacts` object.
|
55
55
|
attr_accessor :phone_numbers
|
56
56
|
|
57
|
-
# Indicates whether or not this object has been deleted
|
57
|
+
# Indicates whether or not this object has been deleted in the third party platform.
|
58
58
|
attr_accessor :remote_was_deleted
|
59
59
|
|
60
|
+
attr_accessor :created_at
|
61
|
+
|
60
62
|
# This is the datetime that this object was last updated by Merge
|
61
63
|
attr_accessor :modified_at
|
62
64
|
|
@@ -81,6 +83,7 @@ module MergeAccountingClient
|
|
81
83
|
:'addresses' => :'addresses',
|
82
84
|
:'phone_numbers' => :'phone_numbers',
|
83
85
|
:'remote_was_deleted' => :'remote_was_deleted',
|
86
|
+
:'created_at' => :'created_at',
|
84
87
|
:'modified_at' => :'modified_at',
|
85
88
|
:'field_mappings' => :'field_mappings',
|
86
89
|
:'remote_data' => :'remote_data'
|
@@ -106,9 +109,10 @@ module MergeAccountingClient
|
|
106
109
|
:'currency' => :'String',
|
107
110
|
:'remote_updated_at' => :'Time',
|
108
111
|
:'company' => :'String',
|
109
|
-
:'addresses' => :'Array<
|
112
|
+
:'addresses' => :'Array<Address>',
|
110
113
|
:'phone_numbers' => :'Array<AccountingPhoneNumber>',
|
111
114
|
:'remote_was_deleted' => :'Boolean',
|
115
|
+
:'created_at' => :'Time',
|
112
116
|
:'modified_at' => :'Time',
|
113
117
|
:'field_mappings' => :'Hash<String, Object>',
|
114
118
|
:'remote_data' => :'Array<RemoteData>'
|
@@ -208,6 +212,10 @@ module MergeAccountingClient
|
|
208
212
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
209
213
|
end
|
210
214
|
|
215
|
+
if attributes.key?(:'created_at')
|
216
|
+
self.created_at = attributes[:'created_at']
|
217
|
+
end
|
218
|
+
|
211
219
|
if attributes.key?(:'modified_at')
|
212
220
|
self.modified_at = attributes[:'modified_at']
|
213
221
|
end
|
@@ -257,6 +265,7 @@ module MergeAccountingClient
|
|
257
265
|
addresses == o.addresses &&
|
258
266
|
phone_numbers == o.phone_numbers &&
|
259
267
|
remote_was_deleted == o.remote_was_deleted &&
|
268
|
+
created_at == o.created_at &&
|
260
269
|
modified_at == o.modified_at &&
|
261
270
|
field_mappings == o.field_mappings &&
|
262
271
|
remote_data == o.remote_data
|
@@ -271,7 +280,7 @@ module MergeAccountingClient
|
|
271
280
|
# Calculates hash code according to all attributes.
|
272
281
|
# @return [Integer] Hash code
|
273
282
|
def hash
|
274
|
-
[id, remote_id, name, is_supplier, is_customer, email_address, tax_number, status, currency, remote_updated_at, company, addresses, phone_numbers, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
283
|
+
[id, remote_id, name, is_supplier, is_customer, email_address, tax_number, status, currency, remote_updated_at, company, addresses, phone_numbers, remote_was_deleted, created_at, modified_at, field_mappings, remote_data].hash
|
275
284
|
end
|
276
285
|
|
277
286
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeAccountingClient
|
17
|
-
# # The Contact Object ### Description The `Contact`
|
17
|
+
# # The Contact Object ### Description A `Contact` is an individual or business entity to which products and services are sold to or purchased from. The `Contact` model contains both Customers, in which products and services are sold to, and Vendors (or Suppliers), in which products and services are purchased from. * A `Contact` is a Vendor/Supplier if the `is_supplier` property is true. * A `Contact` is a customer if the `is_customer` property is true. ### Usage Example Fetch from the `LIST Contacts` endpoint and view a company's contacts.
|
18
18
|
class ContactRequest
|
19
19
|
# The contact's name.
|
20
20
|
attr_accessor :name
|
@@ -84,7 +84,7 @@ module MergeAccountingClient
|
|
84
84
|
:'status' => :'Status7d1Enum',
|
85
85
|
:'currency' => :'String',
|
86
86
|
:'company' => :'String',
|
87
|
-
:'addresses' => :'Array<
|
87
|
+
:'addresses' => :'Array<AddressRequest>',
|
88
88
|
:'phone_numbers' => :'Array<AccountingPhoneNumberRequest>',
|
89
89
|
:'integration_params' => :'Hash<String, Object>',
|
90
90
|
:'linked_account_params' => :'Hash<String, Object>'
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeAccountingClient
|
17
|
-
# # The CreditNote Object ### Description
|
17
|
+
# # The CreditNote Object ### Description A `CreditNote` is transaction issued to a customer, indicating a reduction or cancellation of the amount owed by the customer. It is most generally used as an adjustment note used to rectify errors, returns, or overpayments related to a sales transaction. A `CreditNote` can be applied to *Accounts Receivable* Invoices to decrease the overall amount of the Invoice. ### Usage Example Fetch from the `LIST CreditNotes` endpoint and view a company's credit notes.
|
18
18
|
class CreditNote
|
19
19
|
attr_accessor :id
|
20
20
|
|
@@ -61,9 +61,17 @@ module MergeAccountingClient
|
|
61
61
|
# Array of `Payment` object IDs
|
62
62
|
attr_accessor :payments
|
63
63
|
|
64
|
-
#
|
64
|
+
# A list of the Payment Applied to Lines common models related to a given Invoice, Credit Note, or Journal Entry.
|
65
|
+
attr_accessor :applied_payments
|
66
|
+
|
67
|
+
# Indicates whether or not this object has been deleted in the third party platform.
|
65
68
|
attr_accessor :remote_was_deleted
|
66
69
|
|
70
|
+
# The accounting period that the CreditNote was generated in.
|
71
|
+
attr_accessor :accounting_period
|
72
|
+
|
73
|
+
attr_accessor :created_at
|
74
|
+
|
67
75
|
# This is the datetime that this object was last updated by Merge
|
68
76
|
attr_accessor :modified_at
|
69
77
|
|
@@ -90,7 +98,10 @@ module MergeAccountingClient
|
|
90
98
|
:'remote_created_at' => :'remote_created_at',
|
91
99
|
:'remote_updated_at' => :'remote_updated_at',
|
92
100
|
:'payments' => :'payments',
|
101
|
+
:'applied_payments' => :'applied_payments',
|
93
102
|
:'remote_was_deleted' => :'remote_was_deleted',
|
103
|
+
:'accounting_period' => :'accounting_period',
|
104
|
+
:'created_at' => :'created_at',
|
94
105
|
:'modified_at' => :'modified_at',
|
95
106
|
:'field_mappings' => :'field_mappings',
|
96
107
|
:'remote_data' => :'remote_data'
|
@@ -121,7 +132,10 @@ module MergeAccountingClient
|
|
121
132
|
:'remote_created_at' => :'Time',
|
122
133
|
:'remote_updated_at' => :'Time',
|
123
134
|
:'payments' => :'Array<String>',
|
135
|
+
:'applied_payments' => :'Array<String>',
|
124
136
|
:'remote_was_deleted' => :'Boolean',
|
137
|
+
:'accounting_period' => :'String',
|
138
|
+
:'created_at' => :'Time',
|
125
139
|
:'modified_at' => :'Time',
|
126
140
|
:'field_mappings' => :'Hash<String, Object>',
|
127
141
|
:'remote_data' => :'Array<RemoteData>'
|
@@ -143,6 +157,7 @@ module MergeAccountingClient
|
|
143
157
|
:'currency',
|
144
158
|
:'remote_created_at',
|
145
159
|
:'remote_updated_at',
|
160
|
+
:'accounting_period',
|
146
161
|
:'field_mappings',
|
147
162
|
:'remote_data'
|
148
163
|
])
|
@@ -233,10 +248,24 @@ module MergeAccountingClient
|
|
233
248
|
end
|
234
249
|
end
|
235
250
|
|
251
|
+
if attributes.key?(:'applied_payments')
|
252
|
+
if (value = attributes[:'applied_payments']).is_a?(Array)
|
253
|
+
self.applied_payments = value
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
236
257
|
if attributes.key?(:'remote_was_deleted')
|
237
258
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
238
259
|
end
|
239
260
|
|
261
|
+
if attributes.key?(:'accounting_period')
|
262
|
+
self.accounting_period = attributes[:'accounting_period']
|
263
|
+
end
|
264
|
+
|
265
|
+
if attributes.key?(:'created_at')
|
266
|
+
self.created_at = attributes[:'created_at']
|
267
|
+
end
|
268
|
+
|
240
269
|
if attributes.key?(:'modified_at')
|
241
270
|
self.modified_at = attributes[:'modified_at']
|
242
271
|
end
|
@@ -305,7 +334,10 @@ module MergeAccountingClient
|
|
305
334
|
remote_created_at == o.remote_created_at &&
|
306
335
|
remote_updated_at == o.remote_updated_at &&
|
307
336
|
payments == o.payments &&
|
337
|
+
applied_payments == o.applied_payments &&
|
308
338
|
remote_was_deleted == o.remote_was_deleted &&
|
339
|
+
accounting_period == o.accounting_period &&
|
340
|
+
created_at == o.created_at &&
|
309
341
|
modified_at == o.modified_at &&
|
310
342
|
field_mappings == o.field_mappings &&
|
311
343
|
remote_data == o.remote_data
|
@@ -320,7 +352,7 @@ module MergeAccountingClient
|
|
320
352
|
# Calculates hash code according to all attributes.
|
321
353
|
# @return [Integer] Hash code
|
322
354
|
def hash
|
323
|
-
[id, remote_id, transaction_date, status, number, contact, company, exchange_rate, total_amount, remaining_credit, line_items, tracking_categories, currency, remote_created_at, remote_updated_at, payments, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
355
|
+
[id, remote_id, transaction_date, status, number, contact, company, exchange_rate, total_amount, remaining_credit, line_items, tracking_categories, currency, remote_created_at, remote_updated_at, payments, applied_payments, remote_was_deleted, accounting_period, created_at, modified_at, field_mappings, remote_data].hash
|
324
356
|
end
|
325
357
|
|
326
358
|
# Builds the object from hash
|
@@ -53,6 +53,13 @@ module MergeAccountingClient
|
|
53
53
|
# The third-party API ID of the matching object.
|
54
54
|
attr_accessor :remote_id
|
55
55
|
|
56
|
+
# Indicates whether or not this object has been deleted in the third party platform.
|
57
|
+
attr_accessor :remote_was_deleted
|
58
|
+
|
59
|
+
attr_accessor :id
|
60
|
+
|
61
|
+
attr_accessor :created_at
|
62
|
+
|
56
63
|
# This is the datetime that this object was last updated by Merge
|
57
64
|
attr_accessor :modified_at
|
58
65
|
|
@@ -72,6 +79,9 @@ module MergeAccountingClient
|
|
72
79
|
:'account' => :'account',
|
73
80
|
:'company' => :'company',
|
74
81
|
:'remote_id' => :'remote_id',
|
82
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
83
|
+
:'id' => :'id',
|
84
|
+
:'created_at' => :'created_at',
|
75
85
|
:'modified_at' => :'modified_at'
|
76
86
|
}
|
77
87
|
end
|
@@ -97,6 +107,9 @@ module MergeAccountingClient
|
|
97
107
|
:'account' => :'String',
|
98
108
|
:'company' => :'String',
|
99
109
|
:'remote_id' => :'String',
|
110
|
+
:'remote_was_deleted' => :'Boolean',
|
111
|
+
:'id' => :'String',
|
112
|
+
:'created_at' => :'Time',
|
100
113
|
:'modified_at' => :'Time'
|
101
114
|
}
|
102
115
|
end
|
@@ -188,6 +201,18 @@ module MergeAccountingClient
|
|
188
201
|
self.remote_id = attributes[:'remote_id']
|
189
202
|
end
|
190
203
|
|
204
|
+
if attributes.key?(:'remote_was_deleted')
|
205
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
206
|
+
end
|
207
|
+
|
208
|
+
if attributes.key?(:'id')
|
209
|
+
self.id = attributes[:'id']
|
210
|
+
end
|
211
|
+
|
212
|
+
if attributes.key?(:'created_at')
|
213
|
+
self.created_at = attributes[:'created_at']
|
214
|
+
end
|
215
|
+
|
191
216
|
if attributes.key?(:'modified_at')
|
192
217
|
self.modified_at = attributes[:'modified_at']
|
193
218
|
end
|
@@ -280,6 +305,9 @@ module MergeAccountingClient
|
|
280
305
|
account == o.account &&
|
281
306
|
company == o.company &&
|
282
307
|
remote_id == o.remote_id &&
|
308
|
+
remote_was_deleted == o.remote_was_deleted &&
|
309
|
+
id == o.id &&
|
310
|
+
created_at == o.created_at &&
|
283
311
|
modified_at == o.modified_at
|
284
312
|
end
|
285
313
|
|
@@ -292,7 +320,7 @@ module MergeAccountingClient
|
|
292
320
|
# Calculates hash code according to all attributes.
|
293
321
|
# @return [Integer] Hash code
|
294
322
|
def hash
|
295
|
-
[item, name, description, quantity, memo, unit_price, tax_rate, total_line_amount, tracking_category, tracking_categories, account, company, remote_id, modified_at].hash
|
323
|
+
[item, name, description, quantity, memo, unit_price, tax_rate, total_line_amount, tracking_category, tracking_categories, account, company, remote_id, remote_was_deleted, id, created_at, modified_at].hash
|
296
324
|
end
|
297
325
|
|
298
326
|
# Builds the object from hash
|
@@ -27,7 +27,7 @@ module MergeAccountingClient
|
|
27
27
|
# The integration categories to show in Merge Link.
|
28
28
|
attr_accessor :categories
|
29
29
|
|
30
|
-
# The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://
|
30
|
+
# The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.
|
31
31
|
attr_accessor :integration
|
32
32
|
|
33
33
|
# An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.
|
@@ -0,0 +1,67 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge Accounting API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Accounting & Finance platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module MergeAccountingClient
|
17
|
+
class EventTypeEnum
|
18
|
+
CREATED_REMOTE_PRODUCTION_API_KEY = "CREATED_REMOTE_PRODUCTION_API_KEY".freeze
|
19
|
+
DELETED_REMOTE_PRODUCTION_API_KEY = "DELETED_REMOTE_PRODUCTION_API_KEY".freeze
|
20
|
+
CREATED_TEST_API_KEY = "CREATED_TEST_API_KEY".freeze
|
21
|
+
DELETED_TEST_API_KEY = "DELETED_TEST_API_KEY".freeze
|
22
|
+
REGENERATED_PRODUCTION_API_KEY = "REGENERATED_PRODUCTION_API_KEY".freeze
|
23
|
+
INVITED_USER = "INVITED_USER".freeze
|
24
|
+
TWO_FACTOR_AUTH_ENABLED = "TWO_FACTOR_AUTH_ENABLED".freeze
|
25
|
+
TWO_FACTOR_AUTH_DISABLED = "TWO_FACTOR_AUTH_DISABLED".freeze
|
26
|
+
DELETED_LINKED_ACCOUNT = "DELETED_LINKED_ACCOUNT".freeze
|
27
|
+
CREATED_DESTINATION = "CREATED_DESTINATION".freeze
|
28
|
+
DELETED_DESTINATION = "DELETED_DESTINATION".freeze
|
29
|
+
CHANGED_SCOPES = "CHANGED_SCOPES".freeze
|
30
|
+
CHANGED_PERSONAL_INFORMATION = "CHANGED_PERSONAL_INFORMATION".freeze
|
31
|
+
CHANGED_ORGANIZATION_SETTINGS = "CHANGED_ORGANIZATION_SETTINGS".freeze
|
32
|
+
ENABLED_INTEGRATION = "ENABLED_INTEGRATION".freeze
|
33
|
+
DISABLED_INTEGRATION = "DISABLED_INTEGRATION".freeze
|
34
|
+
ENABLED_CATEGORY = "ENABLED_CATEGORY".freeze
|
35
|
+
DISABLED_CATEGORY = "DISABLED_CATEGORY".freeze
|
36
|
+
CHANGED_PASSWORD = "CHANGED_PASSWORD".freeze
|
37
|
+
RESET_PASSWORD = "RESET_PASSWORD".freeze
|
38
|
+
ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION".freeze
|
39
|
+
ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT".freeze
|
40
|
+
DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION".freeze
|
41
|
+
DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT".freeze
|
42
|
+
|
43
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
44
|
+
|
45
|
+
attr_accessor :value
|
46
|
+
attr_accessor :raw_value
|
47
|
+
|
48
|
+
# Builds the enum from string
|
49
|
+
# @param [String] The enum value in the form of the string
|
50
|
+
# @return [String] The enum value
|
51
|
+
def build_from_hash(value)
|
52
|
+
@raw_value = value
|
53
|
+
if ["CREATED_REMOTE_PRODUCTION_API_KEY", "DELETED_REMOTE_PRODUCTION_API_KEY", "CREATED_TEST_API_KEY", "DELETED_TEST_API_KEY", "REGENERATED_PRODUCTION_API_KEY", "INVITED_USER", "TWO_FACTOR_AUTH_ENABLED", "TWO_FACTOR_AUTH_DISABLED", "DELETED_LINKED_ACCOUNT", "CREATED_DESTINATION", "DELETED_DESTINATION", "CHANGED_SCOPES", "CHANGED_PERSONAL_INFORMATION", "CHANGED_ORGANIZATION_SETTINGS", "ENABLED_INTEGRATION", "DISABLED_INTEGRATION", "ENABLED_CATEGORY", "DISABLED_CATEGORY", "CHANGED_PASSWORD", "RESET_PASSWORD", "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION", "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT", "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION", "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT", ].include? value
|
54
|
+
@value = value
|
55
|
+
else
|
56
|
+
@value = MERGE_NONSTANDARD_VALUE
|
57
|
+
end
|
58
|
+
|
59
|
+
self
|
60
|
+
end
|
61
|
+
|
62
|
+
def self.build_from_hash(value)
|
63
|
+
EventTypeEnum.new.build_from_hash(value)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
end
|