ultracart_api 3.8.1 → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6412a8238f4fe528a28a303ce630e77e99b6b2228b4f4d5203573f261e568109
4
- data.tar.gz: 1a96aae95a1230fa762bf4ea920a512d06d434ff1a483025273fa541a684ac5a
3
+ metadata.gz: ca6fcd6b38c2028518ee26e9fe47536e68d689cfd36fde62e82785886d897728
4
+ data.tar.gz: f9091412de255d297c8d4b82b9d252f89788f386cd6b73b6826c3d84dcef1f30
5
5
  SHA512:
6
- metadata.gz: 8ecb7304421102db1396eb30c198919c3f7d1b991130b8f00c13b1e73a553e2d590cd0b17432e41c287721d9f7ec32c72ea451f4a8c62f014a49e5b7a574bedf
7
- data.tar.gz: cfcca9ecfe33cc77fa1ddf47210dc921693aa40dd6f4f9775935458c2d95e4a777a93aad7dbc36f148630d5bb8718598a30451a67e5c2d9486544ee3b71ce62a
6
+ metadata.gz: e334f9c3ea1113fcb3f2ba2617b21612bbf616f132383f0ec9b449c035119078ab469272dbe22b7e87114aa06c2d9099ecea3bdb6c2d1eddd5a84e64bd409712
7
+ data.tar.gz: 046c6501f2cc2ec2642e634c66679eb114c2ebda519fdccf35a45ad82007d70cbbefb195dbb2a969b598ef9f64371913faadf26beca54c429632bbdbefc33b16
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 3.8.1
10
+ - Package version: 3.8.2
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-3.8.1.gem
27
+ gem install ./ultracart_api-3.8.2.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.8.1.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.8.2.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'ultracart_api', '~> 3.8.1'
35
+ gem 'ultracart_api', '~> 3.8.2'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1145,6 +1145,7 @@ Not every change is committed to every SDK.
1145
1145
 
1146
1146
  | Version | Date | Comments |
1147
1147
  | --: | :-: | --- |
1148
+ | 3.8.2 | 02/16/2022 | create gift certificate method was missing email |
1148
1149
  | 3.8.1 | 02/16/2022 | auto order item level pause flag |
1149
1150
  | 3.8.0 | 02/16/2022 | gift certificate api (testing) |
1150
1151
  | 3.7.38 | 02/15/2022 | gift certificate api (currently in testing) |
@@ -4,6 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **amount** | **Float** | Initial amount of this gift certificate. | [optional]
7
+ **email** | **String** | The email address (customer/owner) associated with this gift certificate. | [optional]
7
8
  **expiration_dts** | **String** | Expiration date time. | [optional]
8
9
  **initial_ledger_description** | **String** | A brief description of how and/or why this gift certificate was created. | [optional]
9
10
  **merchant_note** | **String** | Any internal details you wish to record about this gift certificate. | [optional]
@@ -17,6 +17,9 @@ module UltracartClient
17
17
  # Initial amount of this gift certificate.
18
18
  attr_accessor :amount
19
19
 
20
+ # The email address (customer/owner) associated with this gift certificate.
21
+ attr_accessor :email
22
+
20
23
  # Expiration date time.
21
24
  attr_accessor :expiration_dts
22
25
 
@@ -30,6 +33,7 @@ module UltracartClient
30
33
  def self.attribute_map
31
34
  {
32
35
  :'amount' => :'amount',
36
+ :'email' => :'email',
33
37
  :'expiration_dts' => :'expiration_dts',
34
38
  :'initial_ledger_description' => :'initial_ledger_description',
35
39
  :'merchant_note' => :'merchant_note'
@@ -40,6 +44,7 @@ module UltracartClient
40
44
  def self.swagger_types
41
45
  {
42
46
  :'amount' => :'Float',
47
+ :'email' => :'String',
43
48
  :'expiration_dts' => :'String',
44
49
  :'initial_ledger_description' => :'String',
45
50
  :'merchant_note' => :'String'
@@ -58,6 +63,10 @@ module UltracartClient
58
63
  self.amount = attributes[:'amount']
59
64
  end
60
65
 
66
+ if attributes.has_key?(:'email')
67
+ self.email = attributes[:'email']
68
+ end
69
+
61
70
  if attributes.has_key?(:'expiration_dts')
62
71
  self.expiration_dts = attributes[:'expiration_dts']
63
72
  end
@@ -90,6 +99,7 @@ module UltracartClient
90
99
  return true if self.equal?(o)
91
100
  self.class == o.class &&
92
101
  amount == o.amount &&
102
+ email == o.email &&
93
103
  expiration_dts == o.expiration_dts &&
94
104
  initial_ledger_description == o.initial_ledger_description &&
95
105
  merchant_note == o.merchant_note
@@ -104,7 +114,7 @@ module UltracartClient
104
114
  # Calculates hash code according to all attributes.
105
115
  # @return [Fixnum] Hash code
106
116
  def hash
107
- [amount, expiration_dts, initial_ledger_description, merchant_note].hash
117
+ [amount, email, expiration_dts, initial_ledger_description, merchant_note].hash
108
118
  end
109
119
 
110
120
  # Builds the object from hash
@@ -93,15 +93,30 @@ module UltracartClient
93
93
  # @return Array for valid properties with the reasons
94
94
  def list_invalid_properties
95
95
  invalid_properties = Array.new
96
+ if !@description.nil? && @description.to_s.length > 50
97
+ invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 50.')
98
+ end
99
+
96
100
  invalid_properties
97
101
  end
98
102
 
99
103
  # Check to see if the all the properties in the model are valid
100
104
  # @return true if the model is valid
101
105
  def valid?
106
+ return false if !@description.nil? && @description.to_s.length > 50
102
107
  true
103
108
  end
104
109
 
110
+ # Custom attribute writer method with validation
111
+ # @param [Object] description Value to be assigned
112
+ def description=(description)
113
+ if !description.nil? && description.to_s.length > 50
114
+ fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 50.'
115
+ end
116
+
117
+ @description = description
118
+ end
119
+
105
120
  # Checks equality by comparing each attribute.
106
121
  # @param [Object] Object to be compared
107
122
  def ==(o)
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.8.1'
14
+ VERSION = '3.8.2'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.1
4
+ version: 3.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart