merge_accounting_client 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/docs/Account.md +3 -1
- data/docs/AccountingAttachment.md +3 -1
- data/docs/BalanceSheet.md +3 -1
- data/docs/CashFlowStatement.md +3 -1
- data/docs/CompanyInfo.md +3 -1
- data/docs/Contact.md +3 -1
- data/docs/CreditNote.md +3 -1
- data/docs/Expense.md +3 -1
- data/docs/ForceResyncApi.md +4 -4
- data/docs/IncomeStatement.md +3 -1
- data/docs/Invoice.md +3 -1
- data/docs/InvoiceLineItem.md +3 -1
- data/docs/InvoiceLineItemRequest.md +3 -1
- data/docs/Item.md +3 -1
- data/docs/JournalEntry.md +7 -3
- data/docs/JournalEntryRequest.md +3 -1
- data/docs/JournalLine.md +2 -0
- data/docs/JournalLineRequest.md +2 -0
- data/docs/LinkedAccountsApi.md +14 -14
- data/docs/PaginatedVendorCreditList.md +22 -0
- data/docs/Payment.md +3 -1
- data/docs/PurchaseOrder.md +3 -1
- data/docs/TaxRate.md +3 -1
- data/docs/TrackingCategory.md +3 -1
- data/docs/VendorCredit.md +36 -0
- data/docs/VendorCreditLine.md +26 -0
- data/docs/VendorCreditsApi.md +181 -0
- data/docs/WebhookReceiversApi.md +14 -16
- data/lib/merge_accounting_client/api/force_resync_api.rb +3 -3
- data/lib/merge_accounting_client/api/linked_accounts_api.rb +15 -15
- data/lib/merge_accounting_client/api/vendor_credits_api.rb +196 -0
- data/lib/merge_accounting_client/api/webhook_receivers_api.rb +23 -15
- data/lib/merge_accounting_client/models/account.rb +15 -5
- data/lib/merge_accounting_client/models/account_details_and_actions_status_enum.rb +0 -2
- data/lib/merge_accounting_client/models/account_status_enum.rb +0 -2
- data/lib/merge_accounting_client/models/accounting_attachment.rb +15 -5
- data/lib/merge_accounting_client/models/address_type_enum.rb +0 -2
- data/lib/merge_accounting_client/models/balance_sheet.rb +15 -5
- data/lib/merge_accounting_client/models/cash_flow_statement.rb +15 -5
- data/lib/merge_accounting_client/models/categories_enum.rb +1 -2
- data/lib/merge_accounting_client/models/category_enum.rb +1 -2
- data/lib/merge_accounting_client/models/classification_enum.rb +0 -2
- data/lib/merge_accounting_client/models/company_info.rb +14 -4
- data/lib/merge_accounting_client/models/contact.rb +14 -4
- data/lib/merge_accounting_client/models/country_enum.rb +0 -2
- data/lib/merge_accounting_client/models/credit_note.rb +14 -4
- data/lib/merge_accounting_client/models/credit_note_status_enum.rb +0 -2
- data/lib/merge_accounting_client/models/currency_enum.rb +0 -2
- data/lib/merge_accounting_client/models/encoding_enum.rb +0 -2
- data/lib/merge_accounting_client/models/expense.rb +14 -4
- data/lib/merge_accounting_client/models/income_statement.rb +15 -5
- data/lib/merge_accounting_client/models/invoice.rb +13 -4
- data/lib/merge_accounting_client/models/invoice_line_item.rb +15 -5
- data/lib/merge_accounting_client/models/invoice_line_item_request.rb +15 -5
- data/lib/merge_accounting_client/models/invoice_type_enum.rb +0 -2
- data/lib/merge_accounting_client/models/issue_status_enum.rb +0 -2
- data/lib/merge_accounting_client/models/item.rb +15 -5
- data/lib/merge_accounting_client/models/journal_entry.rb +30 -10
- data/lib/merge_accounting_client/models/journal_entry_request.rb +17 -6
- data/lib/merge_accounting_client/models/journal_line.rb +11 -1
- data/lib/merge_accounting_client/models/journal_line_request.rb +11 -1
- data/lib/merge_accounting_client/models/method_enum.rb +0 -2
- data/lib/merge_accounting_client/models/{paginated_webhook_receiver_list.rb → paginated_vendor_credit_list.rb} +4 -4
- data/lib/merge_accounting_client/models/payment.rb +15 -5
- data/lib/merge_accounting_client/models/purchase_order.rb +15 -5
- data/lib/merge_accounting_client/models/purchase_order_status_enum.rb +0 -2
- data/lib/merge_accounting_client/models/request_format_enum.rb +0 -2
- data/lib/merge_accounting_client/models/state_enum.rb +0 -2
- data/lib/merge_accounting_client/models/status7d1_enum.rb +0 -2
- data/lib/merge_accounting_client/models/sync_status_status_enum.rb +0 -2
- data/lib/merge_accounting_client/models/tax_rate.rb +15 -5
- data/lib/merge_accounting_client/models/tracking_category.rb +15 -5
- data/lib/merge_accounting_client/models/vendor_credit.rb +317 -0
- data/lib/merge_accounting_client/models/vendor_credit_line.rb +265 -0
- data/lib/merge_accounting_client/version.rb +1 -1
- data/lib/merge_accounting_client.rb +4 -1
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/linked_accounts_api_spec.rb +7 -7
- data/spec/api/vendor_credits_api_spec.rb +70 -0
- data/spec/api/webhook_receivers_api_spec.rb +3 -3
- data/spec/models/account_spec.rb +6 -0
- data/spec/models/accounting_attachment_spec.rb +6 -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_spec.rb +6 -0
- data/spec/models/expense_spec.rb +6 -0
- data/spec/models/income_statement_spec.rb +6 -0
- data/spec/models/invoice_line_item_request_spec.rb +6 -0
- data/spec/models/invoice_line_item_spec.rb +6 -0
- data/spec/models/invoice_spec.rb +6 -0
- data/spec/models/item_spec.rb +6 -0
- data/spec/models/journal_entry_request_spec.rb +6 -0
- data/spec/models/journal_entry_spec.rb +13 -1
- data/spec/models/journal_line_request_spec.rb +6 -0
- data/spec/models/journal_line_spec.rb +6 -0
- data/spec/models/{paginated_webhook_receiver_list_spec.rb → paginated_vendor_credit_list_spec.rb} +6 -6
- data/spec/models/payment_spec.rb +6 -0
- data/spec/models/purchase_order_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/vendor_credit_line_spec.rb +58 -0
- data/spec/models/vendor_credit_spec.rb +88 -0
- metadata +118 -106
- data/docs/PaginatedWebhookReceiverList.md +0 -22
@@ -47,6 +47,9 @@ module MergeAccountingClient
|
|
47
47
|
# The account's number.
|
48
48
|
attr_accessor :account_number
|
49
49
|
|
50
|
+
# Indicates whether or not this object has been deleted on the third-party.
|
51
|
+
attr_accessor :remote_was_deleted
|
52
|
+
|
50
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
54
|
def self.attribute_map
|
52
55
|
{
|
@@ -60,7 +63,8 @@ module MergeAccountingClient
|
|
60
63
|
:'status' => :'status',
|
61
64
|
:'current_balance' => :'current_balance',
|
62
65
|
:'currency' => :'currency',
|
63
|
-
:'account_number' => :'account_number'
|
66
|
+
:'account_number' => :'account_number',
|
67
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
64
68
|
}
|
65
69
|
end
|
66
70
|
|
@@ -82,7 +86,8 @@ module MergeAccountingClient
|
|
82
86
|
:'status' => :'AccountStatusEnum',
|
83
87
|
:'current_balance' => :'Float',
|
84
88
|
:'currency' => :'CurrencyEnum',
|
85
|
-
:'account_number' => :'String'
|
89
|
+
:'account_number' => :'String',
|
90
|
+
:'remote_was_deleted' => :'Boolean'
|
86
91
|
}
|
87
92
|
end
|
88
93
|
|
@@ -98,7 +103,7 @@ module MergeAccountingClient
|
|
98
103
|
:'status',
|
99
104
|
:'current_balance',
|
100
105
|
:'currency',
|
101
|
-
:'account_number'
|
106
|
+
:'account_number',
|
102
107
|
])
|
103
108
|
end
|
104
109
|
|
@@ -162,6 +167,10 @@ module MergeAccountingClient
|
|
162
167
|
if attributes.key?(:'account_number')
|
163
168
|
self.account_number = attributes[:'account_number']
|
164
169
|
end
|
170
|
+
|
171
|
+
if attributes.key?(:'remote_was_deleted')
|
172
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
173
|
+
end
|
165
174
|
end
|
166
175
|
|
167
176
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -192,7 +201,8 @@ module MergeAccountingClient
|
|
192
201
|
status == o.status &&
|
193
202
|
current_balance == o.current_balance &&
|
194
203
|
currency == o.currency &&
|
195
|
-
account_number == o.account_number
|
204
|
+
account_number == o.account_number &&
|
205
|
+
remote_was_deleted == o.remote_was_deleted
|
196
206
|
end
|
197
207
|
|
198
208
|
# @see the `==` method
|
@@ -204,7 +214,7 @@ module MergeAccountingClient
|
|
204
214
|
# Calculates hash code according to all attributes.
|
205
215
|
# @return [Integer] Hash code
|
206
216
|
def hash
|
207
|
-
[id, remote_id, remote_data, name, description, classification, type, status, current_balance, currency, account_number].hash
|
217
|
+
[id, remote_id, remote_data, name, description, classification, type, status, current_balance, currency, account_number, remote_was_deleted].hash
|
208
218
|
end
|
209
219
|
|
210
220
|
# Builds the object from hash
|
@@ -30,8 +30,6 @@ module MergeAccountingClient
|
|
30
30
|
# @param [String] The enum value in the form of the string
|
31
31
|
# @return [String] The enum value
|
32
32
|
def build_from_hash(value)
|
33
|
-
constantValues = AccountDetailsAndActionsStatusEnum.constants.select { |c| AccountDetailsAndActionsStatusEnum::const_get(c) == value }
|
34
|
-
raise "Invalid ENUM value #{value} for class #AccountDetailsAndActionsStatusEnum" if constantValues.empty?
|
35
33
|
value
|
36
34
|
end
|
37
35
|
end
|
@@ -30,8 +30,6 @@ module MergeAccountingClient
|
|
30
30
|
# @param [String] The enum value in the form of the string
|
31
31
|
# @return [String] The enum value
|
32
32
|
def build_from_hash(value)
|
33
|
-
constantValues = AccountStatusEnum.constants.select { |c| AccountStatusEnum::const_get(c) == value }
|
34
|
-
raise "Invalid ENUM value #{value} for class #AccountStatusEnum" if constantValues.empty?
|
35
33
|
value
|
36
34
|
end
|
37
35
|
end
|
@@ -29,6 +29,9 @@ module MergeAccountingClient
|
|
29
29
|
# The attachment's url.
|
30
30
|
attr_accessor :file_url
|
31
31
|
|
32
|
+
# Indicates whether or not this object has been deleted on the third-party.
|
33
|
+
attr_accessor :remote_was_deleted
|
34
|
+
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
36
|
def self.attribute_map
|
34
37
|
{
|
@@ -36,7 +39,8 @@ module MergeAccountingClient
|
|
36
39
|
:'remote_id' => :'remote_id',
|
37
40
|
:'remote_data' => :'remote_data',
|
38
41
|
:'file_name' => :'file_name',
|
39
|
-
:'file_url' => :'file_url'
|
42
|
+
:'file_url' => :'file_url',
|
43
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
40
44
|
}
|
41
45
|
end
|
42
46
|
|
@@ -52,7 +56,8 @@ module MergeAccountingClient
|
|
52
56
|
:'remote_id' => :'String',
|
53
57
|
:'remote_data' => :'Array<RemoteData>',
|
54
58
|
:'file_name' => :'String',
|
55
|
-
:'file_url' => :'String'
|
59
|
+
:'file_url' => :'String',
|
60
|
+
:'remote_was_deleted' => :'Boolean'
|
56
61
|
}
|
57
62
|
end
|
58
63
|
|
@@ -62,7 +67,7 @@ module MergeAccountingClient
|
|
62
67
|
:'remote_id',
|
63
68
|
:'remote_data',
|
64
69
|
:'file_name',
|
65
|
-
:'file_url'
|
70
|
+
:'file_url',
|
66
71
|
])
|
67
72
|
end
|
68
73
|
|
@@ -102,6 +107,10 @@ module MergeAccountingClient
|
|
102
107
|
if attributes.key?(:'file_url')
|
103
108
|
self.file_url = attributes[:'file_url']
|
104
109
|
end
|
110
|
+
|
111
|
+
if attributes.key?(:'remote_was_deleted')
|
112
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
113
|
+
end
|
105
114
|
end
|
106
115
|
|
107
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -141,7 +150,8 @@ module MergeAccountingClient
|
|
141
150
|
remote_id == o.remote_id &&
|
142
151
|
remote_data == o.remote_data &&
|
143
152
|
file_name == o.file_name &&
|
144
|
-
file_url == o.file_url
|
153
|
+
file_url == o.file_url &&
|
154
|
+
remote_was_deleted == o.remote_was_deleted
|
145
155
|
end
|
146
156
|
|
147
157
|
# @see the `==` method
|
@@ -153,7 +163,7 @@ module MergeAccountingClient
|
|
153
163
|
# Calculates hash code according to all attributes.
|
154
164
|
# @return [Integer] Hash code
|
155
165
|
def hash
|
156
|
-
[id, remote_id, remote_data, file_name, file_url].hash
|
166
|
+
[id, remote_id, remote_data, file_name, file_url, remote_was_deleted].hash
|
157
167
|
end
|
158
168
|
|
159
169
|
# Builds the object from hash
|
@@ -29,8 +29,6 @@ module MergeAccountingClient
|
|
29
29
|
# @param [String] The enum value in the form of the string
|
30
30
|
# @return [String] The enum value
|
31
31
|
def build_from_hash(value)
|
32
|
-
constantValues = AddressTypeEnum.constants.select { |c| AddressTypeEnum::const_get(c) == value }
|
33
|
-
raise "Invalid ENUM value #{value} for class #AddressTypeEnum" if constantValues.empty?
|
34
32
|
value
|
35
33
|
end
|
36
34
|
end
|
@@ -41,6 +41,9 @@ module MergeAccountingClient
|
|
41
41
|
# The time that balance sheet was generated by the accounting system.
|
42
42
|
attr_accessor :remote_generated_at
|
43
43
|
|
44
|
+
# Indicates whether or not this object has been deleted on the third-party.
|
45
|
+
attr_accessor :remote_was_deleted
|
46
|
+
|
44
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
48
|
def self.attribute_map
|
46
49
|
{
|
@@ -53,7 +56,8 @@ module MergeAccountingClient
|
|
53
56
|
:'assets' => :'assets',
|
54
57
|
:'liabilities' => :'liabilities',
|
55
58
|
:'equity' => :'equity',
|
56
|
-
:'remote_generated_at' => :'remote_generated_at'
|
59
|
+
:'remote_generated_at' => :'remote_generated_at',
|
60
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
57
61
|
}
|
58
62
|
end
|
59
63
|
|
@@ -74,7 +78,8 @@ module MergeAccountingClient
|
|
74
78
|
:'assets' => :'Array<ReportItem>',
|
75
79
|
:'liabilities' => :'Array<ReportItem>',
|
76
80
|
:'equity' => :'Array<ReportItem>',
|
77
|
-
:'remote_generated_at' => :'Time'
|
81
|
+
:'remote_generated_at' => :'Time',
|
82
|
+
:'remote_was_deleted' => :'Boolean'
|
78
83
|
}
|
79
84
|
end
|
80
85
|
|
@@ -86,7 +91,7 @@ module MergeAccountingClient
|
|
86
91
|
:'name',
|
87
92
|
:'date',
|
88
93
|
:'net_assets',
|
89
|
-
:'remote_generated_at'
|
94
|
+
:'remote_generated_at',
|
90
95
|
])
|
91
96
|
end
|
92
97
|
|
@@ -152,6 +157,10 @@ module MergeAccountingClient
|
|
152
157
|
if attributes.key?(:'remote_generated_at')
|
153
158
|
self.remote_generated_at = attributes[:'remote_generated_at']
|
154
159
|
end
|
160
|
+
|
161
|
+
if attributes.key?(:'remote_was_deleted')
|
162
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
163
|
+
end
|
155
164
|
end
|
156
165
|
|
157
166
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -181,7 +190,8 @@ module MergeAccountingClient
|
|
181
190
|
assets == o.assets &&
|
182
191
|
liabilities == o.liabilities &&
|
183
192
|
equity == o.equity &&
|
184
|
-
remote_generated_at == o.remote_generated_at
|
193
|
+
remote_generated_at == o.remote_generated_at &&
|
194
|
+
remote_was_deleted == o.remote_was_deleted
|
185
195
|
end
|
186
196
|
|
187
197
|
# @see the `==` method
|
@@ -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
|
-
[id, remote_id, remote_data, name, date, net_assets, assets, liabilities, equity, remote_generated_at].hash
|
206
|
+
[id, remote_id, remote_data, name, date, net_assets, assets, liabilities, equity, remote_generated_at, remote_was_deleted].hash
|
197
207
|
end
|
198
208
|
|
199
209
|
# Builds the object from hash
|
@@ -47,6 +47,9 @@ module MergeAccountingClient
|
|
47
47
|
# The time that cash flow statement was generated by the accounting system.
|
48
48
|
attr_accessor :remote_generated_at
|
49
49
|
|
50
|
+
# Indicates whether or not this object has been deleted on the third-party.
|
51
|
+
attr_accessor :remote_was_deleted
|
52
|
+
|
50
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
54
|
def self.attribute_map
|
52
55
|
{
|
@@ -61,7 +64,8 @@ module MergeAccountingClient
|
|
61
64
|
:'operating_activities' => :'operating_activities',
|
62
65
|
:'investing_activities' => :'investing_activities',
|
63
66
|
:'financing_activities' => :'financing_activities',
|
64
|
-
:'remote_generated_at' => :'remote_generated_at'
|
67
|
+
:'remote_generated_at' => :'remote_generated_at',
|
68
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
65
69
|
}
|
66
70
|
end
|
67
71
|
|
@@ -84,7 +88,8 @@ module MergeAccountingClient
|
|
84
88
|
:'operating_activities' => :'Array<ReportItem>',
|
85
89
|
:'investing_activities' => :'Array<ReportItem>',
|
86
90
|
:'financing_activities' => :'Array<ReportItem>',
|
87
|
-
:'remote_generated_at' => :'Time'
|
91
|
+
:'remote_generated_at' => :'Time',
|
92
|
+
:'remote_was_deleted' => :'Boolean'
|
88
93
|
}
|
89
94
|
end
|
90
95
|
|
@@ -98,7 +103,7 @@ module MergeAccountingClient
|
|
98
103
|
:'end_period',
|
99
104
|
:'cash_at_beginning_of_period',
|
100
105
|
:'cash_at_end_of_period',
|
101
|
-
:'remote_generated_at'
|
106
|
+
:'remote_generated_at',
|
102
107
|
])
|
103
108
|
end
|
104
109
|
|
@@ -172,6 +177,10 @@ module MergeAccountingClient
|
|
172
177
|
if attributes.key?(:'remote_generated_at')
|
173
178
|
self.remote_generated_at = attributes[:'remote_generated_at']
|
174
179
|
end
|
180
|
+
|
181
|
+
if attributes.key?(:'remote_was_deleted')
|
182
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
183
|
+
end
|
175
184
|
end
|
176
185
|
|
177
186
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -203,7 +212,8 @@ module MergeAccountingClient
|
|
203
212
|
operating_activities == o.operating_activities &&
|
204
213
|
investing_activities == o.investing_activities &&
|
205
214
|
financing_activities == o.financing_activities &&
|
206
|
-
remote_generated_at == o.remote_generated_at
|
215
|
+
remote_generated_at == o.remote_generated_at &&
|
216
|
+
remote_was_deleted == o.remote_was_deleted
|
207
217
|
end
|
208
218
|
|
209
219
|
# @see the `==` method
|
@@ -215,7 +225,7 @@ module MergeAccountingClient
|
|
215
225
|
# Calculates hash code according to all attributes.
|
216
226
|
# @return [Integer] Hash code
|
217
227
|
def hash
|
218
|
-
[id, remote_id, remote_data, name, start_period, end_period, cash_at_beginning_of_period, cash_at_end_of_period, operating_activities, investing_activities, financing_activities, remote_generated_at].hash
|
228
|
+
[id, remote_id, remote_data, name, 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].hash
|
219
229
|
end
|
220
230
|
|
221
231
|
# Builds the object from hash
|
@@ -19,6 +19,7 @@ module MergeAccountingClient
|
|
19
19
|
ATS = "ats".freeze
|
20
20
|
ACCOUNTING = "accounting".freeze
|
21
21
|
TICKETING = "ticketing".freeze
|
22
|
+
CRM = "crm".freeze
|
22
23
|
|
23
24
|
# Builds the enum from string
|
24
25
|
# @param [String] The enum value in the form of the string
|
@@ -31,8 +32,6 @@ module MergeAccountingClient
|
|
31
32
|
# @param [String] The enum value in the form of the string
|
32
33
|
# @return [String] The enum value
|
33
34
|
def build_from_hash(value)
|
34
|
-
constantValues = CategoriesEnum.constants.select { |c| CategoriesEnum::const_get(c) == value }
|
35
|
-
raise "Invalid ENUM value #{value} for class #CategoriesEnum" if constantValues.empty?
|
36
35
|
value
|
37
36
|
end
|
38
37
|
end
|
@@ -19,6 +19,7 @@ module MergeAccountingClient
|
|
19
19
|
ATS = "ats".freeze
|
20
20
|
ACCOUNTING = "accounting".freeze
|
21
21
|
TICKETING = "ticketing".freeze
|
22
|
+
CRM = "crm".freeze
|
22
23
|
|
23
24
|
# Builds the enum from string
|
24
25
|
# @param [String] The enum value in the form of the string
|
@@ -31,8 +32,6 @@ module MergeAccountingClient
|
|
31
32
|
# @param [String] The enum value in the form of the string
|
32
33
|
# @return [String] The enum value
|
33
34
|
def build_from_hash(value)
|
34
|
-
constantValues = CategoryEnum.constants.select { |c| CategoryEnum::const_get(c) == value }
|
35
|
-
raise "Invalid ENUM value #{value} for class #CategoryEnum" if constantValues.empty?
|
36
35
|
value
|
37
36
|
end
|
38
37
|
end
|
@@ -32,8 +32,6 @@ module MergeAccountingClient
|
|
32
32
|
# @param [String] The enum value in the form of the string
|
33
33
|
# @return [String] The enum value
|
34
34
|
def build_from_hash(value)
|
35
|
-
constantValues = ClassificationEnum.constants.select { |c| ClassificationEnum::const_get(c) == value }
|
36
|
-
raise "Invalid ENUM value #{value} for class #ClassificationEnum" if constantValues.empty?
|
37
35
|
value
|
38
36
|
end
|
39
37
|
end
|
@@ -51,6 +51,9 @@ module MergeAccountingClient
|
|
51
51
|
|
52
52
|
attr_accessor :phone_numbers
|
53
53
|
|
54
|
+
# Indicates whether or not this object has been deleted on the third-party.
|
55
|
+
attr_accessor :remote_was_deleted
|
56
|
+
|
54
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
55
58
|
def self.attribute_map
|
56
59
|
{
|
@@ -66,7 +69,8 @@ module MergeAccountingClient
|
|
66
69
|
:'remote_created_at' => :'remote_created_at',
|
67
70
|
:'urls' => :'urls',
|
68
71
|
:'addresses' => :'addresses',
|
69
|
-
:'phone_numbers' => :'phone_numbers'
|
72
|
+
:'phone_numbers' => :'phone_numbers',
|
73
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
70
74
|
}
|
71
75
|
end
|
72
76
|
|
@@ -90,7 +94,8 @@ module MergeAccountingClient
|
|
90
94
|
:'remote_created_at' => :'Time',
|
91
95
|
:'urls' => :'Array<String>',
|
92
96
|
:'addresses' => :'Array<Address>',
|
93
|
-
:'phone_numbers' => :'Array<AccountingPhoneNumber>'
|
97
|
+
:'phone_numbers' => :'Array<AccountingPhoneNumber>',
|
98
|
+
:'remote_was_deleted' => :'Boolean'
|
94
99
|
}
|
95
100
|
end
|
96
101
|
|
@@ -184,6 +189,10 @@ module MergeAccountingClient
|
|
184
189
|
self.phone_numbers = value
|
185
190
|
end
|
186
191
|
end
|
192
|
+
|
193
|
+
if attributes.key?(:'remote_was_deleted')
|
194
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
195
|
+
end
|
187
196
|
end
|
188
197
|
|
189
198
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -264,7 +273,8 @@ module MergeAccountingClient
|
|
264
273
|
remote_created_at == o.remote_created_at &&
|
265
274
|
urls == o.urls &&
|
266
275
|
addresses == o.addresses &&
|
267
|
-
phone_numbers == o.phone_numbers
|
276
|
+
phone_numbers == o.phone_numbers &&
|
277
|
+
remote_was_deleted == o.remote_was_deleted
|
268
278
|
end
|
269
279
|
|
270
280
|
# @see the `==` method
|
@@ -276,7 +286,7 @@ module MergeAccountingClient
|
|
276
286
|
# Calculates hash code according to all attributes.
|
277
287
|
# @return [Integer] Hash code
|
278
288
|
def hash
|
279
|
-
[id, remote_id, remote_data, name, legal_name, tax_number, fiscal_year_end_month, fiscal_year_end_day, currency, remote_created_at, urls, addresses, phone_numbers].hash
|
289
|
+
[id, remote_id, remote_data, name, legal_name, tax_number, fiscal_year_end_month, fiscal_year_end_day, currency, remote_created_at, urls, addresses, phone_numbers, remote_was_deleted].hash
|
280
290
|
end
|
281
291
|
|
282
292
|
# Builds the object from hash
|
@@ -53,6 +53,9 @@ module MergeAccountingClient
|
|
53
53
|
# `AccountingPhoneNumber` object for the given `Contacts` object.
|
54
54
|
attr_accessor :phone_numbers
|
55
55
|
|
56
|
+
# Indicates whether or not this object has been deleted on the third-party.
|
57
|
+
attr_accessor :remote_was_deleted
|
58
|
+
|
56
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
60
|
def self.attribute_map
|
58
61
|
{
|
@@ -68,7 +71,8 @@ module MergeAccountingClient
|
|
68
71
|
:'currency' => :'currency',
|
69
72
|
:'remote_updated_at' => :'remote_updated_at',
|
70
73
|
:'addresses' => :'addresses',
|
71
|
-
:'phone_numbers' => :'phone_numbers'
|
74
|
+
:'phone_numbers' => :'phone_numbers',
|
75
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
72
76
|
}
|
73
77
|
end
|
74
78
|
|
@@ -92,7 +96,8 @@ module MergeAccountingClient
|
|
92
96
|
:'currency' => :'String',
|
93
97
|
:'remote_updated_at' => :'Time',
|
94
98
|
:'addresses' => :'Array<String>',
|
95
|
-
:'phone_numbers' => :'Array<AccountingPhoneNumber>'
|
99
|
+
:'phone_numbers' => :'Array<AccountingPhoneNumber>',
|
100
|
+
:'remote_was_deleted' => :'Boolean'
|
96
101
|
}
|
97
102
|
end
|
98
103
|
|
@@ -184,6 +189,10 @@ module MergeAccountingClient
|
|
184
189
|
self.phone_numbers = value
|
185
190
|
end
|
186
191
|
end
|
192
|
+
|
193
|
+
if attributes.key?(:'remote_was_deleted')
|
194
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
195
|
+
end
|
187
196
|
end
|
188
197
|
|
189
198
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -216,7 +225,8 @@ module MergeAccountingClient
|
|
216
225
|
currency == o.currency &&
|
217
226
|
remote_updated_at == o.remote_updated_at &&
|
218
227
|
addresses == o.addresses &&
|
219
|
-
phone_numbers == o.phone_numbers
|
228
|
+
phone_numbers == o.phone_numbers &&
|
229
|
+
remote_was_deleted == o.remote_was_deleted
|
220
230
|
end
|
221
231
|
|
222
232
|
# @see the `==` method
|
@@ -228,7 +238,7 @@ module MergeAccountingClient
|
|
228
238
|
# Calculates hash code according to all attributes.
|
229
239
|
# @return [Integer] Hash code
|
230
240
|
def hash
|
231
|
-
[id, remote_id, remote_data, name, is_supplier, is_customer, email_address, tax_number, status, currency, remote_updated_at, addresses, phone_numbers].hash
|
241
|
+
[id, remote_id, remote_data, name, is_supplier, is_customer, email_address, tax_number, status, currency, remote_updated_at, addresses, phone_numbers, remote_was_deleted].hash
|
232
242
|
end
|
233
243
|
|
234
244
|
# Builds the object from hash
|
@@ -276,8 +276,6 @@ module MergeAccountingClient
|
|
276
276
|
# @param [String] The enum value in the form of the string
|
277
277
|
# @return [String] The enum value
|
278
278
|
def build_from_hash(value)
|
279
|
-
constantValues = CountryEnum.constants.select { |c| CountryEnum::const_get(c) == value }
|
280
|
-
raise "Invalid ENUM value #{value} for class #CountryEnum" if constantValues.empty?
|
281
279
|
value
|
282
280
|
end
|
283
281
|
end
|
@@ -47,6 +47,9 @@ module MergeAccountingClient
|
|
47
47
|
# Array of `Payment` object IDs
|
48
48
|
attr_accessor :payments
|
49
49
|
|
50
|
+
# Indicates whether or not this object has been deleted on the third-party.
|
51
|
+
attr_accessor :remote_was_deleted
|
52
|
+
|
50
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
54
|
def self.attribute_map
|
52
55
|
{
|
@@ -60,7 +63,8 @@ module MergeAccountingClient
|
|
60
63
|
:'currency' => :'currency',
|
61
64
|
:'remote_created_at' => :'remote_created_at',
|
62
65
|
:'remote_updated_at' => :'remote_updated_at',
|
63
|
-
:'payments' => :'payments'
|
66
|
+
:'payments' => :'payments',
|
67
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
64
68
|
}
|
65
69
|
end
|
66
70
|
|
@@ -82,7 +86,8 @@ module MergeAccountingClient
|
|
82
86
|
:'currency' => :'CurrencyEnum',
|
83
87
|
:'remote_created_at' => :'Time',
|
84
88
|
:'remote_updated_at' => :'Time',
|
85
|
-
:'payments' => :'Array<String>'
|
89
|
+
:'payments' => :'Array<String>',
|
90
|
+
:'remote_was_deleted' => :'Boolean'
|
86
91
|
}
|
87
92
|
end
|
88
93
|
|
@@ -163,6 +168,10 @@ module MergeAccountingClient
|
|
163
168
|
self.payments = value
|
164
169
|
end
|
165
170
|
end
|
171
|
+
|
172
|
+
if attributes.key?(:'remote_was_deleted')
|
173
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
174
|
+
end
|
166
175
|
end
|
167
176
|
|
168
177
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -193,7 +202,8 @@ module MergeAccountingClient
|
|
193
202
|
currency == o.currency &&
|
194
203
|
remote_created_at == o.remote_created_at &&
|
195
204
|
remote_updated_at == o.remote_updated_at &&
|
196
|
-
payments == o.payments
|
205
|
+
payments == o.payments &&
|
206
|
+
remote_was_deleted == o.remote_was_deleted
|
197
207
|
end
|
198
208
|
|
199
209
|
# @see the `==` method
|
@@ -205,7 +215,7 @@ module MergeAccountingClient
|
|
205
215
|
# Calculates hash code according to all attributes.
|
206
216
|
# @return [Integer] Hash code
|
207
217
|
def hash
|
208
|
-
[id, remote_id, remote_data, transaction_date, status, total_amount, remaining_credit, currency, remote_created_at, remote_updated_at, payments].hash
|
218
|
+
[id, remote_id, remote_data, transaction_date, status, total_amount, remaining_credit, currency, remote_created_at, remote_updated_at, payments, remote_was_deleted].hash
|
209
219
|
end
|
210
220
|
|
211
221
|
# Builds the object from hash
|
@@ -30,8 +30,6 @@ module MergeAccountingClient
|
|
30
30
|
# @param [String] The enum value in the form of the string
|
31
31
|
# @return [String] The enum value
|
32
32
|
def build_from_hash(value)
|
33
|
-
constantValues = CreditNoteStatusEnum.constants.select { |c| CreditNoteStatusEnum::const_get(c) == value }
|
34
|
-
raise "Invalid ENUM value #{value} for class #CreditNoteStatusEnum" if constantValues.empty?
|
35
33
|
value
|
36
34
|
end
|
37
35
|
end
|
@@ -333,8 +333,6 @@ module MergeAccountingClient
|
|
333
333
|
# @param [String] The enum value in the form of the string
|
334
334
|
# @return [String] The enum value
|
335
335
|
def build_from_hash(value)
|
336
|
-
constantValues = CurrencyEnum.constants.select { |c| CurrencyEnum::const_get(c) == value }
|
337
|
-
raise "Invalid ENUM value #{value} for class #CurrencyEnum" if constantValues.empty?
|
338
336
|
value
|
339
337
|
end
|
340
338
|
end
|
@@ -29,8 +29,6 @@ module MergeAccountingClient
|
|
29
29
|
# @param [String] The enum value in the form of the string
|
30
30
|
# @return [String] The enum value
|
31
31
|
def build_from_hash(value)
|
32
|
-
constantValues = EncodingEnum.constants.select { |c| EncodingEnum::const_get(c) == value }
|
33
|
-
raise "Invalid ENUM value #{value} for class #EncodingEnum" if constantValues.empty?
|
34
32
|
value
|
35
33
|
end
|
36
34
|
end
|
@@ -44,6 +44,9 @@ module MergeAccountingClient
|
|
44
44
|
|
45
45
|
attr_accessor :lines
|
46
46
|
|
47
|
+
# Indicates whether or not this object has been deleted on the third-party.
|
48
|
+
attr_accessor :remote_was_deleted
|
49
|
+
|
47
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
51
|
def self.attribute_map
|
49
52
|
{
|
@@ -57,7 +60,8 @@ module MergeAccountingClient
|
|
57
60
|
:'total_amount' => :'total_amount',
|
58
61
|
:'currency' => :'currency',
|
59
62
|
:'memo' => :'memo',
|
60
|
-
:'lines' => :'lines'
|
63
|
+
:'lines' => :'lines',
|
64
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
61
65
|
}
|
62
66
|
end
|
63
67
|
|
@@ -79,7 +83,8 @@ module MergeAccountingClient
|
|
79
83
|
:'total_amount' => :'Float',
|
80
84
|
:'currency' => :'CurrencyEnum',
|
81
85
|
:'memo' => :'String',
|
82
|
-
:'lines' => :'Array<ExpenseLine>'
|
86
|
+
:'lines' => :'Array<ExpenseLine>',
|
87
|
+
:'remote_was_deleted' => :'Boolean'
|
83
88
|
}
|
84
89
|
end
|
85
90
|
|
@@ -160,6 +165,10 @@ module MergeAccountingClient
|
|
160
165
|
self.lines = value
|
161
166
|
end
|
162
167
|
end
|
168
|
+
|
169
|
+
if attributes.key?(:'remote_was_deleted')
|
170
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
171
|
+
end
|
163
172
|
end
|
164
173
|
|
165
174
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -190,7 +199,8 @@ module MergeAccountingClient
|
|
190
199
|
total_amount == o.total_amount &&
|
191
200
|
currency == o.currency &&
|
192
201
|
memo == o.memo &&
|
193
|
-
lines == o.lines
|
202
|
+
lines == o.lines &&
|
203
|
+
remote_was_deleted == o.remote_was_deleted
|
194
204
|
end
|
195
205
|
|
196
206
|
# @see the `==` method
|
@@ -202,7 +212,7 @@ module MergeAccountingClient
|
|
202
212
|
# Calculates hash code according to all attributes.
|
203
213
|
# @return [Integer] Hash code
|
204
214
|
def hash
|
205
|
-
[id, remote_id, remote_data, transaction_date, remote_created_at, account, contact, total_amount, currency, memo, lines].hash
|
215
|
+
[id, remote_id, remote_data, transaction_date, remote_created_at, account, contact, total_amount, currency, memo, lines, remote_was_deleted].hash
|
206
216
|
end
|
207
217
|
|
208
218
|
# Builds the object from hash
|