Skip to content
Open
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
27 changes: 18 additions & 9 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9998,6 +9998,8 @@ components:
title: RBM Media
type: object
rbmCardContent:
description: "Must contain at least one of title, description, or media to be\
\ valid."
properties:
title:
description: The title of the card. Must be 200 characters or less.
Expand Down Expand Up @@ -10036,7 +10038,6 @@ components:
required:
- cardContent
- orientation
- thumbnailImageAlignment
title: Standalone Card
type: object
standaloneCardOrientationEnum:
Expand All @@ -10046,8 +10047,8 @@ components:
example: VERTICAL
type: string
thumbnailAlignmentEnum:
description: The alignment of the thumbnail image in the card. Only applicable
if the card using horizontal orientation.
description: The alignment of the thumbnail image in the card. Required when
orientation is HORIZONTAL.
enum:
- LEFT
- RIGHT
Expand All @@ -10061,6 +10062,7 @@ components:
items:
$ref: "#/components/schemas/rbmCardContent"
maxItems: 10
minItems: 2
type: array
suggestions:
description: An array of suggested actions for the recipient.
Expand Down Expand Up @@ -10132,7 +10134,9 @@ components:
type: string
rbmWebViewEnum:
description: |-
Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW`
Defines the layout of the WebView on a mobile device. It must be defined
when application is set to `WEBVIEW` and must not be set when application
is set to `BROWSER`.
- `FULL` WebView takes the full screen.
- `HALF` WebView takes half of the screen.
- `TALL` WebView takes three-quarters of the screen.
Expand Down Expand Up @@ -10200,12 +10204,14 @@ components:
- $ref: "#/components/schemas/rbmActionBase"
- properties:
latitude:
description: The latitude of the location.
description: "The latitude of the location. Must be in range [-90.000000,\
\ 90.000000]."
example: "37.7749"
format: double
type: string
longitude:
description: The longitude of the location.
description: "The longitude of the location. Must be in range [-180.000000,\
\ 180.000000]."
example: "-122.4194"
format: double
type: string
Expand All @@ -10229,12 +10235,14 @@ components:
maxLength: 100
type: string
startTime:
description: The start time of the event.
description: "The start time of the event. Must be a valid RFC-3339 value,\
\ e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00."
example: 2022-09-14T18:20:16Z
format: date-time
type: string
endTime:
description: The end time of the event.
description: "The end time of the event. Must be a valid RFC-3339 value,\
\ e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00."
example: 2022-09-14T18:20:16Z
format: date-time
type: string
Expand All @@ -10254,7 +10262,8 @@ components:
- $ref: "#/components/schemas/rbmActionBase"
- properties:
url:
description: The URL to open in browser.
description: The URL to open in browser. Must use http:// or https://
scheme.
example: https://dev.bandwidth.com
format: uri
maxLength: 2048
Expand Down
31 changes: 22 additions & 9 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2436,6 +2436,7 @@ components:
- media
rbmCardContent:
type: object
description: Must contain at least one of title, description, or media to be valid.
properties:
title:
type: string
Expand Down Expand Up @@ -2478,7 +2479,6 @@ components:
$ref: '#/components/schemas/multiChannelFullActions'
required:
- orientation
- thumbnailImageAlignment
- cardContent
standaloneCardOrientationEnum:
type: string
Expand All @@ -2489,8 +2489,8 @@ components:
thumbnailAlignmentEnum:
type: string
description: >-
The alignment of the thumbnail image in the card. Only applicable if the
card using horizontal orientation.
The alignment of the thumbnail image in the card. Required when
orientation is HORIZONTAL.
enum:
- LEFT
- RIGHT
Expand All @@ -2505,6 +2505,7 @@ components:
type: array
items:
$ref: '#/components/schemas/rbmCardContent'
minItems: 2
maxItems: 10
suggestions:
$ref: '#/components/schemas/multiChannelFullActions'
Expand Down Expand Up @@ -2568,7 +2569,11 @@ components:
type: string
description: >-
Defines the layout of the WebView on a mobile device. It must be defined
when application is set to `WEBVIEW`

when application is set to `WEBVIEW` and must not be set when
application

is set to `BROWSER`.

- `FULL` WebView takes the full screen.

Expand Down Expand Up @@ -2626,12 +2631,16 @@ components:
latitude:
type: string
format: double
description: The latitude of the location.
description: >-
The latitude of the location. Must be in range [-90.000000,
90.000000].
example: '37.7749'
longitude:
type: string
format: double
description: The longitude of the location.
description: >-
The longitude of the location. Must be in range [-180.000000,
180.000000].
example: '-122.4194'
label:
type: string
Expand All @@ -2655,12 +2664,16 @@ components:
startTime:
type: string
format: date-time
description: The start time of the event.
description: >-
The start time of the event. Must be a valid RFC-3339 value,
e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00.
example: 2022-09-14T18:20:16.000Z
endTime:
type: string
format: date-time
description: The end time of the event.
description: >-
The end time of the event. Must be a valid RFC-3339 value, e.g.,
2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00.
example: 2022-09-14T18:20:16.000Z
description:
type: string
Expand All @@ -2680,7 +2693,7 @@ components:
url:
type: string
format: uri
description: The URL to open in browser.
description: The URL to open in browser. Must use http:// or https:// scheme.
example: https://dev.bandwidth.com
maxLength: 2048
application:
Expand Down
10 changes: 5 additions & 5 deletions docs/MultiChannelAction.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
|**text** | **String** | Displayed text for user to click | |
|**postbackData** | **byte[]** | Base64 payload the customer receives when the reply is clicked. | |
|**phoneNumber** | **String** | The phone number to dial. Must be E164 format. | |
|**latitude** | **Double** | The latitude of the location. | |
|**longitude** | **Double** | The longitude of the location. | |
|**latitude** | **Double** | The latitude of the location. Must be in range [-90.000000, 90.000000]. | |
|**longitude** | **Double** | The longitude of the location. Must be in range [-180.000000, 180.000000]. | |
|**label** | **String** | The label of the location. | [optional] |
|**title** | **String** | The title of the event. | |
|**startTime** | **OffsetDateTime** | The start time of the event. | |
|**endTime** | **OffsetDateTime** | The end time of the event. | |
|**startTime** | **OffsetDateTime** | The start time of the event. Must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. | |
|**endTime** | **OffsetDateTime** | The end time of the event. Must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. | |
|**description** | **String** | The description of the event. | [optional] |
|**url** | **URI** | The URL to open in browser. | |
|**url** | **URI** | The URL to open in browser. Must use http:// or https:// scheme. | |
|**application** | **RbmOpenUrlEnum** | | [optional] |
|**webviewViewMode** | **RbmWebViewEnum** | | [optional] |

Expand Down
4 changes: 2 additions & 2 deletions docs/MultiChannelActionCalendarEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
|**text** | **String** | Displayed text for user to click | |
|**postbackData** | **byte[]** | Base64 payload the customer receives when the reply is clicked. | |
|**title** | **String** | The title of the event. | |
|**startTime** | **OffsetDateTime** | The start time of the event. | |
|**endTime** | **OffsetDateTime** | The end time of the event. | |
|**startTime** | **OffsetDateTime** | The start time of the event. Must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. | |
|**endTime** | **OffsetDateTime** | The end time of the event. Must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. | |
|**description** | **String** | The description of the event. | [optional] |


Expand Down
2 changes: 1 addition & 1 deletion docs/MultiChannelChannelListRBMObjectAllOfContent.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The content of the message.
|**suggestions** | [**List<MultiChannelAction>**](MultiChannelAction.md) | An array of suggested actions for the recipient. | [optional] |
|**media** | [**List<RbmMessageContentFile>**](RbmMessageContentFile.md) | | |
|**orientation** | **StandaloneCardOrientationEnum** | | |
|**thumbnailImageAlignment** | **ThumbnailAlignmentEnum** | | |
|**thumbnailImageAlignment** | **ThumbnailAlignmentEnum** | | [optional] |
|**cardContent** | [**RbmCardContent**](RbmCardContent.md) | | |
|**cardWidth** | **CardWidthEnum** | | |
|**cardContents** | [**List<RbmCardContent>**](RbmCardContent.md) | | |
Expand Down
2 changes: 1 addition & 1 deletion docs/RbmActionOpenUrl.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
|**type** | **RbmActionTypeEnum** | | |
|**text** | **String** | Displayed text for user to click | |
|**postbackData** | **byte[]** | Base64 payload the customer receives when the reply is clicked. | |
|**url** | **URI** | The URL to open in browser. | |
|**url** | **URI** | The URL to open in browser. Must use http:// or https:// scheme. | |
|**application** | **RbmOpenUrlEnum** | | [optional] |
|**webviewViewMode** | **RbmWebViewEnum** | | [optional] |

Expand Down
4 changes: 2 additions & 2 deletions docs/RbmActionViewLocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
|**type** | **RbmActionTypeEnum** | | |
|**text** | **String** | Displayed text for user to click | |
|**postbackData** | **byte[]** | Base64 payload the customer receives when the reply is clicked. | |
|**latitude** | **Double** | The latitude of the location. | |
|**longitude** | **Double** | The longitude of the location. | |
|**latitude** | **Double** | The latitude of the location. Must be in range [-90.000000, 90.000000]. | |
|**longitude** | **Double** | The longitude of the location. Must be in range [-180.000000, 180.000000]. | |
|**label** | **String** | The label of the location. | [optional] |


Expand Down
1 change: 1 addition & 0 deletions docs/RbmCardContent.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# RbmCardContent

Must contain at least one of title, description, or media to be valid.

## Properties

Expand Down
2 changes: 1 addition & 1 deletion docs/RbmMessageContentRichCard.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**orientation** | **StandaloneCardOrientationEnum** | | |
|**thumbnailImageAlignment** | **ThumbnailAlignmentEnum** | | |
|**thumbnailImageAlignment** | **ThumbnailAlignmentEnum** | | [optional] |
|**cardContent** | [**RbmCardContent**](RbmCardContent.md) | | |
|**suggestions** | [**List<MultiChannelAction>**](MultiChannelAction.md) | An array of suggested actions for the recipient. | [optional] |
|**cardWidth** | **CardWidthEnum** | | |
Expand Down
2 changes: 1 addition & 1 deletion docs/RbmStandaloneCard.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**orientation** | **StandaloneCardOrientationEnum** | | |
|**thumbnailImageAlignment** | **ThumbnailAlignmentEnum** | | |
|**thumbnailImageAlignment** | **ThumbnailAlignmentEnum** | | [optional] |
|**cardContent** | [**RbmCardContent**](RbmCardContent.md) | | |
|**suggestions** | [**List<MultiChannelAction>**](MultiChannelAction.md) | An array of suggested actions for the recipient. | [optional] |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public MultiChannelActionCalendarEvent startTime(@javax.annotation.Nonnull Offse
}

/**
* The start time of the event.
* The start time of the event. Must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00.
* @return startTime
*/
@javax.annotation.Nonnull
Expand All @@ -193,7 +193,7 @@ public MultiChannelActionCalendarEvent endTime(@javax.annotation.Nonnull OffsetD
}

/**
* The end time of the event.
* The end time of the event. Must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00.
* @return endTime
*/
@javax.annotation.Nonnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public RbmActionOpenUrl url(@javax.annotation.Nonnull URI url) {
}

/**
* The URL to open in browser.
* The URL to open in browser. Must use http:// or https:// scheme.
* @return url
*/
@javax.annotation.Nonnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public RbmActionViewLocation latitude(@javax.annotation.Nonnull Double latitude)
}

/**
* The latitude of the location.
* The latitude of the location. Must be in range [-90.000000, 90.000000].
* @return latitude
*/
@javax.annotation.Nonnull
Expand All @@ -168,7 +168,7 @@ public RbmActionViewLocation longitude(@javax.annotation.Nonnull Double longitud
}

/**
* The longitude of the location.
* The longitude of the location. Must be in range [-180.000000, 180.000000].
* @return longitude
*/
@javax.annotation.Nonnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
import com.bandwidth.sdk.JSON;

/**
* RbmCardContent
* Must contain at least one of title, description, or media to be valid.
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.17.0")
public class RbmCardContent {
Expand Down
16 changes: 9 additions & 7 deletions src/main/java/com/bandwidth/sdk/model/RbmStandaloneCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class RbmStandaloneCard {

public static final String SERIALIZED_NAME_THUMBNAIL_IMAGE_ALIGNMENT = "thumbnailImageAlignment";
@SerializedName(SERIALIZED_NAME_THUMBNAIL_IMAGE_ALIGNMENT)
@javax.annotation.Nonnull
@javax.annotation.Nullable
private ThumbnailAlignmentEnum thumbnailImageAlignment;

public static final String SERIALIZED_NAME_CARD_CONTENT = "cardContent";
Expand Down Expand Up @@ -100,7 +100,7 @@ public void setOrientation(@javax.annotation.Nonnull StandaloneCardOrientationEn
}


public RbmStandaloneCard thumbnailImageAlignment(@javax.annotation.Nonnull ThumbnailAlignmentEnum thumbnailImageAlignment) {
public RbmStandaloneCard thumbnailImageAlignment(@javax.annotation.Nullable ThumbnailAlignmentEnum thumbnailImageAlignment) {
this.thumbnailImageAlignment = thumbnailImageAlignment;
return this;
}
Expand All @@ -109,12 +109,12 @@ public RbmStandaloneCard thumbnailImageAlignment(@javax.annotation.Nonnull Thumb
* Get thumbnailImageAlignment
* @return thumbnailImageAlignment
*/
@javax.annotation.Nonnull
@javax.annotation.Nullable
public ThumbnailAlignmentEnum getThumbnailImageAlignment() {
return thumbnailImageAlignment;
}

public void setThumbnailImageAlignment(@javax.annotation.Nonnull ThumbnailAlignmentEnum thumbnailImageAlignment) {
public void setThumbnailImageAlignment(@javax.annotation.Nullable ThumbnailAlignmentEnum thumbnailImageAlignment) {
this.thumbnailImageAlignment = thumbnailImageAlignment;
}

Expand Down Expand Up @@ -264,7 +264,7 @@ private String toIndentedString(Object o) {
openapiFields = new HashSet<String>(Arrays.asList("orientation", "thumbnailImageAlignment", "cardContent", "suggestions"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("orientation", "thumbnailImageAlignment", "cardContent"));
openapiRequiredFields = new HashSet<String>(Arrays.asList("orientation", "cardContent"));
}

/**
Expand All @@ -289,8 +289,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
JsonObject jsonObj = jsonElement.getAsJsonObject();
// validate the required field `orientation`
StandaloneCardOrientationEnum.validateJsonElement(jsonObj.get("orientation"));
// validate the required field `thumbnailImageAlignment`
ThumbnailAlignmentEnum.validateJsonElement(jsonObj.get("thumbnailImageAlignment"));
// validate the optional field `thumbnailImageAlignment`
if (jsonObj.get("thumbnailImageAlignment") != null && !jsonObj.get("thumbnailImageAlignment").isJsonNull()) {
ThumbnailAlignmentEnum.validateJsonElement(jsonObj.get("thumbnailImageAlignment"));
}
// validate the required field `cardContent`
RbmCardContent.validateJsonElement(jsonObj.get("cardContent"));
if (jsonObj.get("suggestions") != null && !jsonObj.get("suggestions").isJsonNull()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import com.google.gson.stream.JsonWriter;

/**
* Defines the layout of the WebView on a mobile device. It must be defined when application is set to &#x60;WEBVIEW&#x60; - &#x60;FULL&#x60; WebView takes the full screen. - &#x60;HALF&#x60; WebView takes half of the screen. - &#x60;TALL&#x60; WebView takes three-quarters of the screen.
* Defines the layout of the WebView on a mobile device. It must be defined when application is set to &#x60;WEBVIEW&#x60; and must not be set when application is set to &#x60;BROWSER&#x60;. - &#x60;FULL&#x60; WebView takes the full screen. - &#x60;HALF&#x60; WebView takes half of the screen. - &#x60;TALL&#x60; WebView takes three-quarters of the screen.
*/
@JsonAdapter(RbmWebViewEnum.Adapter.class)
public enum RbmWebViewEnum {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import com.google.gson.stream.JsonWriter;

/**
* The alignment of the thumbnail image in the card. Only applicable if the card using horizontal orientation.
* The alignment of the thumbnail image in the card. Required when orientation is HORIZONTAL.
*/
@JsonAdapter(ThumbnailAlignmentEnum.Adapter.class)
public enum ThumbnailAlignmentEnum {
Expand Down
Loading