maytes-api-client-rb 0.3.0 → 0.4.0

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: 042aa833bbdc10075a2d6d7ebdabeca1263ff9460c28138065d94d0456a95deb
4
- data.tar.gz: 18309b3303d547adbab3e2c685ffd6a7b6451e32052ca2b58a96c4f7cfd04a34
3
+ metadata.gz: a6d23d16c10d15fb66bcfd12f5e40884b0801a6b8c40fbf0256e6791116db87f
4
+ data.tar.gz: 67e88e65bb06185687e21b5febcb9a3d15b5a49460fd0f353413ea6c10676e71
5
5
  SHA512:
6
- metadata.gz: d0ca0bbefe6c019941e390c0ae76faab020a6aa5d228456a0e6c1adb63666997583cf8d995ac875bf21d543f6bc705cb244f450735f6e48d4fd669d13ace08e9
7
- data.tar.gz: '06131795c80486a35b622a23dcead7b37a1c94b770e8b58b42011fddfcfd35386697207b805e0e8bac59afad61b53b6b13ce8dbf86f3f8372499aa082a330bcc'
6
+ metadata.gz: 63db35e98d4202a9cf8f419c1c5cc404c47c1eabb5d94b0504b31c83169460a57a3fa2859895cbddef126ff731177975b56230dfbe83444032eebc652830d8c6
7
+ data.tar.gz: 918ef6588a4c679ec7bd2d405aaf498f30cedca2e67dd99b26e026b4cabe7d4a3f08a144804eb7c7e46066b4e461616dca8a06941e21f37616baee4dc88b3ffc
@@ -0,0 +1,24 @@
1
+ # MaytesApiClient::CreateCheckout403Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | | |
8
+ | **error** | **String** | | |
9
+ | **code** | **String** | | |
10
+ | **metadata** | **Hash<String, Object>** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'maytes_api_client'
16
+
17
+ instance = MaytesApiClient::CreateCheckout403Response.new(
18
+ message: null,
19
+ error: null,
20
+ code: null,
21
+ metadata: null
22
+ )
23
+ ```
24
+
data/docs/Settlement.md CHANGED
@@ -20,6 +20,7 @@
20
20
  | **reviewed_by_user_uuid** | **String** | | |
21
21
  | **reviewed_at** | **Time** | | |
22
22
  | **rejection_reason** | **String** | | |
23
+ | **upsell** | [**SettlementUpsell**](SettlementUpsell.md) | | |
23
24
  | **created_at** | **Time** | | |
24
25
  | **updated_at** | **Time** | | |
25
26
 
@@ -45,6 +46,7 @@ instance = MaytesApiClient::Settlement.new(
45
46
  reviewed_by_user_uuid: null,
46
47
  reviewed_at: null,
47
48
  rejection_reason: null,
49
+ upsell: null,
48
50
  created_at: null,
49
51
  updated_at: null
50
52
  )
@@ -0,0 +1,24 @@
1
+ # MaytesApiClient::SettlementUpsell
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **sales_amount** | **Integer** | Upsell order totals paid out in this settlement, gross, minor units | |
8
+ | **fee_amount** | **Integer** | Upsell fees kept by Maytes in this window, minor units | |
9
+ | **net_amount** | **Integer** | sales_amount minus fee_amount: the upsell part of the payout | |
10
+ | **order_count** | **Integer** | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'maytes_api_client'
16
+
17
+ instance = MaytesApiClient::SettlementUpsell.new(
18
+ sales_amount: null,
19
+ fee_amount: null,
20
+ net_amount: null,
21
+ order_count: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,258 @@
1
+ =begin
2
+ #Maytes API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MaytesApiClient
17
+ class CreateCheckout403Response < ApiModelBase
18
+ attr_accessor :message
19
+
20
+ attr_accessor :error
21
+
22
+ attr_accessor :code
23
+
24
+ attr_accessor :metadata
25
+
26
+ class EnumAttributeValidator
27
+ attr_reader :datatype
28
+ attr_reader :allowable_values
29
+
30
+ def initialize(datatype, allowable_values)
31
+ @allowable_values = allowable_values.map do |value|
32
+ case datatype.to_s
33
+ when /Integer/i
34
+ value.to_i
35
+ when /Float/i
36
+ value.to_f
37
+ else
38
+ value
39
+ end
40
+ end
41
+ end
42
+
43
+ def valid?(value)
44
+ !value || allowable_values.include?(value)
45
+ end
46
+ end
47
+
48
+ # Attribute mapping from ruby-style variable name to JSON key.
49
+ def self.attribute_map
50
+ {
51
+ :'message' => :'message',
52
+ :'error' => :'error',
53
+ :'code' => :'code',
54
+ :'metadata' => :'metadata'
55
+ }
56
+ end
57
+
58
+ # Returns attribute mapping this model knows about
59
+ def self.acceptable_attribute_map
60
+ attribute_map
61
+ end
62
+
63
+ # Returns all the JSON keys this model knows about
64
+ def self.acceptable_attributes
65
+ acceptable_attribute_map.values
66
+ end
67
+
68
+ # Attribute type mapping.
69
+ def self.openapi_types
70
+ {
71
+ :'message' => :'String',
72
+ :'error' => :'String',
73
+ :'code' => :'String',
74
+ :'metadata' => :'Hash<String, Object>'
75
+ }
76
+ end
77
+
78
+ # List of attributes with nullable: true
79
+ def self.openapi_nullable
80
+ Set.new([
81
+ ])
82
+ end
83
+
84
+ # List of class defined in allOf (OpenAPI v3)
85
+ def self.openapi_all_of
86
+ [
87
+ :'ErrorResponseDto'
88
+ ]
89
+ end
90
+
91
+ # Initializes the object
92
+ # @param [Hash] attributes Model attributes in the form of hash
93
+ def initialize(attributes = {})
94
+ if (!attributes.is_a?(Hash))
95
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MaytesApiClient::CreateCheckout403Response` initialize method"
96
+ end
97
+
98
+ # check to see if the attribute exists and convert string to symbol for hash key
99
+ acceptable_attribute_map = self.class.acceptable_attribute_map
100
+ attributes = attributes.each_with_object({}) { |(k, v), h|
101
+ if (!acceptable_attribute_map.key?(k.to_sym))
102
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MaytesApiClient::CreateCheckout403Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
103
+ end
104
+ h[k.to_sym] = v
105
+ }
106
+
107
+ if attributes.key?(:'message')
108
+ self.message = attributes[:'message']
109
+ else
110
+ self.message = nil
111
+ end
112
+
113
+ if attributes.key?(:'error')
114
+ self.error = attributes[:'error']
115
+ else
116
+ self.error = nil
117
+ end
118
+
119
+ if attributes.key?(:'code')
120
+ self.code = attributes[:'code']
121
+ else
122
+ self.code = nil
123
+ end
124
+
125
+ if attributes.key?(:'metadata')
126
+ if (value = attributes[:'metadata']).is_a?(Hash)
127
+ self.metadata = value
128
+ end
129
+ end
130
+ end
131
+
132
+ # Show invalid properties with the reasons. Usually used together with valid?
133
+ # @return Array for valid properties with the reasons
134
+ def list_invalid_properties
135
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
136
+ invalid_properties = Array.new
137
+ if @message.nil?
138
+ invalid_properties.push('invalid value for "message", message cannot be nil.')
139
+ end
140
+
141
+ if @error.nil?
142
+ invalid_properties.push('invalid value for "error", error cannot be nil.')
143
+ end
144
+
145
+ if @code.nil?
146
+ invalid_properties.push('invalid value for "code", code cannot be nil.')
147
+ end
148
+
149
+ invalid_properties
150
+ end
151
+
152
+ # Check to see if the all the properties in the model are valid
153
+ # @return true if the model is valid
154
+ def valid?
155
+ warn '[DEPRECATED] the `valid?` method is obsolete'
156
+ return false if @message.nil?
157
+ return false if @error.nil?
158
+ return false if @code.nil?
159
+ code_validator = EnumAttributeValidator.new('String', ["api_checkouts_disabled"])
160
+ return false unless code_validator.valid?(@code)
161
+ true
162
+ end
163
+
164
+ # Custom attribute writer method with validation
165
+ # @param [Object] message Value to be assigned
166
+ def message=(message)
167
+ if message.nil?
168
+ fail ArgumentError, 'message cannot be nil'
169
+ end
170
+
171
+ @message = message
172
+ end
173
+
174
+ # Custom attribute writer method with validation
175
+ # @param [Object] error Value to be assigned
176
+ def error=(error)
177
+ if error.nil?
178
+ fail ArgumentError, 'error cannot be nil'
179
+ end
180
+
181
+ @error = error
182
+ end
183
+
184
+ # Custom attribute writer method checking allowed values (enum).
185
+ # @param [Object] code Object to be assigned
186
+ def code=(code)
187
+ validator = EnumAttributeValidator.new('String', ["api_checkouts_disabled"])
188
+ unless validator.valid?(code)
189
+ fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
190
+ end
191
+ @code = code
192
+ end
193
+
194
+ # Checks equality by comparing each attribute.
195
+ # @param [Object] Object to be compared
196
+ def ==(o)
197
+ return true if self.equal?(o)
198
+ self.class == o.class &&
199
+ message == o.message &&
200
+ error == o.error &&
201
+ code == o.code &&
202
+ metadata == o.metadata
203
+ end
204
+
205
+ # @see the `==` method
206
+ # @param [Object] Object to be compared
207
+ def eql?(o)
208
+ self == o
209
+ end
210
+
211
+ # Calculates hash code according to all attributes.
212
+ # @return [Integer] Hash code
213
+ def hash
214
+ [message, error, code, metadata].hash
215
+ end
216
+
217
+ # Builds the object from hash
218
+ # @param [Hash] attributes Model attributes in the form of hash
219
+ # @return [Object] Returns the model itself
220
+ def self.build_from_hash(attributes)
221
+ return nil unless attributes.is_a?(Hash)
222
+ attributes = attributes.transform_keys(&:to_sym)
223
+ transformed_hash = {}
224
+ openapi_types.each_pair do |key, type|
225
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
226
+ transformed_hash["#{key}"] = nil
227
+ elsif type =~ /\AArray<(.*)>/i
228
+ # check to ensure the input is an array given that the attribute
229
+ # is documented as an array but the input is not
230
+ if attributes[attribute_map[key]].is_a?(Array)
231
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
232
+ end
233
+ elsif !attributes[attribute_map[key]].nil?
234
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
235
+ end
236
+ end
237
+ new(transformed_hash)
238
+ end
239
+
240
+ # Returns the object in the form of hash
241
+ # @return [Hash] Returns the object in the form of hash
242
+ def to_hash
243
+ hash = {}
244
+ self.class.attribute_map.each_pair do |attr, param|
245
+ value = self.send(attr)
246
+ if value.nil?
247
+ is_nullable = self.class.openapi_nullable.include?(attr)
248
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
249
+ end
250
+
251
+ hash[param] = _to_hash(value)
252
+ end
253
+ hash
254
+ end
255
+
256
+ end
257
+
258
+ end
@@ -47,6 +47,8 @@ module MaytesApiClient
47
47
 
