storecove 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed4638ad2093a59ab20ad55f34a3dcd018691f76
4
- data.tar.gz: 86c1195c801247c22444dae8cf462e939f4a129c
3
+ metadata.gz: 2e941a5e9a41de27022ebc99ecb2778850a19583
4
+ data.tar.gz: d1453812248cbdc9838bebc44c0fd5995d8c2596
5
5
  SHA512:
6
- metadata.gz: 678b79389ea30bd78facbb788e6907749e261d2467646e382f5c49d1366567ecdebec2647e660ea609dc9da2ee72ac01b5d919d67ff4cf0f36d1e550ac06788e
7
- data.tar.gz: aaed7f28c7769e3c8feeaac2c669bd265026d232dd552b2f3bf567cf099ac3e9b4cbc13cb89b3da4c407103bfc5e902c9bcd1813b97a275a216ff7b83ac83f3a
6
+ metadata.gz: 59886b58208bfcf819408b42577d9f1e037af7b20d19f62d164ebced3b69f3dcda529839115a29d6bf14f5feb6bea21f2743d4b7025aff329a4743d9ce2b1b1a
7
+ data.tar.gz: 139c5236db5cba9f266aa7cae2ad93eb370d5a7f7f4b2a5dbaf6bf6d4803d377882cceb3adc7c79c4c35b0fc29e3ccf6521e4af3fc31dd01796e96549bfb99e3
@@ -14,7 +14,7 @@ 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
+ # The documentCurrencyCode is the currency for the entire invoice. We currently do not support invoices in multiple currencies. If left out, will default to EUR
18
18
  attr_accessor :document_currency_code
19
19
 
20
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.
@@ -236,10 +236,6 @@ module StorecoveApi
236
236
  # @return Array for valid properies with the reasons
237
237
  def list_invalid_properties
238
238
  invalid_properties = Array.new
239
- if @document_currency_code.nil?
240
- invalid_properties.push("invalid value for 'document_currency_code', document_currency_code cannot be nil.")
241
- end
242
-
243
239
  if @invoice_number.nil?
244
240
  invalid_properties.push("invalid value for 'invoice_number', invoice_number cannot be nil.")
245
241
  end
@@ -286,7 +282,6 @@ module StorecoveApi
286
282
  # Check to see if the all the properties in the model are valid
287
283
  # @return true if the model is valid
288
284
  def valid?
289
- return false if @document_currency_code.nil?
290
285
  return false if @invoice_number.nil?
291
286
  return false if @invoice_number.to_s.length < 1
292
287
  return false if @issue_date.nil?
@@ -23,6 +23,9 @@ module StorecoveApi
23
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
+ # The price per item (may be fractional)
27
+ attr_accessor :item_price
28
+
26
29
  # The number of items (may be fractional).
27
30
  attr_accessor :quantity
28
31
 
@@ -43,6 +46,7 @@ module StorecoveApi
43
46
  :'id' => :'id',
44
47
  :'description' => :'description',
45
48
  :'invoice_period' => :'invoicePeriod',
49
+ :'item_price' => :'itemPrice',
46
50
  :'quantity' => :'quantity',
47
51
  :'amount_excluding_vat' => :'amountExcludingVat',
48
52
  :'tax' => :'tax',
@@ -57,6 +61,7 @@ module StorecoveApi
57
61
  :'id' => :'String',
58
62
  :'description' => :'String',
59
63
  :'invoice_period' => :'String',
64
+ :'item_price' => :'Float',
60
65
  :'quantity' => :'Float',
61
66
  :'amount_excluding_vat' => :'Float',
62
67
  :'tax' => :'Tax',
@@ -85,6 +90,10 @@ module StorecoveApi
85
90
  self.invoice_period = attributes[:'invoicePeriod']
86
91
  end
87
92
 
93
+ if attributes.has_key?(:'itemPrice')
94
+ self.item_price = attributes[:'itemPrice']
95
+ end
96
+
88
97
  if attributes.has_key?(:'quantity')
89
98
  self.quantity = attributes[:'quantity']
90
99
  end
@@ -189,6 +198,7 @@ module StorecoveApi
189
198
  id == o.id &&
190
199
  description == o.description &&
191
200
  invoice_period == o.invoice_period &&
201
+ item_price == o.item_price &&
192
202
  quantity == o.quantity &&
193
203
  amount_excluding_vat == o.amount_excluding_vat &&
194
204
  tax == o.tax &&
@@ -205,7 +215,7 @@ module StorecoveApi
205
215
  # Calculates hash code according to all attributes.
206
216
  # @return [Fixnum] Hash code
207
217
  def hash
208
- [id, description, invoice_period, quantity, amount_excluding_vat, tax, accounting_cost_code, image_url].hash
218
+ [id, description, invoice_period, item_price, quantity, amount_excluding_vat, tax, accounting_cost_code, image_url].hash
209
219
  end
210
220
 
211
221
  # Builds the object from hash
@@ -23,9 +23,6 @@ module StorecoveApi
23
23
  # If a supplierId has more than one legal entity to send invoices from, specify the legal entity here. If you have not received one or more legal entities, don't supply this field.
24
24
  attr_accessor :legal_supplier_id
25
25
 
26
- # For internal use only
27
- attr_accessor :shop_account_id
28
-
29
26
  attr_accessor :invoice_recipient
30
27
 
31
28
  # The invoice in PDF form. The document should be base64 encoded and the enocded string length should not exceed 2MB (2097152 bytes).
@@ -64,7 +61,6 @@ module StorecoveApi
64
61
  :'mode' => :'mode',
65
62
  :'supplier_id' => :'supplierId',
66
63
  :'legal_supplier_id' => :'legalSupplierId',
67
- :'shop_account_id' => :'shopAccountId',
68
64
  :'invoice_recipient' => :'invoiceRecipient',
69
65
  :'document' => :'document',
70
66
  :'document_url' => :'documentUrl',
@@ -78,7 +74,6 @@ module StorecoveApi
78
74
  :'mode' => :'String',
79
75
  :'supplier_id' => :'Integer',
80
76
  :'legal_supplier_id' => :'Integer',
81
- :'shop_account_id' => :'Integer',
82
77
  :'invoice_recipient' => :'InvoiceRecipient',
83
78
  :'document' => :'String',
84
79
  :'document_url' => :'String',
@@ -106,10 +101,6 @@ module StorecoveApi
106
101
  self.legal_supplier_id = attributes[:'legalSupplierId']
107
102
  end
108
103
 
109
- if attributes.has_key?(:'shopAccountId')
110
- self.shop_account_id = attributes[:'shopAccountId']
111
- end
112
-
113
104
  if attributes.has_key?(:'invoiceRecipient')
114
105
  self.invoice_recipient = attributes[:'invoiceRecipient']
115
106
  end
@@ -192,7 +183,6 @@ module StorecoveApi
192
183
  mode == o.mode &&
193
184
  supplier_id == o.supplier_id &&
194
185
  legal_supplier_id == o.legal_supplier_id &&
195
- shop_account_id == o.shop_account_id &&
196
186
  invoice_recipient == o.invoice_recipient &&
197
187
  document == o.document &&
198
188
  document_url == o.document_url &&
@@ -208,7 +198,7 @@ module StorecoveApi
208
198
  # Calculates hash code according to all attributes.
209
199
  # @return [Fixnum] Hash code
210
200
  def hash
211
- [mode, supplier_id, legal_supplier_id, shop_account_id, invoice_recipient, document, document_url, invoice].hash
201
+ [mode, supplier_id, legal_supplier_id, invoice_recipient, document, document_url, invoice].hash
212
202
  end
213
203
 
214
204
  # Builds the object from hash
@@ -26,10 +26,10 @@ module StorecoveApi
26
26
  # See <<_openapi_shopaccountinput>>.
27
27
  attr_accessor :email
28
28
 
29
- # The date from invoices will be collected. This field defaults to the first day of the month the ShopAccount was created in.
29
+ # The date from invoices will be collected. This field defaults to the first day of the month the ShopAccount was created in.
30
30
  attr_accessor :from_date
31
31
 
32
- # Whether or not Storecove has detected and confirmed a sign-in failure. This field is reset to false each time a ShopAccount is updated and the username or password has changed.
32
+ # Whether or not Storecove has detected and confirmed a sign-in failure. This field is reset to false each time a ShopAccount is updated and the username or password has changed.
33
33
  attr_accessor :sign_in_error_confirmed
34
34
 
35
35
  # The date on which the sign-in error was confirmed.
@@ -10,5 +10,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  =end
11
11
 
12
12
  module StorecoveApi
13
- VERSION = "1.0.6"
13
+ VERSION = "1.0.7"
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storecove
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Storecove
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-09 00:00:00.000000000 Z
11
+ date: 2017-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus