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
@@ -0,0 +1,265 @@
|
|
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
|
+
# # The VendorCreditLine Object ### Description The `VendorCreditLine` object is used to represent a vendor credit's line items. ### Usage Example Fetch from the `GET VendorCredit` endpoint and view the vendor credit's line items.
|
18
|
+
class VendorCreditLine
|
19
|
+
# The third-party API ID of the matching object.
|
20
|
+
attr_accessor :remote_id
|
21
|
+
|
22
|
+
# The line's net amount.
|
23
|
+
attr_accessor :net_amount
|
24
|
+
|
25
|
+
# The line's associated tracking category.
|
26
|
+
attr_accessor :tracking_category
|
27
|
+
|
28
|
+
# The line's description.
|
29
|
+
attr_accessor :description
|
30
|
+
|
31
|
+
# The line's account.
|
32
|
+
attr_accessor :account
|
33
|
+
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
+
def self.attribute_map
|
36
|
+
{
|
37
|
+
:'remote_id' => :'remote_id',
|
38
|
+
:'net_amount' => :'net_amount',
|
39
|
+
:'tracking_category' => :'tracking_category',
|
40
|
+
:'description' => :'description',
|
41
|
+
:'account' => :'account'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Returns all the JSON keys this model knows about
|
46
|
+
def self.acceptable_attributes
|
47
|
+
attribute_map.values
|
48
|
+
end
|
49
|
+
|
50
|
+
# Attribute type mapping.
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'remote_id' => :'String',
|
54
|
+
:'net_amount' => :'Float',
|
55
|
+
:'tracking_category' => :'String',
|
56
|
+
:'description' => :'String',
|
57
|
+
:'account' => :'String'
|
58
|
+
}
|
59
|
+
end
|
60
|
+
|
61
|
+
# List of attributes with nullable: true
|
62
|
+
def self.openapi_nullable
|
63
|
+
Set.new([
|
64
|
+
:'remote_id',
|
65
|
+
:'net_amount',
|
66
|
+
:'tracking_category',
|
67
|
+
:'description',
|
68
|
+
:'account'
|
69
|
+
])
|
70
|
+
end
|
71
|
+
|
72
|
+
# Initializes the object
|
73
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
74
|
+
def initialize(attributes = {})
|
75
|
+
if (!attributes.is_a?(Hash))
|
76
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeAccountingClient::VendorCreditLine` initialize method"
|
77
|
+
end
|
78
|
+
|
79
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
80
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
81
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeAccountingClient::VendorCreditLine`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
83
|
+
end
|
84
|
+
h[k.to_sym] = v
|
85
|
+
}
|
86
|
+
|
87
|
+
if attributes.key?(:'remote_id')
|
88
|
+
self.remote_id = attributes[:'remote_id']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'net_amount')
|
92
|
+
self.net_amount = attributes[:'net_amount']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'tracking_category')
|
96
|
+
self.tracking_category = attributes[:'tracking_category']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'description')
|
100
|
+
self.description = attributes[:'description']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'account')
|
104
|
+
self.account = attributes[:'account']
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
109
|
+
# @return Array for valid properties with the reasons
|
110
|
+
def list_invalid_properties
|
111
|
+
invalid_properties = Array.new
|
112
|
+
invalid_properties
|
113
|
+
end
|
114
|
+
|
115
|
+
# Check to see if the all the properties in the model are valid
|
116
|
+
# @return true if the model is valid
|
117
|
+
def valid?
|
118
|
+
true
|
119
|
+
end
|
120
|
+
|
121
|
+
# Checks equality by comparing each attribute.
|
122
|
+
# @param [Object] Object to be compared
|
123
|
+
def ==(o)
|
124
|
+
return true if self.equal?(o)
|
125
|
+
self.class == o.class &&
|
126
|
+
remote_id == o.remote_id &&
|
127
|
+
net_amount == o.net_amount &&
|
128
|
+
tracking_category == o.tracking_category &&
|
129
|
+
description == o.description &&
|
130
|
+
account == o.account
|
131
|
+
end
|
132
|
+
|
133
|
+
# @see the `==` method
|
134
|
+
# @param [Object] Object to be compared
|
135
|
+
def eql?(o)
|
136
|
+
self == o
|
137
|
+
end
|
138
|
+
|
139
|
+
# Calculates hash code according to all attributes.
|
140
|
+
# @return [Integer] Hash code
|
141
|
+
def hash
|
142
|
+
[remote_id, net_amount, tracking_category, description, account].hash
|
143
|
+
end
|
144
|
+
|
145
|
+
# Builds the object from hash
|
146
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
147
|
+
# @return [Object] Returns the model itself
|
148
|
+
def self.build_from_hash(attributes)
|
149
|
+
new.build_from_hash(attributes)
|
150
|
+
end
|
151
|
+
|
152
|
+
# Builds the object from hash
|
153
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
154
|
+
# @return [Object] Returns the model itself
|
155
|
+
def build_from_hash(attributes)
|
156
|
+
return nil unless attributes.is_a?(Hash)
|
157
|
+
self.class.openapi_types.each_pair do |key, type|
|
158
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
159
|
+
self.send("#{key}=", nil)
|
160
|
+
elsif type =~ /\AArray<(.*)>/i
|
161
|
+
# check to ensure the input is an array given that the attribute
|
162
|
+
# is documented as an array but the input is not
|
163
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
164
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
165
|
+
end
|
166
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
167
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
self
|
172
|
+
end
|
173
|
+
|
174
|
+
# Deserializes the data based on type
|
175
|
+
# @param string type Data type
|
176
|
+
# @param string value Value to be deserialized
|
177
|
+
# @return [Object] Deserialized data
|
178
|
+
def _deserialize(type, value)
|
179
|
+
case type.to_sym
|
180
|
+
when :Time
|
181
|
+
Time.parse(value)
|
182
|
+
when :Date
|
183
|
+
Date.parse(value)
|
184
|
+
when :String
|
185
|
+
value
|
186
|
+
when :Integer
|
187
|
+
value.to_i
|
188
|
+
when :Float
|
189
|
+
value.to_f
|
190
|
+
when :Boolean
|
191
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
192
|
+
true
|
193
|
+
else
|
194
|
+
false
|
195
|
+
end
|
196
|
+
when :Object
|
197
|
+
# generic object (usually a Hash), return directly
|
198
|
+
value
|
199
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
200
|
+
inner_type = Regexp.last_match[:inner_type]
|
201
|
+
value.map { |v| _deserialize(inner_type, v) }
|
202
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
203
|
+
k_type = Regexp.last_match[:k_type]
|
204
|
+
v_type = Regexp.last_match[:v_type]
|
205
|
+
{}.tap do |hash|
|
206
|
+
value.each do |k, v|
|
207
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
else # model
|
211
|
+
# models (e.g. Pet) or oneOf
|
212
|
+
klass = MergeAccountingClient.const_get(type)
|
213
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
# Returns the string representation of the object
|
218
|
+
# @return [String] String presentation of the object
|
219
|
+
def to_s
|
220
|
+
to_hash.to_s
|
221
|
+
end
|
222
|
+
|
223
|
+
# to_body is an alias to to_hash (backward compatibility)
|
224
|
+
# @return [Hash] Returns the object in the form of hash
|
225
|
+
def to_body
|
226
|
+
to_hash
|
227
|
+
end
|
228
|
+
|
229
|
+
# Returns the object in the form of hash
|
230
|
+
# @return [Hash] Returns the object in the form of hash
|
231
|
+
def to_hash
|
232
|
+
hash = {}
|
233
|
+
self.class.attribute_map.each_pair do |attr, param|
|
234
|
+
value = self.send(attr)
|
235
|
+
if value.nil?
|
236
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
237
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
238
|
+
end
|
239
|
+
|
240
|
+
hash[param] = _to_hash(value)
|
241
|
+
end
|
242
|
+
hash
|
243
|
+
end
|
244
|
+
|
245
|
+
# Outputs non-array value in the form of hash
|
246
|
+
# For object, use to_hash. Otherwise, just return the value
|
247
|
+
# @param [Object] value Any valid value
|
248
|
+
# @return [Hash] Returns the value in the form of hash
|
249
|
+
def _to_hash(value)
|
250
|
+
if value.is_a?(Array)
|
251
|
+
value.compact.map { |v| _to_hash(v) }
|
252
|
+
elsif value.is_a?(Hash)
|
253
|
+
{}.tap do |hash|
|
254
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
255
|
+
end
|
256
|
+
elsif value.respond_to? :to_hash
|
257
|
+
value.to_hash
|
258
|
+
else
|
259
|
+
value
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
end
|
264
|
+
|
265
|
+
end
|
@@ -92,7 +92,7 @@ require 'merge_accounting_client/models/paginated_purchase_order_list'
|
|
92
92
|
require 'merge_accounting_client/models/paginated_sync_status_list'
|
93
93
|
require 'merge_accounting_client/models/paginated_tax_rate_list'
|
94
94
|
require 'merge_accounting_client/models/paginated_tracking_category_list'
|
95
|
-
require 'merge_accounting_client/models/
|
95
|
+
require 'merge_accounting_client/models/paginated_vendor_credit_list'
|
96
96
|
require 'merge_accounting_client/models/payment'
|
97
97
|
require 'merge_accounting_client/models/purchase_order'
|
98
98
|
require 'merge_accounting_client/models/purchase_order_line_item'
|
@@ -111,6 +111,8 @@ require 'merge_accounting_client/models/sync_status_status_enum'
|
|
111
111
|
require 'merge_accounting_client/models/tax_rate'
|
112
112
|
require 'merge_accounting_client/models/tracking_category'
|
113
113
|
require 'merge_accounting_client/models/validation_problem_source'
|
114
|
+
require 'merge_accounting_client/models/vendor_credit'
|
115
|
+
require 'merge_accounting_client/models/vendor_credit_line'
|
114
116
|
require 'merge_accounting_client/models/warning_validation_problem'
|
115
117
|
require 'merge_accounting_client/models/webhook_receiver'
|
116
118
|
require 'merge_accounting_client/models/webhook_receiver_request'
|
@@ -146,6 +148,7 @@ require 'merge_accounting_client/api/regenerate_key_api'
|
|
146
148
|
require 'merge_accounting_client/api/sync_status_api'
|
147
149
|
require 'merge_accounting_client/api/tax_rates_api'
|
148
150
|
require 'merge_accounting_client/api/tracking_categories_api'
|
151
|
+
require 'merge_accounting_client/api/vendor_credits_api'
|
149
152
|
require 'merge_accounting_client/api/webhook_receivers_api'
|
150
153
|
|
151
154
|
module MergeAccountingClient
|
@@ -36,7 +36,7 @@ describe 'ForceResyncApi' do
|
|
36
36
|
# Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
|
37
37
|
# @param x_account_token Token identifying the end user.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @return [SyncStatus]
|
39
|
+
# @return [Array<SyncStatus>]
|
40
40
|
describe 'sync_status_resync_create test' do
|
41
41
|
it 'should work' do
|
42
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -37,14 +37,14 @@ describe 'LinkedAccountsApi' do
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @option opts [String] :category
|
39
39
|
# @option opts [String] :cursor The pagination cursor value.
|
40
|
-
# @option opts [String] :end_user_email_address
|
41
|
-
# @option opts [String] :end_user_organization_name
|
42
|
-
# @option opts [String] :end_user_origin_id
|
43
|
-
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once
|
40
|
+
# @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
|
41
|
+
# @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
|
42
|
+
# @option opts [String] :end_user_origin_id If provided, will only return linked accounts associated with the given origin ID.
|
43
|
+
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
|
44
44
|
# @option opts [String] :id
|
45
|
-
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once
|
46
|
-
# @option opts [String] :integration_name
|
47
|
-
# @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts
|
45
|
+
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
|
46
|
+
# @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
|
47
|
+
# @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
|
48
48
|
# @option opts [Integer] :page_size Number of results to return per page.
|
49
49
|
# @option opts [String] :status Filter by status. Options: `COMPLETE`, `INCOMPLETE`, `RELINK_NEEDED`
|
50
50
|
# @return [PaginatedAccountDetailsAndActionsList]
|
@@ -0,0 +1,70 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for MergeAccountingClient::VendorCreditsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'VendorCreditsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = MergeAccountingClient::VendorCreditsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of VendorCreditsApi' do
|
30
|
+
it 'should create an instance of VendorCreditsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(MergeAccountingClient::VendorCreditsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for vendor_credits_list
|
36
|
+
# Returns a list of `VendorCredit` objects.
|
37
|
+
# @param x_account_token Token identifying the end user.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
40
|
+
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
|
+
# @option opts [String] :cursor The pagination cursor value.
|
42
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
43
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
44
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
45
|
+
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
46
|
+
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
47
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
48
|
+
# @option opts [String] :remote_id The API provider's ID for the given object.
|
49
|
+
# @return [PaginatedVendorCreditList]
|
50
|
+
describe 'vendor_credits_list test' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# unit tests for vendor_credits_retrieve
|
57
|
+
# Returns a `VendorCredit` object with the given `id`.
|
58
|
+
# @param x_account_token Token identifying the end user.
|
59
|
+
# @param id
|
60
|
+
# @param [Hash] opts the optional parameters
|
61
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
62
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
63
|
+
# @return [VendorCredit]
|
64
|
+
describe 'vendor_credits_retrieve test' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
@@ -34,6 +34,7 @@ describe 'WebhookReceiversApi' do
|
|
34
34
|
|
35
35
|
# unit tests for webhook_receivers_create
|
36
36
|
# Creates a `WebhookReceiver` object with the given values.
|
37
|
+
# @param x_account_token Token identifying the end user.
|
37
38
|
# @param webhook_receiver_request
|
38
39
|
# @param [Hash] opts the optional parameters
|
39
40
|
# @return [WebhookReceiver]
|
@@ -45,10 +46,9 @@ describe 'WebhookReceiversApi' do
|
|
45
46
|
|
46
47
|
# unit tests for webhook_receivers_list
|
47
48
|
# Returns a list of `WebhookReceiver` objects.
|
49
|
+
# @param x_account_token Token identifying the end user.
|
48
50
|
# @param [Hash] opts the optional parameters
|
49
|
-
# @
|
50
|
-
# @option opts [Integer] :page_size Number of results to return per page.
|
51
|
-
# @return [PaginatedWebhookReceiverList]
|
51
|
+
# @return [Array<WebhookReceiver>]
|
52
52
|
describe 'webhook_receivers_list test' do
|
53
53
|
it 'should work' do
|
54
54
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/models/account_spec.rb
CHANGED
@@ -91,4 +91,10 @@ describe MergeAccountingClient::Account do
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
+
describe 'test attribute "remote_was_deleted"' do
|
95
|
+
it 'should work' do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
94
100
|
end
|
@@ -55,4 +55,10 @@ describe MergeAccountingClient::AccountingAttachment do
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
+
describe 'test attribute "remote_was_deleted"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
58
64
|
end
|
@@ -85,4 +85,10 @@ describe MergeAccountingClient::BalanceSheet do
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
+
describe 'test attribute "remote_was_deleted"' do
|
89
|
+
it 'should work' do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
88
94
|
end
|
@@ -97,4 +97,10 @@ describe MergeAccountingClient::CashFlowStatement do
|
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
100
|
+
describe 'test attribute "remote_was_deleted"' do
|
101
|
+
it 'should work' do
|
102
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
100
106
|
end
|
@@ -103,4 +103,10 @@ describe MergeAccountingClient::CompanyInfo do
|
|
103
103
|
end
|
104
104
|
end
|
105
105
|
|
106
|
+
describe 'test attribute "remote_was_deleted"' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
106
112
|
end
|
data/spec/models/contact_spec.rb
CHANGED
@@ -103,4 +103,10 @@ describe MergeAccountingClient::Contact do
|
|
103
103
|
end
|
104
104
|
end
|
105
105
|
|
106
|
+
describe 'test attribute "remote_was_deleted"' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
106
112
|
end
|
@@ -91,4 +91,10 @@ describe MergeAccountingClient::CreditNote do
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
+
describe 'test attribute "remote_was_deleted"' do
|
95
|
+
it 'should work' do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
94
100
|
end
|
data/spec/models/expense_spec.rb
CHANGED
@@ -91,4 +91,10 @@ describe MergeAccountingClient::Expense do
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
+
describe 'test attribute "remote_was_deleted"' do
|
95
|
+
it 'should work' do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
94
100
|
end
|
@@ -103,4 +103,10 @@ describe MergeAccountingClient::IncomeStatement do
|
|
103
103
|
end
|
104
104
|
end
|
105
105
|
|
106
|
+
describe 'test attribute "remote_was_deleted"' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
106
112
|
end
|
@@ -67,4 +67,10 @@ describe MergeAccountingClient::InvoiceLineItemRequest do
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
+
describe 'test attribute "tracking_category"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
70
76
|
end
|
@@ -79,4 +79,10 @@ describe MergeAccountingClient::InvoiceLineItem do
|
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
|
+
describe 'test attribute "tracking_category"' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
82
88
|
end
|
data/spec/models/invoice_spec.rb
CHANGED
@@ -139,4 +139,10 @@ describe MergeAccountingClient::Invoice do
|
|
139
139
|
end
|
140
140
|
end
|
141
141
|
|
142
|
+
describe 'test attribute "remote_was_deleted"' do
|
143
|
+
it 'should work' do
|
144
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
142
148
|
end
|
data/spec/models/item_spec.rb
CHANGED
@@ -55,4 +55,10 @@ describe MergeAccountingClient::JournalEntryRequest do
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
+
describe 'test attribute "currency"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
58
64
|
end
|
@@ -61,13 +61,25 @@ describe MergeAccountingClient::JournalEntry do
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
+
describe 'test attribute "memo"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "currency"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
64
76
|
describe 'test attribute "lines"' do
|
65
77
|
it 'should work' do
|
66
78
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
79
|
end
|
68
80
|
end
|
69
81
|
|
70
|
-
describe 'test attribute "
|
82
|
+
describe 'test attribute "remote_was_deleted"' do
|
71
83
|
it 'should work' do
|
72
84
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
85
|
end
|
@@ -49,6 +49,12 @@ describe MergeAccountingClient::JournalLineRequest do
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
+
describe 'test attribute "contact"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
52
58
|
describe 'test attribute "description"' do
|
53
59
|
it 'should work' do
|
54
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -49,6 +49,12 @@ describe MergeAccountingClient::JournalLine do
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
+
describe 'test attribute "contact"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
52
58
|
describe 'test attribute "description"' do
|
53
59
|
it 'should work' do
|
54
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/models/{paginated_webhook_receiver_list_spec.rb → paginated_vendor_credit_list_spec.rb}
RENAMED
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for MergeAccountingClient::
|
17
|
+
# Unit tests for MergeAccountingClient::PaginatedVendorCreditList
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe MergeAccountingClient::
|
21
|
-
let(:instance) { MergeAccountingClient::
|
20
|
+
describe MergeAccountingClient::PaginatedVendorCreditList do
|
21
|
+
let(:instance) { MergeAccountingClient::PaginatedVendorCreditList.new }
|
22
22
|
|
23
|
-
describe 'test an instance of
|
24
|
-
it 'should create an instance of
|
25
|
-
expect(instance).to be_instance_of(MergeAccountingClient::
|
23
|
+
describe 'test an instance of PaginatedVendorCreditList' do
|
24
|
+
it 'should create an instance of PaginatedVendorCreditList' do
|
25
|
+
expect(instance).to be_instance_of(MergeAccountingClient::PaginatedVendorCreditList)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
describe 'test attribute "_next"' do
|