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,34 @@
|
|
|
1
|
+
# PostBoost::ReceiptInput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **workspace_uuid** | **String** | | |
|
|
8
|
+
| **transaction_id** | **String** | | |
|
|
9
|
+
| **invoice_number** | **String** | | |
|
|
10
|
+
| **amount** | **Float** | | |
|
|
11
|
+
| **tax** | **Float** | | |
|
|
12
|
+
| **currency** | **String** | | |
|
|
13
|
+
| **description** | **String** | | [optional] |
|
|
14
|
+
| **receipt_url** | **String** | | [optional] |
|
|
15
|
+
| **paid_at** | **Date** | | |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'postboost'
|
|
21
|
+
|
|
22
|
+
instance = PostBoost::ReceiptInput.new(
|
|
23
|
+
workspace_uuid: null,
|
|
24
|
+
transaction_id: null,
|
|
25
|
+
invoice_number: null,
|
|
26
|
+
amount: null,
|
|
27
|
+
tax: null,
|
|
28
|
+
currency: USD,
|
|
29
|
+
description: null,
|
|
30
|
+
receipt_url: null,
|
|
31
|
+
paid_at: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# PostBoost::ReceiptUpdateInput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **transaction_id** | **String** | | |
|
|
8
|
+
| **invoice_number** | **String** | | |
|
|
9
|
+
| **amount** | **Float** | | |
|
|
10
|
+
| **tax** | **Float** | | [optional] |
|
|
11
|
+
| **currency** | **String** | | |
|
|
12
|
+
| **description** | **String** | | [optional] |
|
|
13
|
+
| **receipt_url** | **String** | | [optional] |
|
|
14
|
+
| **paid_at** | **Date** | | |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'postboost'
|
|
20
|
+
|
|
21
|
+
instance = PostBoost::ReceiptUpdateInput.new(
|
|
22
|
+
transaction_id: null,
|
|
23
|
+
invoice_number: null,
|
|
24
|
+
amount: null,
|
|
25
|
+
tax: null,
|
|
26
|
+
currency: null,
|
|
27
|
+
description: null,
|
|
28
|
+
receipt_url: null,
|
|
29
|
+
paid_at: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
data/docs/ReceiptsApi.md
ADDED
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
# PostBoost::ReceiptsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://postboost.co/app/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create_receipt**](ReceiptsApi.md#create_receipt) | **POST** /panel/receipts | Create receipt |
|
|
8
|
+
| [**delete_receipt**](ReceiptsApi.md#delete_receipt) | **DELETE** /panel/receipts/{receiptUuid} | Delete receipt |
|
|
9
|
+
| [**delete_receipts_bulk**](ReceiptsApi.md#delete_receipts_bulk) | **DELETE** /panel/receipts | Delete receipts (bulk) |
|
|
10
|
+
| [**get_receipt**](ReceiptsApi.md#get_receipt) | **GET** /panel/receipts/{receiptUuid} | Get receipt |
|
|
11
|
+
| [**list_receipts**](ReceiptsApi.md#list_receipts) | **GET** /panel/receipts | List receipts |
|
|
12
|
+
| [**update_receipt**](ReceiptsApi.md#update_receipt) | **PUT** /panel/receipts/{receiptUuid} | Update receipt |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## create_receipt
|
|
16
|
+
|
|
17
|
+
> <Receipt> create_receipt(receipt_input)
|
|
18
|
+
|
|
19
|
+
Create receipt
|
|
20
|
+
|
|
21
|
+
### Examples
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require 'time'
|
|
25
|
+
require 'postboost'
|
|
26
|
+
# setup authorization
|
|
27
|
+
PostBoost.configure do |config|
|
|
28
|
+
# Configure Bearer authorization: bearerAuth
|
|
29
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
api_instance = PostBoost::ReceiptsApi.new
|
|
33
|
+
receipt_input = PostBoost::ReceiptInput.new({workspace_uuid: 'workspace_uuid_example', transaction_id: 'transaction_id_example', invoice_number: 'invoice_number_example', amount: 3.56, tax: 3.56, currency: 'USD', paid_at: Date.today}) # ReceiptInput |
|
|
34
|
+
|
|
35
|
+
begin
|
|
36
|
+
# Create receipt
|
|
37
|
+
result = api_instance.create_receipt(receipt_input)
|
|
38
|
+
p result
|
|
39
|
+
rescue PostBoost::ApiError => e
|
|
40
|
+
puts "Error when calling ReceiptsApi->create_receipt: #{e}"
|
|
41
|
+
end
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
#### Using the create_receipt_with_http_info variant
|
|
45
|
+
|
|
46
|
+
This returns an Array which contains the response data, status code and headers.
|
|
47
|
+
|
|
48
|
+
> <Array(<Receipt>, Integer, Hash)> create_receipt_with_http_info(receipt_input)
|
|
49
|
+
|
|
50
|
+
```ruby
|
|
51
|
+
begin
|
|
52
|
+
# Create receipt
|
|
53
|
+
data, status_code, headers = api_instance.create_receipt_with_http_info(receipt_input)
|
|
54
|
+
p status_code # => 2xx
|
|
55
|
+
p headers # => { ... }
|
|
56
|
+
p data # => <Receipt>
|
|
57
|
+
rescue PostBoost::ApiError => e
|
|
58
|
+
puts "Error when calling ReceiptsApi->create_receipt_with_http_info: #{e}"
|
|
59
|
+
end
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Parameters
|
|
63
|
+
|
|
64
|
+
| Name | Type | Description | Notes |
|
|
65
|
+
| ---- | ---- | ----------- | ----- |
|
|
66
|
+
| **receipt_input** | [**ReceiptInput**](ReceiptInput.md) | | |
|
|
67
|
+
|
|
68
|
+
### Return type
|
|
69
|
+
|
|
70
|
+
[**Receipt**](Receipt.md)
|
|
71
|
+
|
|
72
|
+
### Authorization
|
|
73
|
+
|
|
74
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
75
|
+
|
|
76
|
+
### HTTP request headers
|
|
77
|
+
|
|
78
|
+
- **Content-Type**: application/json
|
|
79
|
+
- **Accept**: application/json
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## delete_receipt
|
|
83
|
+
|
|
84
|
+
> Object delete_receipt(receipt_uuid)
|
|
85
|
+
|
|
86
|
+
Delete receipt
|
|
87
|
+
|
|
88
|
+
### Examples
|
|
89
|
+
|
|
90
|
+
```ruby
|
|
91
|
+
require 'time'
|
|
92
|
+
require 'postboost'
|
|
93
|
+
# setup authorization
|
|
94
|
+
PostBoost.configure do |config|
|
|
95
|
+
# Configure Bearer authorization: bearerAuth
|
|
96
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
api_instance = PostBoost::ReceiptsApi.new
|
|
100
|
+
receipt_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the receipt.
|
|
101
|
+
|
|
102
|
+
begin
|
|
103
|
+
# Delete receipt
|
|
104
|
+
result = api_instance.delete_receipt(receipt_uuid)
|
|
105
|
+
p result
|
|
106
|
+
rescue PostBoost::ApiError => e
|
|
107
|
+
puts "Error when calling ReceiptsApi->delete_receipt: #{e}"
|
|
108
|
+
end
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
#### Using the delete_receipt_with_http_info variant
|
|
112
|
+
|
|
113
|
+
This returns an Array which contains the response data, status code and headers.
|
|
114
|
+
|
|
115
|
+
> <Array(Object, Integer, Hash)> delete_receipt_with_http_info(receipt_uuid)
|
|
116
|
+
|
|
117
|
+
```ruby
|
|
118
|
+
begin
|
|
119
|
+
# Delete receipt
|
|
120
|
+
data, status_code, headers = api_instance.delete_receipt_with_http_info(receipt_uuid)
|
|
121
|
+
p status_code # => 2xx
|
|
122
|
+
p headers # => { ... }
|
|
123
|
+
p data # => Object
|
|
124
|
+
rescue PostBoost::ApiError => e
|
|
125
|
+
puts "Error when calling ReceiptsApi->delete_receipt_with_http_info: #{e}"
|
|
126
|
+
end
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Parameters
|
|
130
|
+
|
|
131
|
+
| Name | Type | Description | Notes |
|
|
132
|
+
| ---- | ---- | ----------- | ----- |
|
|
133
|
+
| **receipt_uuid** | **String** | UUID of the receipt. | |
|
|
134
|
+
|
|
135
|
+
### Return type
|
|
136
|
+
|
|
137
|
+
**Object**
|
|
138
|
+
|
|
139
|
+
### Authorization
|
|
140
|
+
|
|
141
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
142
|
+
|
|
143
|
+
### HTTP request headers
|
|
144
|
+
|
|
145
|
+
- **Content-Type**: Not defined
|
|
146
|
+
- **Accept**: application/json
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
## delete_receipts_bulk
|
|
150
|
+
|
|
151
|
+
> Object delete_receipts_bulk(delete_receipts_bulk_request)
|
|
152
|
+
|
|
153
|
+
Delete receipts (bulk)
|
|
154
|
+
|
|
155
|
+
### Examples
|
|
156
|
+
|
|
157
|
+
```ruby
|
|
158
|
+
require 'time'
|
|
159
|
+
require 'postboost'
|
|
160
|
+
# setup authorization
|
|
161
|
+
PostBoost.configure do |config|
|
|
162
|
+
# Configure Bearer authorization: bearerAuth
|
|
163
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
api_instance = PostBoost::ReceiptsApi.new
|
|
167
|
+
delete_receipts_bulk_request = PostBoost::DeleteReceiptsBulkRequest.new({receipts: ['receipts_example']}) # DeleteReceiptsBulkRequest |
|
|
168
|
+
|
|
169
|
+
begin
|
|
170
|
+
# Delete receipts (bulk)
|
|
171
|
+
result = api_instance.delete_receipts_bulk(delete_receipts_bulk_request)
|
|
172
|
+
p result
|
|
173
|
+
rescue PostBoost::ApiError => e
|
|
174
|
+
puts "Error when calling ReceiptsApi->delete_receipts_bulk: #{e}"
|
|
175
|
+
end
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
#### Using the delete_receipts_bulk_with_http_info variant
|
|
179
|
+
|
|
180
|
+
This returns an Array which contains the response data, status code and headers.
|
|
181
|
+
|
|
182
|
+
> <Array(Object, Integer, Hash)> delete_receipts_bulk_with_http_info(delete_receipts_bulk_request)
|
|
183
|
+
|
|
184
|
+
```ruby
|
|
185
|
+
begin
|
|
186
|
+
# Delete receipts (bulk)
|
|
187
|
+
data, status_code, headers = api_instance.delete_receipts_bulk_with_http_info(delete_receipts_bulk_request)
|
|
188
|
+
p status_code # => 2xx
|
|
189
|
+
p headers # => { ... }
|
|
190
|
+
p data # => Object
|
|
191
|
+
rescue PostBoost::ApiError => e
|
|
192
|
+
puts "Error when calling ReceiptsApi->delete_receipts_bulk_with_http_info: #{e}"
|
|
193
|
+
end
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Parameters
|
|
197
|
+
|
|
198
|
+
| Name | Type | Description | Notes |
|
|
199
|
+
| ---- | ---- | ----------- | ----- |
|
|
200
|
+
| **delete_receipts_bulk_request** | [**DeleteReceiptsBulkRequest**](DeleteReceiptsBulkRequest.md) | | |
|
|
201
|
+
|
|
202
|
+
### Return type
|
|
203
|
+
|
|
204
|
+
**Object**
|
|
205
|
+
|
|
206
|
+
### Authorization
|
|
207
|
+
|
|
208
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
209
|
+
|
|
210
|
+
### HTTP request headers
|
|
211
|
+
|
|
212
|
+
- **Content-Type**: application/json
|
|
213
|
+
- **Accept**: application/json
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
## get_receipt
|
|
217
|
+
|
|
218
|
+
> <Receipt> get_receipt(receipt_uuid)
|
|
219
|
+
|
|
220
|
+
Get receipt
|
|
221
|
+
|
|
222
|
+
### Examples
|
|
223
|
+
|
|
224
|
+
```ruby
|
|
225
|
+
require 'time'
|
|
226
|
+
require 'postboost'
|
|
227
|
+
# setup authorization
|
|
228
|
+
PostBoost.configure do |config|
|
|
229
|
+
# Configure Bearer authorization: bearerAuth
|
|
230
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
api_instance = PostBoost::ReceiptsApi.new
|
|
234
|
+
receipt_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the receipt.
|
|
235
|
+
|
|
236
|
+
begin
|
|
237
|
+
# Get receipt
|
|
238
|
+
result = api_instance.get_receipt(receipt_uuid)
|
|
239
|
+
p result
|
|
240
|
+
rescue PostBoost::ApiError => e
|
|
241
|
+
puts "Error when calling ReceiptsApi->get_receipt: #{e}"
|
|
242
|
+
end
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
#### Using the get_receipt_with_http_info variant
|
|
246
|
+
|
|
247
|
+
This returns an Array which contains the response data, status code and headers.
|
|
248
|
+
|
|
249
|
+
> <Array(<Receipt>, Integer, Hash)> get_receipt_with_http_info(receipt_uuid)
|
|
250
|
+
|
|
251
|
+
```ruby
|
|
252
|
+
begin
|
|
253
|
+
# Get receipt
|
|
254
|
+
data, status_code, headers = api_instance.get_receipt_with_http_info(receipt_uuid)
|
|
255
|
+
p status_code # => 2xx
|
|
256
|
+
p headers # => { ... }
|
|
257
|
+
p data # => <Receipt>
|
|
258
|
+
rescue PostBoost::ApiError => e
|
|
259
|
+
puts "Error when calling ReceiptsApi->get_receipt_with_http_info: #{e}"
|
|
260
|
+
end
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### Parameters
|
|
264
|
+
|
|
265
|
+
| Name | Type | Description | Notes |
|
|
266
|
+
| ---- | ---- | ----------- | ----- |
|
|
267
|
+
| **receipt_uuid** | **String** | UUID of the receipt. | |
|
|
268
|
+
|
|
269
|
+
### Return type
|
|
270
|
+
|
|
271
|
+
[**Receipt**](Receipt.md)
|
|
272
|
+
|
|
273
|
+
### Authorization
|
|
274
|
+
|
|
275
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
276
|
+
|
|
277
|
+
### HTTP request headers
|
|
278
|
+
|
|
279
|
+
- **Content-Type**: Not defined
|
|
280
|
+
- **Accept**: application/json
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
## list_receipts
|
|
284
|
+
|
|
285
|
+
> <ListReceipts200Response> list_receipts(opts)
|
|
286
|
+
|
|
287
|
+
List receipts
|
|
288
|
+
|
|
289
|
+
### Examples
|
|
290
|
+
|
|
291
|
+
```ruby
|
|
292
|
+
require 'time'
|
|
293
|
+
require 'postboost'
|
|
294
|
+
# setup authorization
|
|
295
|
+
PostBoost.configure do |config|
|
|
296
|
+
# Configure Bearer authorization: bearerAuth
|
|
297
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
api_instance = PostBoost::ReceiptsApi.new
|
|
301
|
+
opts = {
|
|
302
|
+
workspace_uuid: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String |
|
|
303
|
+
invoice_number: 'invoice_number_example' # String |
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
begin
|
|
307
|
+
# List receipts
|
|
308
|
+
result = api_instance.list_receipts(opts)
|
|
309
|
+
p result
|
|
310
|
+
rescue PostBoost::ApiError => e
|
|
311
|
+
puts "Error when calling ReceiptsApi->list_receipts: #{e}"
|
|
312
|
+
end
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
#### Using the list_receipts_with_http_info variant
|
|
316
|
+
|
|
317
|
+
This returns an Array which contains the response data, status code and headers.
|
|
318
|
+
|
|
319
|
+
> <Array(<ListReceipts200Response>, Integer, Hash)> list_receipts_with_http_info(opts)
|
|
320
|
+
|
|
321
|
+
```ruby
|
|
322
|
+
begin
|
|
323
|
+
# List receipts
|
|
324
|
+
data, status_code, headers = api_instance.list_receipts_with_http_info(opts)
|
|
325
|
+
p status_code # => 2xx
|
|
326
|
+
p headers # => { ... }
|
|
327
|
+
p data # => <ListReceipts200Response>
|
|
328
|
+
rescue PostBoost::ApiError => e
|
|
329
|
+
puts "Error when calling ReceiptsApi->list_receipts_with_http_info: #{e}"
|
|
330
|
+
end
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### Parameters
|
|
334
|
+
|
|
335
|
+
| Name | Type | Description | Notes |
|
|
336
|
+
| ---- | ---- | ----------- | ----- |
|
|
337
|
+
| **workspace_uuid** | **String** | | [optional] |
|
|
338
|
+
| **invoice_number** | **String** | | [optional] |
|
|
339
|
+
|
|
340
|
+
### Return type
|
|
341
|
+
|
|
342
|
+
[**ListReceipts200Response**](ListReceipts200Response.md)
|
|
343
|
+
|
|
344
|
+
### Authorization
|
|
345
|
+
|
|
346
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
347
|
+
|
|
348
|
+
### HTTP request headers
|
|
349
|
+
|
|
350
|
+
- **Content-Type**: Not defined
|
|
351
|
+
- **Accept**: application/json
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
## update_receipt
|
|
355
|
+
|
|
356
|
+
> Object update_receipt(receipt_uuid, receipt_update_input)
|
|
357
|
+
|
|
358
|
+
Update receipt
|
|
359
|
+
|
|
360
|
+
### Examples
|
|
361
|
+
|
|
362
|
+
```ruby
|
|
363
|
+
require 'time'
|
|
364
|
+
require 'postboost'
|
|
365
|
+
# setup authorization
|
|
366
|
+
PostBoost.configure do |config|
|
|
367
|
+
# Configure Bearer authorization: bearerAuth
|
|
368
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
api_instance = PostBoost::ReceiptsApi.new
|
|
372
|
+
receipt_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the receipt.
|
|
373
|
+
receipt_update_input = PostBoost::ReceiptUpdateInput.new({transaction_id: 'transaction_id_example', invoice_number: 'invoice_number_example', amount: 3.56, currency: 'currency_example', paid_at: Date.today}) # ReceiptUpdateInput |
|
|
374
|
+
|
|
375
|
+
begin
|
|
376
|
+
# Update receipt
|
|
377
|
+
result = api_instance.update_receipt(receipt_uuid, receipt_update_input)
|
|
378
|
+
p result
|
|
379
|
+
rescue PostBoost::ApiError => e
|
|
380
|
+
puts "Error when calling ReceiptsApi->update_receipt: #{e}"
|
|
381
|
+
end
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
#### Using the update_receipt_with_http_info variant
|
|
385
|
+
|
|
386
|
+
This returns an Array which contains the response data, status code and headers.
|
|
387
|
+
|
|
388
|
+
> <Array(Object, Integer, Hash)> update_receipt_with_http_info(receipt_uuid, receipt_update_input)
|
|
389
|
+
|
|
390
|
+
```ruby
|
|
391
|
+
begin
|
|
392
|
+
# Update receipt
|
|
393
|
+
data, status_code, headers = api_instance.update_receipt_with_http_info(receipt_uuid, receipt_update_input)
|
|
394
|
+
p status_code # => 2xx
|
|
395
|
+
p headers # => { ... }
|
|
396
|
+
p data # => Object
|
|
397
|
+
rescue PostBoost::ApiError => e
|
|
398
|
+
puts "Error when calling ReceiptsApi->update_receipt_with_http_info: #{e}"
|
|
399
|
+
end
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
### Parameters
|
|
403
|
+
|
|
404
|
+
| Name | Type | Description | Notes |
|
|
405
|
+
| ---- | ---- | ----------- | ----- |
|
|
406
|
+
| **receipt_uuid** | **String** | UUID of the receipt. | |
|
|
407
|
+
| **receipt_update_input** | [**ReceiptUpdateInput**](ReceiptUpdateInput.md) | | |
|
|
408
|
+
|
|
409
|
+
### Return type
|
|
410
|
+
|
|
411
|
+
**Object**
|
|
412
|
+
|
|
413
|
+
### Authorization
|
|
414
|
+
|
|
415
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
416
|
+
|
|
417
|
+
### HTTP request headers
|
|
418
|
+
|
|
419
|
+
- **Content-Type**: application/json
|
|
420
|
+
- **Accept**: application/json
|
|
421
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# PostBoost::RemoveUserFromWorkspaceRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **user_id** | **Integer** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'postboost'
|
|
13
|
+
|
|
14
|
+
instance = PostBoost::RemoveUserFromWorkspaceRequest.new(
|
|
15
|
+
user_id: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# PostBoost::SchedulePostRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **post_now** | **Boolean** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'postboost'
|
|
13
|
+
|
|
14
|
+
instance = PostBoost::SchedulePostRequest.new(
|
|
15
|
+
post_now: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# PostBoost::ScheduleResult
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **scheduled_at** | **Time** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'postboost'
|
|
14
|
+
|
|
15
|
+
instance = PostBoost::ScheduleResult.new(
|
|
16
|
+
success: null,
|
|
17
|
+
scheduled_at: 2025-06-01T10:00:00Z
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# PostBoost::Subscription
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | | [optional] |
|
|
8
|
+
| **platform_subscription_id** | **String** | | [optional] |
|
|
9
|
+
| **platform_plan_id** | **String** | | [optional] |
|
|
10
|
+
| **status** | [**SubscriptionStatus**](SubscriptionStatus.md) | | [optional] |
|
|
11
|
+
| **recurring** | **Boolean** | | [optional] |
|
|
12
|
+
| **trial_ends_at** | **Time** | | [optional] |
|
|
13
|
+
| **paused_from** | **Time** | | [optional] |
|
|
14
|
+
| **ends_at** | **Time** | | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'postboost'
|
|
20
|
+
|
|
21
|
+
instance = PostBoost::Subscription.new(
|
|
22
|
+
name: null,
|
|
23
|
+
platform_subscription_id: null,
|
|
24
|
+
platform_plan_id: null,
|
|
25
|
+
status: null,
|
|
26
|
+
recurring: null,
|
|
27
|
+
trial_ends_at: null,
|
|
28
|
+
paused_from: null,
|
|
29
|
+
ends_at: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PostBoost::SubscriptionInput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **platform_subscription_id** | **String** | | |
|
|
8
|
+
| **platform_plan_id** | **String** | | |
|
|
9
|
+
| **status** | [**SubscriptionStatus**](SubscriptionStatus.md) | | |
|
|
10
|
+
| **trial_ends_at** | **Time** | Required when status is `trialing`. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'postboost'
|
|
16
|
+
|
|
17
|
+
instance = PostBoost::SubscriptionInput.new(
|
|
18
|
+
platform_subscription_id: null,
|
|
19
|
+
platform_plan_id: null,
|
|
20
|
+
status: null,
|
|
21
|
+
trial_ends_at: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PostBoost::SubscriptionUpdateInput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **platform_plan_id** | **String** | | |
|
|
8
|
+
| **status** | [**SubscriptionStatus**](SubscriptionStatus.md) | | |
|
|
9
|
+
| **trial_ends_at** | **Time** | Required when status is `trialing`. | [optional] |
|
|
10
|
+
| **paused_from** | **Time** | Required when status is `paused`. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'postboost'
|
|
16
|
+
|
|
17
|
+
instance = PostBoost::SubscriptionUpdateInput.new(
|
|
18
|
+
platform_plan_id: null,
|
|
19
|
+
status: null,
|
|
20
|
+
trial_ends_at: null,
|
|
21
|
+
paused_from: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|