postboost 1.0.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 +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +0 -0
- data/Rakefile +10 -0
- data/docs/Account.md +34 -0
- data/docs/AccountsApi.md +149 -0
- data/docs/AddGenericSubscriptionRequest.md +22 -0
- data/docs/ChangeSubscriptionPlanRequest.md +24 -0
- data/docs/CheckoutSubscription200Response.md +18 -0
- data/docs/CheckoutSubscriptionRequest.md +22 -0
- data/docs/DeleteMediaBulkRequest.md +18 -0
- data/docs/DeleteMode.md +15 -0
- data/docs/DeletePostRequest.md +20 -0
- data/docs/DeletePostsBulkRequest.md +22 -0
- data/docs/DeleteReceiptsBulkRequest.md +18 -0
- data/docs/DeleteResult.md +22 -0
- data/docs/DeleteUser400Response.md +20 -0
- data/docs/DeleteUsersBulkRequest.md +18 -0
- data/docs/DeleteWorkspacesBulkRequest.md +18 -0
- data/docs/GetRemoteUploadStatus200Response.md +20 -0
- data/docs/InitiateChunkedUpload200Response.md +22 -0
- data/docs/InitiateChunkedUploadRequest.md +22 -0
- data/docs/InitiateRemoteUpload200Response.md +49 -0
- data/docs/InitiateRemoteUpload200ResponseOneOf.md +18 -0
- data/docs/InitiateRemoteUploadRequest.md +20 -0
- data/docs/ListAccounts200Response.md +18 -0
- data/docs/ListMedia200Response.md +22 -0
- data/docs/ListPosts200Response.md +22 -0
- data/docs/ListReceipts200Response.md +22 -0
- data/docs/ListTags200Response.md +18 -0
- data/docs/ListUsers200Response.md +22 -0
- data/docs/ListWorkspaces200Response.md +22 -0
- data/docs/Media.md +34 -0
- data/docs/MediaApi.md +810 -0
- data/docs/PaginationMeta.md +20 -0
- data/docs/PaginationMetaLinks.md +24 -0
- data/docs/PaginationMetaMeta.md +28 -0
- data/docs/Post.md +36 -0
- data/docs/PostContent.md +24 -0
- data/docs/PostInput.md +34 -0
- data/docs/PostStatus.md +15 -0
- data/docs/PostVersion.md +24 -0
- data/docs/PostsApi.md +659 -0
- data/docs/Receipt.md +36 -0
- data/docs/ReceiptInput.md +34 -0
- data/docs/ReceiptUpdateInput.md +32 -0
- data/docs/ReceiptsApi.md +421 -0
- data/docs/RemoveUserFromWorkspaceRequest.md +18 -0
- data/docs/SchedulePostRequest.md +18 -0
- data/docs/ScheduleResult.md +20 -0
- data/docs/Subscription.md +32 -0
- data/docs/SubscriptionInput.md +24 -0
- data/docs/SubscriptionStatus.md +15 -0
- data/docs/SubscriptionUpdateInput.md +24 -0
- data/docs/SubscriptionsApi.md +699 -0
- data/docs/Tag.md +24 -0
- data/docs/TagInput.md +20 -0
- data/docs/TagsApi.md +357 -0
- data/docs/UpdateMediaRequest.md +18 -0
- data/docs/UploadChunk200Response.md +18 -0
- data/docs/User.md +28 -0
- data/docs/UserInput.md +26 -0
- data/docs/UserUpdateInput.md +26 -0
- data/docs/UsersApi.md +419 -0
- data/docs/Workspace.md +28 -0
- data/docs/WorkspaceInput.md +24 -0
- data/docs/WorkspaceUserInput.md +24 -0
- data/docs/WorkspacesApi.md +637 -0
- data/git_push.sh +57 -0
- data/lib/postboost/api/accounts_api.rb +154 -0
- data/lib/postboost/api/media_api.rb +836 -0
- data/lib/postboost/api/posts_api.rb +673 -0
- data/lib/postboost/api/receipts_api.rb +409 -0
- data/lib/postboost/api/subscriptions_api.rb +689 -0
- data/lib/postboost/api/tags_api.rb +367 -0
- data/lib/postboost/api/users_api.rb +406 -0
- data/lib/postboost/api/workspaces_api.rb +640 -0
- data/lib/postboost/api_client.rb +394 -0
- data/lib/postboost/api_error.rb +58 -0
- data/lib/postboost/configuration.rb +308 -0
- data/lib/postboost/models/account.rb +321 -0
- data/lib/postboost/models/add_generic_subscription_request.rb +274 -0
- data/lib/postboost/models/change_subscription_plan_request.rb +303 -0
- data/lib/postboost/models/checkout_subscription200_response.rb +214 -0
- data/lib/postboost/models/checkout_subscription_request.rb +280 -0
- data/lib/postboost/models/delete_media_bulk_request.rb +224 -0
- data/lib/postboost/models/delete_mode.rb +41 -0
- data/lib/postboost/models/delete_post_request.rb +249 -0
- data/lib/postboost/models/delete_posts_bulk_request.rb +269 -0
- data/lib/postboost/models/delete_receipts_bulk_request.rb +223 -0
- data/lib/postboost/models/delete_result.rb +232 -0
- data/lib/postboost/models/delete_user400_response.rb +223 -0
- data/lib/postboost/models/delete_users_bulk_request.rb +223 -0
- data/lib/postboost/models/delete_workspaces_bulk_request.rb +223 -0
- data/lib/postboost/models/get_remote_upload_status200_response.rb +258 -0
- data/lib/postboost/models/initiate_chunked_upload200_response.rb +232 -0
- data/lib/postboost/models/initiate_chunked_upload_request.rb +273 -0
- data/lib/postboost/models/initiate_remote_upload200_response.rb +105 -0
- data/lib/postboost/models/initiate_remote_upload200_response_one_of.rb +214 -0
- data/lib/postboost/models/initiate_remote_upload_request.rb +250 -0
- data/lib/postboost/models/list_accounts200_response.rb +216 -0
- data/lib/postboost/models/list_media200_response.rb +241 -0
- data/lib/postboost/models/list_posts200_response.rb +241 -0
- data/lib/postboost/models/list_receipts200_response.rb +241 -0
- data/lib/postboost/models/list_tags200_response.rb +216 -0
- data/lib/postboost/models/list_users200_response.rb +241 -0
- data/lib/postboost/models/list_workspaces200_response.rb +241 -0
- data/lib/postboost/models/media.rb +320 -0
- data/lib/postboost/models/pagination_meta.rb +223 -0
- data/lib/postboost/models/pagination_meta_links.rb +241 -0
- data/lib/postboost/models/pagination_meta_meta.rb +259 -0
- data/lib/postboost/models/post.rb +323 -0
- data/lib/postboost/models/post_content.rb +247 -0
- data/lib/postboost/models/post_input.rb +324 -0
- data/lib/postboost/models/post_status.rb +41 -0
- data/lib/postboost/models/post_version.rb +267 -0
- data/lib/postboost/models/receipt.rb +295 -0
- data/lib/postboost/models/receipt_input.rb +335 -0
- data/lib/postboost/models/receipt_update_input.rb +312 -0
- data/lib/postboost/models/remove_user_from_workspace_request.rb +221 -0
- data/lib/postboost/models/schedule_post_request.rb +221 -0
- data/lib/postboost/models/schedule_result.rb +223 -0
- data/lib/postboost/models/subscription.rb +299 -0
- data/lib/postboost/models/subscription_input.rb +285 -0
- data/lib/postboost/models/subscription_status.rb +44 -0
- data/lib/postboost/models/subscription_update_input.rb +279 -0
- data/lib/postboost/models/tag.rb +241 -0
- data/lib/postboost/models/tag_input.rb +237 -0
- data/lib/postboost/models/update_media_request.rb +222 -0
- data/lib/postboost/models/upload_chunk200_response.rb +215 -0
- data/lib/postboost/models/user.rb +259 -0
- data/lib/postboost/models/user_input.rb +304 -0
- data/lib/postboost/models/user_update_input.rb +272 -0
- data/lib/postboost/models/workspace.rb +293 -0
- data/lib/postboost/models/workspace_input.rb +315 -0
- data/lib/postboost/models/workspace_user_input.rb +303 -0
- data/lib/postboost/version.rb +15 -0
- data/lib/postboost.rb +103 -0
- data/postboost.gemspec +39 -0
- data/spec/api/accounts_api_spec.rb +60 -0
- data/spec/api/media_api_spec.rb +182 -0
- data/spec/api/posts_api_spec.rb +152 -0
- data/spec/api/receipts_api_spec.rb +103 -0
- data/spec/api/subscriptions_api_spec.rb +151 -0
- data/spec/api/tags_api_spec.rb +95 -0
- data/spec/api/users_api_spec.rb +102 -0
- data/spec/api/workspaces_api_spec.rb +142 -0
- data/spec/models/account_spec.rb +88 -0
- data/spec/models/add_generic_subscription_request_spec.rb +48 -0
- data/spec/models/change_subscription_plan_request_spec.rb +58 -0
- data/spec/models/checkout_subscription200_response_spec.rb +36 -0
- data/spec/models/checkout_subscription_request_spec.rb +52 -0
- data/spec/models/delete_media_bulk_request_spec.rb +36 -0
- data/spec/models/delete_mode_spec.rb +30 -0
- data/spec/models/delete_post_request_spec.rb +42 -0
- data/spec/models/delete_posts_bulk_request_spec.rb +48 -0
- data/spec/models/delete_receipts_bulk_request_spec.rb +36 -0
- data/spec/models/delete_result_spec.rb +48 -0
- data/spec/models/delete_user400_response_spec.rb +42 -0
- data/spec/models/delete_users_bulk_request_spec.rb +36 -0
- data/spec/models/delete_workspaces_bulk_request_spec.rb +36 -0
- data/spec/models/get_remote_upload_status200_response_spec.rb +46 -0
- data/spec/models/initiate_chunked_upload200_response_spec.rb +48 -0
- data/spec/models/initiate_chunked_upload_request_spec.rb +48 -0
- data/spec/models/initiate_remote_upload200_response_one_of_spec.rb +36 -0
- data/spec/models/initiate_remote_upload200_response_spec.rb +32 -0
- data/spec/models/initiate_remote_upload_request_spec.rb +42 -0
- data/spec/models/list_accounts200_response_spec.rb +36 -0
- data/spec/models/list_media200_response_spec.rb +48 -0
- data/spec/models/list_posts200_response_spec.rb +48 -0
- data/spec/models/list_receipts200_response_spec.rb +48 -0
- data/spec/models/list_tags200_response_spec.rb +36 -0
- data/spec/models/list_users200_response_spec.rb +48 -0
- data/spec/models/list_workspaces200_response_spec.rb +48 -0
- data/spec/models/media_spec.rb +88 -0
- data/spec/models/pagination_meta_links_spec.rb +54 -0
- data/spec/models/pagination_meta_meta_spec.rb +66 -0
- data/spec/models/pagination_meta_spec.rb +42 -0
- data/spec/models/post_content_spec.rb +54 -0
- data/spec/models/post_input_spec.rb +84 -0
- data/spec/models/post_spec.rb +90 -0
- data/spec/models/post_status_spec.rb +30 -0
- data/spec/models/post_version_spec.rb +54 -0
- data/spec/models/receipt_input_spec.rb +84 -0
- data/spec/models/receipt_spec.rb +90 -0
- data/spec/models/receipt_update_input_spec.rb +78 -0
- data/spec/models/remove_user_from_workspace_request_spec.rb +36 -0
- data/spec/models/schedule_post_request_spec.rb +36 -0
- data/spec/models/schedule_result_spec.rb +42 -0
- data/spec/models/subscription_input_spec.rb +54 -0
- data/spec/models/subscription_spec.rb +78 -0
- data/spec/models/subscription_status_spec.rb +30 -0
- data/spec/models/subscription_update_input_spec.rb +54 -0
- data/spec/models/tag_input_spec.rb +42 -0
- data/spec/models/tag_spec.rb +54 -0
- data/spec/models/update_media_request_spec.rb +36 -0
- data/spec/models/upload_chunk200_response_spec.rb +36 -0
- data/spec/models/user_input_spec.rb +60 -0
- data/spec/models/user_spec.rb +66 -0
- data/spec/models/user_update_input_spec.rb +60 -0
- data/spec/models/workspace_input_spec.rb +58 -0
- data/spec/models/workspace_spec.rb +70 -0
- data/spec/models/workspace_user_input_spec.rb +58 -0
- data/spec/spec_helper.rb +111 -0
- metadata +358 -0
|
@@ -0,0 +1,699 @@
|
|
|
1
|
+
# PostBoost::SubscriptionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://postboost.co/app/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**add_generic_subscription**](SubscriptionsApi.md#add_generic_subscription) | **POST** /panel/workspaces/{workspaceUuid}/subscription/generic | Add generic subscription |
|
|
8
|
+
| [**cancel_subscription**](SubscriptionsApi.md#cancel_subscription) | **POST** /panel/workspaces/{workspaceUuid}/subscription/cancel | Cancel subscription |
|
|
9
|
+
| [**change_subscription_plan**](SubscriptionsApi.md#change_subscription_plan) | **PUT** /panel/workspaces/{workspaceUuid}/subscription/change-plan | Change subscription plan |
|
|
10
|
+
| [**checkout_subscription**](SubscriptionsApi.md#checkout_subscription) | **POST** /panel/workspaces/{workspaceUuid}/subscription/new | New subscription checkout |
|
|
11
|
+
| [**create_subscription**](SubscriptionsApi.md#create_subscription) | **POST** /panel/workspaces/{workspaceUuid}/subscription | Create subscription |
|
|
12
|
+
| [**delete_subscription**](SubscriptionsApi.md#delete_subscription) | **DELETE** /panel/workspaces/{workspaceUuid}/subscription | Delete subscription |
|
|
13
|
+
| [**get_subscription**](SubscriptionsApi.md#get_subscription) | **GET** /panel/workspaces/{workspaceUuid}/subscription | Get subscription |
|
|
14
|
+
| [**remove_generic_subscription**](SubscriptionsApi.md#remove_generic_subscription) | **DELETE** /panel/workspaces/{workspaceUuid}/subscription/generic | Remove generic subscription |
|
|
15
|
+
| [**resume_subscription**](SubscriptionsApi.md#resume_subscription) | **POST** /panel/workspaces/{workspaceUuid}/subscription/resume | Resume subscription |
|
|
16
|
+
| [**update_subscription**](SubscriptionsApi.md#update_subscription) | **PUT** /panel/workspaces/{workspaceUuid}/subscription | Update subscription |
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## add_generic_subscription
|
|
20
|
+
|
|
21
|
+
> Object add_generic_subscription(workspace_uuid, add_generic_subscription_request)
|
|
22
|
+
|
|
23
|
+
Add generic subscription
|
|
24
|
+
|
|
25
|
+
### Examples
|
|
26
|
+
|
|
27
|
+
```ruby
|
|
28
|
+
require 'time'
|
|
29
|
+
require 'postboost'
|
|
30
|
+
# setup authorization
|
|
31
|
+
PostBoost.configure do |config|
|
|
32
|
+
# Configure Bearer authorization: bearerAuth
|
|
33
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
api_instance = PostBoost::SubscriptionsApi.new
|
|
37
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
38
|
+
add_generic_subscription_request = PostBoost::AddGenericSubscriptionRequest.new({plan_id: 37, keep_prev_trial_ends_at: false}) # AddGenericSubscriptionRequest |
|
|
39
|
+
|
|
40
|
+
begin
|
|
41
|
+
# Add generic subscription
|
|
42
|
+
result = api_instance.add_generic_subscription(workspace_uuid, add_generic_subscription_request)
|
|
43
|
+
p result
|
|
44
|
+
rescue PostBoost::ApiError => e
|
|
45
|
+
puts "Error when calling SubscriptionsApi->add_generic_subscription: #{e}"
|
|
46
|
+
end
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### Using the add_generic_subscription_with_http_info variant
|
|
50
|
+
|
|
51
|
+
This returns an Array which contains the response data, status code and headers.
|
|
52
|
+
|
|
53
|
+
> <Array(Object, Integer, Hash)> add_generic_subscription_with_http_info(workspace_uuid, add_generic_subscription_request)
|
|
54
|
+
|
|
55
|
+
```ruby
|
|
56
|
+
begin
|
|
57
|
+
# Add generic subscription
|
|
58
|
+
data, status_code, headers = api_instance.add_generic_subscription_with_http_info(workspace_uuid, add_generic_subscription_request)
|
|
59
|
+
p status_code # => 2xx
|
|
60
|
+
p headers # => { ... }
|
|
61
|
+
p data # => Object
|
|
62
|
+
rescue PostBoost::ApiError => e
|
|
63
|
+
puts "Error when calling SubscriptionsApi->add_generic_subscription_with_http_info: #{e}"
|
|
64
|
+
end
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Parameters
|
|
68
|
+
|
|
69
|
+
| Name | Type | Description | Notes |
|
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
|
71
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
72
|
+
| **add_generic_subscription_request** | [**AddGenericSubscriptionRequest**](AddGenericSubscriptionRequest.md) | | |
|
|
73
|
+
|
|
74
|
+
### Return type
|
|
75
|
+
|
|
76
|
+
**Object**
|
|
77
|
+
|
|
78
|
+
### Authorization
|
|
79
|
+
|
|
80
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
81
|
+
|
|
82
|
+
### HTTP request headers
|
|
83
|
+
|
|
84
|
+
- **Content-Type**: application/json
|
|
85
|
+
- **Accept**: application/json
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## cancel_subscription
|
|
89
|
+
|
|
90
|
+
> Object cancel_subscription(workspace_uuid)
|
|
91
|
+
|
|
92
|
+
Cancel subscription
|
|
93
|
+
|
|
94
|
+
### Examples
|
|
95
|
+
|
|
96
|
+
```ruby
|
|
97
|
+
require 'time'
|
|
98
|
+
require 'postboost'
|
|
99
|
+
# setup authorization
|
|
100
|
+
PostBoost.configure do |config|
|
|
101
|
+
# Configure Bearer authorization: bearerAuth
|
|
102
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
api_instance = PostBoost::SubscriptionsApi.new
|
|
106
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
107
|
+
|
|
108
|
+
begin
|
|
109
|
+
# Cancel subscription
|
|
110
|
+
result = api_instance.cancel_subscription(workspace_uuid)
|
|
111
|
+
p result
|
|
112
|
+
rescue PostBoost::ApiError => e
|
|
113
|
+
puts "Error when calling SubscriptionsApi->cancel_subscription: #{e}"
|
|
114
|
+
end
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
#### Using the cancel_subscription_with_http_info variant
|
|
118
|
+
|
|
119
|
+
This returns an Array which contains the response data, status code and headers.
|
|
120
|
+
|
|
121
|
+
> <Array(Object, Integer, Hash)> cancel_subscription_with_http_info(workspace_uuid)
|
|
122
|
+
|
|
123
|
+
```ruby
|
|
124
|
+
begin
|
|
125
|
+
# Cancel subscription
|
|
126
|
+
data, status_code, headers = api_instance.cancel_subscription_with_http_info(workspace_uuid)
|
|
127
|
+
p status_code # => 2xx
|
|
128
|
+
p headers # => { ... }
|
|
129
|
+
p data # => Object
|
|
130
|
+
rescue PostBoost::ApiError => e
|
|
131
|
+
puts "Error when calling SubscriptionsApi->cancel_subscription_with_http_info: #{e}"
|
|
132
|
+
end
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Parameters
|
|
136
|
+
|
|
137
|
+
| Name | Type | Description | Notes |
|
|
138
|
+
| ---- | ---- | ----------- | ----- |
|
|
139
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
140
|
+
|
|
141
|
+
### Return type
|
|
142
|
+
|
|
143
|
+
**Object**
|
|
144
|
+
|
|
145
|
+
### Authorization
|
|
146
|
+
|
|
147
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
148
|
+
|
|
149
|
+
### HTTP request headers
|
|
150
|
+
|
|
151
|
+
- **Content-Type**: Not defined
|
|
152
|
+
- **Accept**: application/json
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
## change_subscription_plan
|
|
156
|
+
|
|
157
|
+
> Object change_subscription_plan(workspace_uuid, change_subscription_plan_request)
|
|
158
|
+
|
|
159
|
+
Change subscription plan
|
|
160
|
+
|
|
161
|
+
### Examples
|
|
162
|
+
|
|
163
|
+
```ruby
|
|
164
|
+
require 'time'
|
|
165
|
+
require 'postboost'
|
|
166
|
+
# setup authorization
|
|
167
|
+
PostBoost.configure do |config|
|
|
168
|
+
# Configure Bearer authorization: bearerAuth
|
|
169
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
api_instance = PostBoost::SubscriptionsApi.new
|
|
173
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
174
|
+
change_subscription_plan_request = PostBoost::ChangeSubscriptionPlanRequest.new({plan_id: 37, cycle: 'monthly', prorate: false, billing_immediately: false}) # ChangeSubscriptionPlanRequest |
|
|
175
|
+
|
|
176
|
+
begin
|
|
177
|
+
# Change subscription plan
|
|
178
|
+
result = api_instance.change_subscription_plan(workspace_uuid, change_subscription_plan_request)
|
|
179
|
+
p result
|
|
180
|
+
rescue PostBoost::ApiError => e
|
|
181
|
+
puts "Error when calling SubscriptionsApi->change_subscription_plan: #{e}"
|
|
182
|
+
end
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
#### Using the change_subscription_plan_with_http_info variant
|
|
186
|
+
|
|
187
|
+
This returns an Array which contains the response data, status code and headers.
|
|
188
|
+
|
|
189
|
+
> <Array(Object, Integer, Hash)> change_subscription_plan_with_http_info(workspace_uuid, change_subscription_plan_request)
|
|
190
|
+
|
|
191
|
+
```ruby
|
|
192
|
+
begin
|
|
193
|
+
# Change subscription plan
|
|
194
|
+
data, status_code, headers = api_instance.change_subscription_plan_with_http_info(workspace_uuid, change_subscription_plan_request)
|
|
195
|
+
p status_code # => 2xx
|
|
196
|
+
p headers # => { ... }
|
|
197
|
+
p data # => Object
|
|
198
|
+
rescue PostBoost::ApiError => e
|
|
199
|
+
puts "Error when calling SubscriptionsApi->change_subscription_plan_with_http_info: #{e}"
|
|
200
|
+
end
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Parameters
|
|
204
|
+
|
|
205
|
+
| Name | Type | Description | Notes |
|
|
206
|
+
| ---- | ---- | ----------- | ----- |
|
|
207
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
208
|
+
| **change_subscription_plan_request** | [**ChangeSubscriptionPlanRequest**](ChangeSubscriptionPlanRequest.md) | | |
|
|
209
|
+
|
|
210
|
+
### Return type
|
|
211
|
+
|
|
212
|
+
**Object**
|
|
213
|
+
|
|
214
|
+
### Authorization
|
|
215
|
+
|
|
216
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
217
|
+
|
|
218
|
+
### HTTP request headers
|
|
219
|
+
|
|
220
|
+
- **Content-Type**: application/json
|
|
221
|
+
- **Accept**: application/json
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
## checkout_subscription
|
|
225
|
+
|
|
226
|
+
> <CheckoutSubscription200Response> checkout_subscription(workspace_uuid, checkout_subscription_request)
|
|
227
|
+
|
|
228
|
+
New subscription checkout
|
|
229
|
+
|
|
230
|
+
Returns a Stripe Checkout URL for a new subscription.
|
|
231
|
+
|
|
232
|
+
### Examples
|
|
233
|
+
|
|
234
|
+
```ruby
|
|
235
|
+
require 'time'
|
|
236
|
+
require 'postboost'
|
|
237
|
+
# setup authorization
|
|
238
|
+
PostBoost.configure do |config|
|
|
239
|
+
# Configure Bearer authorization: bearerAuth
|
|
240
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
api_instance = PostBoost::SubscriptionsApi.new
|
|
244
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
245
|
+
checkout_subscription_request = PostBoost::CheckoutSubscriptionRequest.new({plan_id: 37, cycle: 'monthly'}) # CheckoutSubscriptionRequest |
|
|
246
|
+
|
|
247
|
+
begin
|
|
248
|
+
# New subscription checkout
|
|
249
|
+
result = api_instance.checkout_subscription(workspace_uuid, checkout_subscription_request)
|
|
250
|
+
p result
|
|
251
|
+
rescue PostBoost::ApiError => e
|
|
252
|
+
puts "Error when calling SubscriptionsApi->checkout_subscription: #{e}"
|
|
253
|
+
end
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
#### Using the checkout_subscription_with_http_info variant
|
|
257
|
+
|
|
258
|
+
This returns an Array which contains the response data, status code and headers.
|
|
259
|
+
|
|
260
|
+
> <Array(<CheckoutSubscription200Response>, Integer, Hash)> checkout_subscription_with_http_info(workspace_uuid, checkout_subscription_request)
|
|
261
|
+
|
|
262
|
+
```ruby
|
|
263
|
+
begin
|
|
264
|
+
# New subscription checkout
|
|
265
|
+
data, status_code, headers = api_instance.checkout_subscription_with_http_info(workspace_uuid, checkout_subscription_request)
|
|
266
|
+
p status_code # => 2xx
|
|
267
|
+
p headers # => { ... }
|
|
268
|
+
p data # => <CheckoutSubscription200Response>
|
|
269
|
+
rescue PostBoost::ApiError => e
|
|
270
|
+
puts "Error when calling SubscriptionsApi->checkout_subscription_with_http_info: #{e}"
|
|
271
|
+
end
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Parameters
|
|
275
|
+
|
|
276
|
+
| Name | Type | Description | Notes |
|
|
277
|
+
| ---- | ---- | ----------- | ----- |
|
|
278
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
279
|
+
| **checkout_subscription_request** | [**CheckoutSubscriptionRequest**](CheckoutSubscriptionRequest.md) | | |
|
|
280
|
+
|
|
281
|
+
### Return type
|
|
282
|
+
|
|
283
|
+
[**CheckoutSubscription200Response**](CheckoutSubscription200Response.md)
|
|
284
|
+
|
|
285
|
+
### Authorization
|
|
286
|
+
|
|
287
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
288
|
+
|
|
289
|
+
### HTTP request headers
|
|
290
|
+
|
|
291
|
+
- **Content-Type**: application/json
|
|
292
|
+
- **Accept**: application/json
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
## create_subscription
|
|
296
|
+
|
|
297
|
+
> Object create_subscription(workspace_uuid, subscription_input)
|
|
298
|
+
|
|
299
|
+
Create subscription
|
|
300
|
+
|
|
301
|
+
### Examples
|
|
302
|
+
|
|
303
|
+
```ruby
|
|
304
|
+
require 'time'
|
|
305
|
+
require 'postboost'
|
|
306
|
+
# setup authorization
|
|
307
|
+
PostBoost.configure do |config|
|
|
308
|
+
# Configure Bearer authorization: bearerAuth
|
|
309
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
api_instance = PostBoost::SubscriptionsApi.new
|
|
313
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
314
|
+
subscription_input = PostBoost::SubscriptionInput.new({platform_subscription_id: 'platform_subscription_id_example', platform_plan_id: 'platform_plan_id_example', status: PostBoost::SubscriptionStatus::ACTIVE}) # SubscriptionInput |
|
|
315
|
+
|
|
316
|
+
begin
|
|
317
|
+
# Create subscription
|
|
318
|
+
result = api_instance.create_subscription(workspace_uuid, subscription_input)
|
|
319
|
+
p result
|
|
320
|
+
rescue PostBoost::ApiError => e
|
|
321
|
+
puts "Error when calling SubscriptionsApi->create_subscription: #{e}"
|
|
322
|
+
end
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
#### Using the create_subscription_with_http_info variant
|
|
326
|
+
|
|
327
|
+
This returns an Array which contains the response data, status code and headers.
|
|
328
|
+
|
|
329
|
+
> <Array(Object, Integer, Hash)> create_subscription_with_http_info(workspace_uuid, subscription_input)
|
|
330
|
+
|
|
331
|
+
```ruby
|
|
332
|
+
begin
|
|
333
|
+
# Create subscription
|
|
334
|
+
data, status_code, headers = api_instance.create_subscription_with_http_info(workspace_uuid, subscription_input)
|
|
335
|
+
p status_code # => 2xx
|
|
336
|
+
p headers # => { ... }
|
|
337
|
+
p data # => Object
|
|
338
|
+
rescue PostBoost::ApiError => e
|
|
339
|
+
puts "Error when calling SubscriptionsApi->create_subscription_with_http_info: #{e}"
|
|
340
|
+
end
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
### Parameters
|
|
344
|
+
|
|
345
|
+
| Name | Type | Description | Notes |
|
|
346
|
+
| ---- | ---- | ----------- | ----- |
|
|
347
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
348
|
+
| **subscription_input** | [**SubscriptionInput**](SubscriptionInput.md) | | |
|
|
349
|
+
|
|
350
|
+
### Return type
|
|
351
|
+
|
|
352
|
+
**Object**
|
|
353
|
+
|
|
354
|
+
### Authorization
|
|
355
|
+
|
|
356
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
357
|
+
|
|
358
|
+
### HTTP request headers
|
|
359
|
+
|
|
360
|
+
- **Content-Type**: application/json
|
|
361
|
+
- **Accept**: application/json
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
## delete_subscription
|
|
365
|
+
|
|
366
|
+
> Object delete_subscription(workspace_uuid)
|
|
367
|
+
|
|
368
|
+
Delete subscription
|
|
369
|
+
|
|
370
|
+
### Examples
|
|
371
|
+
|
|
372
|
+
```ruby
|
|
373
|
+
require 'time'
|
|
374
|
+
require 'postboost'
|
|
375
|
+
# setup authorization
|
|
376
|
+
PostBoost.configure do |config|
|
|
377
|
+
# Configure Bearer authorization: bearerAuth
|
|
378
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
api_instance = PostBoost::SubscriptionsApi.new
|
|
382
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
383
|
+
|
|
384
|
+
begin
|
|
385
|
+
# Delete subscription
|
|
386
|
+
result = api_instance.delete_subscription(workspace_uuid)
|
|
387
|
+
p result
|
|
388
|
+
rescue PostBoost::ApiError => e
|
|
389
|
+
puts "Error when calling SubscriptionsApi->delete_subscription: #{e}"
|
|
390
|
+
end
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
#### Using the delete_subscription_with_http_info variant
|
|
394
|
+
|
|
395
|
+
This returns an Array which contains the response data, status code and headers.
|
|
396
|
+
|
|
397
|
+
> <Array(Object, Integer, Hash)> delete_subscription_with_http_info(workspace_uuid)
|
|
398
|
+
|
|
399
|
+
```ruby
|
|
400
|
+
begin
|
|
401
|
+
# Delete subscription
|
|
402
|
+
data, status_code, headers = api_instance.delete_subscription_with_http_info(workspace_uuid)
|
|
403
|
+
p status_code # => 2xx
|
|
404
|
+
p headers # => { ... }
|
|
405
|
+
p data # => Object
|
|
406
|
+
rescue PostBoost::ApiError => e
|
|
407
|
+
puts "Error when calling SubscriptionsApi->delete_subscription_with_http_info: #{e}"
|
|
408
|
+
end
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
### Parameters
|
|
412
|
+
|
|
413
|
+
| Name | Type | Description | Notes |
|
|
414
|
+
| ---- | ---- | ----------- | ----- |
|
|
415
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
416
|
+
|
|
417
|
+
### Return type
|
|
418
|
+
|
|
419
|
+
**Object**
|
|
420
|
+
|
|
421
|
+
### Authorization
|
|
422
|
+
|
|
423
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
424
|
+
|
|
425
|
+
### HTTP request headers
|
|
426
|
+
|
|
427
|
+
- **Content-Type**: Not defined
|
|
428
|
+
- **Accept**: application/json
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
## get_subscription
|
|
432
|
+
|
|
433
|
+
> <Subscription> get_subscription(workspace_uuid)
|
|
434
|
+
|
|
435
|
+
Get subscription
|
|
436
|
+
|
|
437
|
+
### Examples
|
|
438
|
+
|
|
439
|
+
```ruby
|
|
440
|
+
require 'time'
|
|
441
|
+
require 'postboost'
|
|
442
|
+
# setup authorization
|
|
443
|
+
PostBoost.configure do |config|
|
|
444
|
+
# Configure Bearer authorization: bearerAuth
|
|
445
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
api_instance = PostBoost::SubscriptionsApi.new
|
|
449
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
450
|
+
|
|
451
|
+
begin
|
|
452
|
+
# Get subscription
|
|
453
|
+
result = api_instance.get_subscription(workspace_uuid)
|
|
454
|
+
p result
|
|
455
|
+
rescue PostBoost::ApiError => e
|
|
456
|
+
puts "Error when calling SubscriptionsApi->get_subscription: #{e}"
|
|
457
|
+
end
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
#### Using the get_subscription_with_http_info variant
|
|
461
|
+
|
|
462
|
+
This returns an Array which contains the response data, status code and headers.
|
|
463
|
+
|
|
464
|
+
> <Array(<Subscription>, Integer, Hash)> get_subscription_with_http_info(workspace_uuid)
|
|
465
|
+
|
|
466
|
+
```ruby
|
|
467
|
+
begin
|
|
468
|
+
# Get subscription
|
|
469
|
+
data, status_code, headers = api_instance.get_subscription_with_http_info(workspace_uuid)
|
|
470
|
+
p status_code # => 2xx
|
|
471
|
+
p headers # => { ... }
|
|
472
|
+
p data # => <Subscription>
|
|
473
|
+
rescue PostBoost::ApiError => e
|
|
474
|
+
puts "Error when calling SubscriptionsApi->get_subscription_with_http_info: #{e}"
|
|
475
|
+
end
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
### Parameters
|
|
479
|
+
|
|
480
|
+
| Name | Type | Description | Notes |
|
|
481
|
+
| ---- | ---- | ----------- | ----- |
|
|
482
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
483
|
+
|
|
484
|
+
### Return type
|
|
485
|
+
|
|
486
|
+
[**Subscription**](Subscription.md)
|
|
487
|
+
|
|
488
|
+
### Authorization
|
|
489
|
+
|
|
490
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
491
|
+
|
|
492
|
+
### HTTP request headers
|
|
493
|
+
|
|
494
|
+
- **Content-Type**: Not defined
|
|
495
|
+
- **Accept**: application/json
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
## remove_generic_subscription
|
|
499
|
+
|
|
500
|
+
> Object remove_generic_subscription(workspace_uuid)
|
|
501
|
+
|
|
502
|
+
Remove generic subscription
|
|
503
|
+
|
|
504
|
+
### Examples
|
|
505
|
+
|
|
506
|
+
```ruby
|
|
507
|
+
require 'time'
|
|
508
|
+
require 'postboost'
|
|
509
|
+
# setup authorization
|
|
510
|
+
PostBoost.configure do |config|
|
|
511
|
+
# Configure Bearer authorization: bearerAuth
|
|
512
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
api_instance = PostBoost::SubscriptionsApi.new
|
|
516
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
517
|
+
|
|
518
|
+
begin
|
|
519
|
+
# Remove generic subscription
|
|
520
|
+
result = api_instance.remove_generic_subscription(workspace_uuid)
|
|
521
|
+
p result
|
|
522
|
+
rescue PostBoost::ApiError => e
|
|
523
|
+
puts "Error when calling SubscriptionsApi->remove_generic_subscription: #{e}"
|
|
524
|
+
end
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
#### Using the remove_generic_subscription_with_http_info variant
|
|
528
|
+
|
|
529
|
+
This returns an Array which contains the response data, status code and headers.
|
|
530
|
+
|
|
531
|
+
> <Array(Object, Integer, Hash)> remove_generic_subscription_with_http_info(workspace_uuid)
|
|
532
|
+
|
|
533
|
+
```ruby
|
|
534
|
+
begin
|
|
535
|
+
# Remove generic subscription
|
|
536
|
+
data, status_code, headers = api_instance.remove_generic_subscription_with_http_info(workspace_uuid)
|
|
537
|
+
p status_code # => 2xx
|
|
538
|
+
p headers # => { ... }
|
|
539
|
+
p data # => Object
|
|
540
|
+
rescue PostBoost::ApiError => e
|
|
541
|
+
puts "Error when calling SubscriptionsApi->remove_generic_subscription_with_http_info: #{e}"
|
|
542
|
+
end
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
### Parameters
|
|
546
|
+
|
|
547
|
+
| Name | Type | Description | Notes |
|
|
548
|
+
| ---- | ---- | ----------- | ----- |
|
|
549
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
550
|
+
|
|
551
|
+
### Return type
|
|
552
|
+
|
|
553
|
+
**Object**
|
|
554
|
+
|
|
555
|
+
### Authorization
|
|
556
|
+
|
|
557
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
558
|
+
|
|
559
|
+
### HTTP request headers
|
|
560
|
+
|
|
561
|
+
- **Content-Type**: Not defined
|
|
562
|
+
- **Accept**: application/json
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
## resume_subscription
|
|
566
|
+
|
|
567
|
+
> Object resume_subscription(workspace_uuid)
|
|
568
|
+
|
|
569
|
+
Resume subscription
|
|
570
|
+
|
|
571
|
+
### Examples
|
|
572
|
+
|
|
573
|
+
```ruby
|
|
574
|
+
require 'time'
|
|
575
|
+
require 'postboost'
|
|
576
|
+
# setup authorization
|
|
577
|
+
PostBoost.configure do |config|
|
|
578
|
+
# Configure Bearer authorization: bearerAuth
|
|
579
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
api_instance = PostBoost::SubscriptionsApi.new
|
|
583
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
584
|
+
|
|
585
|
+
begin
|
|
586
|
+
# Resume subscription
|
|
587
|
+
result = api_instance.resume_subscription(workspace_uuid)
|
|
588
|
+
p result
|
|
589
|
+
rescue PostBoost::ApiError => e
|
|
590
|
+
puts "Error when calling SubscriptionsApi->resume_subscription: #{e}"
|
|
591
|
+
end
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
#### Using the resume_subscription_with_http_info variant
|
|
595
|
+
|
|
596
|
+
This returns an Array which contains the response data, status code and headers.
|
|
597
|
+
|
|
598
|
+
> <Array(Object, Integer, Hash)> resume_subscription_with_http_info(workspace_uuid)
|
|
599
|
+
|
|
600
|
+
```ruby
|
|
601
|
+
begin
|
|
602
|
+
# Resume subscription
|
|
603
|
+
data, status_code, headers = api_instance.resume_subscription_with_http_info(workspace_uuid)
|
|
604
|
+
p status_code # => 2xx
|
|
605
|
+
p headers # => { ... }
|
|
606
|
+
p data # => Object
|
|
607
|
+
rescue PostBoost::ApiError => e
|
|
608
|
+
puts "Error when calling SubscriptionsApi->resume_subscription_with_http_info: #{e}"
|
|
609
|
+
end
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
### Parameters
|
|
613
|
+
|
|
614
|
+
| Name | Type | Description | Notes |
|
|
615
|
+
| ---- | ---- | ----------- | ----- |
|
|
616
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
617
|
+
|
|
618
|
+
### Return type
|
|
619
|
+
|
|
620
|
+
**Object**
|
|
621
|
+
|
|
622
|
+
### Authorization
|
|
623
|
+
|
|
624
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
625
|
+
|
|
626
|
+
### HTTP request headers
|
|
627
|
+
|
|
628
|
+
- **Content-Type**: Not defined
|
|
629
|
+
- **Accept**: application/json
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
## update_subscription
|
|
633
|
+
|
|
634
|
+
> Object update_subscription(workspace_uuid, subscription_update_input)
|
|
635
|
+
|
|
636
|
+
Update subscription
|
|
637
|
+
|
|
638
|
+
### Examples
|
|
639
|
+
|
|
640
|
+
```ruby
|
|
641
|
+
require 'time'
|
|
642
|
+
require 'postboost'
|
|
643
|
+
# setup authorization
|
|
644
|
+
PostBoost.configure do |config|
|
|
645
|
+
# Configure Bearer authorization: bearerAuth
|
|
646
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
api_instance = PostBoost::SubscriptionsApi.new
|
|
650
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
651
|
+
subscription_update_input = PostBoost::SubscriptionUpdateInput.new({platform_plan_id: 'platform_plan_id_example', status: PostBoost::SubscriptionStatus::ACTIVE}) # SubscriptionUpdateInput |
|
|
652
|
+
|
|
653
|
+
begin
|
|
654
|
+
# Update subscription
|
|
655
|
+
result = api_instance.update_subscription(workspace_uuid, subscription_update_input)
|
|
656
|
+
p result
|
|
657
|
+
rescue PostBoost::ApiError => e
|
|
658
|
+
puts "Error when calling SubscriptionsApi->update_subscription: #{e}"
|
|
659
|
+
end
|
|
660
|
+
```
|
|
661
|
+
|
|
662
|
+
#### Using the update_subscription_with_http_info variant
|
|
663
|
+
|
|
664
|
+
This returns an Array which contains the response data, status code and headers.
|
|
665
|
+
|
|
666
|
+
> <Array(Object, Integer, Hash)> update_subscription_with_http_info(workspace_uuid, subscription_update_input)
|
|
667
|
+
|
|
668
|
+
```ruby
|
|
669
|
+
begin
|
|
670
|
+
# Update subscription
|
|
671
|
+
data, status_code, headers = api_instance.update_subscription_with_http_info(workspace_uuid, subscription_update_input)
|
|
672
|
+
p status_code # => 2xx
|
|
673
|
+
p headers # => { ... }
|
|
674
|
+
p data # => Object
|
|
675
|
+
rescue PostBoost::ApiError => e
|
|
676
|
+
puts "Error when calling SubscriptionsApi->update_subscription_with_http_info: #{e}"
|
|
677
|
+
end
|
|
678
|
+
```
|
|
679
|
+
|
|
680
|
+
### Parameters
|
|
681
|
+
|
|
682
|
+
| Name | Type | Description | Notes |
|
|
683
|
+
| ---- | ---- | ----------- | ----- |
|
|
684
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
685
|
+
| **subscription_update_input** | [**SubscriptionUpdateInput**](SubscriptionUpdateInput.md) | | |
|
|
686
|
+
|
|
687
|
+
### Return type
|
|
688
|
+
|
|
689
|
+
**Object**
|
|
690
|
+
|
|
691
|
+
### Authorization
|
|
692
|
+
|
|
693
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
694
|
+
|
|
695
|
+
### HTTP request headers
|
|
696
|
+
|
|
697
|
+
- **Content-Type**: application/json
|
|
698
|
+
- **Accept**: application/json
|
|
699
|
+
|
data/docs/Tag.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PostBoost::Tag
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **Integer** | | [optional] |
|
|
8
|
+
| **uuid** | **String** | | [optional] |
|
|
9
|
+
| **name** | **String** | | [optional] |
|
|
10
|
+
| **hex_color** | **String** | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'postboost'
|
|
16
|
+
|
|
17
|
+
instance = PostBoost::Tag.new(
|
|
18
|
+
id: null,
|
|
19
|
+
uuid: null,
|
|
20
|
+
name: Campaign 2025,
|
|
21
|
+
hex_color: #3B82F6
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|