diff --git a/bandwidth.yml b/bandwidth.yml index e41dd6a..e180a94 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -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 @@ -5849,8 +5857,6 @@ components: - VERIFIED - UNVERIFIED - PENDING - - PARTIALLY_VERIFIED - - INVALID_STATUS example: VERIFIED sharedSecretKey: description: >- diff --git a/docs/MessageCallback.md b/docs/MessageCallback.md index e00c46a..d479bd5 100644 --- a/docs/MessageCallback.md +++ b/docs/MessageCallback.md @@ -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 @@ -25,6 +26,7 @@ const instance: MessageCallback = { description, message, errorCode, + carrierName, }; ``` diff --git a/docs/TfvStatusEnum.md b/docs/TfvStatusEnum.md index feb7bd9..fb5f7e7 100644 --- a/docs/TfvStatusEnum.md +++ b/docs/TfvStatusEnum.md @@ -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) diff --git a/models/message-callback.ts b/models/message-callback.ts index d2b4a46..1d03e13 100644 --- a/models/message-callback.ts +++ b/models/message-callback.ts @@ -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; } diff --git a/models/tfv-status-enum.ts b/models/tfv-status-enum.ts index 653ae35..584e4ab 100644 --- a/models/tfv-status-enum.ts +++ b/models/tfv-status-enum.ts @@ -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]; diff --git a/tests/unit/models/tfv-status-enum.test.ts b/tests/unit/models/tfv-status-enum.test.ts index 26274aa..b74122b 100644 --- a/tests/unit/models/tfv-status-enum.test.ts +++ b/tests/unit/models/tfv-status-enum.test.ts @@ -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'); }); });