diff --git a/api/openapi.yaml b/api/openapi.yaml index 5aa7b0b3..55486dc3 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -6327,7 +6327,7 @@ components: latestMessageDeliveryStatusDate: 2025-05-18 - phoneNumber: "+10072904498" countryCodeA3: USA - lineType: FIXED + lineType: MOBILE voiceProvider: VERIZON latestMessageDeliveryStatus: DEACTIVATED initialMessageDeliveryStatusDate: 2025-09-05 @@ -6341,6 +6341,14 @@ components: deactivationDate: 2025-09-29 01:23:00 deactivationEvent: DEACTIVATED latestMessageDeliveryStatus: UNKNOWN + - phoneNumber: "+10072904500" + lineType: FIXED + countryCodeA3: USA + voiceProvider: VERIZON + deactivationReporter: Verizon Wireless + deactivationDate: 2025-09-29 01:23:00 + deactivationEvent: DEACTIVATED + latestMessageDeliveryStatus: NOT_ENABLED errors: [] badRequestExample: summary: Example Bad Request Error @@ -8363,15 +8371,17 @@ components: type: string media: example: - contentLength: 0 + contentLength: 1024 content: content - mediaName: mediaName + mediaName: image.png properties: content: type: string contentLength: + example: 1024 type: integer mediaName: + example: image.png type: string title: Media type: object @@ -9569,6 +9579,7 @@ components: - `inboundCallback` indicates an inbound MO message or a multichannel message client's response to a suggestion or location request. discriminator: mapping: + message-sending: "#/components/schemas/statusCallback" message-sent: "#/components/schemas/statusCallback" message-delivered: "#/components/schemas/statusCallback" message-failed: "#/components/schemas/statusCallback" @@ -13297,10 +13308,12 @@ components: - ACTIVE: A message was successfully sent to the number (delivery code 0). - DEACTIVATED: A message was not delivered to a number (delivery code 720) - UNKNOWN: Bandwidth cannot find an delivery status entry for the number. + - NOT_ENABLED: The phone number is not enabled for messaging, so there is no delivery status information. enum: - ACTIVE - DEACTIVATED - UNKNOWN + - NOT_ENABLED type: string lineTypeEnum: enum: @@ -13714,24 +13727,31 @@ components: privacyPolicyUrl: description: The Toll-Free Verification request privacy policy URL. example: http://your-company.com/privacyPolicy + maxLength: 500 type: string termsAndConditionsUrl: description: The Toll-Free Verification request terms and conditions policy URL. example: http://your-company.com/termsAndConditions + maxLength: 500 type: string businessDba: description: The company 'Doing Business As'. example: Another Company Name Inc. + maxLength: 500 type: string businessRegistrationNumber: - description: Government-issued business identifying number. + description: | + Government-issued business identifying number. + + **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. example: 12-3456789 maxLength: 500 nullable: true type: string businessRegistrationTypeEnum: - description: The type of business registration number. + description: | + The type of business registration number. enum: - EIN - CBN @@ -13751,11 +13771,14 @@ components: - CNPJ - UID - OTHER + example: EIN nullable: true type: string businessRegistrationIssuingCountryEnum: description: |- - The country issuing the business registration in ISO-3166-1 alpha-3 format. + The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 country codes are acceptable, but the application will convert them to alpha-3 when received, so alpha-3 is encouraged. + + **Note:** If this field is omitted but `businessRegistrationType` is provided, the application will attempt to infer the country based on the registration type. However, if the application cannot confidently infer the country, the submission may be rejected. To ensure the highest likelihood of acceptance, it is recommended to provide both `businessRegistrationType` and `businessRegistrationIssuingCountry`. | Registration Type | Supported Countries | |----------------------|------------------------------------| @@ -13791,17 +13814,23 @@ components: - DEU - ESP - CHE + - CYP + - IND + - CHN + - BGR + example: USA nullable: false type: string businessEntityTypeEnum: - description: "The type of registered business. If no option is applicable, please\ - \ provide \"SOLE_PROPRIETOR\" as a value." + description: | + The type of registered business. enum: - SOLE_PROPRIETOR - PRIVATE_PROFIT - PUBLIC_PROFIT - NON_PROFIT - GOVERNMENT + example: PRIVATE_PROFIT nullable: false type: string helpMessageResponse: @@ -13910,18 +13939,24 @@ components: privacyPolicyUrl: description: The Toll-Free Verification request privacy policy URL. example: http://your-company.com/privacyPolicy + maxLength: 500 type: string termsAndConditionsUrl: description: The Toll-Free Verification request terms and conditions policy URL. example: http://your-company.com/termsAndConditions + maxLength: 500 type: string businessDba: description: The company 'Doing Business As'. example: Another Company Name Inc. + maxLength: 500 type: string businessRegistrationNumber: - description: Government-issued business identifying number. + description: | + Government-issued business identifying number. + + **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. example: 12-3456789 maxLength: 500 nullable: true @@ -14014,18 +14049,24 @@ components: privacyPolicyUrl: description: The Toll-Free Verification request privacy policy URL. example: http://your-company.com/privacyPolicy + maxLength: 500 type: string termsAndConditionsUrl: description: The Toll-Free Verification request terms and conditions policy URL. example: http://your-company.com/termsAndConditions + maxLength: 500 type: string businessDba: description: The company 'Doing Business As'. example: Another Company Name Inc. + maxLength: 500 type: string businessRegistrationNumber: - description: Government-issued business identifying number. + description: | + Government-issued business identifying number. + + **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. example: 12-3456789 maxLength: 500 nullable: true @@ -14690,7 +14731,7 @@ components: phoneNumber: "+19192654500" email: foo@bar.com messageVolume: 10000 - businessEntityType: SOLE_PROPRIETOR + businessEntityType: PRIVATE_PROFIT businessRegistrationType: EIN privacyPolicyUrl: http://your-company.com/privacyPolicy optInWorkflow: @@ -14789,7 +14830,7 @@ components: phoneNumber: "+19192654500" email: foo@bar.com messageVolume: 10000 - businessEntityType: SOLE_PROPRIETOR + businessEntityType: PRIVATE_PROFIT businessRegistrationType: EIN privacyPolicyUrl: http://your-company.com/privacyPolicy optInWorkflow: @@ -14862,18 +14903,24 @@ components: privacyPolicyUrl: description: The Toll-Free Verification request privacy policy URL. example: http://your-company.com/privacyPolicy + maxLength: 500 type: string termsAndConditionsUrl: description: The Toll-Free Verification request terms and conditions policy URL. example: http://your-company.com/termsAndConditions + maxLength: 500 type: string businessDba: description: The company 'Doing Business As'. example: Another Company Name Inc. + maxLength: 500 type: string businessRegistrationNumber: - description: Government-issued business identifying number. + description: | + Government-issued business identifying number. + + **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. example: 12-3456789 maxLength: 500 nullable: true diff --git a/bandwidth.yml b/bandwidth.yml index 4948dd1d..bfa971f6 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -1956,8 +1956,10 @@ components: type: string contentLength: type: integer + example: 1024 mediaName: type: string + example: image.png segmentCount: type: integer description: >- @@ -2744,6 +2746,7 @@ components: discriminator: propertyName: type mapping: + message-sending: '#/components/schemas/statusCallback' message-sent: '#/components/schemas/statusCallback' message-delivered: '#/components/schemas/statusCallback' message-failed: '#/components/schemas/statusCallback' @@ -5510,10 +5513,14 @@ components: - UNKNOWN: Bandwidth cannot find an delivery status entry for the number. + + - NOT_ENABLED: The phone number is not enabled for messaging, so there + is no delivery status information. enum: - ACTIVE - DEACTIVATED - UNKNOWN + - NOT_ENABLED lineTypeEnum: type: string enum: @@ -5816,25 +5823,36 @@ components: type: string privacyPolicyUrl: description: The Toll-Free Verification request privacy policy URL. + maxLength: 500 example: http://your-company.com/privacyPolicy type: string termsAndConditionsUrl: description: The Toll-Free Verification request terms and conditions policy URL. + maxLength: 500 example: http://your-company.com/termsAndConditions type: string businessDba: description: The company 'Doing Business As'. + maxLength: 500 example: Another Company Name Inc. type: string businessRegistrationNumber: type: string - description: Government-issued business identifying number. + description: > + Government-issued business identifying number. + + + **Note:** If this field is provided, it is strongly recommended to also + provide `businessRegistrationType` and + `businessRegistrationIssuingCountry`. Submissions missing these fields + have a high likelihood of rejection. nullable: true maxLength: 500 example: 12-3456789 businessRegistrationTypeEnum: type: string - description: The type of business registration number. + description: | + The type of business registration number. enum: - EIN - CBN @@ -5854,12 +5872,22 @@ components: - CNPJ - UID - OTHER + example: EIN nullable: true businessRegistrationIssuingCountryEnum: type: string description: >- The country issuing the business registration in ISO-3166-1 alpha-3 - format. + format. Alpha-2 country codes are acceptable, but the application will + convert them to alpha-3 when received, so alpha-3 is encouraged. + + + **Note:** If this field is omitted but `businessRegistrationType` is + provided, the application will attempt to infer the country based on the + registration type. However, if the application cannot confidently infer + the country, the submission may be rejected. To ensure the highest + likelihood of acceptance, it is recommended to provide both + `businessRegistrationType` and `businessRegistrationIssuingCountry`. | Registration Type | Supported Countries | @@ -5915,18 +5943,23 @@ components: - DEU - ESP - CHE + - CYP + - IND + - CHN + - BGR + example: USA nullable: false businessEntityTypeEnum: type: string - description: >- - The type of registered business. If no option is applicable, please - provide "SOLE_PROPRIETOR" as a value. + description: | + The type of registered business. enum: - SOLE_PROPRIETOR - PRIVATE_PROFIT - PUBLIC_PROFIT - NON_PROFIT - GOVERNMENT + example: PRIVATE_PROFIT nullable: false helpMessageResponse: type: string @@ -6576,10 +6609,14 @@ components: $ref: '#/components/schemas/businessDba' businessRegistrationNumber: $ref: '#/components/schemas/businessRegistrationNumber' + description: Government-issued business identifying number. businessRegistrationType: $ref: '#/components/schemas/businessRegistrationTypeEnum' businessRegistrationIssuingCountry: $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' + description: >- + The country issuing the business registration in ISO-3166-1 alpha-3 + format. businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' tfvStatusEnum: @@ -8117,7 +8154,7 @@ components: latestMessageDeliveryStatusDate: '2025-05-18' - phoneNumber: '+10072904498' countryCodeA3: USA - lineType: FIXED + lineType: MOBILE voiceProvider: VERIZON latestMessageDeliveryStatus: DEACTIVATED initialMessageDeliveryStatusDate: '2025-09-05' @@ -8131,6 +8168,14 @@ components: deactivationDate: '2025-09-29 01:23:00' deactivationEvent: DEACTIVATED latestMessageDeliveryStatus: UNKNOWN + - phoneNumber: '+10072904500' + lineType: FIXED + countryCodeA3: USA + voiceProvider: VERIZON + deactivationReporter: Verizon Wireless + deactivationDate: '2025-09-29 01:23:00' + deactivationEvent: DEACTIVATED + latestMessageDeliveryStatus: NOT_ENABLED errors: [] badRequestExample: summary: Example Bad Request Error diff --git a/docs/BusinessRegistrationIssuingCountryEnum.md b/docs/BusinessRegistrationIssuingCountryEnum.md index 3745a0f3..d05880f4 100644 --- a/docs/BusinessRegistrationIssuingCountryEnum.md +++ b/docs/BusinessRegistrationIssuingCountryEnum.md @@ -31,5 +31,13 @@ * `CHE` (value: `"CHE"`) +* `CYP` (value: `"CYP"`) + +* `IND` (value: `"IND"`) + +* `CHN` (value: `"CHN"`) + +* `BGR` (value: `"BGR"`) + diff --git a/docs/LatestMessageDeliveryStatusEnum.md b/docs/LatestMessageDeliveryStatusEnum.md index b90b2cbe..3b507164 100644 --- a/docs/LatestMessageDeliveryStatusEnum.md +++ b/docs/LatestMessageDeliveryStatusEnum.md @@ -11,5 +11,7 @@ * `UNKNOWN` (value: `"UNKNOWN"`) +* `NOT_ENABLED` (value: `"NOT_ENABLED"`) + diff --git a/docs/TfvSubmissionInfo.md b/docs/TfvSubmissionInfo.md index 471dd3f1..0e91dfd5 100644 --- a/docs/TfvSubmissionInfo.md +++ b/docs/TfvSubmissionInfo.md @@ -19,7 +19,7 @@ |**privacyPolicyUrl** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] | |**termsAndConditionsUrl** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] | |**businessDba** | **String** | The company 'Doing Business As'. | [optional] | -|**businessRegistrationNumber** | **String** | Government-issued business identifying number. | [optional] | +|**businessRegistrationNumber** | **String** | Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. | [optional] | |**businessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] | |**businessRegistrationIssuingCountry** | **BusinessRegistrationIssuingCountryEnum** | | [optional] | |**businessEntityType** | **BusinessEntityTypeEnum** | | [optional] | diff --git a/docs/VerificationRequest.md b/docs/VerificationRequest.md index b7bf408d..3e7120b0 100644 --- a/docs/VerificationRequest.md +++ b/docs/VerificationRequest.md @@ -20,7 +20,7 @@ |**privacyPolicyUrl** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] | |**termsAndConditionsUrl** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] | |**businessDba** | **String** | The company 'Doing Business As'. | [optional] | -|**businessRegistrationNumber** | **String** | Government-issued business identifying number. | [optional] | +|**businessRegistrationNumber** | **String** | Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. | [optional] | |**businessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] | |**businessRegistrationIssuingCountry** | **BusinessRegistrationIssuingCountryEnum** | | [optional] | |**businessEntityType** | **BusinessEntityTypeEnum** | | | diff --git a/docs/VerificationUpdateRequest.md b/docs/VerificationUpdateRequest.md index 32a954cc..f110bbb2 100644 --- a/docs/VerificationUpdateRequest.md +++ b/docs/VerificationUpdateRequest.md @@ -19,7 +19,7 @@ |**privacyPolicyUrl** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] | |**termsAndConditionsUrl** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] | |**businessDba** | **String** | The company 'Doing Business As'. | [optional] | -|**businessRegistrationNumber** | **String** | Government-issued business identifying number. | [optional] | +|**businessRegistrationNumber** | **String** | Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. | [optional] | |**businessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] | |**businessEntityType** | **BusinessEntityTypeEnum** | | [optional] | |**businessRegistrationIssuingCountry** | **BusinessRegistrationIssuingCountryEnum** | | [optional] | diff --git a/interview.txt b/interview.txt new file mode 100644 index 00000000..e69de29b diff --git a/src/main/java/com/bandwidth/sdk/JSON.java b/src/main/java/com/bandwidth/sdk/JSON.java index 518e07dd..43825902 100644 --- a/src/main/java/com/bandwidth/sdk/JSON.java +++ b/src/main/java/com/bandwidth/sdk/JSON.java @@ -69,6 +69,7 @@ public Class getClassForElement(Json classByDiscriminatorValue.put("message-failed", com.bandwidth.sdk.model.StatusCallback.class); classByDiscriminatorValue.put("message-read", com.bandwidth.sdk.model.StatusCallback.class); classByDiscriminatorValue.put("message-received", com.bandwidth.sdk.model.InboundCallback.class); + classByDiscriminatorValue.put("message-sending", com.bandwidth.sdk.model.StatusCallback.class); classByDiscriminatorValue.put("message-sent", com.bandwidth.sdk.model.StatusCallback.class); classByDiscriminatorValue.put("request-location-response", com.bandwidth.sdk.model.InboundCallback.class); classByDiscriminatorValue.put("suggestion-response", com.bandwidth.sdk.model.InboundCallback.class); diff --git a/src/main/java/com/bandwidth/sdk/model/BusinessEntityTypeEnum.java b/src/main/java/com/bandwidth/sdk/model/BusinessEntityTypeEnum.java index 3b7f7b4f..a8c8b883 100644 --- a/src/main/java/com/bandwidth/sdk/model/BusinessEntityTypeEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/BusinessEntityTypeEnum.java @@ -26,7 +26,7 @@ import com.google.gson.stream.JsonWriter; /** - * The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. + * The type of registered business. */ @JsonAdapter(BusinessEntityTypeEnum.Adapter.class) public enum BusinessEntityTypeEnum { diff --git a/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationIssuingCountryEnum.java b/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationIssuingCountryEnum.java index d31878aa..c1526c19 100644 --- a/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationIssuingCountryEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationIssuingCountryEnum.java @@ -26,7 +26,7 @@ import com.google.gson.stream.JsonWriter; /** - * The country issuing the business registration in ISO-3166-1 alpha-3 format. | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | + * The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 country codes are acceptable, but the application will convert them to alpha-3 when received, so alpha-3 is encouraged. **Note:** If this field is omitted but `businessRegistrationType` is provided, the application will attempt to infer the country based on the registration type. However, if the application cannot confidently infer the country, the submission may be rejected. To ensure the highest likelihood of acceptance, it is recommended to provide both `businessRegistrationType` and `businessRegistrationIssuingCountry`. | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | */ @JsonAdapter(BusinessRegistrationIssuingCountryEnum.Adapter.class) public enum BusinessRegistrationIssuingCountryEnum { @@ -55,7 +55,15 @@ public enum BusinessRegistrationIssuingCountryEnum { ESP("ESP"), - CHE("CHE"); + CHE("CHE"), + + CYP("CYP"), + + IND("IND"), + + CHN("CHN"), + + BGR("BGR"); private String value; diff --git a/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationTypeEnum.java b/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationTypeEnum.java index bf0a54ac..44ce104e 100644 --- a/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationTypeEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationTypeEnum.java @@ -26,7 +26,7 @@ import com.google.gson.stream.JsonWriter; /** - * The type of business registration number. + * The type of business registration number. */ @JsonAdapter(BusinessRegistrationTypeEnum.Adapter.class) public enum BusinessRegistrationTypeEnum { diff --git a/src/main/java/com/bandwidth/sdk/model/Callback.java b/src/main/java/com/bandwidth/sdk/model/Callback.java index b5caca4d..9db016fd 100644 --- a/src/main/java/com/bandwidth/sdk/model/Callback.java +++ b/src/main/java/com/bandwidth/sdk/model/Callback.java @@ -132,6 +132,10 @@ public Callback read(JsonReader in) throws IOException { deserialized = adapterInboundCallback.fromJsonTree(jsonObject); newCallback.setActualInstance(deserialized); return newCallback; + case "message-sending": + deserialized = adapterStatusCallback.fromJsonTree(jsonObject); + newCallback.setActualInstance(deserialized); + return newCallback; case "message-sent": deserialized = adapterStatusCallback.fromJsonTree(jsonObject); newCallback.setActualInstance(deserialized); @@ -145,7 +149,7 @@ public Callback read(JsonReader in) throws IOException { newCallback.setActualInstance(deserialized); return newCallback; default: - log.log(Level.WARNING, String.format(Locale.ROOT, "Failed to lookup discriminator value `%s` for Callback. Possible values: message-delivered message-failed message-read message-received message-sent request-location-response suggestion-response", jsonObject.get("type").getAsString())); + log.log(Level.WARNING, String.format(Locale.ROOT, "Failed to lookup discriminator value `%s` for Callback. Possible values: message-delivered message-failed message-read message-received message-sending message-sent request-location-response suggestion-response", jsonObject.get("type").getAsString())); } } diff --git a/src/main/java/com/bandwidth/sdk/model/LatestMessageDeliveryStatusEnum.java b/src/main/java/com/bandwidth/sdk/model/LatestMessageDeliveryStatusEnum.java index 613194fd..3f862d0f 100644 --- a/src/main/java/com/bandwidth/sdk/model/LatestMessageDeliveryStatusEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/LatestMessageDeliveryStatusEnum.java @@ -26,7 +26,7 @@ import com.google.gson.stream.JsonWriter; /** - * [DNI-Only](#section/DNI-Only). The current delivery status of the phone number. - ACTIVE: A message was successfully sent to the number (delivery code 0). - DEACTIVATED: A message was not delivered to a number (delivery code 720) - UNKNOWN: Bandwidth cannot find an delivery status entry for the number. + * [DNI-Only](#section/DNI-Only). The current delivery status of the phone number. - ACTIVE: A message was successfully sent to the number (delivery code 0). - DEACTIVATED: A message was not delivered to a number (delivery code 720) - UNKNOWN: Bandwidth cannot find an delivery status entry for the number. - NOT_ENABLED: The phone number is not enabled for messaging, so there is no delivery status information. */ @JsonAdapter(LatestMessageDeliveryStatusEnum.Adapter.class) public enum LatestMessageDeliveryStatusEnum { @@ -35,7 +35,9 @@ public enum LatestMessageDeliveryStatusEnum { DEACTIVATED("DEACTIVATED"), - UNKNOWN("UNKNOWN"); + UNKNOWN("UNKNOWN"), + + NOT_ENABLED("NOT_ENABLED"); private String value; diff --git a/src/main/java/com/bandwidth/sdk/model/TfvSubmissionInfo.java b/src/main/java/com/bandwidth/sdk/model/TfvSubmissionInfo.java index 1bd08048..c0aa2115 100644 --- a/src/main/java/com/bandwidth/sdk/model/TfvSubmissionInfo.java +++ b/src/main/java/com/bandwidth/sdk/model/TfvSubmissionInfo.java @@ -378,7 +378,7 @@ public TfvSubmissionInfo businessRegistrationNumber(@javax.annotation.Nullable S } /** - * Government-issued business identifying number. + * Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. * @return businessRegistrationNumber */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/VerificationRequest.java b/src/main/java/com/bandwidth/sdk/model/VerificationRequest.java index 8de3d51e..8bd02932 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerificationRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/VerificationRequest.java @@ -427,7 +427,7 @@ public VerificationRequest businessRegistrationNumber(@javax.annotation.Nullable } /** - * Government-issued business identifying number. + * Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. * @return businessRegistrationNumber */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/VerificationUpdateRequest.java b/src/main/java/com/bandwidth/sdk/model/VerificationUpdateRequest.java index 696c2c61..27880f29 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerificationUpdateRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/VerificationUpdateRequest.java @@ -393,7 +393,7 @@ public VerificationUpdateRequest businessRegistrationNumber(@javax.annotation.Nu } /** - * Government-issued business identifying number. + * Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. * @return businessRegistrationNumber */ @javax.annotation.Nullable diff --git a/src/test/java/com/bandwidth/sdk/unit/models/BusinessRegistrationIssuingCountryEnumTest.java b/src/test/java/com/bandwidth/sdk/unit/models/BusinessRegistrationIssuingCountryEnumTest.java index a2f16f88..a3fc6b88 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/BusinessRegistrationIssuingCountryEnumTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/BusinessRegistrationIssuingCountryEnumTest.java @@ -41,6 +41,10 @@ public void testBusinessRegistrationIssuingCountryEnum() { assertThat(BusinessRegistrationIssuingCountryEnum.DEU.toString(), equalTo("DEU")); assertThat(BusinessRegistrationIssuingCountryEnum.ESP.toString(), equalTo("ESP")); assertThat(BusinessRegistrationIssuingCountryEnum.CHE.toString(), equalTo("CHE")); + assertThat(BusinessRegistrationIssuingCountryEnum.CYP.toString(), equalTo("CYP")); + assertThat(BusinessRegistrationIssuingCountryEnum.IND.toString(), equalTo("IND")); + assertThat(BusinessRegistrationIssuingCountryEnum.CHN.toString(), equalTo("CHN")); + assertThat(BusinessRegistrationIssuingCountryEnum.BGR.toString(), equalTo("BGR")); } } diff --git a/src/test/java/com/bandwidth/sdk/unit/models/LatestMessageDeliveryStatusEnumTest.java b/src/test/java/com/bandwidth/sdk/unit/models/LatestMessageDeliveryStatusEnumTest.java index 11983344..228ff759 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/LatestMessageDeliveryStatusEnumTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/LatestMessageDeliveryStatusEnumTest.java @@ -32,6 +32,7 @@ public void testLatestMessageDeliveryStatusEnum() { assertThat(LatestMessageDeliveryStatusEnum.ACTIVE.toString(), equalTo("ACTIVE")); assertThat(LatestMessageDeliveryStatusEnum.DEACTIVATED.toString(), equalTo("DEACTIVATED")); assertThat(LatestMessageDeliveryStatusEnum.UNKNOWN.toString(), equalTo("UNKNOWN")); + assertThat(LatestMessageDeliveryStatusEnum.NOT_ENABLED.toString(), equalTo("NOT_ENABLED")); } }