merge_accounting_client 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +224 -224
- data/docs/Account.md +2 -0
- data/docs/AccountIntegration.md +5 -1
- data/docs/AccountingAttachment.md +2 -0
- data/docs/AccountingPhoneNumber.md +3 -1
- data/docs/AccountsApi.md +4 -4
- data/docs/Address.md +4 -2
- data/docs/AsyncPassthroughApi.md +155 -0
- data/docs/AsyncPassthroughReciept.md +18 -0
- data/docs/AttachmentsApi.md +4 -4
- data/docs/BalanceSheet.md +2 -0
- data/docs/BalanceSheetsApi.md +4 -4
- data/docs/CashFlowStatement.md +2 -0
- data/docs/CashFlowStatementsApi.md +4 -4
- data/docs/CompanyInfo.md +3 -1
- data/docs/CompanyInfoApi.md +4 -4
- data/docs/Contact.md +2 -0
- data/docs/ContactsApi.md +4 -4
- data/docs/CreditNote.md +6 -0
- data/docs/CreditNoteLineItem.md +3 -1
- data/docs/CreditNotesApi.md +4 -4
- data/docs/DeleteAccountApi.md +9 -9
- data/docs/EndUserDetailsRequest.md +1 -1
- data/docs/Expense.md +4 -0
- data/docs/ExpenseLine.md +3 -1
- data/docs/ExpenseRequest.md +2 -0
- data/docs/ExpensesApi.md +4 -4
- data/docs/ForceResyncApi.md +1 -1
- data/docs/IncomeStatement.md +2 -0
- data/docs/IncomeStatementsApi.md +4 -4
- data/docs/Invoice.md +7 -3
- data/docs/InvoiceLineItem.md +2 -0
- data/docs/InvoiceRequest.md +3 -1
- data/docs/InvoicesApi.md +4 -4
- data/docs/Issue.md +1 -1
- data/docs/IssuesApi.md +6 -6
- data/docs/Item.md +2 -0
- data/docs/ItemsApi.md +4 -4
- data/docs/JournalEntriesApi.md +4 -4
- data/docs/JournalEntry.md +4 -0
- data/docs/JournalLine.md +3 -1
- data/docs/LinkedAccountsApi.md +2 -2
- data/docs/Payment.md +4 -0
- data/docs/PaymentRequest.md +2 -0
- data/docs/PaymentsApi.md +4 -4
- data/docs/PurchaseOrder.md +4 -0
- data/docs/PurchaseOrderLineItem.md +3 -1
- data/docs/PurchaseOrdersApi.md +4 -4
- data/docs/RemoteData.md +1 -1
- data/docs/ReportItem.md +3 -1
- data/docs/SyncStatus.md +1 -1
- data/docs/SyncStatusApi.md +15 -11
- data/docs/TaxRate.md +2 -0
- data/docs/TaxRatesApi.md +4 -4
- data/docs/TrackingCategoriesApi.md +4 -4
- data/docs/TrackingCategory.md +2 -0
- data/docs/Transaction.md +2 -0
- data/docs/TransactionLineItem.md +3 -1
- data/docs/TransactionsApi.md +4 -4
- data/docs/VendorCredit.md +4 -0
- data/docs/VendorCreditLine.md +3 -1
- data/docs/VendorCreditsApi.md +4 -4
- data/git_push.sh +58 -0
- data/lib/merge_accounting_client/api/accounts_api.rb +4 -4
- data/lib/merge_accounting_client/api/async_passthrough_api.rb +160 -0
- data/lib/merge_accounting_client/api/attachments_api.rb +4 -4
- data/lib/merge_accounting_client/api/balance_sheets_api.rb +4 -4
- data/lib/merge_accounting_client/api/cash_flow_statements_api.rb +4 -4
- data/lib/merge_accounting_client/api/company_info_api.rb +4 -4
- data/lib/merge_accounting_client/api/contacts_api.rb +4 -4
- data/lib/merge_accounting_client/api/credit_notes_api.rb +6 -6
- data/lib/merge_accounting_client/api/delete_account_api.rb +7 -7
- data/lib/merge_accounting_client/api/expenses_api.rb +6 -6
- data/lib/merge_accounting_client/api/force_resync_api.rb +2 -2
- data/lib/merge_accounting_client/api/income_statements_api.rb +4 -4
- data/lib/merge_accounting_client/api/invoices_api.rb +6 -6
- data/lib/merge_accounting_client/api/issues_api.rb +6 -6
- data/lib/merge_accounting_client/api/items_api.rb +4 -4
- data/lib/merge_accounting_client/api/journal_entries_api.rb +6 -6
- data/lib/merge_accounting_client/api/linked_accounts_api.rb +2 -2
- data/lib/merge_accounting_client/api/payments_api.rb +6 -6
- data/lib/merge_accounting_client/api/purchase_orders_api.rb +6 -6
- data/lib/merge_accounting_client/api/sync_status_api.rb +2 -2
- data/lib/merge_accounting_client/api/tax_rates_api.rb +4 -4
- data/lib/merge_accounting_client/api/tracking_categories_api.rb +4 -4
- data/lib/merge_accounting_client/api/transactions_api.rb +4 -4
- data/lib/merge_accounting_client/api/vendor_credits_api.rb +6 -6
- data/lib/merge_accounting_client/models/account.rb +11 -1
- data/lib/merge_accounting_client/models/account_integration.rb +26 -4
- data/lib/merge_accounting_client/models/accounting_attachment.rb +11 -1
- data/lib/merge_accounting_client/models/accounting_phone_number.rb +15 -5
- data/lib/merge_accounting_client/models/address.rb +15 -5
- data/lib/merge_accounting_client/models/async_passthrough_reciept.rb +223 -0
- data/lib/merge_accounting_client/models/balance_sheet.rb +11 -1
- data/lib/merge_accounting_client/models/cash_flow_statement.rb +11 -1
- data/lib/merge_accounting_client/models/company_info.rb +11 -1
- data/lib/merge_accounting_client/models/contact.rb +11 -1
- data/lib/merge_accounting_client/models/credit_note.rb +50 -1
- data/lib/merge_accounting_client/models/credit_note_line_item.rb +15 -5
- data/lib/merge_accounting_client/models/end_user_details_request.rb +1 -1
- data/lib/merge_accounting_client/models/expense.rb +22 -1
- data/lib/merge_accounting_client/models/expense_line.rb +15 -5
- data/lib/merge_accounting_client/models/expense_request.rb +12 -1
- data/lib/merge_accounting_client/models/income_statement.rb +11 -1
- data/lib/merge_accounting_client/models/invoice.rb +33 -12
- data/lib/merge_accounting_client/models/invoice_line_item.rb +12 -2
- data/lib/merge_accounting_client/models/invoice_line_item_request.rb +1 -1
- data/lib/merge_accounting_client/models/invoice_request.rb +13 -2
- data/lib/merge_accounting_client/models/issue.rb +1 -0
- data/lib/merge_accounting_client/models/item.rb +11 -1
- data/lib/merge_accounting_client/models/journal_entry.rb +22 -1
- data/lib/merge_accounting_client/models/journal_line.rb +15 -5
- data/lib/merge_accounting_client/models/payment.rb +22 -1
- data/lib/merge_accounting_client/models/payment_request.rb +12 -1
- data/lib/merge_accounting_client/models/purchase_order.rb +22 -1
- data/lib/merge_accounting_client/models/purchase_order_line_item.rb +15 -5
- data/lib/merge_accounting_client/models/remote_data.rb +3 -4
- data/lib/merge_accounting_client/models/report_item.rb +15 -5
- data/lib/merge_accounting_client/models/sync_status_status_enum.rb +1 -1
- data/lib/merge_accounting_client/models/tax_rate.rb +11 -1
- data/lib/merge_accounting_client/models/tracking_category.rb +11 -1
- data/lib/merge_accounting_client/models/transaction.rb +11 -1
- data/lib/merge_accounting_client/models/transaction_line_item.rb +15 -5
- data/lib/merge_accounting_client/models/vendor_credit.rb +22 -1
- data/lib/merge_accounting_client/models/vendor_credit_line.rb +15 -5
- data/lib/merge_accounting_client/version.rb +1 -1
- data/lib/merge_accounting_client.rb +6 -2
- data/spec/api/accounts_api_spec.rb +2 -2
- data/spec/api/async_passthrough_api_spec.rb +59 -0
- data/spec/api/attachments_api_spec.rb +2 -2
- data/spec/api/balance_sheets_api_spec.rb +2 -2
- data/spec/api/cash_flow_statements_api_spec.rb +2 -2
- data/spec/api/company_info_api_spec.rb +2 -2
- data/spec/api/contacts_api_spec.rb +2 -2
- data/spec/api/credit_notes_api_spec.rb +2 -2
- data/spec/api/delete_account_api_spec.rb +2 -2
- data/spec/api/expenses_api_spec.rb +2 -2
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/income_statements_api_spec.rb +2 -2
- data/spec/api/invoices_api_spec.rb +2 -2
- data/spec/api/issues_api_spec.rb +3 -3
- data/spec/api/items_api_spec.rb +2 -2
- data/spec/api/journal_entries_api_spec.rb +2 -2
- data/spec/api/linked_accounts_api_spec.rb +1 -1
- data/spec/api/payments_api_spec.rb +2 -2
- data/spec/api/purchase_orders_api_spec.rb +2 -2
- data/spec/api/sync_status_api_spec.rb +1 -1
- data/spec/api/tax_rates_api_spec.rb +2 -2
- data/spec/api/tracking_categories_api_spec.rb +2 -2
- data/spec/api/transactions_api_spec.rb +2 -2
- data/spec/api/vendor_credits_api_spec.rb +2 -2
- data/spec/models/account_integration_spec.rb +12 -0
- data/spec/models/account_spec.rb +6 -0
- data/spec/models/accounting_attachment_spec.rb +6 -0
- data/spec/models/accounting_phone_number_spec.rb +6 -0
- data/spec/models/address_spec.rb +6 -0
- data/spec/models/async_passthrough_reciept_spec.rb +34 -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 +6 -0
- data/spec/models/credit_note_spec.rb +18 -0
- data/spec/models/expense_line_spec.rb +6 -0
- data/spec/models/expense_request_spec.rb +6 -0
- data/spec/models/expense_spec.rb +12 -0
- data/spec/models/income_statement_spec.rb +6 -0
- data/spec/models/invoice_line_item_spec.rb +6 -0
- data/spec/models/invoice_request_spec.rb +6 -0
- data/spec/models/invoice_spec.rb +14 -2
- data/spec/models/item_spec.rb +6 -0
- data/spec/models/journal_entry_spec.rb +12 -0
- data/spec/models/journal_line_spec.rb +6 -0
- data/spec/models/payment_request_spec.rb +6 -0
- data/spec/models/payment_spec.rb +12 -0
- data/spec/models/purchase_order_line_item_spec.rb +6 -0
- data/spec/models/purchase_order_spec.rb +12 -0
- data/spec/models/report_item_spec.rb +6 -0
- data/spec/models/tax_rate_spec.rb +6 -0
- data/spec/models/tracking_category_spec.rb +6 -0
- data/spec/models/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
- data/spec/models/vendor_credit_spec.rb +12 -0
- metadata +163 -154
@@ -42,6 +42,8 @@ module MergeAccountingClient
|
|
42
42
|
|
43
43
|
attr_accessor :lines
|
44
44
|
|
45
|
+
attr_accessor :tracking_categories
|
46
|
+
|
45
47
|
attr_accessor :remote_was_deleted
|
46
48
|
|
47
49
|
# The journal's posting status. * `UNPOSTED` - UNPOSTED * `POSTED` - POSTED
|
@@ -52,6 +54,9 @@ module MergeAccountingClient
|
|
52
54
|
# The third-party API ID of the matching object.
|
53
55
|
attr_accessor :remote_id
|
54
56
|
|
57
|
+
# This is the datetime that this object was last updated by Merge
|
58
|
+
attr_accessor :modified_at
|
59
|
+
|
55
60
|
attr_accessor :field_mappings
|
56
61
|
|
57
62
|
attr_accessor :remote_data
|
@@ -68,10 +73,12 @@ module MergeAccountingClient
|
|
68
73
|
:'exchange_rate' => :'exchange_rate',
|
69
74
|
:'company' => :'company',
|
70
75
|
:'lines' => :'lines',
|
76
|
+
:'tracking_categories' => :'tracking_categories',
|
71
77
|
:'remote_was_deleted' => :'remote_was_deleted',
|
72
78
|
:'posting_status' => :'posting_status',
|
73
79
|
:'id' => :'id',
|
74
80
|
:'remote_id' => :'remote_id',
|
81
|
+
:'modified_at' => :'modified_at',
|
75
82
|
:'field_mappings' => :'field_mappings',
|
76
83
|
:'remote_data' => :'remote_data'
|
77
84
|
}
|
@@ -94,10 +101,12 @@ module MergeAccountingClient
|
|
94
101
|
:'exchange_rate' => :'String',
|
95
102
|
:'company' => :'String',
|
96
103
|
:'lines' => :'Array<JournalLine>',
|
104
|
+
:'tracking_categories' => :'Array<String>',
|
97
105
|
:'remote_was_deleted' => :'Boolean',
|
98
106
|
:'posting_status' => :'PostingStatusEnum',
|
99
107
|
:'id' => :'String',
|
100
108
|
:'remote_id' => :'String',
|
109
|
+
:'modified_at' => :'Time',
|
101
110
|
:'field_mappings' => :'Hash<String, Object>',
|
102
111
|
:'remote_data' => :'Array<RemoteData>'
|
103
112
|
}
|
@@ -175,6 +184,12 @@ module MergeAccountingClient
|
|
175
184
|
end
|
176
185
|
end
|
177
186
|
|
187
|
+
if attributes.key?(:'tracking_categories')
|
188
|
+
if (value = attributes[:'tracking_categories']).is_a?(Array)
|
189
|
+
self.tracking_categories = value
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
178
193
|
if attributes.key?(:'remote_was_deleted')
|
179
194
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
180
195
|
end
|
@@ -191,6 +206,10 @@ module MergeAccountingClient
|
|
191
206
|
self.remote_id = attributes[:'remote_id']
|
192
207
|
end
|
193
208
|
|
209
|
+
if attributes.key?(:'modified_at')
|
210
|
+
self.modified_at = attributes[:'modified_at']
|
211
|
+
end
|
212
|
+
|
194
213
|
if attributes.key?(:'field_mappings')
|
195
214
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
196
215
|
self.field_mappings = value
|
@@ -248,10 +267,12 @@ module MergeAccountingClient
|
|
248
267
|
exchange_rate == o.exchange_rate &&
|
249
268
|
company == o.company &&
|
250
269
|
lines == o.lines &&
|
270
|
+
tracking_categories == o.tracking_categories &&
|
251
271
|
remote_was_deleted == o.remote_was_deleted &&
|
252
272
|
posting_status == o.posting_status &&
|
253
273
|
id == o.id &&
|
254
274
|
remote_id == o.remote_id &&
|
275
|
+
modified_at == o.modified_at &&
|
255
276
|
field_mappings == o.field_mappings &&
|
256
277
|
remote_data == o.remote_data
|
257
278
|
end
|
@@ -265,7 +286,7 @@ module MergeAccountingClient
|
|
265
286
|
# Calculates hash code according to all attributes.
|
266
287
|
# @return [Integer] Hash code
|
267
288
|
def hash
|
268
|
-
[transaction_date, remote_created_at, remote_updated_at, payments, memo, currency, exchange_rate, company, lines, remote_was_deleted, posting_status, id, remote_id, field_mappings, remote_data].hash
|
289
|
+
[transaction_date, remote_created_at, remote_updated_at, payments, memo, currency, exchange_rate, company, lines, tracking_categories, remote_was_deleted, posting_status, id, remote_id, modified_at, field_mappings, remote_data].hash
|
269
290
|
end
|
270
291
|
|
271
292
|
# Builds the object from hash
|
@@ -36,6 +36,9 @@ module MergeAccountingClient
|
|
36
36
|
# The journal line item's exchange rate.
|
37
37
|
attr_accessor :exchange_rate
|
38
38
|
|
39
|
+
# This is the datetime that this object was last updated by Merge
|
40
|
+
attr_accessor :modified_at
|
41
|
+
|
39
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
43
|
def self.attribute_map
|
41
44
|
{
|
@@ -46,7 +49,8 @@ module MergeAccountingClient
|
|
46
49
|
:'tracking_categories' => :'tracking_categories',
|
47
50
|
:'contact' => :'contact',
|
48
51
|
:'description' => :'description',
|
49
|
-
:'exchange_rate' => :'exchange_rate'
|
52
|
+
:'exchange_rate' => :'exchange_rate',
|
53
|
+
:'modified_at' => :'modified_at'
|
50
54
|
}
|
51
55
|
end
|
52
56
|
|
@@ -65,7 +69,8 @@ module MergeAccountingClient
|
|
65
69
|
:'tracking_categories' => :'Array<String>',
|
66
70
|
:'contact' => :'String',
|
67
71
|
:'description' => :'String',
|
68
|
-
:'exchange_rate' => :'String'
|
72
|
+
:'exchange_rate' => :'String',
|
73
|
+
:'modified_at' => :'Time'
|
69
74
|
}
|
70
75
|
end
|
71
76
|
|
@@ -78,7 +83,7 @@ module MergeAccountingClient
|
|
78
83
|
:'tracking_category',
|
79
84
|
:'contact',
|
80
85
|
:'description',
|
81
|
-
:'exchange_rate'
|
86
|
+
:'exchange_rate',
|
82
87
|
])
|
83
88
|
end
|
84
89
|
|
@@ -130,6 +135,10 @@ module MergeAccountingClient
|
|
130
135
|
if attributes.key?(:'exchange_rate')
|
131
136
|
self.exchange_rate = attributes[:'exchange_rate']
|
132
137
|
end
|
138
|
+
|
139
|
+
if attributes.key?(:'modified_at')
|
140
|
+
self.modified_at = attributes[:'modified_at']
|
141
|
+
end
|
133
142
|
end
|
134
143
|
|
135
144
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -174,7 +183,8 @@ module MergeAccountingClient
|
|
174
183
|
tracking_categories == o.tracking_categories &&
|
175
184
|
contact == o.contact &&
|
176
185
|
description == o.description &&
|
177
|
-
exchange_rate == o.exchange_rate
|
186
|
+
exchange_rate == o.exchange_rate &&
|
187
|
+
modified_at == o.modified_at
|
178
188
|
end
|
179
189
|
|
180
190
|
# @see the `==` method
|
@@ -186,7 +196,7 @@ module MergeAccountingClient
|
|
186
196
|
# Calculates hash code according to all attributes.
|
187
197
|
# @return [Integer] Hash code
|
188
198
|
def hash
|
189
|
-
[remote_id, account, net_amount, tracking_category, tracking_categories, contact, description, exchange_rate].hash
|
199
|
+
[remote_id, account, net_amount, tracking_category, tracking_categories, contact, description, exchange_rate, modified_at].hash
|
190
200
|
end
|
191
201
|
|
192
202
|
# Builds the object from hash
|
@@ -42,12 +42,17 @@ module MergeAccountingClient
|
|
42
42
|
# The total amount of money being paid to the supplier, or customer, after taxes.
|
43
43
|
attr_accessor :total_amount
|
44
44
|
|
45
|
+
attr_accessor :tracking_categories
|
46
|
+
|
45
47
|
# When the third party's payment entry was updated.
|
46
48
|
attr_accessor :remote_updated_at
|
47
49
|
|
48
50
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
49
51
|
attr_accessor :remote_was_deleted
|
50
52
|
|
53
|
+
# This is the datetime that this object was last updated by Merge
|
54
|
+
attr_accessor :modified_at
|
55
|
+
|
51
56
|
attr_accessor :field_mappings
|
52
57
|
|
53
58
|
attr_accessor :remote_data
|
@@ -64,8 +69,10 @@ module MergeAccountingClient
|
|
64
69
|
:'exchange_rate' => :'exchange_rate',
|
65
70
|
:'company' => :'company',
|
66
71
|
:'total_amount' => :'total_amount',
|
72
|
+
:'tracking_categories' => :'tracking_categories',
|
67
73
|
:'remote_updated_at' => :'remote_updated_at',
|
68
74
|
:'remote_was_deleted' => :'remote_was_deleted',
|
75
|
+
:'modified_at' => :'modified_at',
|
69
76
|
:'field_mappings' => :'field_mappings',
|
70
77
|
:'remote_data' => :'remote_data'
|
71
78
|
}
|
@@ -88,8 +95,10 @@ module MergeAccountingClient
|
|
88
95
|
:'exchange_rate' => :'String',
|
89
96
|
:'company' => :'String',
|
90
97
|
:'total_amount' => :'Float',
|
98
|
+
:'tracking_categories' => :'Array<String>',
|
91
99
|
:'remote_updated_at' => :'Time',
|
92
100
|
:'remote_was_deleted' => :'Boolean',
|
101
|
+
:'modified_at' => :'Time',
|
93
102
|
:'field_mappings' => :'Hash<String, Object>',
|
94
103
|
:'remote_data' => :'Array<RemoteData>'
|
95
104
|
}
|
@@ -163,6 +172,12 @@ module MergeAccountingClient
|
|
163
172
|
self.total_amount = attributes[:'total_amount']
|
164
173
|
end
|
165
174
|
|
175
|
+
if attributes.key?(:'tracking_categories')
|
176
|
+
if (value = attributes[:'tracking_categories']).is_a?(Array)
|
177
|
+
self.tracking_categories = value
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
166
181
|
if attributes.key?(:'remote_updated_at')
|
167
182
|
self.remote_updated_at = attributes[:'remote_updated_at']
|
168
183
|
end
|
@@ -171,6 +186,10 @@ module MergeAccountingClient
|
|
171
186
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
172
187
|
end
|
173
188
|
|
189
|
+
if attributes.key?(:'modified_at')
|
190
|
+
self.modified_at = attributes[:'modified_at']
|
191
|
+
end
|
192
|
+
|
174
193
|
if attributes.key?(:'field_mappings')
|
175
194
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
176
195
|
self.field_mappings = value
|
@@ -228,8 +247,10 @@ module MergeAccountingClient
|
|
228
247
|
exchange_rate == o.exchange_rate &&
|
229
248
|
company == o.company &&
|
230
249
|
total_amount == o.total_amount &&
|
250
|
+
tracking_categories == o.tracking_categories &&
|
231
251
|
remote_updated_at == o.remote_updated_at &&
|
232
252
|
remote_was_deleted == o.remote_was_deleted &&
|
253
|
+
modified_at == o.modified_at &&
|
233
254
|
field_mappings == o.field_mappings &&
|
234
255
|
remote_data == o.remote_data
|
235
256
|
end
|
@@ -243,7 +264,7 @@ module MergeAccountingClient
|
|
243
264
|
# Calculates hash code according to all attributes.
|
244
265
|
# @return [Integer] Hash code
|
245
266
|
def hash
|
246
|
-
[id, remote_id, transaction_date, contact, account, currency, exchange_rate, company, total_amount, remote_updated_at, remote_was_deleted, field_mappings, remote_data].hash
|
267
|
+
[id, remote_id, transaction_date, contact, account, currency, exchange_rate, company, total_amount, tracking_categories, remote_updated_at, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
247
268
|
end
|
248
269
|
|
249
270
|
# Builds the object from hash
|
@@ -37,6 +37,8 @@ module MergeAccountingClient
|
|
37
37
|
# The total amount of money being paid to the supplier, or customer, after taxes.
|
38
38
|
attr_accessor :total_amount
|
39
39
|
|
40
|
+
attr_accessor :tracking_categories
|
41
|
+
|
40
42
|
attr_accessor :integration_params
|
41
43
|
|
42
44
|
attr_accessor :linked_account_params
|
@@ -51,6 +53,7 @@ module MergeAccountingClient
|
|
51
53
|
:'exchange_rate' => :'exchange_rate',
|
52
54
|
:'company' => :'company',
|
53
55
|
:'total_amount' => :'total_amount',
|
56
|
+
:'tracking_categories' => :'tracking_categories',
|
54
57
|
:'integration_params' => :'integration_params',
|
55
58
|
:'linked_account_params' => :'linked_account_params'
|
56
59
|
}
|
@@ -71,6 +74,7 @@ module MergeAccountingClient
|
|
71
74
|
:'exchange_rate' => :'String',
|
72
75
|
:'company' => :'String',
|
73
76
|
:'total_amount' => :'Float',
|
77
|
+
:'tracking_categories' => :'Array<String>',
|
74
78
|
:'integration_params' => :'Hash<String, Object>',
|
75
79
|
:'linked_account_params' => :'Hash<String, Object>'
|
76
80
|
}
|
@@ -134,6 +138,12 @@ module MergeAccountingClient
|
|
134
138
|
self.total_amount = attributes[:'total_amount']
|
135
139
|
end
|
136
140
|
|
141
|
+
if attributes.key?(:'tracking_categories')
|
142
|
+
if (value = attributes[:'tracking_categories']).is_a?(Array)
|
143
|
+
self.tracking_categories = value
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
137
147
|
if attributes.key?(:'integration_params')
|
138
148
|
if (value = attributes[:'integration_params']).is_a?(Hash)
|
139
149
|
self.integration_params = value
|
@@ -189,6 +199,7 @@ module MergeAccountingClient
|
|
189
199
|
exchange_rate == o.exchange_rate &&
|
190
200
|
company == o.company &&
|
191
201
|
total_amount == o.total_amount &&
|
202
|
+
tracking_categories == o.tracking_categories &&
|
192
203
|
integration_params == o.integration_params &&
|
193
204
|
linked_account_params == o.linked_account_params
|
194
205
|
end
|
@@ -202,7 +213,7 @@ module MergeAccountingClient
|
|
202
213
|
# Calculates hash code according to all attributes.
|
203
214
|
# @return [Integer] Hash code
|
204
215
|
def hash
|
205
|
-
[transaction_date, contact, account, currency, exchange_rate, company, total_amount, integration_params, linked_account_params].hash
|
216
|
+
[transaction_date, contact, account, currency, exchange_rate, company, total_amount, tracking_categories, integration_params, linked_account_params].hash
|
206
217
|
end
|
207
218
|
|
208
219
|
# Builds the object from hash
|
@@ -51,6 +51,8 @@ module MergeAccountingClient
|
|
51
51
|
|
52
52
|
attr_accessor :line_items
|
53
53
|
|
54
|
+
attr_accessor :tracking_categories
|
55
|
+
|
54
56
|
# When the third party's purchase order note was created.
|
55
57
|
attr_accessor :remote_created_at
|
56
58
|
|
@@ -65,6 +67,9 @@ module MergeAccountingClient
|
|
65
67
|
# The third-party API ID of the matching object.
|
66
68
|
attr_accessor :remote_id
|
67
69
|
|
70
|
+
# This is the datetime that this object was last updated by Merge
|
71
|
+
attr_accessor :modified_at
|
72
|
+
|
68
73
|
attr_accessor :field_mappings
|
69
74
|
|
70
75
|
attr_accessor :remote_data
|
@@ -84,11 +89,13 @@ module MergeAccountingClient
|
|
84
89
|
:'currency' => :'currency',
|
85
90
|
:'exchange_rate' => :'exchange_rate',
|
86
91
|
:'line_items' => :'line_items',
|
92
|
+
:'tracking_categories' => :'tracking_categories',
|
87
93
|
:'remote_created_at' => :'remote_created_at',
|
88
94
|
:'remote_updated_at' => :'remote_updated_at',
|
89
95
|
:'remote_was_deleted' => :'remote_was_deleted',
|
90
96
|
:'id' => :'id',
|
91
97
|
:'remote_id' => :'remote_id',
|
98
|
+
:'modified_at' => :'modified_at',
|
92
99
|
:'field_mappings' => :'field_mappings',
|
93
100
|
:'remote_data' => :'remote_data'
|
94
101
|
}
|
@@ -114,11 +121,13 @@ module MergeAccountingClient
|
|
114
121
|
:'currency' => :'CurrencyEnum',
|
115
122
|
:'exchange_rate' => :'String',
|
116
123
|
:'line_items' => :'Array<PurchaseOrderLineItem>',
|
124
|
+
:'tracking_categories' => :'Array<String>',
|
117
125
|
:'remote_created_at' => :'Time',
|
118
126
|
:'remote_updated_at' => :'Time',
|
119
127
|
:'remote_was_deleted' => :'Boolean',
|
120
128
|
:'id' => :'String',
|
121
129
|
:'remote_id' => :'String',
|
130
|
+
:'modified_at' => :'Time',
|
122
131
|
:'field_mappings' => :'Hash<String, Object>',
|
123
132
|
:'remote_data' => :'Array<RemoteData>'
|
124
133
|
}
|
@@ -211,6 +220,12 @@ module MergeAccountingClient
|
|
211
220
|
end
|
212
221
|
end
|
213
222
|
|
223
|
+
if attributes.key?(:'tracking_categories')
|
224
|
+
if (value = attributes[:'tracking_categories']).is_a?(Array)
|
225
|
+
self.tracking_categories = value
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
214
229
|
if attributes.key?(:'remote_created_at')
|
215
230
|
self.remote_created_at = attributes[:'remote_created_at']
|
216
231
|
end
|
@@ -231,6 +246,10 @@ module MergeAccountingClient
|
|
231
246
|
self.remote_id = attributes[:'remote_id']
|
232
247
|
end
|
233
248
|
|
249
|
+
if attributes.key?(:'modified_at')
|
250
|
+
self.modified_at = attributes[:'modified_at']
|
251
|
+
end
|
252
|
+
|
234
253
|
if attributes.key?(:'field_mappings')
|
235
254
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
236
255
|
self.field_mappings = value
|
@@ -291,11 +310,13 @@ module MergeAccountingClient
|
|
291
310
|
currency == o.currency &&
|
292
311
|
exchange_rate == o.exchange_rate &&
|
293
312
|
line_items == o.line_items &&
|
313
|
+
tracking_categories == o.tracking_categories &&
|
294
314
|
remote_created_at == o.remote_created_at &&
|
295
315
|
remote_updated_at == o.remote_updated_at &&
|
296
316
|
remote_was_deleted == o.remote_was_deleted &&
|
297
317
|
id == o.id &&
|
298
318
|
remote_id == o.remote_id &&
|
319
|
+
modified_at == o.modified_at &&
|
299
320
|
field_mappings == o.field_mappings &&
|
300
321
|
remote_data == o.remote_data
|
301
322
|
end
|
@@ -309,7 +330,7 @@ module MergeAccountingClient
|
|
309
330
|
# Calculates hash code according to all attributes.
|
310
331
|
# @return [Integer] Hash code
|
311
332
|
def hash
|
312
|
-
[status, issue_date, delivery_date, delivery_address, customer, vendor, memo, company, total_amount, currency, exchange_rate, line_items, remote_created_at, remote_updated_at, remote_was_deleted, id, remote_id, field_mappings, remote_data].hash
|
333
|
+
[status, issue_date, delivery_date, delivery_address, customer, vendor, memo, company, total_amount, currency, exchange_rate, line_items, tracking_categories, remote_created_at, remote_updated_at, remote_was_deleted, id, remote_id, modified_at, field_mappings, remote_data].hash
|
313
334
|
end
|
314
335
|
|
315
336
|
# Builds the object from hash
|
@@ -54,6 +54,9 @@ module MergeAccountingClient
|
|
54
54
|
# The company the purchase order line item belongs to.
|
55
55
|
attr_accessor :company
|
56
56
|
|
57
|
+
# This is the datetime that this object was last updated by Merge
|
58
|
+
attr_accessor :modified_at
|
59
|
+
|
57
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
58
61
|
def self.attribute_map
|
59
62
|
{
|
@@ -69,7 +72,8 @@ module MergeAccountingClient
|
|
69
72
|
:'total_line_amount' => :'total_line_amount',
|
70
73
|
:'currency' => :'currency',
|
71
74
|
:'exchange_rate' => :'exchange_rate',
|
72
|
-
:'company' => :'company'
|
75
|
+
:'company' => :'company',
|
76
|
+
:'modified_at' => :'modified_at'
|
73
77
|
}
|
74
78
|
end
|
75
79
|
|
@@ -93,7 +97,8 @@ module MergeAccountingClient
|
|
93
97
|
:'total_line_amount' => :'String',
|
94
98
|
:'currency' => :'CurrencyEnum',
|
95
99
|
:'exchange_rate' => :'String',
|
96
|
-
:'company' => :'String'
|
100
|
+
:'company' => :'String',
|
101
|
+
:'modified_at' => :'Time'
|
97
102
|
}
|
98
103
|
end
|
99
104
|
|
@@ -111,7 +116,7 @@ module MergeAccountingClient
|
|
111
116
|
:'total_line_amount',
|
112
117
|
:'currency',
|
113
118
|
:'exchange_rate',
|
114
|
-
:'company'
|
119
|
+
:'company',
|
115
120
|
])
|
116
121
|
end
|
117
122
|
|
@@ -183,6 +188,10 @@ module MergeAccountingClient
|
|
183
188
|
if attributes.key?(:'company')
|
184
189
|
self.company = attributes[:'company']
|
185
190
|
end
|
191
|
+
|
192
|
+
if attributes.key?(:'modified_at')
|
193
|
+
self.modified_at = attributes[:'modified_at']
|
194
|
+
end
|
186
195
|
end
|
187
196
|
|
188
197
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -271,7 +280,8 @@ module MergeAccountingClient
|
|
271
280
|
total_line_amount == o.total_line_amount &&
|
272
281
|
currency == o.currency &&
|
273
282
|
exchange_rate == o.exchange_rate &&
|
274
|
-
company == o.company
|
283
|
+
company == o.company &&
|
284
|
+
modified_at == o.modified_at
|
275
285
|
end
|
276
286
|
|
277
287
|
# @see the `==` method
|
@@ -283,7 +293,7 @@ module MergeAccountingClient
|
|
283
293
|
# Calculates hash code according to all attributes.
|
284
294
|
# @return [Integer] Hash code
|
285
295
|
def hash
|
286
|
-
[remote_id, description, unit_price, quantity, item, account, tracking_category, tracking_categories, tax_amount, total_line_amount, currency, exchange_rate, company].hash
|
296
|
+
[remote_id, description, unit_price, quantity, item, account, tracking_category, tracking_categories, tax_amount, total_line_amount, currency, exchange_rate, company, modified_at].hash
|
287
297
|
end
|
288
298
|
|
289
299
|
# Builds the object from hash
|
@@ -36,13 +36,14 @@ module MergeAccountingClient
|
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
38
|
:'path' => :'String',
|
39
|
-
:'data' => :'
|
39
|
+
:'data' => :'Object'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# List of attributes with nullable: true
|
44
44
|
def self.openapi_nullable
|
45
45
|
Set.new([
|
46
|
+
:'data'
|
46
47
|
])
|
47
48
|
end
|
48
49
|
|
@@ -66,9 +67,7 @@ module MergeAccountingClient
|
|
66
67
|
end
|
67
68
|
|
68
69
|
if attributes.key?(:'data')
|
69
|
-
|
70
|
-
self.data = value
|
71
|
-
end
|
70
|
+
self.data = attributes[:'data']
|
72
71
|
end
|
73
72
|
end
|
74
73
|
|
@@ -30,6 +30,9 @@ module MergeAccountingClient
|
|
30
30
|
# The company the report item belongs to.
|
31
31
|
attr_accessor :company
|
32
32
|
|
33
|
+
# This is the datetime that this object was last updated by Merge
|
34
|
+
attr_accessor :modified_at
|
35
|
+
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
37
|
def self.attribute_map
|
35
38
|
{
|
@@ -37,7 +40,8 @@ module MergeAccountingClient
|
|
37
40
|
:'name' => :'name',
|
38
41
|
:'value' => :'value',
|
39
42
|
:'sub_items' => :'sub_items',
|
40
|
-
:'company' => :'company'
|
43
|
+
:'company' => :'company',
|
44
|
+
:'modified_at' => :'modified_at'
|
41
45
|
}
|
42
46
|
end
|
43
47
|
|
@@ -53,7 +57,8 @@ module MergeAccountingClient
|
|
53
57
|
:'name' => :'String',
|
54
58
|
:'value' => :'Float',
|
55
59
|
:'sub_items' => :'Hash<String, Object>',
|
56
|
-
:'company' => :'String'
|
60
|
+
:'company' => :'String',
|
61
|
+
:'modified_at' => :'Time'
|
57
62
|
}
|
58
63
|
end
|
59
64
|
|
@@ -63,7 +68,7 @@ module MergeAccountingClient
|
|
63
68
|
:'remote_id',
|
64
69
|
:'name',
|
65
70
|
:'value',
|
66
|
-
:'company'
|
71
|
+
:'company',
|
67
72
|
])
|
68
73
|
end
|
69
74
|
|
@@ -103,6 +108,10 @@ module MergeAccountingClient
|
|
103
108
|
if attributes.key?(:'company')
|
104
109
|
self.company = attributes[:'company']
|
105
110
|
end
|
111
|
+
|
112
|
+
if attributes.key?(:'modified_at')
|
113
|
+
self.modified_at = attributes[:'modified_at']
|
114
|
+
end
|
106
115
|
end
|
107
116
|
|
108
117
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -127,7 +136,8 @@ module MergeAccountingClient
|
|
127
136
|
name == o.name &&
|
128
137
|
value == o.value &&
|
129
138
|
sub_items == o.sub_items &&
|
130
|
-
company == o.company
|
139
|
+
company == o.company &&
|
140
|
+
modified_at == o.modified_at
|
131
141
|
end
|
132
142
|
|
133
143
|
# @see the `==` method
|
@@ -139,7 +149,7 @@ module MergeAccountingClient
|
|
139
149
|
# Calculates hash code according to all attributes.
|
140
150
|
# @return [Integer] Hash code
|
141
151
|
def hash
|
142
|
-
[remote_id, name, value, sub_items, company].hash
|
152
|
+
[remote_id, name, value, sub_items, company, modified_at].hash
|
143
153
|
end
|
144
154
|
|
145
155
|
# Builds the object from hash
|
@@ -32,7 +32,7 @@ module MergeAccountingClient
|
|
32
32
|
# @return [String] The enum value
|
33
33
|
def build_from_hash(value)
|
34
34
|
@raw_value = value
|
35
|
-
if ["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED"].include? value
|
35
|
+
if ["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED", ].include? value
|
36
36
|
@value = value
|
37
37
|
else
|
38
38
|
@value = MERGE_NONSTANDARD_VALUE
|
@@ -36,6 +36,9 @@ module MergeAccountingClient
|
|
36
36
|
# The third-party API ID of the matching object.
|
37
37
|
attr_accessor :remote_id
|
38
38
|
|
39
|
+
# This is the datetime that this object was last updated by Merge
|
40
|
+
attr_accessor :modified_at
|
41
|
+
|
39
42
|
attr_accessor :field_mappings
|
40
43
|
|
41
44
|
attr_accessor :remote_data
|
@@ -50,6 +53,7 @@ module MergeAccountingClient
|
|
50
53
|
:'remote_was_deleted' => :'remote_was_deleted',
|
51
54
|
:'id' => :'id',
|
52
55
|
:'remote_id' => :'remote_id',
|
56
|
+
:'modified_at' => :'modified_at',
|
53
57
|
:'field_mappings' => :'field_mappings',
|
54
58
|
:'remote_data' => :'remote_data'
|
55
59
|
}
|
@@ -70,6 +74,7 @@ module MergeAccountingClient
|
|
70
74
|
:'remote_was_deleted' => :'Boolean',
|
71
75
|
:'id' => :'String',
|
72
76
|
:'remote_id' => :'String',
|
77
|
+
:'modified_at' => :'Time',
|
73
78
|
:'field_mappings' => :'Hash<String, Object>',
|
74
79
|
:'remote_data' => :'Array<RemoteData>'
|
75
80
|
}
|
@@ -131,6 +136,10 @@ module MergeAccountingClient
|
|
131
136
|
self.remote_id = attributes[:'remote_id']
|
132
137
|
end
|
133
138
|
|
139
|
+
if attributes.key?(:'modified_at')
|
140
|
+
self.modified_at = attributes[:'modified_at']
|
141
|
+
end
|
142
|
+
|
134
143
|
if attributes.key?(:'field_mappings')
|
135
144
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
136
145
|
self.field_mappings = value
|
@@ -169,6 +178,7 @@ module MergeAccountingClient
|
|
169
178
|
remote_was_deleted == o.remote_was_deleted &&
|
170
179
|
id == o.id &&
|
171
180
|
remote_id == o.remote_id &&
|
181
|
+
modified_at == o.modified_at &&
|
172
182
|
field_mappings == o.field_mappings &&
|
173
183
|
remote_data == o.remote_data
|
174
184
|
end
|
@@ -182,7 +192,7 @@ module MergeAccountingClient
|
|
182
192
|
# Calculates hash code according to all attributes.
|
183
193
|
# @return [Integer] Hash code
|
184
194
|
def hash
|
185
|
-
[description, total_tax_rate, effective_tax_rate, company, remote_was_deleted, id, remote_id, field_mappings, remote_data].hash
|
195
|
+
[description, total_tax_rate, effective_tax_rate, company, remote_was_deleted, id, remote_id, modified_at, field_mappings, remote_data].hash
|
186
196
|
end
|
187
197
|
|
188
198
|
# Builds the object from hash
|
@@ -39,6 +39,9 @@ module MergeAccountingClient
|
|
39
39
|
# The third-party API ID of the matching object.
|
40
40
|
attr_accessor :remote_id
|
41
41
|
|
42
|
+
# This is the datetime that this object was last updated by Merge
|
43
|
+
attr_accessor :modified_at
|
44
|
+
|
42
45
|
attr_accessor :field_mappings
|
43
46
|
|
44
47
|
attr_accessor :remote_data
|
@@ -54,6 +57,7 @@ module MergeAccountingClient
|
|
54
57
|
:'remote_was_deleted' => :'remote_was_deleted',
|
55
58
|
:'id' => :'id',
|
56
59
|
:'remote_id' => :'remote_id',
|
60
|
+
:'modified_at' => :'modified_at',
|
57
61
|
:'field_mappings' => :'field_mappings',
|
58
62
|
:'remote_data' => :'remote_data'
|
59
63
|
}
|
@@ -75,6 +79,7 @@ module MergeAccountingClient
|
|
75
79
|
:'remote_was_deleted' => :'Boolean',
|
76
80
|
:'id' => :'String',
|
77
81
|
:'remote_id' => :'String',
|
82
|
+
:'modified_at' => :'Time',
|
78
83
|
:'field_mappings' => :'Hash<String, Object>',
|
79
84
|
:'remote_data' => :'Array<RemoteData>'
|
80
85
|
}
|
@@ -141,6 +146,10 @@ module MergeAccountingClient
|
|
141
146
|
self.remote_id = attributes[:'remote_id']
|
142
147
|
end
|
143
148
|
|
149
|
+
if attributes.key?(:'modified_at')
|
150
|
+
self.modified_at = attributes[:'modified_at']
|
151
|
+
end
|
152
|
+
|
144
153
|
if attributes.key?(:'field_mappings')
|
145
154
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
146
155
|
self.field_mappings = value
|
@@ -180,6 +189,7 @@ module MergeAccountingClient
|
|
180
189
|
remote_was_deleted == o.remote_was_deleted &&
|
181
190
|
id == o.id &&
|
182
191
|
remote_id == o.remote_id &&
|
192
|
+
modified_at == o.modified_at &&
|
183
193
|
field_mappings == o.field_mappings &&
|
184
194
|
remote_data == o.remote_data
|
185
195
|
end
|
@@ -193,7 +203,7 @@ module MergeAccountingClient
|
|
193
203
|
# Calculates hash code according to all attributes.
|
194
204
|
# @return [Integer] Hash code
|
195
205
|
def hash
|
196
|
-
[name, status, category_type, parent_category, company, remote_was_deleted, id, remote_id, field_mappings, remote_data].hash
|
206
|
+
[name, status, category_type, parent_category, company, remote_was_deleted, id, remote_id, modified_at, field_mappings, remote_data].hash
|
197
207
|
end
|
198
208
|
|
199
209
|
# Builds the object from hash
|