48
48
  attr_accessor :rejection_reason
49
49
 
50
+ attr_accessor :upsell
51
+
50
52
  attr_accessor :created_at
51
53
 
52
54
  attr_accessor :updated_at
@@ -70,6 +72,7 @@ module MaytesApiClient
70
72
  :'reviewed_by_user_uuid' => :'reviewed_by_user_uuid',
71
73
  :'reviewed_at' => :'reviewed_at',
72
74
  :'rejection_reason' => :'rejection_reason',
75
+ :'upsell' => :'upsell',
73
76
  :'created_at' => :'created_at',
74
77
  :'updated_at' => :'updated_at'
75
78
  }
@@ -104,6 +107,7 @@ module MaytesApiClient
104
107
  :'reviewed_by_user_uuid' => :'String',
105
108
  :'reviewed_at' => :'Time',
106
109
  :'rejection_reason' => :'String',
110
+ :'upsell' => :'SettlementUpsell',
107
111
  :'created_at' => :'Time',
108
112
  :'updated_at' => :'Time'
109
113
  }
@@ -119,6 +123,7 @@ module MaytesApiClient
119
123
  :'reviewed_by_user_uuid',
120
124
  :'reviewed_at',
121
125
  :'rejection_reason',
126
+ :'upsell',
122
127
  ])
123
128
  end
124
129
 
@@ -234,6 +239,12 @@ module MaytesApiClient
234
239
  self.rejection_reason = nil
235
240
  end
236
241
 
242
+ if attributes.key?(:'upsell')
243
+ self.upsell = attributes[:'upsell']
244
+ else
245
+ self.upsell = nil
246
+ end
247
+
237
248
  if attributes.key?(:'created_at')
238
249
  self.created_at = attributes[:'created_at']
239
250
  else
@@ -466,6 +477,7 @@ module MaytesApiClient
466
477
  reviewed_by_user_uuid == o.reviewed_by_user_uuid &&
467
478
  reviewed_at == o.reviewed_at &&
468
479
  rejection_reason == o.rejection_reason &&
480
+ upsell == o.upsell &&
469
481
  created_at == o.created_at &&
470
482
  updated_at == o.updated_at
471
483
  end
@@ -479,7 +491,7 @@ module MaytesApiClient
479
491
  # Calculates hash code according to all attributes.
480
492
  # @return [Integer] Hash code
481
493
  def hash
482
- [uuid, merchant_uuid, period_from, period_to, idempotency_key, merchant_payable_amount, settled_amount, currency, status, stripe_transfer_id, notes, settled_at, expires_at, reviewed_by_user_uuid, reviewed_at, rejection_reason, created_at, updated_at].hash
494
+ [uuid, merchant_uuid, period_from, period_to, idempotency_key, merchant_payable_amount, settled_amount, currency, status, stripe_transfer_id, notes, settled_at, expires_at, reviewed_by_user_uuid, reviewed_at, rejection_reason, upsell, created_at, updated_at].hash
483
495
  end
