Skip to content

Commit 4d6c3a9

Browse files
refactor(spec): implement more reusable components; add descriptions (#21)
Co-authored-by: ubill-ci[bot] <214821999+ubill-ci[bot]@users.noreply.github.com>
1 parent 1dcba28 commit 4d6c3a9

28 files changed

+337
-205
lines changed

.openapi-generator/FILES

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@ configuration.ts
1616
docs/BaseResponse.md
1717
docs/BrandName.md
1818
docs/BrandNamesResponse.md
19-
docs/CreateBrandNamePayload.md
19+
docs/CreateBrandNameRequest.md
2020
docs/CreateBrandNameResponse.md
2121
docs/DeliveryReportItem.md
2222
docs/DeliveryReportResponse.md
2323
docs/SMSBalanceResponse.md
24-
docs/SMSPayload.md
24+
docs/SendSMSRequest.md
2525
docs/SendSMSResponse.md
2626
docs/SmsApi.md
2727
eslint.config.mjs
2828
index.ts
2929
model/base-response.ts
3030
model/brand-name.ts
3131
model/brand-names-response.ts
32-
model/create-brand-name-payload.ts
32+
model/create-brand-name-request.ts
3333
model/create-brand-name-response.ts
3434
model/delivery-report-item.ts
3535
model/delivery-report-response.ts
3636
model/index.ts
37+
model/send-smsrequest.ts
3738
model/send-smsresponse.ts
3839
model/smsbalance-response.ts
39-
model/smspayload.ts
4040
package.json
4141
tsconfig.esm.json
4242
tsconfig.json

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@ All URIs are relative to *https://api.ubill.dev/v1*
5252
Class | Method | HTTP request | Description
5353
------------ | ------------- | ------------- | -------------
5454
*SmsApi* | [**createBrandName**](docs/SmsApi.md#createbrandname) | **POST** /sms/brandNameCreate | Create Brand Name
55-
*SmsApi* | [**getBalance**](docs/SmsApi.md#getbalance) | **GET** /sms/balance | Get SMS Balance
56-
*SmsApi* | [**getBrandNames**](docs/SmsApi.md#getbrandnames) | **GET** /sms/brandNames | Get All Brand Names
5755
*SmsApi* | [**getDeliveryReport**](docs/SmsApi.md#getdeliveryreport) | **GET** /sms/report/{smsID} | Get Delivery Report
58-
*SmsApi* | [**send**](docs/SmsApi.md#send) | **POST** /sms/send | Send SMS
56+
*SmsApi* | [**getSMSBalance**](docs/SmsApi.md#getsmsbalance) | **GET** /sms/balance | Get SMS Balance
57+
*SmsApi* | [**listBrandNames**](docs/SmsApi.md#listbrandnames) | **GET** /sms/brandNames | Get All Brand Names
58+
*SmsApi* | [**sendSMS**](docs/SmsApi.md#sendsms) | **POST** /sms/send | Send SMS
5959

6060

6161
### Documentation For Models
6262

6363
- [BaseResponse](docs/BaseResponse.md)
6464
- [BrandName](docs/BrandName.md)
6565
- [BrandNamesResponse](docs/BrandNamesResponse.md)
66-
- [CreateBrandNamePayload](docs/CreateBrandNamePayload.md)
66+
- [CreateBrandNameRequest](docs/CreateBrandNameRequest.md)
6767
- [CreateBrandNameResponse](docs/CreateBrandNameResponse.md)
6868
- [DeliveryReportItem](docs/DeliveryReportItem.md)
6969
- [DeliveryReportResponse](docs/DeliveryReportResponse.md)
7070
- [SMSBalanceResponse](docs/SMSBalanceResponse.md)
71-
- [SMSPayload](docs/SMSPayload.md)
71+
- [SendSMSRequest](docs/SendSMSRequest.md)
7272
- [SendSMSResponse](docs/SendSMSResponse.md)
7373

7474

@@ -77,8 +77,8 @@ Class | Method | HTTP request | Description
7777

7878

7979
Authentication schemes defined for the API:
80-
<a id="api_key"></a>
81-
### api_key
80+
<a id="apiKey"></a>
81+
### apiKey
8282

8383
- **Type**: API key
8484
- **API key parameter name**: key

api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* UBill API
55
* UBill API - provides programmatic access to our resources. You will be able to integrate our service into your system and communicate with clients easily.
66
*
7-
* The version of the OpenAPI document: 2.1.7
7+
* The version of the OpenAPI document: 2.1.8
88
* Contact: [email protected]
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

api/sms-api.ts

Lines changed: 114 additions & 110 deletions
Large diffs are not rendered by default.

base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* UBill API
55
* UBill API - provides programmatic access to our resources. You will be able to integrate our service into your system and communicate with clients easily.
66
*
7-
* The version of the OpenAPI document: 2.1.7
7+
* The version of the OpenAPI document: 2.1.8
88
* Contact: [email protected]
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* UBill API
55
* UBill API - provides programmatic access to our resources. You will be able to integrate our service into your system and communicate with clients easily.
66
*
7-
* The version of the OpenAPI document: 2.1.7
7+
* The version of the OpenAPI document: 2.1.8
88
* Contact: [email protected]
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* UBill API
55
* UBill API - provides programmatic access to our resources. You will be able to integrate our service into your system and communicate with clients easily.
66
*
7-
* The version of the OpenAPI document: 2.1.7
7+
* The version of the OpenAPI document: 2.1.8
88
* Contact: [email protected]
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

docs/BrandName.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# BrandName
22

3+
SMS brand name information
34

45
## Properties
56

67
Name | Type | Description | Notes
78
------------ | ------------- | ------------- | -------------
8-
**id** | **string** | | [default to undefined]
9-
**name** | **string** | | [default to undefined]
10-
**authorized** | **string** | | [default to undefined]
11-
**createdAt** | **string** | | [default to undefined]
9+
**id** | **string** | Brand identifier | [default to undefined]
10+
**name** | **string** | Brand name used as SMS sender | [default to undefined]
11+
**authorized** | **string** | Authorization status | [default to undefined]
12+
**createdAt** | **string** | Brand creation timestamp | [default to undefined]
1213

1314
## Example
1415

docs/CreateBrandNameRequest.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# CreateBrandNameRequest
2+
3+
Request payload for creating a brand name
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**brandName** | **string** | Brand name to create | [default to undefined]
10+
11+
## Example
12+
13+
```typescript
14+
import { CreateBrandNameRequest } from '@ubill/sdk';
15+
16+
const instance: CreateBrandNameRequest = {
17+
brandName,
18+
};
19+
```
20+
21+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/CreateBrandNameResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**statusID** | **number** | Response status code | [default to undefined]
99
**message** | **string** | Human-readable response message | [optional] [default to undefined]
10-
**brandID** | **number** | Brand identifier | [optional] [default to undefined]
10+
**brandID** | **number** | Brand identifier as integer | [optional] [default to undefined]
1111

1212
## Example
1313

0 commit comments

Comments
 (0)