storecove 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,24 +12,19 @@ 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. 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.
15
+ # Ids that identify this invoice recipient
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
21
20
  attr_accessor :public_identifiers
22
21
 
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
-
26
22
 
27
23
  # Attribute mapping from ruby-style variable name to JSON key.
28
24
  def self.attribute_map
29
25
  {
30
26
  :'id' => :'id',
31
- :'public_identifiers' => :'publicIdentifiers',
32
- :'fallback_email' => :'fallbackEmail'
27
+ :'public_identifiers' => :'publicIdentifiers'
33
28
  }
34
29
  end
35
30
 
@@ -37,8 +32,7 @@ module StorecoveApi
37
32
  def self.swagger_types
38
33
  {
39
34
  :'id' => :'String',
40
- :'public_identifiers' => :'PublicIdentifiers',
41
- :'fallback_email' => :'String'
35
+ :'public_identifiers' => :'PublicIdentifiers'
42
36
  }
43
37
  end
44
38
 
@@ -58,10 +52,6 @@ module StorecoveApi
58
52
  self.public_identifiers = attributes[:'publicIdentifiers']
59
53
  end
60
54
 
61
- if attributes.has_key?(:'fallbackEmail')
62
- self.fallback_email = attributes[:'fallbackEmail']
63
- end
64
-
65
55
  end
66
56
 
67
57
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -99,8 +89,7 @@ module StorecoveApi
99
89
  return true if self.equal?(o)
100
90
  self.class == o.class &&
101
91
  id == o.id &&
102
- public_identifiers == o.public_identifiers &&
103
- fallback_email == o.fallback_email
92
+ public_identifiers == o.public_identifiers
104
93
  end
105
94
 
106
95
  # @see the `==` method
@@ -112,7 +101,7 @@ module StorecoveApi
112
101
  # Calculates hash code according to all attributes.
113
102
  # @return [Fixnum] Hash code
114
103
  def hash
115
- [id, public_identifiers, fallback_email].hash
104
+ [id, public_identifiers].hash
116
105
  end
117
106
 
118
107
  # Builds the object from hash
@@ -58,22 +58,12 @@ 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
-
69
61
  return invalid_properties
70
62
  end
71
63
 
72
64
  # Check to see if the all the properties in the model are valid
73
65
  # @return true if the model is valid
74
66
  def valid?
75
- return false if @supplier_id.nil?
76
- return false if @invoice_recipient.nil?
77
67
  return true
78
68
  end
79
69
 
@@ -14,21 +14,21 @@ require 'date'
14
14
  module StorecoveApi
15
15
  # The result of an invoice submission
16
16
  class InvoiceSubmissionResult
17
- # A (V4) GUID for the invoice submission
18
- attr_accessor :guid
17
+ # The submission id
18
+ attr_accessor :id
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
- :'guid' => :'guid'
24
+ :'id' => :'id'
25
25
  }
26
26
  end
27
27
 
28
28
  # Attribute type mapping.
29
29
  def self.swagger_types