484
496
 
485
497
  # Builds the object from hash
@@ -0,0 +1,245 @@
1
+ =begin
2
+ #Maytes API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MaytesApiClient
17
+ class SettlementUpsell < ApiModelBase
18
+ # Upsell order totals paid out in this settlement, gross, minor units
19
+ attr_accessor :sales_amount
20
+
21
+ # Upsell fees kept by Maytes in this window, minor units
22
+ attr_accessor :fee_amount
23
+
24
+ # sales_amount minus fee_amount: the upsell part of the payout
25
+ attr_accessor :net_amount
26
+
27
+ attr_accessor :order_count
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'sales_amount' => :'sales_amount',
33
+ :'fee_amount' => :'fee_amount',
34
+ :'net_amount' => :'net_amount',
35
+ :'order_count' => :'order_count'
36
+ }
37
+ end
38
+
39
+ # Returns attribute mapping this model knows about
40
+ def self.acceptable_attribute_map
41
+ attribute_map
42
+ end
43
+
44
+ # Returns all the JSON keys this model knows about
45
+ def self.acceptable_attributes
46
+ acceptable_attribute_map.values
47
+ end
48
+
49
+ # Attribute type mapping.
50
+ def self.openapi_types
51
+ {
52
+ :'sales_amount' => :'Integer',
53
+ :'fee_amount' => :'Integer',
54
+ :'net_amount' => :'Integer',
55
+ :'order_count' => :'Integer'
56
+ }
57
+ end
58
+
59
+ # List of attributes with nullable: true
60
+ def self.openapi_nullable
61
+ Set.new([
62
+ ])
63
+ end
64
+
65
+ # Initializes the object
66
+ # @param [Hash] attributes Model attributes in the form of hash
67
+ def initialize(attributes = {})
68
+ if (!attributes.is_a?(Hash))
69
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MaytesApiClient::SettlementUpsell` initialize method"
70
+ end
71
+
72
+ # check to see if the attribute exists and convert string to symbol for hash key
73
+ acceptable_attribute_map = self.class.acceptable_attribute_map
74
+ attributes = attributes.each_with_object({}) { |(k, v), h|
75
+ if (!acceptable_attribute_map.key?(k.to_sym))
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MaytesApiClient::SettlementUpsell`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
77
+ end
78
+ h[k.to_sym] = v
79
+ }
80
+
81
+ if attributes.key?(:'sales_amount')
82
+ self.sales_amount = attributes[:'sales_amount']
83
+ else
84
+ self.sales_amount = nil
85
+ end
86
+
87
+ if attributes.key?(:'fee_amount')
88
+ self.fee_amount = attributes[:'fee_amount']
89
+ else
90
+ self.fee_amount = nil
91
+ end
92
+
93
+ if attributes.key?(:'net_amount')
94
+ self.net_amount = attributes[:'net_amount']
95
+ else
96
+ self.net_amount = nil
97
+ end
98
+
99
+ if attributes.key?(:'order_count')
100
+ self.order_count = attributes[:'order_count']
101
+ else
102
+ self.order_count = nil
103
+ end
104
+ end
105
+
106
+ # Show invalid properties with the reasons. Usually used together with valid?
107
+ # @return Array for valid properties with the reasons
108
+ def list_invalid_properties
109
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
110
+ invalid_properties = Array.new
111
+ if @sales_amount.nil?
112
+ invalid_properties.push('invalid value for "sales_amount", sales_amount cannot be nil.')
113
+ end
114
+
115
+ if @fee_amount.nil?
116
+ invalid_properties.push('invalid value for "fee_amount", fee_amount cannot be nil.')
117
+ end
118
+
119
+ if @net_amount.nil?
120
+ invalid_properties.push('invalid value for "net_amount", net_amount cannot be nil.')
121
+ end
122
+
123
+ if @order_count.nil?
124
+ invalid_properties.push('invalid value for "order_count", order_count cannot be nil.')
125
+ end
126
+
127
+ invalid_properties
128
+ end
129
+
130
+ # Check to see if the all the properties in the model are valid
131
+ # @return true if the model is valid
132
+ def valid?
133
+ warn '[DEPRECATED] the `valid?` method is obsolete'
134
+ return false if @sales_amount.nil?
135
+ return false if @fee_amount.nil?
136
+ return false if @net_amount.nil?
137
+ return false if @order_count.nil?
138
+ true
139
+ end
140
+
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] sales_amount Value to be assigned
143
+ def sales_amount=(sales_amount)
144
+ if sales_amount.nil?
145
+ fail ArgumentError, 'sales_amount cannot be nil'
146
+ end
147
+
148
+ @sales_amount = sales_amount
149
+ end
150
+
151
+ # Custom attribute writer method with validation
152
+ # @param [Object] fee_amount Value to be assigned
153
+ def fee_amount=(fee_amount)
154
+ if fee_amount.nil?
155
+ fail ArgumentError, 'fee_amount cannot be nil'
156
+ end
157
+
158
+ @fee_amount = fee_amount
159
+ end
160
+
161
+ # Custom attribute writer method with validation
162
+ # @param [Object] net_amount Value to be assigned
163
+ def net_amount=(net_amount)
164
+ if net_amount.nil?
165
+ fail ArgumentError, 'net_amount cannot be nil'
166
+ end
167
+
168
+ @net_amount = net_amount
169
+ end
170
+
171
+ # Custom attribute writer method with validation
172
+ # @param [Object] order_count Value to be assigned
173
+ def order_count=(order_count)
174
+ if order_count.nil?
175
+ fail ArgumentError, 'order_count cannot be nil'
176
+ end
177
+
178
+ @order_count = order_count
179
+ end
180
+
181
+ # Checks equality by comparing each attribute.
182
+ # @param [Object] Object to be compared
183
+ def ==(o)
184
+ return true if self.equal?(o)
185
+ self.class == o.class &&
186
+ sales_amount == o.sales_amount &&
187
+ fee_amount == o.fee_amount &&
188
+ net_amount == o.net_amount &&
189
+ order_count == o.order_count
190
+ end
191
+
192
+ # @see the `==` method
193
+ # @param [Object] Object to be compared
194
+ def eql?(o)
195
+ self == o
196
+ end
197
+
198
+ # Calculates hash code according to all attributes.
199
+ # @return [Integer] Hash code
200
+ def hash
201
+ [sales_amount, fee_amount, net_amount, order_count].hash
202
+ end
203
+
204
+ # Builds the object from hash
205
+ # @param [Hash] attributes Model attributes in the form of hash
206
+ # @return [Object] Returns the model itself
207
+ def self.build_from_hash(attributes)
208
+ return nil unless attributes.is_a?(Hash)
209
+ attributes = attributes.transform_keys(&:to_sym)
210
+ transformed_hash = {}
211
+ openapi_types.each_pair do |key, type|
212
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
213
+ transformed_hash["#{key}"] = nil
214
+ elsif type =~ /\AArray<(.*)>/i
215
+ # check to ensure the input is an array given that the attribute
216
+ # is documented as an array but the input is not
217
+ if attributes[attribute_map[key]].is_a?(Array)
218
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
219
+ end
220
+ elsif !attributes[attribute_map[key]].nil?
221
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
222
+ end
223
+ end
224
+ new(transformed_hash)
225
+ end
226
+
227
+ # Returns the object in the form of hash
228
+ # @return [Hash] Returns the object in the form of hash
229
+ def to_hash
230
+ hash = {}
231
+ self.class.attribute_map.each_pair do |attr, param|
232
+ value = self.send(attr)
233
+ if value.nil?
234
+ is_nullable = self.class.openapi_nullable.include?(attr)
235
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
236
+ end
237
+
238
+ hash[param] = _to_hash(value)
239
+ end
240
+ hash
241
+ end
242
+
243
+ end
244
+
245
+ end
@@ -11,5 +11,5 @@ Generator version: 7.22.0
11
11
  =end
12
12
 
13
13
  module MaytesApiClient
14
- VERSION = '0.3.0'
14
+ VERSION = '0.4.0'
15
15
  end
@@ -35,6 +35,7 @@ require 'maytes_api_client/models/checkout_friend'
35
35
  require 'maytes_api_client/models/checkout_friend_item'
36
36
  require 'maytes_api_client/models/checkout_friends'
37
37
  require 'maytes_api_client/models/create_checkout401_response'
38
+ require 'maytes_api_client/models/create_checkout403_response'
38
39
  require 'maytes_api_client/models/create_checkout409_response'
39
40
  require 'maytes_api_client/models/create_checkout422_response'
40
41
  require 'maytes_api_client/models/create_checkout_request'
@@ -65,6 +66,7 @@ require 'maytes_api_client/models/refund_checkout409_response'
65
66
  require 'maytes_api_client/models/service_custom_data'
66
67
  require 'maytes_api_client/models/service_line_item'
67
68
  require 'maytes_api_client/models/settlement'
69
+ require 'maytes_api_client/models/settlement_upsell'
68
70
  require 'maytes_api_client/models/tax'
69
71
  require 'maytes_api_client/models/ticket_custom_data'
70
72
  require 'maytes_api_client/models/ticket_line_item'
@@ -0,0 +1,58 @@
1
+ =begin
2
+ #Maytes API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for MaytesApiClient::CreateCheckout403Response
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MaytesApiClient::CreateCheckout403Response do
21
+ #let(:instance) { MaytesApiClient::CreateCheckout403Response.new }
22
+
23
+ describe 'test an instance of CreateCheckout403Response' do
24
+ it 'should create an instance of CreateCheckout403Response' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(MaytesApiClient::CreateCheckout403Response)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "message"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "error"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "code"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["api_checkouts_disabled"])
46
+ # validator.allowable_values.each do |value|
47
+ # expect { instance.code = value }.not_to raise_error
48
+ # end
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "metadata"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
+ end
56
+ end
57
+
58
+ end
@@ -123,6 +123,12 @@ describe MaytesApiClient::Settlement do
123
123
  end
124
124
  end
125
125
 
126
+ describe 'test attribute "upsell"' do
127
+ it 'should work' do
128
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
129
+ end
130
+ end
131
+
126
132
  describe 'test attribute "created_at"' do
127
133
  it 'should work' do
128
134
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -0,0 +1,54 @@
1
+ =begin
2
+ #Maytes API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for MaytesApiClient::SettlementUpsell
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MaytesApiClient::SettlementUpsell do
21
+ #let(:instance) { MaytesApiClient::SettlementUpsell.new }
22
+
23
+ describe 'test an instance of SettlementUpsell' do
24
+ it 'should create an instance of SettlementUpsell' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(MaytesApiClient::SettlementUpsell)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "sales_amount"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "fee_amount"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "net_amount"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "order_count"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maytes-api-client-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maytes
@@ -77,6 +77,7 @@ files:
77
77
  - docs/CheckoutFriendItem.md
78
78
  - docs/CheckoutFriends.md
79
79
  - docs/CreateCheckout401Response.md
80
+ - docs/CreateCheckout403Response.md
80
81
  - docs/CreateCheckout409Response.md
81
82
  - docs/CreateCheckout422Response.md
82
83
  - docs/CreateCheckoutRequest.md
@@ -108,6 +109,7 @@ files:
108
109
  - docs/ServiceCustomData.md
109
110
  - docs/ServiceLineItem.md
110
111
  - docs/Settlement.md
112
+ - docs/SettlementUpsell.md
111
113
  - docs/Tax.md
112
114
  - docs/TicketCustomData.md
113
115
  - docs/TicketLineItem.md
@@ -136,6 +138,7 @@ files:
136
138
  - lib/maytes_api_client/models/checkout_friend_item.rb
137
139
  - lib/maytes_api_client/models/checkout_friends.rb
138
140
  - lib/maytes_api_client/models/create_checkout401_response.rb
141
+ - lib/maytes_api_client/models/create_checkout403_response.rb
139
142
  - lib/maytes_api_client/models/create_checkout409_response.rb
140
143
  - lib/maytes_api_client/models/create_checkout422_response.rb
141
144
  - lib/maytes_api_client/models/create_checkout_request.rb
@@ -166,6 +169,7 @@ files:
166
169
  - lib/maytes_api_client/models/service_custom_data.rb
167
170
  - lib/maytes_api_client/models/service_line_item.rb
168
171
  - lib/maytes_api_client/models/settlement.rb
172
+ - lib/maytes_api_client/models/settlement_upsell.rb
169
173
  - lib/maytes_api_client/models/tax.rb
170
174
  - lib/maytes_api_client/models/ticket_custom_data.rb
171
175
  - lib/maytes_api_client/models/ticket_line_item.rb
@@ -191,6 +195,7 @@ files:
191
195
  - spec/models/checkout_friends_spec.rb
192
196
  - spec/models/checkout_spec.rb
193
197
  - spec/models/create_checkout401_response_spec.rb
198
+ - spec/models/create_checkout403_response_spec.rb
194
199
  - spec/models/create_checkout409_response_spec.rb
195
200
  - spec/models/create_checkout422_response_spec.rb
196
201
  - spec/models/create_checkout_request_spec.rb
@@ -221,6 +226,7 @@ files:
221
226
  - spec/models/service_custom_data_spec.rb
222
227
  - spec/models/service_line_item_spec.rb
223
228
  - spec/models/settlement_spec.rb
229
+ - spec/models/settlement_upsell_spec.rb
224
230
  - spec/models/tax_spec.rb
225
231
  - spec/models/ticket_custom_data_spec.rb
226
232
  - spec/models/ticket_line_item_spec.rb
@@ -270,6 +276,7 @@ test_files:
270
276
  - spec/models/checkout_friends_spec.rb
271
277
  - spec/models/checkout_spec.rb
272
278
  - spec/models/create_checkout401_response_spec.rb
279
+ - spec/models/create_checkout403_response_spec.rb
273
280
  - spec/models/create_checkout409_response_spec.rb
274
281
  - spec/models/create_checkout422_response_spec.rb
275
282
  - spec/models/create_checkout_request_spec.rb
@@ -300,6 +307,7 @@ test_files:
300
307
  - spec/models/service_custom_data_spec.rb
301
308
  - spec/models/service_line_item_spec.rb
302
309
  - spec/models/settlement_spec.rb
310
+ - spec/models/settlement_upsell_spec.rb
303
311
  - spec/models/tax_spec.rb
304
312
  - spec/models/ticket_custom_data_spec.rb
305
313
  - spec/models/ticket_line_item_spec.rb