storecove 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/storecove/api/invoice_submissions_api.rb +5 -5
- data/lib/storecove/api/shop_account_requests_api.rb +54 -54
- data/lib/storecove/api/shop_accounts_api.rb +67 -67
- data/lib/storecove/api/shops_api.rb +5 -5
- data/lib/storecove/api_client.rb +1 -1
- data/lib/storecove/api_error.rb +1 -1
- data/lib/storecove/configuration.rb +1 -1
- data/lib/storecove/models/accounting_cost_code.rb +1 -1
- data/lib/storecove/models/accounting_customer_party.rb +1 -1
- data/lib/storecove/models/address.rb +1 -1
- data/lib/storecove/models/contact.rb +1 -1
- data/lib/storecove/models/country.rb +1 -1
- data/lib/storecove/models/currency_code.rb +1 -1
- data/lib/storecove/models/error_model.rb +1 -1
- data/lib/storecove/models/invoice.rb +44 -27
- data/lib/storecove/models/invoice_line.rb +7 -7
- data/lib/storecove/models/invoice_recipient.rb +17 -6
- data/lib/storecove/models/invoice_recipient_preflight.rb +11 -1
- data/lib/storecove/models/invoice_submission.rb +1 -1
- data/lib/storecove/models/invoice_submission_result.rb +9 -9
- data/lib/storecove/models/legal_entity.rb +11 -2
- data/lib/storecove/models/legal_entity_identifier.rb +1 -1
- data/lib/storecove/models/logos.rb +1 -1
- data/lib/storecove/models/party.rb +1 -1
- data/lib/storecove/models/preflight_invoice_recipient_result.rb +1 -1
- data/lib/storecove/models/public_identifier.rb +2 -2
- data/lib/storecove/models/public_identifiers.rb +1 -1
- data/lib/storecove/models/shop.rb +1 -1
- data/lib/storecove/models/shop_account_input.rb +26 -1
- data/lib/storecove/models/shop_account_request_input.rb +26 -1
- data/lib/storecove/models/{shop_account_request.rb → shop_account_request_result.rb} +2 -7
- data/lib/storecove/models/shop_account_request_update.rb +1 -1
- data/lib/storecove/models/{shop_account.rb → shop_account_result.rb} +10 -7
- data/lib/storecove/models/shop_account_update.rb +4 -1
- data/lib/storecove/models/tax.rb +1 -1
- data/lib/storecove/version.rb +2 -2
- data/lib/storecove.rb +3 -3
- metadata +3 -3
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Storecove API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.1
|
7
7
|
Contact: apisupport@storecove.nl
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -14,14 +14,16 @@ require 'date'
|
|
14
14
|
module StorecoveApi
|
15
15
|
# The invoice to send
|
16
16
|
class Invoice
|
17
|
+
# The documentCurrencyCode is the currency for the entire invoice. We currently do not support invoices in multiple currencies.
|
17
18
|
attr_accessor :document_currency_code
|
18
19
|
|
19
|
-
# The invoice number you assigned to the invoice. The
|
20
|
+
# The invoice number you assigned to the invoice. The invoiceNumber should be unique for the supplierId and year of the issueDate. This means invoice numbers can be reused in different years, as is customary in some countries.
|
20
21
|
attr_accessor :invoice_number
|
21
22
|
|
22
23
|
# Format: yyyy-mm-dd.
|
23
24
|
attr_accessor :issue_date
|
24
25
|
|
26
|
+
# The receiving party
|
25
27
|
attr_accessor :accounting_customer_party
|
26
28
|
|
27
29
|
# An array of invoice lines.
|
@@ -41,7 +43,7 @@ module StorecoveApi
|
|
41
43
|
# A reference provided by the buyer used for internal routing of the document.
|
42
44
|
attr_accessor :buyer_reference
|
43
45
|
|
44
|
-
# The period (or specific date) to which the invoice applies. Format: yyyy-mm-dd
|
46
|
+
# The period (or specific date) to which the invoice applies. Format: yyyy-mm-dd - yyyy-mm-dd.
|
45
47
|
attr_accessor :invoice_period
|
46
48
|
|
47
49
|
# A reference to an order for this invoice.
|
@@ -65,6 +67,9 @@ module StorecoveApi
|
|
65
67
|
# The payment id that you will use to match the payment against the invoice.
|
66
68
|
attr_accessor :payment_means_payment_id
|
67
69
|
|
70
|
+
# amountIncludingVat is important because of rounding differences. In many invoices, the sum of the line item amounts excluding VAT and the VAT amounts is not equal to first summing the line items without VAT, and then applying VAT. The difference is automatically calculated and included in the electronic invoice, so the receiving accounting package can process the electronic invoice without problems.
|
71
|
+
attr_accessor :amount_including_vat
|
72
|
+
|
68
73
|
class EnumAttributeValidator
|
69
74
|
attr_reader :datatype
|
70
75
|
attr_reader :allowable_values
|
@@ -107,7 +112,8 @@ module StorecoveApi
|
|
107
112
|
:'project_reference' => :'projectReference',
|
108
113
|
:'payment_means_iban' => :'paymentMeansIban',
|
109
114
|
:'payment_means_code' => :'paymentMeansCode',
|
110
|
-
:'payment_means_payment_id' => :'paymentMeansPaymentId'
|
115
|
+
:'payment_means_payment_id' => :'paymentMeansPaymentId',
|
116
|
+
:'amount_including_vat' => :'amountIncludingVat'
|
111
117
|
}
|
112
118
|
end
|
113
119
|
|
@@ -131,7 +137,8 @@ module StorecoveApi
|
|
131
137
|
:'project_reference' => :'String',
|
132
138
|
:'payment_means_iban' => :'String',
|
133
139
|
:'payment_means_code' => :'String',
|
134
|
-
:'payment_means_payment_id' => :'String'
|
140
|
+
:'payment_means_payment_id' => :'String',
|
141
|
+
:'amount_including_vat' => :'Float'
|
135
142
|
}
|
136
143
|
end
|
137
144
|
|
@@ -219,6 +226,10 @@ module StorecoveApi
|
|
219
226
|
self.payment_means_payment_id = attributes[:'paymentMeansPaymentId']
|
220
227
|
end
|
221
228
|
|
229
|
+
if attributes.has_key?(:'amountIncludingVat')
|
230
|
+
self.amount_including_vat = attributes[:'amountIncludingVat']
|
231
|
+
end
|
232
|
+
|
222
233
|
end
|
223
234
|
|
224
235
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -241,8 +252,8 @@ module StorecoveApi
|
|
241
252
|
invalid_properties.push("invalid value for 'issue_date', issue_date cannot be nil.")
|
242
253
|
end
|
243
254
|
|
244
|
-
if @issue_date !~ Regexp.new(
|
245
|
-
invalid_properties.push("invalid value for 'issue_date', must conform to the pattern
|
255
|
+
if @issue_date !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
256
|
+
invalid_properties.push("invalid value for 'issue_date', must conform to the pattern /^[0-9]{4}-[0-9]{2}-[0-9]{2}$/.")
|
246
257
|
end
|
247
258
|
|
248
259
|
if @accounting_customer_party.nil?
|
@@ -253,16 +264,20 @@ module StorecoveApi
|
|
253
264
|
invalid_properties.push("invalid value for 'invoice_lines', invoice_lines cannot be nil.")
|
254
265
|
end
|
255
266
|
|
256
|
-
if !@due_date.nil? && @due_date !~ Regexp.new(
|
257
|
-
invalid_properties.push("invalid value for 'due_date', must conform to the pattern
|
267
|
+
if !@due_date.nil? && @due_date !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
268
|
+
invalid_properties.push("invalid value for 'due_date', must conform to the pattern /^[0-9]{4}-[0-9]{2}-[0-9]{2}$/.")
|
269
|
+
end
|
270
|
+
|
271
|
+
if !@tax_point_date.nil? && @tax_point_date !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
272
|
+
invalid_properties.push("invalid value for 'tax_point_date', must conform to the pattern /^[0-9]{4}-[0-9]{2}-[0-9]{2}$/.")
|
258
273
|
end
|
259
274
|
|
260
|
-
if !@
|
261
|
-
invalid_properties.push("invalid value for '
|
275
|
+
if !@invoice_period.nil? && @invoice_period !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2} - [0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
276
|
+
invalid_properties.push("invalid value for 'invoice_period', must conform to the pattern /^[0-9]{4}-[0-9]{2}-[0-9]{2} - [0-9]{4}-[0-9]{2}-[0-9]{2}$/.")
|
262
277
|
end
|
263
278
|
|
264
|
-
if
|
265
|
-
invalid_properties.push("invalid value for '
|
279
|
+
if @amount_including_vat.nil?
|
280
|
+
invalid_properties.push("invalid value for 'amount_including_vat', amount_including_vat cannot be nil.")
|
266
281
|
end
|
267
282
|
|
268
283
|
return invalid_properties
|
@@ -275,14 +290,15 @@ module StorecoveApi
|
|
275
290
|
return false if @invoice_number.nil?
|
276
291
|
return false if @invoice_number.to_s.length < 1
|
277
292
|
return false if @issue_date.nil?
|
278
|
-
return false if @issue_date !~ Regexp.new(
|
293
|
+
return false if @issue_date !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
279
294
|
return false if @accounting_customer_party.nil?
|
280
295
|
return false if @invoice_lines.nil?
|
281
|
-
return false if !@due_date.nil? && @due_date !~ Regexp.new(
|
296
|
+
return false if !@due_date.nil? && @due_date !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
282
297
|
invoice_type_validator = EnumAttributeValidator.new('String', ["380", "384"])
|
283
298
|
return false unless invoice_type_validator.valid?(@invoice_type)
|
284
|
-
return false if !@tax_point_date.nil? && @tax_point_date !~ Regexp.new(
|
285
|
-
return false if !@invoice_period.nil? && @invoice_period !~ Regexp.new(
|
299
|
+
return false if !@tax_point_date.nil? && @tax_point_date !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
300
|
+
return false if !@invoice_period.nil? && @invoice_period !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2} - [0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
301
|
+
return false if @amount_including_vat.nil?
|
286
302
|
return true
|
287
303
|
end
|
288
304
|
|
@@ -307,8 +323,8 @@ module StorecoveApi
|
|
307
323
|
fail ArgumentError, "issue_date cannot be nil"
|
308
324
|
end
|
309
325
|
|
310
|
-
if issue_date !~ Regexp.new(
|
311
|
-
fail ArgumentError, "invalid value for 'issue_date', must conform to the pattern
|
326
|
+
if issue_date !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
327
|
+
fail ArgumentError, "invalid value for 'issue_date', must conform to the pattern /^[0-9]{4}-[0-9]{2}-[0-9]{2}$/."
|
312
328
|
end
|
313
329
|
|
314
330
|
@issue_date = issue_date
|
@@ -318,8 +334,8 @@ module StorecoveApi
|
|
318
334
|
# @param [Object] due_date Value to be assigned
|
319
335
|
def due_date=(due_date)
|
320
336
|
|
321
|
-
if !due_date.nil? && due_date !~ Regexp.new(
|
322
|
-
fail ArgumentError, "invalid value for 'due_date', must conform to the pattern
|
337
|
+
if !due_date.nil? && due_date !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
338
|
+
fail ArgumentError, "invalid value for 'due_date', must conform to the pattern /^[0-9]{4}-[0-9]{2}-[0-9]{2}$/."
|
323
339
|
end
|
324
340
|
|
325
341
|
@due_date = due_date
|
@@ -339,8 +355,8 @@ module StorecoveApi
|
|
339
355
|
# @param [Object] tax_point_date Value to be assigned
|
340
356
|
def tax_point_date=(tax_point_date)
|
341
357
|
|
342
|
-
if !tax_point_date.nil? && tax_point_date !~ Regexp.new(
|
343
|
-
fail ArgumentError, "invalid value for 'tax_point_date', must conform to the pattern
|
358
|
+
if !tax_point_date.nil? && tax_point_date !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
359
|
+
fail ArgumentError, "invalid value for 'tax_point_date', must conform to the pattern /^[0-9]{4}-[0-9]{2}-[0-9]{2}$/."
|
344
360
|
end
|
345
361
|
|
346
362
|
@tax_point_date = tax_point_date
|
@@ -350,8 +366,8 @@ module StorecoveApi
|
|
350
366
|
# @param [Object] invoice_period Value to be assigned
|
351
367
|
def invoice_period=(invoice_period)
|
352
368
|
|
353
|
-
if !invoice_period.nil? && invoice_period !~ Regexp.new(
|
354
|
-
fail ArgumentError, "invalid value for 'invoice_period', must conform to the pattern
|
369
|
+
if !invoice_period.nil? && invoice_period !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2} - [0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
370
|
+
fail ArgumentError, "invalid value for 'invoice_period', must conform to the pattern /^[0-9]{4}-[0-9]{2}-[0-9]{2} - [0-9]{4}-[0-9]{2}-[0-9]{2}$/."
|
355
371
|
end
|
356
372
|
|
357
373
|
@invoice_period = invoice_period
|
@@ -379,7 +395,8 @@ module StorecoveApi
|
|
379
395
|
project_reference == o.project_reference &&
|
380
396
|
payment_means_iban == o.payment_means_iban &&
|
381
397
|
payment_means_code == o.payment_means_code &&
|
382
|
-
payment_means_payment_id == o.payment_means_payment_id
|
398
|
+
payment_means_payment_id == o.payment_means_payment_id &&
|
399
|
+
amount_including_vat == o.amount_including_vat
|
383
400
|
end
|
384
401
|
|
385
402
|
# @see the `==` method
|
@@ -391,7 +408,7 @@ module StorecoveApi
|
|
391
408
|
# Calculates hash code according to all attributes.
|
392
409
|
# @return [Fixnum] Hash code
|
393
410
|
def hash
|
394
|
-
[document_currency_code, invoice_number, issue_date, accounting_customer_party, invoice_lines, accounting_cost_code, due_date, invoice_type, tax_point_date, buyer_reference, invoice_period, order_reference, billing_reference, contract_document_reference, project_reference, payment_means_iban, payment_means_code, payment_means_payment_id].hash
|
411
|
+
[document_currency_code, invoice_number, issue_date, accounting_customer_party, invoice_lines, accounting_cost_code, due_date, invoice_type, tax_point_date, buyer_reference, invoice_period, order_reference, billing_reference, contract_document_reference, project_reference, payment_means_iban, payment_means_code, payment_means_payment_id, amount_including_vat].hash
|
395
412
|
end
|
396
413
|
|
397
414
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Storecove API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.1
|
7
7
|
Contact: apisupport@storecove.nl
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -20,7 +20,7 @@ module StorecoveApi
|
|
20
20
|
# The description for this invoice line.
|
21
21
|
attr_accessor :description
|
22
22
|
|
23
|
-
# The period (or specific date) to which the invoice line applies. Format: yyyy-mm-dd
|
23
|
+
# The period (or specific date) to which the invoice line applies. Format: yyyy-mm-dd - yyyy-mm-dd.
|
24
24
|
attr_accessor :invoice_period
|
25
25
|
|
26
26
|
# The number of items (may be fractional).
|
@@ -123,8 +123,8 @@ module StorecoveApi
|
|
123
123
|
invalid_properties.push("invalid value for 'description', the character length must be great than or equal to 1.")
|
124
124
|
end
|
125
125
|
|
126
|
-
if !@invoice_period.nil? && @invoice_period !~ Regexp.new(
|
127
|
-
invalid_properties.push("invalid value for 'invoice_period', must conform to the pattern
|
126
|
+
if !@invoice_period.nil? && @invoice_period !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2} - [0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
127
|
+
invalid_properties.push("invalid value for 'invoice_period', must conform to the pattern /^[0-9]{4}-[0-9]{2}-[0-9]{2} - [0-9]{4}-[0-9]{2}-[0-9]{2}$/.")
|
128
128
|
end
|
129
129
|
|
130
130
|
if @amount_excluding_vat.nil?
|
@@ -140,7 +140,7 @@ module StorecoveApi
|
|
140
140
|
return false if !@id.nil? && @id.to_s.length < 1
|
141
141
|
return false if @description.nil?
|
142
142
|
return false if @description.to_s.length < 1
|
143
|
-
return false if !@invoice_period.nil? && @invoice_period !~ Regexp.new(
|
143
|
+
return false if !@invoice_period.nil? && @invoice_period !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2} - [0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
144
144
|
return false if @amount_excluding_vat.nil?
|
145
145
|
return true
|
146
146
|
end
|
@@ -174,8 +174,8 @@ module StorecoveApi
|
|
174
174
|
# @param [Object] invoice_period Value to be assigned
|
175
175
|
def invoice_period=(invoice_period)
|
176
176
|
|
177
|
-
if !invoice_period.nil? && invoice_period !~ Regexp.new(
|
178
|
-
fail ArgumentError, "invalid value for 'invoice_period', must conform to the pattern
|
177
|
+
if !invoice_period.nil? && invoice_period !~ Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2} - [0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
178
|
+
fail ArgumentError, "invalid value for 'invoice_period', must conform to the pattern /^[0-9]{4}-[0-9]{2}-[0-9]{2} - [0-9]{4}-[0-9]{2}-[0-9]{2}$/."
|
179
179
|
end
|
180
180
|
|
181
181
|
@invoice_period = invoice_period
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Storecove API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.1
|
7
7
|
Contact: apisupport@storecove.nl
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -12,19 +12,24 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
12
12
|
require 'date'
|
13
13
|
|
14
14
|
module StorecoveApi
|
15
|
-
# Ids that identify this invoice recipient
|
15
|
+
# Ids that identify this invoice recipient. The list of identifiers should match with the accountingCustomerParty. I.e., you should not be sending an invoice for one accountingCustomerParty to the publicIdentifier of another.
|
16
16
|
class InvoiceRecipient
|
17
17
|
# Your id for this organization. This should match the id that you use for the Storecove widget (if you use that).
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
+
# The public identifiers for this invoice recipient. Either an id, or one or more public identifiers must be given
|
20
21
|
attr_accessor :public_identifiers
|
21
22
|
|
23
|
+
# The email address the invoice should be sent to if none of the other identifiers can be used
|
24
|
+
attr_accessor :fallback_email
|
25
|
+
|
22
26
|
|
23
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
28
|
def self.attribute_map
|
25
29
|
{
|
26
30
|
:'id' => :'id',
|
27
|
-
:'public_identifiers' => :'publicIdentifiers'
|
31
|
+
:'public_identifiers' => :'publicIdentifiers',
|
32
|
+
:'fallback_email' => :'fallbackEmail'
|
28
33
|
}
|
29
34
|
end
|
30
35
|
|
@@ -32,7 +37,8 @@ module StorecoveApi
|
|
32
37
|
def self.swagger_types
|
33
38
|
{
|
34
39
|
:'id' => :'String',
|
35
|
-
:'public_identifiers' => :'PublicIdentifiers'
|
40
|
+
:'public_identifiers' => :'PublicIdentifiers',
|
41
|
+
:'fallback_email' => :'String'
|
36
42
|
}
|
37
43
|
end
|
38
44
|
|
@@ -52,6 +58,10 @@ module StorecoveApi
|
|
52
58
|
self.public_identifiers = attributes[:'publicIdentifiers']
|
53
59
|
end
|
54
60
|
|
61
|
+
if attributes.has_key?(:'fallbackEmail')
|
62
|
+
self.fallback_email = attributes[:'fallbackEmail']
|
63
|
+
end
|
64
|
+
|
55
65
|
end
|
56
66
|
|
57
67
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -89,7 +99,8 @@ module StorecoveApi
|
|
89
99
|
return true if self.equal?(o)
|
90
100
|
self.class == o.class &&
|
91
101
|
id == o.id &&
|
92
|
-
public_identifiers == o.public_identifiers
|
102
|
+
public_identifiers == o.public_identifiers &&
|
103
|
+
fallback_email == o.fallback_email
|
93
104
|
end
|
94
105
|
|
95
106
|
# @see the `==` method
|
@@ -101,7 +112,7 @@ module StorecoveApi
|
|
101
112
|
# Calculates hash code according to all attributes.
|
102
113
|
# @return [Fixnum] Hash code
|
103
114
|
def hash
|
104
|
-
[id, public_identifiers].hash
|
115
|
+
[id, public_identifiers, fallback_email].hash
|
105
116
|
end
|
106
117
|
|
107
118
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Storecove API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.1
|
7
7
|
Contact: apisupport@storecove.nl
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -58,12 +58,22 @@ module StorecoveApi
|
|
58
58
|
# @return Array for valid properies with the reasons
|
59
59
|
def list_invalid_properties
|
60
60
|
invalid_properties = Array.new
|
61
|
+
if @supplier_id.nil?
|
62
|
+
invalid_properties.push("invalid value for 'supplier_id', supplier_id cannot be nil.")
|
63
|
+
end
|
64
|
+
|
65
|
+
if @invoice_recipient.nil?
|
66
|
+
invalid_properties.push("invalid value for 'invoice_recipient', invoice_recipient cannot be nil.")
|
67
|
+
end
|
68
|
+
|
61
69
|
return invalid_properties
|
62
70
|
end
|
63
71
|
|
64
72
|
# Check to see if the all the properties in the model are valid
|
65
73
|
# @return true if the model is valid
|
66
74
|
def valid?
|
75
|
+
return false if @supplier_id.nil?
|
76
|
+
return false if @invoice_recipient.nil?
|
67
77
|
return true
|
68
78
|
end
|
69
79
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Storecove API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.1
|
7
7
|
Contact: apisupport@storecove.nl
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -14,21 +14,21 @@ require 'date'
|
|
14
14
|
module StorecoveApi
|
15
15
|
# The result of an invoice submission
|
16
16
|
class InvoiceSubmissionResult
|
17
|
-
#
|
18
|
-
attr_accessor :
|
17
|
+
# A (V4) GUID for the invoice submission
|
18
|
+
attr_accessor :guid
|
19
19
|
|
20
20
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
22
|
def self.attribute_map
|
23
23
|
{
|
24
|
-
:'
|
24
|
+
:'guid' => :'guid'
|
25
25
|
}
|
26
26
|
end
|
27
27
|
|
28
28
|
# Attribute type mapping.
|
29
29
|
def self.swagger_types
|
30
30
|
{
|
31
|
-
:'
|
31
|
+
:'guid' => :'String'
|
32
32
|
}
|
33
33
|
end
|
34
34
|
|
@@ -40,8 +40,8 @@ module StorecoveApi
|
|
40
40
|
# convert string to symbol for hash key
|
41
41
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
42
42
|
|
43
|
-
if attributes.has_key?(:'
|
44
|
-
self.
|
43
|
+
if attributes.has_key?(:'guid')
|
44
|
+
self.guid = attributes[:'guid']
|
45
45
|
end
|
46
46
|
|
47
47
|
end
|
@@ -64,7 +64,7 @@ module StorecoveApi
|
|
64
64
|
def ==(o)
|
65
65
|
return true if self.equal?(o)
|
66
66
|
self.class == o.class &&
|
67
|
-
|
67
|
+
guid == o.guid
|
68
68
|
end
|
69
69
|
|
70
70
|
# @see the `==` method
|
@@ -76,7 +76,7 @@ module StorecoveApi
|
|
76
76
|
# Calculates hash code according to all attributes.
|
77
77
|
# @return [Fixnum] Hash code
|
78
78
|
def hash
|
79
|
-
[
|
79
|
+
[guid].hash
|
80
80
|
end
|
81
81
|
|
82
82
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Storecove API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.1
|
7
7
|
Contact: apisupport@storecove.nl
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -18,6 +18,8 @@ module StorecoveApi
|
|
18
18
|
|
19
19
|
attr_accessor :line1
|
20
20
|
|
21
|
+
attr_accessor :line2
|
22
|
+
|
21
23
|
attr_accessor :zip
|
22
24
|
|
23
25
|
attr_accessor :city
|
@@ -34,6 +36,7 @@ module StorecoveApi
|
|
34
36
|
{
|
35
37
|
:'name' => :'name',
|
36
38
|
:'line1' => :'line1',
|
39
|
+
:'line2' => :'line2',
|
37
40
|
:'zip' => :'zip',
|
38
41
|
:'city' => :'city',
|
39
42
|
:'county' => :'county',
|
@@ -47,6 +50,7 @@ module StorecoveApi
|
|
47
50
|
{
|
48
51
|
:'name' => :'String',
|
49
52
|
:'line1' => :'String',
|
53
|
+
:'line2' => :'String',
|
50
54
|
:'zip' => :'String',
|
51
55
|
:'city' => :'String',
|
52
56
|
:'county' => :'String',
|
@@ -71,6 +75,10 @@ module StorecoveApi
|
|
71
75
|
self.line1 = attributes[:'line1']
|
72
76
|
end
|
73
77
|
|
78
|
+
if attributes.has_key?(:'line2')
|
79
|
+
self.line2 = attributes[:'line2']
|
80
|
+
end
|
81
|
+
|
74
82
|
if attributes.has_key?(:'zip')
|
75
83
|
self.zip = attributes[:'zip']
|
76
84
|
end
|
@@ -115,6 +123,7 @@ module StorecoveApi
|
|
115
123
|
self.class == o.class &&
|
116
124
|
name == o.name &&
|
117
125
|
line1 == o.line1 &&
|
126
|
+
line2 == o.line2 &&
|
118
127
|
zip == o.zip &&
|
119
128
|
city == o.city &&
|
120
129
|
county == o.county &&
|
@@ -131,7 +140,7 @@ module StorecoveApi
|
|
131
140
|
# Calculates hash code according to all attributes.
|
132
141
|
# @return [Fixnum] Hash code
|
133
142
|
def hash
|
134
|
-
[name, line1, zip, city, county, country, identifiers].hash
|
143
|
+
[name, line1, line2, zip, city, county, country, identifiers].hash
|
135
144
|
end
|
136
145
|
|
137
146
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Storecove API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.1
|
7
7
|
Contact: apisupport@storecove.nl
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
module StorecoveApi
|
15
15
|
# A public identifier for this customer.
|
16
16
|
class PublicIdentifier
|
17
|
-
# The scheme of the public identifier, e.g. chambre of commerce number (for The Netherlands NL:KVK), IBAN, or NL:OIN (OIN is a Dutch government organizaton id). The full list can be found on https://joinup.ec.europa.eu/svn/peppol/TransportInfrastructure/PEPPOL_Policy%20for%20use%20of%20identifiers-300.pdf.
|
17
|
+
# The scheme of the public identifier, e.g. chambre of commerce number (for The Netherlands: NL:KVK), VAT, IBAN, or NL:OIN (OIN is a Dutch government organizaton id). The full list can be found on https://joinup.ec.europa.eu/svn/peppol/TransportInfrastructure/PEPPOL_Policy%20for%20use%20of%20identifiers-300.pdf.
|
18
18
|
attr_accessor :scheme
|
19
19
|
|
20
20
|
# The actual identifier.
|