Skip to content

Commit 13f8dca

Browse files
band-swi-release-engineering[bot]DX-Bandwidthckoegel
authored
SWI-7820 Update SDK Based on Recent Spec Changes (#73)
* Generate SDK with OpenAPI Generator Version * fix with 7.13 * update enum test --------- Co-authored-by: DX-Bandwidth <[email protected]> Co-authored-by: ckoegel <[email protected]>
1 parent 24e0968 commit 13f8dca

File tree

6 files changed

+17
-11
lines changed

6 files changed

+17
-11
lines changed

bandwidth.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,6 +2494,14 @@ components:
24942494
description: Optional error code, applicable only when type is `message-failed`.
24952495
nullable: true
24962496
example: 4405
2497+
carrierName:
2498+
type: string
2499+
description: >-
2500+
The name of the Authorized Message Provider (AMP) that handled this
2501+
message. In the US, this is the carrier that the message was sent
2502+
to.
2503+
nullable: true
2504+
example: AT&T
24972505
required:
24982506
- time
24992507
- type
@@ -5849,8 +5857,6 @@ components:
58495857
- VERIFIED
58505858
- UNVERIFIED
58515859
- PENDING
5852-
- PARTIALLY_VERIFIED
5853-
- INVALID_STATUS
58545860
example: VERIFIED
58555861
sharedSecretKey:
58565862
description: >-

docs/MessageCallback.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**description** | **string** | A detailed description of the event described by the callback. | [default to undefined]
1313
**message** | [**MessageCallbackMessage**](MessageCallbackMessage.md) | | [default to undefined]
1414
**errorCode** | **number** | Optional error code, applicable only when type is &#x60;message-failed&#x60;. | [optional] [default to undefined]
15+
**carrierName** | **string** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. | [optional] [default to undefined]
1516

1617
## Example
1718

@@ -25,6 +26,7 @@ const instance: MessageCallback = {
2526
description,
2627
message,
2728
errorCode,
29+
carrierName,
2830
};
2931
```
3032

docs/TfvStatusEnum.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,4 @@
99

1010
* `Pending` (value: `'PENDING'`)
1111

12-
* `PartiallyVerified` (value: `'PARTIALLY_VERIFIED'`)
13-
14-
* `InvalidStatus` (value: `'INVALID_STATUS'`)
15-
1612
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

models/message-callback.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ export interface MessageCallback {
6262
* @memberof MessageCallback
6363
*/
6464
'errorCode'?: number | null;
65+
/**
66+
* The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to.
67+
* @type {string}
68+
* @memberof MessageCallback
69+
*/
70+
'carrierName'?: string | null;
6571
}
6672

6773

models/tfv-status-enum.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323
export const TfvStatusEnum = {
2424
Verified: 'VERIFIED',
2525
Unverified: 'UNVERIFIED',
26-
Pending: 'PENDING',
27-
PartiallyVerified: 'PARTIALLY_VERIFIED',
28-
InvalidStatus: 'INVALID_STATUS'
26+
Pending: 'PENDING'
2927
} as const;
3028

3129
export type TfvStatusEnum = typeof TfvStatusEnum[keyof typeof TfvStatusEnum];

tests/unit/models/tfv-status-enum.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@ describe('TfvStatusEnum', () => {
55
expect(TfvStatusEnum.Verified).toBe('VERIFIED');
66
expect(TfvStatusEnum.Unverified).toBe('UNVERIFIED');
77
expect(TfvStatusEnum.Pending).toBe('PENDING');
8-
expect(TfvStatusEnum.PartiallyVerified).toBe('PARTIALLY_VERIFIED');
9-
expect(TfvStatusEnum.InvalidStatus).toBe('INVALID_STATUS');
108
});
119
});

0 commit comments

Comments
 (0)