Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2494,6 +2494,14 @@ components:
description: Optional error code, applicable only when type is `message-failed`.
nullable: true
example: 4405
carrierName:
type: string
description: >-
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.
nullable: true
example: AT&T
required:
- time
- type
Expand Down Expand Up @@ -5849,8 +5857,6 @@ components:
- VERIFIED
- UNVERIFIED
- PENDING
- PARTIALLY_VERIFIED
- INVALID_STATUS
example: VERIFIED
sharedSecretKey:
description: >-
Expand Down
2 changes: 2 additions & 0 deletions docs/MessageCallback.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**description** | **string** | A detailed description of the event described by the callback. | [default to undefined]
**message** | [**MessageCallbackMessage**](MessageCallbackMessage.md) | | [default to undefined]
**errorCode** | **number** | Optional error code, applicable only when type is `message-failed`. | [optional] [default to undefined]
**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]

## Example

Expand All @@ -25,6 +26,7 @@ const instance: MessageCallback = {
description,
message,
errorCode,
carrierName,
};
```

Expand Down
4 changes: 0 additions & 4 deletions docs/TfvStatusEnum.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,4 @@

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

* `PartiallyVerified` (value: `'PARTIALLY_VERIFIED'`)

* `InvalidStatus` (value: `'INVALID_STATUS'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
6 changes: 6 additions & 0 deletions models/message-callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ export interface MessageCallback {
* @memberof MessageCallback
*/
'errorCode'?: number | null;
/**
* 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.
* @type {string}
* @memberof MessageCallback
*/
'carrierName'?: string | null;
}


Expand Down
4 changes: 1 addition & 3 deletions models/tfv-status-enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
export const TfvStatusEnum = {
Verified: 'VERIFIED',
Unverified: 'UNVERIFIED',
Pending: 'PENDING',
PartiallyVerified: 'PARTIALLY_VERIFIED',
InvalidStatus: 'INVALID_STATUS'
Pending: 'PENDING'
} as const;

export type TfvStatusEnum = typeof TfvStatusEnum[keyof typeof TfvStatusEnum];
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/models/tfv-status-enum.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ describe('TfvStatusEnum', () => {
expect(TfvStatusEnum.Verified).toBe('VERIFIED');
expect(TfvStatusEnum.Unverified).toBe('UNVERIFIED');
expect(TfvStatusEnum.Pending).toBe('PENDING');
expect(TfvStatusEnum.PartiallyVerified).toBe('PARTIALLY_VERIFIED');
expect(TfvStatusEnum.InvalidStatus).toBe('INVALID_STATUS');
});
});