30
30
  {
31
- :'guid' => :'String'
31
+ :'id' => :'Float'
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?(:'guid')
44
- self.guid = attributes[:'guid']
43
+ if attributes.has_key?(:'id')
44
+ self.id = attributes[:'id']
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
- guid == o.guid
67
+ id == o.id
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
- [guid].hash
79
+ [id].hash
80
80
  end
81
81
 
82
82
  # Builds the object from hash
@@ -18,8 +18,6 @@ module StorecoveApi
18
18
 
19
19
  attr_accessor :line1
20
20
 
21
- attr_accessor :line2
22
-
23
21
  attr_accessor :zip
24
22
 
25
23
  attr_accessor :city
@@ -36,7 +34,6 @@ module StorecoveApi
36
34
  {
37
35
  :'name' => :'name',
38
36
  :'line1' => :'line1',
39
- :'line2' => :'line2',
40
37
  :'zip' => :'zip',
41
38
  :'city' => :'city',
42
39
  :'county' => :'county',
@@ -50,7 +47,6 @@ module StorecoveApi
50
47
  {
51
48
  :'name' => :'String',
52
49
  :'line1' => :'String',
53
- :'line2' => :'String',
54
50
  :'zip' => :'String',
55
51
  :'city' => :'String',
56
52
  :'county' => :'String',
@@ -75,10 +71,6 @@ module StorecoveApi
75
71
  self.line1 = attributes[:'line1']
76
72
  end
77
73
 
78
- if attributes.has_key?(:'line2')
79
- self.line2 = attributes[:'line2']
80
- end
81
-
82
74
  if attributes.has_key?(:'zip')
83
75
  self.zip = attributes[:'zip']
84
76
  end
@@ -123,7 +115,6 @@ module StorecoveApi
123
115
  self.class == o.class &&
124
116
  name == o.name &&
125
117
  line1 == o.line1 &&
126
- line2 == o.line2 &&
127
118
  zip == o.zip &&
128
119
  city == o.city &&
129
120
  county == o.county &&
@@ -140,7 +131,7 @@ module StorecoveApi
140
131
  # Calculates hash code according to all attributes.
141
132
  # @return [Fixnum] Hash code
142
133
  def hash
143
- [name, line1, line2, zip, city, county, country, identifiers].hash
134
+ [name, line1, zip, city, county, country, identifiers].hash
144
135
  end
145
136
 
146
137
  # Builds the object from hash
@@ -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), 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.
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.
18
18
  attr_accessor :scheme
19
19
 
20
20
  # The actual identifier.
@@ -13,29 +13,21 @@ require 'date'
13
13
 
14
14
  module StorecoveApi
15
15
 
16
- class ShopAccountResult
17
- # The Storecove id for the ShopAccount
16
+ class ShopAccount
18
17
  attr_accessor :id
19
18
 
20
- # See <<_swagger_api_shopaccountinput>>.
21
19
  attr_accessor :username
22
20
 
23
- # See <<_swagger_api_shopaccountinput>>.
24
21
  attr_accessor :external_user_id
25
22
 
26
- # See <<_swagger_api_shopaccountinput>>.
27
23
  attr_accessor :email
28
24
 
29
- # The date from invoices will be collected. This field defaults to the first day of the month the ShopAccount was created in.
30
25
  attr_accessor :from_date
31
26
 
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
27
  attr_accessor :sign_in_error_confirmed
34
28
 
35
- # The date on which the sign-in error was confirmed.
36
29
  attr_accessor :sign_in_error_confirmed_at
37
30
 
38
- # See <<_swagger_api_shopaccountinput>>.
39
31
  attr_accessor :shop
40
32
 
41
33
 
@@ -113,12 +105,17 @@ module StorecoveApi
113
105
  # @return Array for valid properies with the reasons
114
106
  def list_invalid_properties
115
107
  invalid_properties = Array.new
108
+ if @id.nil?
109
+ invalid_properties.push("invalid value for 'id', id cannot be nil.")
110
+ end
111
+
116
112
  return invalid_properties
117
113
  end
118
114
 
119
115
  # Check to see if the all the properties in the model are valid
120
116
  # @return true if the model is valid
121
117
  def valid?
118
+ return false if @id.nil?
122
119
  return true
123
120
  end
124
121
 
@@ -14,19 +14,14 @@ require 'date'
14
14
  module StorecoveApi
15
15
 
16
16
  class ShopAccountInput
17
- # The username for the account. The username needs to be unique in combination with the shop_id.
18
17
  attr_accessor :username
19
18
 
20
- # The password for the account.
21
19
  attr_accessor :password
22
20
 
23
- # The _external_user_id_ is what identifies the entity for which you create this ShopAccount. This could be a user, however, if your users can manage multiple organizations/administrations, then it is a better idea to put the organization/administration identifier in this field, because the _external_user_id_ groups the ShopAccounts into a set that all deliver their invoices to the same destination (typically an email address).
24
21
  attr_accessor :external_user_id
25
22
 
26
- # This is email address determines where the invoices for all ShopAccounts in the same _external_user_id_ group are sent. Each time you create or update a ShopAccount for an _external_user_id_ and also provide __email__, the email destination for all the ShopAccounts in the _external_user_id_ group are updated at the same time. We suggest you provide an immutable email address. If your user can change the email address to which the invoices are to be sent, then you will need to do an update for one of the ShopAccounts for that user in order for Storecove to start using the new email address. Note that this field is mandatory for the first ShopAccount that you create for an entity.
27
23
  attr_accessor :email
28
24
 
29
- # The id of the Shop the account is for.
30
25
  attr_accessor :shop_id
31
26
 
32
27
 
@@ -86,32 +81,12 @@ module StorecoveApi
86
81
  # @return Array for valid properies with the reasons
87
82
  def list_invalid_properties
88
83
  invalid_properties = Array.new
89
- if @username.nil?
90
- invalid_properties.push("invalid value for 'username', username cannot be nil.")
91
- end
92
-
93
- if @password.nil?
94
- invalid_properties.push("invalid value for 'password', password cannot be nil.")
95
- end
96
-
97
- if @external_user_id.nil?
98
- invalid_properties.push("invalid value for 'external_user_id', external_user_id cannot be nil.")
99
- end
100
-
101
- if @shop_id.nil?
102
- invalid_properties.push("invalid value for 'shop_id', shop_id cannot be nil.")
103
- end
104
-
105
84
  return invalid_properties
106
85
  end
107
86
 
108
87
  # Check to see if the all the properties in the model are valid
109
88
  # @return true if the model is valid
110
89
  def valid?
111
- return false if @username.nil?
112
- return false if @password.nil?
113
- return false if @external_user_id.nil?
114
- return false if @shop_id.nil?
115
90
  return true
116
91
  end
117
92
 
@@ -14,13 +14,10 @@ require 'date'
14
14
  module StorecoveApi
15
15
 
16
16
  class ShopAccountUpdate
17
- # See <<_swagger_api_shopaccountinput>>.
18
17
  attr_accessor :username
19
18
 
20
- # See <<_swagger_api_shopaccountinput>>.
21
19
  attr_accessor :password
22
20
 
23
- # See <<_swagger_api_shopaccountinput>>.
24
21
  attr_accessor :email
25
22
 
26
23
 
@@ -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.4"
13
+ VERSION = "1.0.5"
14
14
  end
data/lib/storecove.rb CHANGED
@@ -37,11 +37,11 @@ require 'storecove/models/preflight_invoice_recipient_result'
37
37
  require 'storecove/models/public_identifier'
38
38
  require 'storecove/models/public_identifiers'
39
39
  require 'storecove/models/shop'
40
+ require 'storecove/models/shop_account'
40
41
  require 'storecove/models/shop_account_input'
41
42
  require 'storecove/models/shop_account_request'
42
43
  require 'storecove/models/shop_account_request_input'
43
44
  require 'storecove/models/shop_account_request_update'
44
- require 'storecove/models/shop_account_result'
45
45
  require 'storecove/models/shop_account_update'
46
46
  require 'storecove/models/tax'
47
47
 
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.4
4
+ version: 1.0.5
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-08 00:00:00.000000000 Z
11
+ date: 2017-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -226,11 +226,11 @@ files:
226
226
  - lib/storecove/models/public_identifier.rb
227
227
  - lib/storecove/models/public_identifiers.rb
228
228
  - lib/storecove/models/shop.rb
229
+ - lib/storecove/models/shop_account.rb
229
230
  - lib/storecove/models/shop_account_input.rb
230
231
  - lib/storecove/models/shop_account_request.rb
231
232
  - lib/storecove/models/shop_account_request_input.rb
232
233
  - lib/storecove/models/shop_account_request_update.rb
233
- - lib/storecove/models/shop_account_result.rb
234
234
  - lib/storecove/models/shop_account_update.rb
235
235
  - lib/storecove/models/tax.rb
236
236
  - lib/storecove/version.rb