talon_one 2.1.0 → 2.1.1

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
  SHA256:
3
- metadata.gz: b6644f80268196bcf1df9640877fe2225e4199e787a4b11efcd26008a282153b
4
- data.tar.gz: eaeacca070e707b6bbb70ecfe656d4c774cce5d7cdf47cb4882f97a5d168a128
3
+ metadata.gz: 8d42239998258add4c3f8ae84e3a984151ecab502d3e439613aee25493f5c99c
4
+ data.tar.gz: 729c83029a58455eb758f238acdce6cdf933c4700f0e800e0700ceedcfe904a2
5
5
  SHA512:
6
- metadata.gz: 3a6eb4a5e13fb61853a76fca15690396d484dcd4fbbfd92168af9bc6022686f8d974636ca39b16173d487ceedd06684bebab27c5c4d7f177b6343a1616f69886
7
- data.tar.gz: c0aebea1243366954cd9ff58fb868085e4173cdff19b41f557160c75339ba430643f7e463bd4c47e3551a41a1c5da9d3968b6cef9e7215604233a3c871109e53
6
+ metadata.gz: 5e43afb8011099d2e49a3b752682f350ca6ccd23fdb39e6a2a6afb284d4268ca0f27ad89292b9833fb1822daa73b4a1e4e0739c12800703b507e28098fd5f597
7
+ data.tar.gz: 369aa0347994c75e29d95ba96bd1ea775058d3b805be27e394f70385ae472afcf281dd0609d5a3ae97328c74ff1d9a05edb7f75f86e2748a7817e84d78d0b752
data/README.md CHANGED
@@ -17,7 +17,7 @@ The API is available at the same hostname as these docs. For example, if you are
17
17
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
18
18
 
19
19
  - API version: 1.0.0
20
- - Package version: 2.1.0
20
+ - Package version: 2.1.1
21
21
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
22
22
 
23
23
  ## Installation
@@ -33,16 +33,16 @@ gem build talon_one.gemspec
33
33
  Then either install the gem locally:
34
34
 
35
35
  ```shell
36
- gem install ./talon_one-2.1.0.gem
36
+ gem install ./talon_one-2.1.1.gem
37
37
  ```
38
38
 
39
- (for development, run `gem install --dev ./talon_one-2.1.0.gem` to install the development dependencies)
39
+ (for development, run `gem install --dev ./talon_one-2.1.1.gem` to install the development dependencies)
40
40
 
41
41
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
42
42
 
43
43
  Finally add this to the Gemfile:
44
44
 
45
- gem 'talon_one', '~> 2.1.0'
45
+ gem 'talon_one', '~> 2.1.1'
46
46
 
47
47
  ### Install from Git
48
48
 
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
9
9
  **customer_profile_id** | **String** | |
10
10
  **customer_session_id** | **String** | | [optional]
11
11
  **event_id** | **Integer** | | [optional]
12
- **type** | **String** | |
12
+ **type** | **String** | The type of the ledger transaction. Possible values are addition, subtraction, expire or expiring (for expiring points ledgers) |
13
13
  **amount** | **Float** | |
14
14
  **expiry_date** | **DateTime** | | [optional]
15
15
  **name** | **String** | A name referencing the condition or effect that added this entry, or the specific name provided in an API call. |
@@ -25,6 +25,7 @@ module TalonOne
25
25
 
26
26
  attr_accessor :event_id
27
27
 
28
+ # The type of the ledger transaction. Possible values are addition, subtraction, expire or expiring (for expiring points ledgers)
28
29
  attr_accessor :type
29
30
 
30
31
  attr_accessor :amount
@@ -40,28 +41,6 @@ module TalonOne
40
41
  # This is the ID of the user who created this entry, if the addition or subtraction was done manually.
41
42
  attr_accessor :user_id
42
43
 
43
- class EnumAttributeValidator
44
- attr_reader :datatype
45
- attr_reader :allowable_values
46
-
47
- def initialize(datatype, allowable_values)
48
- @allowable_values = allowable_values.map do |value|
49
- case datatype.to_s
50
- when /Integer/i
51
- value.to_i
52
- when /Float/i
53
- value.to_f
54
- else
55
- value
56
- end
57
- end
58
- end
59
-
60
- def valid?(value)
61
- !value || allowable_values.include?(value)
62
- end
63
- end
64
-
65
44
  # Attribute mapping from ruby-style variable name to JSON key.
66
45
  def self.attribute_map
67
46
  {
@@ -204,24 +183,12 @@ module TalonOne
204
183
  return false if @program_id.nil?
205
184
  return false if @customer_profile_id.nil?
206
185
  return false if @type.nil?
207
- type_validator = EnumAttributeValidator.new('String', ["addition", "subtraction", "expire"])
208
- return false unless type_validator.valid?(@type)
209
186
  return false if @amount.nil?
210
187
  return false if @name.nil?
211
188
  return false if @sub_ledger_id.nil?
212
189
  true
213
190
  end
214
191
 
215
- # Custom attribute writer method checking allowed values (enum).
216
- # @param [Object] type Object to be assigned
217
- def type=(type)
218
- validator = EnumAttributeValidator.new('String', ["addition", "subtraction", "expire"])
219
- unless validator.valid?(type)
220
- fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
221
- end
222
- @type = type
223
- end
224
-
225
192
  # Checks equality by comparing each attribute.
226
193
  # @param [Object] Object to be compared
227
194
  def ==(o)
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module TalonOne
14
- VERSION = '2.1.0'
14
+ VERSION = '2.1.1'
15
15
  end
@@ -65,10 +65,6 @@ describe 'LoyaltyLedgerEntry' do
65
65
  describe 'test attribute "type"' do
66
66
  it 'should work' do
67
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["addition", "subtraction", "expire"])
69
- # validator.allowable_values.each do |value|
70
- # expect { @instance.type = value }.not_to raise_error
71
- # end
72
68
  end
73
69
  end
74
70
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talon_one
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Talon.One GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-28 00:00:00.000000000 Z
11
+ date: 2020-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus