growwer 1.0.1 → 1.1.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 +4 -4
- data/README.md +32 -27
- data/docs/AccountApi.md +0 -72
- data/docs/{OrdersApi.md → BuyerOrdersApi.md} +45 -45
- data/docs/{BuyerMoneyApi.md → BuyerWalletApi.md} +21 -21
- data/docs/CatalogueApi.md +6 -6
- data/docs/CreateSellerMediaRequest.md +38 -0
- data/docs/CreateSellerMediaRequestPostOffer.md +24 -0
- data/docs/Error.md +2 -2
- data/docs/FilesApi.md +1 -1
- data/docs/GetMe200ResponseCatalogue.md +6 -2
- data/docs/ManagedServicesApi.md +2 -2
- data/docs/ProjectCatalogueMediaAllOfProject.md +3 -1
- data/docs/ProjectCatalogueMediaAllOfProjectAiKeywords.md +20 -0
- data/docs/SellerAccountApi.md +79 -0
- data/docs/SellerMedia.md +2 -0
- data/docs/SellerMediaPostOffer.md +7 -1
- data/docs/SellerMediasApi.md +148 -5
- data/docs/{SellerMoneyApi.md → SellerWalletApi.md} +21 -21
- data/docs/UpdateSellerMediaRequest.md +2 -0
- data/docs/UpdateSellerMediaRequestPostOffer.md +8 -2
- data/lib/growwer/api/account_api.rb +0 -79
- data/lib/growwer/api/{orders_api.rb → buyer_orders_api.rb} +62 -62
- data/lib/growwer/api/{buyer_money_api.rb → buyer_wallet_api.rb} +24 -24
- data/lib/growwer/api/catalogue_api.rb +8 -8
- data/lib/growwer/api/files_api.rb +2 -2
- data/lib/growwer/api/managed_services_api.rb +4 -4
- data/lib/growwer/api/seller_account_api.rb +101 -0
- data/lib/growwer/api/seller_medias_api.rb +157 -4
- data/lib/growwer/api/{seller_money_api.rb → seller_wallet_api.rb} +24 -24
- data/lib/growwer/api_client.rb +1 -1
- data/lib/growwer/models/create_seller_media_request.rb +447 -0
- data/lib/growwer/models/create_seller_media_request_post_offer.rb +273 -0
- data/lib/growwer/models/error.rb +1 -1
- data/lib/growwer/models/get_me200_response_catalogue.rb +69 -5
- data/lib/growwer/models/project_catalogue_media_all_of_project.rb +34 -5
- data/lib/growwer/models/project_catalogue_media_all_of_project_ai_keywords.rb +211 -0
- data/lib/growwer/models/seller_media.rb +29 -1
- data/lib/growwer/models/seller_media_post_offer.rb +99 -1
- data/lib/growwer/models/update_seller_media_request.rb +44 -1
- data/lib/growwer/models/update_seller_media_request_post_offer.rb +96 -12
- data/lib/growwer/version.rb +1 -1
- data/lib/growwer.rb +7 -3
- data/spec/api/account_api_spec.rb +1 -14
- data/spec/api/{orders_api_spec.rb → buyer_orders_api_spec.rb} +13 -13
- data/spec/api/{buyer_money_api_spec.rb → buyer_wallet_api_spec.rb} +7 -7
- data/spec/api/seller_account_api_spec.rb +48 -0
- data/spec/api/{seller_money_api_spec.rb → seller_wallet_api_spec.rb} +7 -7
- data/spec/models/create_seller_media_request_post_offer_spec.rb +62 -0
- data/spec/models/create_seller_media_request_spec.rb +100 -0
- data/spec/models/project_catalogue_media_all_of_project_ai_keywords_spec.rb +46 -0
- metadata +30 -14
|
@@ -17,10 +17,41 @@ module Growwer
|
|
|
17
17
|
class UpdateSellerMediaRequestPostOffer < ApiModelBase
|
|
18
18
|
attr_accessor :pricing_options
|
|
19
19
|
|
|
20
|
+
attr_accessor :maximum_links
|
|
21
|
+
|
|
22
|
+
attr_accessor :advertising_labelling_policy
|
|
23
|
+
|
|
24
|
+
attr_accessor :promoted_social_networks
|
|
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
|
+
|
|
20
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
49
|
def self.attribute_map
|
|
22
50
|
{
|
|
23
|
-
:'pricing_options' => :'pricingOptions'
|
|
51
|
+
:'pricing_options' => :'pricingOptions',
|
|
52
|
+
:'maximum_links' => :'maximumLinks',
|
|
53
|
+
:'advertising_labelling_policy' => :'advertisingLabellingPolicy',
|
|
54
|
+
:'promoted_social_networks' => :'promotedSocialNetworks'
|
|
24
55
|
}
|
|
25
56
|
end
|
|
26
57
|
|
|
@@ -37,7 +68,10 @@ module Growwer
|
|
|
37
68
|
# Attribute type mapping.
|
|
38
69
|
def self.openapi_types
|
|
39
70
|
{
|
|
40
|
-
:'pricing_options' => :'Array<UpdateSellerMediaRequestPostOfferPricingOptionsInner>'
|
|
71
|
+
:'pricing_options' => :'Array<UpdateSellerMediaRequestPostOfferPricingOptionsInner>',
|
|
72
|
+
:'maximum_links' => :'Integer',
|
|
73
|
+
:'advertising_labelling_policy' => :'String',
|
|
74
|
+
:'promoted_social_networks' => :'Array<String>'
|
|
41
75
|
}
|
|
42
76
|
end
|
|
43
77
|
|
|
@@ -67,8 +101,20 @@ module Growwer
|
|
|
67
101
|
if (value = attributes[:'pricing_options']).is_a?(Array)
|
|
68
102
|
self.pricing_options = value
|
|
69
103
|
end
|
|
70
|
-
|
|
71
|
-
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'maximum_links')
|
|
107
|
+
self.maximum_links = attributes[:'maximum_links']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'advertising_labelling_policy')
|
|
111
|
+
self.advertising_labelling_policy = attributes[:'advertising_labelling_policy']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'promoted_social_networks')
|
|
115
|
+
if (value = attributes[:'promoted_social_networks']).is_a?(Array)
|
|
116
|
+
self.promoted_social_networks = value
|
|
117
|
+
end
|
|
72
118
|
end
|
|
73
119
|
end
|
|
74
120
|
|
|
@@ -77,12 +123,16 @@ module Growwer
|
|
|
77
123
|
def list_invalid_properties
|
|
78
124
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
79
125
|
invalid_properties = Array.new
|
|
80
|
-
if
|
|
81
|
-
invalid_properties.push('invalid value for "pricing_options",
|
|
126
|
+
if !@pricing_options.nil? && @pricing_options.length < 1
|
|
127
|
+
invalid_properties.push('invalid value for "pricing_options", number of items must be greater than or equal to 1.')
|
|
82
128
|
end
|
|
83
129
|
|
|
84
|
-
if
|
|
85
|
-
invalid_properties.push('invalid value for "
|
|
130
|
+
if !@maximum_links.nil? && @maximum_links > 4
|
|
131
|
+
invalid_properties.push('invalid value for "maximum_links", must be smaller than or equal to 4.')
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if !@maximum_links.nil? && @maximum_links < 1
|
|
135
|
+
invalid_properties.push('invalid value for "maximum_links", must be greater than or equal to 1.')
|
|
86
136
|
end
|
|
87
137
|
|
|
88
138
|
invalid_properties
|
|
@@ -92,8 +142,11 @@ module Growwer
|
|
|
92
142
|
# @return true if the model is valid
|
|
93
143
|
def valid?
|
|
94
144
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
95
|
-
return false if
|
|
96
|
-
return false if
|
|
145
|
+
return false if !@pricing_options.nil? && @pricing_options.length < 1
|
|
146
|
+
return false if !@maximum_links.nil? && @maximum_links > 4
|
|
147
|
+
return false if !@maximum_links.nil? && @maximum_links < 1
|
|
148
|
+
advertising_labelling_policy_validator = EnumAttributeValidator.new('String', ["always", "never"])
|
|
149
|
+
return false unless advertising_labelling_policy_validator.valid?(@advertising_labelling_policy)
|
|
97
150
|
true
|
|
98
151
|
end
|
|
99
152
|
|
|
@@ -111,12 +164,43 @@ module Growwer
|
|
|
111
164
|
@pricing_options = pricing_options
|
|
112
165
|
end
|
|
113
166
|
|
|
167
|
+
# Custom attribute writer method with validation
|
|
168
|
+
# @param [Object] maximum_links Value to be assigned
|
|
169
|
+
def maximum_links=(maximum_links)
|
|
170
|
+
if maximum_links.nil?
|
|
171
|
+
fail ArgumentError, 'maximum_links cannot be nil'
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if maximum_links > 4
|
|
175
|
+
fail ArgumentError, 'invalid value for "maximum_links", must be smaller than or equal to 4.'
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if maximum_links < 1
|
|
179
|
+
fail ArgumentError, 'invalid value for "maximum_links", must be greater than or equal to 1.'
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
@maximum_links = maximum_links
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
186
|
+
# @param [Object] advertising_labelling_policy Object to be assigned
|
|
187
|
+
def advertising_labelling_policy=(advertising_labelling_policy)
|
|
188
|
+
validator = EnumAttributeValidator.new('String', ["always", "never"])
|
|
189
|
+
unless validator.valid?(advertising_labelling_policy)
|
|
190
|
+
fail ArgumentError, "invalid value for \"advertising_labelling_policy\", must be one of #{validator.allowable_values}."
|
|
191
|
+
end
|
|
192
|
+
@advertising_labelling_policy = advertising_labelling_policy
|
|
193
|
+
end
|
|
194
|
+
|
|
114
195
|
# Checks equality by comparing each attribute.
|
|
115
196
|
# @param [Object] Object to be compared
|
|
116
197
|
def ==(o)
|
|
117
198
|
return true if self.equal?(o)
|
|
118
199
|
self.class == o.class &&
|
|
119
|
-
pricing_options == o.pricing_options
|
|
200
|
+
pricing_options == o.pricing_options &&
|
|
201
|
+
maximum_links == o.maximum_links &&
|
|
202
|
+
advertising_labelling_policy == o.advertising_labelling_policy &&
|
|
203
|
+
promoted_social_networks == o.promoted_social_networks
|
|
120
204
|
end
|
|
121
205
|
|
|
122
206
|
# @see the `==` method
|
|
@@ -128,7 +212,7 @@ module Growwer
|
|
|
128
212
|
# Calculates hash code according to all attributes.
|
|
129
213
|
# @return [Integer] Hash code
|
|
130
214
|
def hash
|
|
131
|
-
[pricing_options].hash
|
|
215
|
+
[pricing_options, maximum_links, advertising_labelling_policy, promoted_social_networks].hash
|
|
132
216
|
end
|
|
133
217
|
|
|
134
218
|
# Builds the object from hash
|
data/lib/growwer/version.rb
CHANGED
data/lib/growwer.rb
CHANGED
|
@@ -31,6 +31,8 @@ require 'growwer/models/code_name'
|
|
|
31
31
|
require 'growwer/models/count_saved_filter_medias200_response'
|
|
32
32
|
require 'growwer/models/create_project_request'
|
|
33
33
|
require 'growwer/models/create_saved_filter_request'
|
|
34
|
+
require 'growwer/models/create_seller_media_request'
|
|
35
|
+
require 'growwer/models/create_seller_media_request_post_offer'
|
|
34
36
|
require 'growwer/models/error'
|
|
35
37
|
require 'growwer/models/get_buyer_wallet200_response'
|
|
36
38
|
require 'growwer/models/get_me200_response'
|
|
@@ -94,6 +96,7 @@ require 'growwer/models/post_order_briefing_request'
|
|
|
94
96
|
require 'growwer/models/project'
|
|
95
97
|
require 'growwer/models/project_catalogue_media'
|
|
96
98
|
require 'growwer/models/project_catalogue_media_all_of_project'
|
|
99
|
+
require 'growwer/models/project_catalogue_media_all_of_project_ai_keywords'
|
|
97
100
|
require 'growwer/models/put_seller_holiday200_response'
|
|
98
101
|
require 'growwer/models/put_seller_holiday_request'
|
|
99
102
|
require 'growwer/models/request_medias201_response'
|
|
@@ -133,16 +136,17 @@ require 'growwer/models/withdrawal'
|
|
|
133
136
|
|
|
134
137
|
# APIs
|
|
135
138
|
require 'growwer/api/account_api'
|
|
136
|
-
require 'growwer/api/
|
|
139
|
+
require 'growwer/api/buyer_orders_api'
|
|
140
|
+
require 'growwer/api/buyer_wallet_api'
|
|
137
141
|
require 'growwer/api/catalogue_api'
|
|
138
142
|
require 'growwer/api/files_api'
|
|
139
143
|
require 'growwer/api/managed_services_api'
|
|
140
|
-
require 'growwer/api/orders_api'
|
|
141
144
|
require 'growwer/api/projects_api'
|
|
142
145
|
require 'growwer/api/saved_filters_api'
|
|
146
|
+
require 'growwer/api/seller_account_api'
|
|
143
147
|
require 'growwer/api/seller_medias_api'
|
|
144
|
-
require 'growwer/api/seller_money_api'
|
|
145
148
|
require 'growwer/api/seller_orders_api'
|
|
149
|
+
require 'growwer/api/seller_wallet_api'
|
|
146
150
|
|
|
147
151
|
module Growwer
|
|
148
152
|
class << self
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Growwer API
|
|
3
3
|
|
|
4
|
-
#The Growwer customer API. Authenticate every call with an API key created on your profile page, sent as `Authorization: Bearer <key>`. A read key can call every GET operation; writes need a read and write key and an `Idempotency-Key` header. Idempotency: use a new `Idempotency-Key` (1 to 255 printable ASCII characters) for each operation and reuse it only to retry that same operation. Keys belong to your account, not to one API key. - A successful write is stored for 30 days: a retry with the same key and the same request replays its response with `Idempotent-Replayed: true` and does nothing again. - A refused write (4xx) has no effect and releases its key: once you fix the cause, retry with the same key and the write runs. - A failed write (5xx) may have taken effect, so it is never run again under its key: a retry gets 409 `idempotency_outcome_unknown`. Check whether it took effect before retrying with a new key. - A retry while the first request is still running gets 409 `idempotency_request_in_progress`. A request still running after 5 minutes is treated as failed: a retry gets 409 `idempotency_outcome_unknown`. - The same key with a different request (method, path, query or body) gets 409 `idempotency_key_reused`. A write without the header gets 400 `idempotency_key_required`. Every response carries `X-Request-Id`. Errors share one shape, `{code, message, requestId, details?}`. Money is integer cents plus a currency code and dates are ISO-8601.
|
|
4
|
+
#The Growwer customer API. Authenticate every call with an API key created on your profile page, sent as `Authorization: Bearer <key>`. A read key can call every GET operation; writes need a read and write key and an `Idempotency-Key` header. Idempotency: use a new `Idempotency-Key` (1 to 255 printable ASCII characters without spaces) for each operation and reuse it only to retry that same operation. Keys belong to your account, not to one API key. - A successful write is stored for 30 days: a retry with the same key and the same request replays its response with `Idempotent-Replayed: true` and does nothing again. - A refused write (4xx) has no effect and releases its key: once you fix the cause, retry with the same key and the write runs. - A failed write (5xx) may have taken effect, so it is never run again under its key: a retry gets 409 `idempotency_outcome_unknown`. Check whether it took effect before retrying with a new key. - A retry while the first request is still running gets 409 `idempotency_request_in_progress`. A request still running after 5 minutes is treated as failed: a retry gets 409 `idempotency_outcome_unknown`. - The same key with a different request (method, path, query or body) gets 409 `idempotency_key_reused`. A write without the header gets 400 `idempotency_key_required`. Every response carries `X-Request-Id`. Errors share one shape, `{code, message, requestId, details?}`. Money is integer cents plus a currency code and dates are ISO-8601.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1
|
|
7
7
|
Contact: support@growwer.com
|
|
@@ -54,17 +54,4 @@ describe 'AccountApi' do
|
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
-
# unit tests for put_seller_holiday
|
|
58
|
-
# Set your holiday
|
|
59
|
-
# Starts, changes or ends your holiday, as the holiday settings of your profile page do. While you are on holiday your medias take no orders. `endDate` is the day your holiday ends, at 00:00 of that day in Growwer's server time, and must be later than now; leave it out, or send null, for a holiday you end yourself. Ending the holiday takes no `endDate`. A holiday that already is as you ask is answered 200 without a change. A restricted seller account stays on holiday until the restriction is lifted, so any change is refused. Your holiday is also in GET /me.
|
|
60
|
-
# @param idempotency_key A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters.
|
|
61
|
-
# @param put_seller_holiday_request
|
|
62
|
-
# @param [Hash] opts the optional parameters
|
|
63
|
-
# @return [PutSellerHoliday200Response]
|
|
64
|
-
describe 'put_seller_holiday test' do
|
|
65
|
-
it 'should work' do
|
|
66
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
|
|
70
57
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Growwer API
|
|
3
3
|
|
|
4
|
-
#The Growwer customer API. Authenticate every call with an API key created on your profile page, sent as `Authorization: Bearer <key>`. A read key can call every GET operation; writes need a read and write key and an `Idempotency-Key` header. Idempotency: use a new `Idempotency-Key` (1 to 255 printable ASCII characters) for each operation and reuse it only to retry that same operation. Keys belong to your account, not to one API key. - A successful write is stored for 30 days: a retry with the same key and the same request replays its response with `Idempotent-Replayed: true` and does nothing again. - A refused write (4xx) has no effect and releases its key: once you fix the cause, retry with the same key and the write runs. - A failed write (5xx) may have taken effect, so it is never run again under its key: a retry gets 409 `idempotency_outcome_unknown`. Check whether it took effect before retrying with a new key. - A retry while the first request is still running gets 409 `idempotency_request_in_progress`. A request still running after 5 minutes is treated as failed: a retry gets 409 `idempotency_outcome_unknown`. - The same key with a different request (method, path, query or body) gets 409 `idempotency_key_reused`. A write without the header gets 400 `idempotency_key_required`. Every response carries `X-Request-Id`. Errors share one shape, `{code, message, requestId, details?}`. Money is integer cents plus a currency code and dates are ISO-8601.
|
|
4
|
+
#The Growwer customer API. Authenticate every call with an API key created on your profile page, sent as `Authorization: Bearer <key>`. A read key can call every GET operation; writes need a read and write key and an `Idempotency-Key` header. Idempotency: use a new `Idempotency-Key` (1 to 255 printable ASCII characters without spaces) for each operation and reuse it only to retry that same operation. Keys belong to your account, not to one API key. - A successful write is stored for 30 days: a retry with the same key and the same request replays its response with `Idempotent-Replayed: true` and does nothing again. - A refused write (4xx) has no effect and releases its key: once you fix the cause, retry with the same key and the write runs. - A failed write (5xx) may have taken effect, so it is never run again under its key: a retry gets 409 `idempotency_outcome_unknown`. Check whether it took effect before retrying with a new key. - A retry while the first request is still running gets 409 `idempotency_request_in_progress`. A request still running after 5 minutes is treated as failed: a retry gets 409 `idempotency_outcome_unknown`. - The same key with a different request (method, path, query or body) gets 409 `idempotency_key_reused`. A write without the header gets 400 `idempotency_key_required`. Every response carries `X-Request-Id`. Errors share one shape, `{code, message, requestId, details?}`. Money is integer cents plus a currency code and dates are ISO-8601.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1
|
|
7
7
|
Contact: support@growwer.com
|
|
@@ -13,22 +13,22 @@ Generator version: 7.24.0
|
|
|
13
13
|
require 'spec_helper'
|
|
14
14
|
require 'json'
|
|
15
15
|
|
|
16
|
-
# Unit tests for Growwer::
|
|
16
|
+
# Unit tests for Growwer::BuyerOrdersApi
|
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
18
|
# Please update as you see appropriate
|
|
19
|
-
describe '
|
|
19
|
+
describe 'BuyerOrdersApi' do
|
|
20
20
|
before do
|
|
21
21
|
# run before each test
|
|
22
|
-
@api_instance = Growwer::
|
|
22
|
+
@api_instance = Growwer::BuyerOrdersApi.new
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
after do
|
|
26
26
|
# run after each test
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
describe 'test an instance of
|
|
30
|
-
it 'should create an instance of
|
|
31
|
-
expect(@api_instance).to be_instance_of(Growwer::
|
|
29
|
+
describe 'test an instance of BuyerOrdersApi' do
|
|
30
|
+
it 'should create an instance of BuyerOrdersApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Growwer::BuyerOrdersApi)
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@ describe 'OrdersApi' do
|
|
|
36
36
|
# Approve an order's delivery
|
|
37
37
|
# Approves the delivery of an order whose `pendingAction` is yours to review the delivery, as the web does. The order finishes and the seller is paid. It takes no body.
|
|
38
38
|
# @param id
|
|
39
|
-
# @param idempotency_key A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters
|
|
39
|
+
# @param idempotency_key A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
40
40
|
# @param [Hash] opts the optional parameters
|
|
41
41
|
# @return [Order]
|
|
42
42
|
describe 'approve_order test' do
|
|
@@ -49,7 +49,7 @@ describe 'OrdersApi' do
|
|
|
49
49
|
# Approve a draft
|
|
50
50
|
# Approves the draft of a post order whose `pendingAction` is yours to review the draft (GET /orders/{id}/draft downloads it), as the web does. The seller then publishes it. It takes no body.
|
|
51
51
|
# @param id
|
|
52
|
-
# @param idempotency_key A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters
|
|
52
|
+
# @param idempotency_key A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
53
53
|
# @param [Hash] opts the optional parameters
|
|
54
54
|
# @return [Order]
|
|
55
55
|
describe 'approve_order_draft test' do
|
|
@@ -62,7 +62,7 @@ describe 'OrdersApi' do
|
|
|
62
62
|
# Cancel an order
|
|
63
63
|
# Cancels an order the seller has not accepted yet (`state` `pending_acceptance`), as the web does. Its price returns to your wallet's available balance, and the seller is told your reason.
|
|
64
64
|
# @param id
|
|
65
|
-
# @param idempotency_key A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters
|
|
65
|
+
# @param idempotency_key A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
66
66
|
# @param order_action_reason
|
|
67
67
|
# @param [Hash] opts the optional parameters
|
|
68
68
|
# @return [Order]
|
|
@@ -75,7 +75,7 @@ describe 'OrdersApi' do
|
|
|
75
75
|
# unit tests for create_order
|
|
76
76
|
# Place an order
|
|
77
77
|
# Places an order on a media for one of your projects and pays its price from your wallet's available balance, as ordering on the web does. Estimate the order first (POST /orders/estimate) and send the price it answers as `expectedPrice`: the order is placed only at that price. Placing the same order (same project, media, type and price) again within 5 seconds of one still in progress is refused with `duplicate_order`. Its `details.orderId` is the earlier order, or null when that order has finished or was deleted since. A proposed draft (`proposedDraftFileId`, from POST /files) is used up when the order is placed. If the order is then refused because another request changed your balance, the media or its price, or placed the same order, the file is used up all the same and the refusal's message says so: upload it again before retrying.
|
|
78
|
-
# @param idempotency_key A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters
|
|
78
|
+
# @param idempotency_key A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
79
79
|
# @param order_create_request
|
|
80
80
|
# @param [Hash] opts the optional parameters
|
|
81
81
|
# @return [Order]
|
|
@@ -155,7 +155,7 @@ describe 'OrdersApi' do
|
|
|
155
155
|
# Request changes to a draft
|
|
156
156
|
# Asks the seller to change the draft of a post order whose `pendingAction` is yours to review the draft, as the web does. The seller is told your reason.
|
|
157
157
|
# @param id
|
|
158
|
-
# @param idempotency_key A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters
|
|
158
|
+
# @param idempotency_key A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
159
159
|
# @param order_action_reason
|
|
160
160
|
# @param [Hash] opts the optional parameters
|
|
161
161
|
# @return [Order]
|
|
@@ -169,7 +169,7 @@ describe 'OrdersApi' do
|
|
|
169
169
|
# Request changes to a delivery
|
|
170
170
|
# Asks the seller to change the delivery of an order whose `pendingAction` is yours to review the delivery, as the web does. The seller is told your reason.
|
|
171
171
|
# @param id
|
|
172
|
-
# @param idempotency_key A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters
|
|
172
|
+
# @param idempotency_key A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
173
173
|
# @param order_action_reason
|
|
174
174
|
# @param [Hash] opts the optional parameters
|
|
175
175
|
# @return [Order]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Growwer API
|
|
3
3
|
|
|
4
|
-
#The Growwer customer API. Authenticate every call with an API key created on your profile page, sent as `Authorization: Bearer <key>`. A read key can call every GET operation; writes need a read and write key and an `Idempotency-Key` header. Idempotency: use a new `Idempotency-Key` (1 to 255 printable ASCII characters) for each operation and reuse it only to retry that same operation. Keys belong to your account, not to one API key. - A successful write is stored for 30 days: a retry with the same key and the same request replays its response with `Idempotent-Replayed: true` and does nothing again. - A refused write (4xx) has no effect and releases its key: once you fix the cause, retry with the same key and the write runs. - A failed write (5xx) may have taken effect, so it is never run again under its key: a retry gets 409 `idempotency_outcome_unknown`. Check whether it took effect before retrying with a new key. - A retry while the first request is still running gets 409 `idempotency_request_in_progress`. A request still running after 5 minutes is treated as failed: a retry gets 409 `idempotency_outcome_unknown`. - The same key with a different request (method, path, query or body) gets 409 `idempotency_key_reused`. A write without the header gets 400 `idempotency_key_required`. Every response carries `X-Request-Id`. Errors share one shape, `{code, message, requestId, details?}`. Money is integer cents plus a currency code and dates are ISO-8601.
|
|
4
|
+
#The Growwer customer API. Authenticate every call with an API key created on your profile page, sent as `Authorization: Bearer <key>`. A read key can call every GET operation; writes need a read and write key and an `Idempotency-Key` header. Idempotency: use a new `Idempotency-Key` (1 to 255 printable ASCII characters without spaces) for each operation and reuse it only to retry that same operation. Keys belong to your account, not to one API key. - A successful write is stored for 30 days: a retry with the same key and the same request replays its response with `Idempotent-Replayed: true` and does nothing again. - A refused write (4xx) has no effect and releases its key: once you fix the cause, retry with the same key and the write runs. - A failed write (5xx) may have taken effect, so it is never run again under its key: a retry gets 409 `idempotency_outcome_unknown`. Check whether it took effect before retrying with a new key. - A retry while the first request is still running gets 409 `idempotency_request_in_progress`. A request still running after 5 minutes is treated as failed: a retry gets 409 `idempotency_outcome_unknown`. - The same key with a different request (method, path, query or body) gets 409 `idempotency_key_reused`. A write without the header gets 400 `idempotency_key_required`. Every response carries `X-Request-Id`. Errors share one shape, `{code, message, requestId, details?}`. Money is integer cents plus a currency code and dates are ISO-8601.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1
|
|
7
7
|
Contact: support@growwer.com
|
|
@@ -13,22 +13,22 @@ Generator version: 7.24.0
|
|
|
13
13
|
require 'spec_helper'
|
|
14
14
|
require 'json'
|
|
15
15
|
|
|
16
|
-
# Unit tests for Growwer::
|
|
16
|
+
# Unit tests for Growwer::BuyerWalletApi
|
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
18
|
# Please update as you see appropriate
|
|
19
|
-
describe '
|
|
19
|
+
describe 'BuyerWalletApi' do
|
|
20
20
|
before do
|
|
21
21
|
# run before each test
|
|
22
|
-
@api_instance = Growwer::
|
|
22
|
+
@api_instance = Growwer::BuyerWalletApi.new
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
after do
|
|
26
26
|
# run after each test
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
describe 'test an instance of
|
|
30
|
-
it 'should create an instance of
|
|
31
|
-
expect(@api_instance).to be_instance_of(Growwer::
|
|
29
|
+
describe 'test an instance of BuyerWalletApi' do
|
|
30
|
+
it 'should create an instance of BuyerWalletApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Growwer::BuyerWalletApi)
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Growwer API
|
|
3
|
+
|
|
4
|
+
#The Growwer customer API. Authenticate every call with an API key created on your profile page, sent as `Authorization: Bearer <key>`. A read key can call every GET operation; writes need a read and write key and an `Idempotency-Key` header. Idempotency: use a new `Idempotency-Key` (1 to 255 printable ASCII characters without spaces) for each operation and reuse it only to retry that same operation. Keys belong to your account, not to one API key. - A successful write is stored for 30 days: a retry with the same key and the same request replays its response with `Idempotent-Replayed: true` and does nothing again. - A refused write (4xx) has no effect and releases its key: once you fix the cause, retry with the same key and the write runs. - A failed write (5xx) may have taken effect, so it is never run again under its key: a retry gets 409 `idempotency_outcome_unknown`. Check whether it took effect before retrying with a new key. - A retry while the first request is still running gets 409 `idempotency_request_in_progress`. A request still running after 5 minutes is treated as failed: a retry gets 409 `idempotency_outcome_unknown`. - The same key with a different request (method, path, query or body) gets 409 `idempotency_key_reused`. A write without the header gets 400 `idempotency_key_required`. Every response carries `X-Request-Id`. Errors share one shape, `{code, message, requestId, details?}`. Money is integer cents plus a currency code and dates are ISO-8601.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1
|
|
7
|
+
Contact: support@growwer.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.24.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for Growwer::SellerAccountApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'SellerAccountApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Growwer::SellerAccountApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of SellerAccountApi' do
|
|
30
|
+
it 'should create an instance of SellerAccountApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Growwer::SellerAccountApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for put_seller_holiday
|
|
36
|
+
# Set your holiday
|
|
37
|
+
# Starts, changes or ends your holiday, as the holiday settings of your profile page do. While you are on holiday your medias take no orders. `endDate` is the day your holiday ends, at 00:00 of that day in Growwer's server time, and must be later than now; leave it out, or send null, for a holiday you end yourself. Ending the holiday takes no `endDate`. A holiday that already is as you ask is answered 200 without a change. A restricted seller account stays on holiday until the restriction is lifted, so any change is refused. Your holiday is also in GET /me.
|
|
38
|
+
# @param idempotency_key A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
39
|
+
# @param put_seller_holiday_request
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @return [PutSellerHoliday200Response]
|
|
42
|
+
describe 'put_seller_holiday test' 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
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Growwer API
|
|
3
3
|
|
|
4
|
-
#The Growwer customer API. Authenticate every call with an API key created on your profile page, sent as `Authorization: Bearer <key>`. A read key can call every GET operation; writes need a read and write key and an `Idempotency-Key` header. Idempotency: use a new `Idempotency-Key` (1 to 255 printable ASCII characters) for each operation and reuse it only to retry that same operation. Keys belong to your account, not to one API key. - A successful write is stored for 30 days: a retry with the same key and the same request replays its response with `Idempotent-Replayed: true` and does nothing again. - A refused write (4xx) has no effect and releases its key: once you fix the cause, retry with the same key and the write runs. - A failed write (5xx) may have taken effect, so it is never run again under its key: a retry gets 409 `idempotency_outcome_unknown`. Check whether it took effect before retrying with a new key. - A retry while the first request is still running gets 409 `idempotency_request_in_progress`. A request still running after 5 minutes is treated as failed: a retry gets 409 `idempotency_outcome_unknown`. - The same key with a different request (method, path, query or body) gets 409 `idempotency_key_reused`. A write without the header gets 400 `idempotency_key_required`. Every response carries `X-Request-Id`. Errors share one shape, `{code, message, requestId, details?}`. Money is integer cents plus a currency code and dates are ISO-8601.
|
|
4
|
+
#The Growwer customer API. Authenticate every call with an API key created on your profile page, sent as `Authorization: Bearer <key>`. A read key can call every GET operation; writes need a read and write key and an `Idempotency-Key` header. Idempotency: use a new `Idempotency-Key` (1 to 255 printable ASCII characters without spaces) for each operation and reuse it only to retry that same operation. Keys belong to your account, not to one API key. - A successful write is stored for 30 days: a retry with the same key and the same request replays its response with `Idempotent-Replayed: true` and does nothing again. - A refused write (4xx) has no effect and releases its key: once you fix the cause, retry with the same key and the write runs. - A failed write (5xx) may have taken effect, so it is never run again under its key: a retry gets 409 `idempotency_outcome_unknown`. Check whether it took effect before retrying with a new key. - A retry while the first request is still running gets 409 `idempotency_request_in_progress`. A request still running after 5 minutes is treated as failed: a retry gets 409 `idempotency_outcome_unknown`. - The same key with a different request (method, path, query or body) gets 409 `idempotency_key_reused`. A write without the header gets 400 `idempotency_key_required`. Every response carries `X-Request-Id`. Errors share one shape, `{code, message, requestId, details?}`. Money is integer cents plus a currency code and dates are ISO-8601.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1
|
|
7
7
|
Contact: support@growwer.com
|
|
@@ -13,22 +13,22 @@ Generator version: 7.24.0
|
|
|
13
13
|
require 'spec_helper'
|
|
14
14
|
require 'json'
|
|
15
15
|
|
|
16
|
-
# Unit tests for Growwer::
|
|
16
|
+
# Unit tests for Growwer::SellerWalletApi
|
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
18
|
# Please update as you see appropriate
|
|
19
|
-
describe '
|
|
19
|
+
describe 'SellerWalletApi' do
|
|
20
20
|
before do
|
|
21
21
|
# run before each test
|
|
22
|
-
@api_instance = Growwer::
|
|
22
|
+
@api_instance = Growwer::SellerWalletApi.new
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
after do
|
|
26
26
|
# run after each test
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
describe 'test an instance of
|
|
30
|
-
it 'should create an instance of
|
|
31
|
-
expect(@api_instance).to be_instance_of(Growwer::
|
|
29
|
+
describe 'test an instance of SellerWalletApi' do
|
|
30
|
+
it 'should create an instance of SellerWalletApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Growwer::SellerWalletApi)
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Growwer API
|
|
3
|
+
|
|
4
|
+
#The Growwer customer API. Authenticate every call with an API key created on your profile page, sent as `Authorization: Bearer <key>`. A read key can call every GET operation; writes need a read and write key and an `Idempotency-Key` header. Idempotency: use a new `Idempotency-Key` (1 to 255 printable ASCII characters without spaces) for each operation and reuse it only to retry that same operation. Keys belong to your account, not to one API key. - A successful write is stored for 30 days: a retry with the same key and the same request replays its response with `Idempotent-Replayed: true` and does nothing again. - A refused write (4xx) has no effect and releases its key: once you fix the cause, retry with the same key and the write runs. - A failed write (5xx) may have taken effect, so it is never run again under its key: a retry gets 409 `idempotency_outcome_unknown`. Check whether it took effect before retrying with a new key. - A retry while the first request is still running gets 409 `idempotency_request_in_progress`. A request still running after 5 minutes is treated as failed: a retry gets 409 `idempotency_outcome_unknown`. - The same key with a different request (method, path, query or body) gets 409 `idempotency_key_reused`. A write without the header gets 400 `idempotency_key_required`. Every response carries `X-Request-Id`. Errors share one shape, `{code, message, requestId, details?}`. Money is integer cents plus a currency code and dates are ISO-8601.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1
|
|
7
|
+
Contact: support@growwer.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.24.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Growwer::CreateSellerMediaRequestPostOffer
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Growwer::CreateSellerMediaRequestPostOffer do
|
|
21
|
+
#let(:instance) { Growwer::CreateSellerMediaRequestPostOffer.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateSellerMediaRequestPostOffer' do
|
|
24
|
+
it 'should create an instance of CreateSellerMediaRequestPostOffer' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Growwer::CreateSellerMediaRequestPostOffer)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "pricing_options"' 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 "maximum_links"' 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 "advertising_labelling_policy"' 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', ["always", "never"])
|
|
46
|
+
# validator.allowable_values.each do |value|
|
|
47
|
+
# expect { instance.advertising_labelling_policy = value }.not_to raise_error
|
|
48
|
+
# end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe 'test attribute "promoted_social_networks"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
55
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["twitter", "instagram", "facebook", "pinterest", "tumblr", "newsletter"])
|
|
56
|
+
# validator.allowable_values.each do |value|
|
|
57
|
+
# expect { instance.promoted_social_networks = value }.not_to raise_error
|
|
58
|
+
# end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
end
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Growwer API
|
|
3
|
+
|
|
4
|
+
#The Growwer customer API. Authenticate every call with an API key created on your profile page, sent as `Authorization: Bearer <key>`. A read key can call every GET operation; writes need a read and write key and an `Idempotency-Key` header. Idempotency: use a new `Idempotency-Key` (1 to 255 printable ASCII characters without spaces) for each operation and reuse it only to retry that same operation. Keys belong to your account, not to one API key. - A successful write is stored for 30 days: a retry with the same key and the same request replays its response with `Idempotent-Replayed: true` and does nothing again. - A refused write (4xx) has no effect and releases its key: once you fix the cause, retry with the same key and the write runs. - A failed write (5xx) may have taken effect, so it is never run again under its key: a retry gets 409 `idempotency_outcome_unknown`. Check whether it took effect before retrying with a new key. - A retry while the first request is still running gets 409 `idempotency_request_in_progress`. A request still running after 5 minutes is treated as failed: a retry gets 409 `idempotency_outcome_unknown`. - The same key with a different request (method, path, query or body) gets 409 `idempotency_key_reused`. A write without the header gets 400 `idempotency_key_required`. Every response carries `X-Request-Id`. Errors share one shape, `{code, message, requestId, details?}`. Money is integer cents plus a currency code and dates are ISO-8601.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1
|
|
7
|
+
Contact: support@growwer.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.24.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Growwer::CreateSellerMediaRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Growwer::CreateSellerMediaRequest do
|
|
21
|
+
#let(:instance) { Growwer::CreateSellerMediaRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateSellerMediaRequest' do
|
|
24
|
+
it 'should create an instance of CreateSellerMediaRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Growwer::CreateSellerMediaRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "root_url"' 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 "typology"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["blog", "press"])
|
|
40
|
+
# validator.allowable_values.each do |value|
|
|
41
|
+
# expect { instance.typology = value }.not_to raise_error
|
|
42
|
+
# end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
describe 'test attribute "country"' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe 'test attribute "language"' 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
|
+
describe 'test attribute "topics"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
describe 'test attribute "banned_topics"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
describe 'test attribute "post_offer"' do
|
|
71
|
+
it 'should work' do
|
|
72
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
describe 'test attribute "link_addition_offer"' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
describe 'test attribute "extra_services"' do
|
|
83
|
+
it 'should work' do
|
|
84
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
describe 'test attribute "accept_media_publishing_terms"' do
|
|
89
|
+
it 'should work' do
|
|
90
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
describe 'test attribute "declare_media_ownership"' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
end
|