Skip to content

Commit 4ff6130

Browse files
committed
Update SDK with latest spec updates
1 parent 182ec7c commit 4ff6130

File tree

95 files changed

+3204
-564
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+3204
-564
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ docs/MessageDeliveryWebhook.md
7373
docs/MessageDirection.md
7474
docs/MessageRequest.md
7575
docs/MessageResult.md
76-
docs/MessageResultAllOfTfn.md
7776
docs/MessageStatus.md
7877
docs/MessageStatusWebhook.md
7978
docs/MessagesList.md
@@ -232,7 +231,6 @@ src/main/java/com/github/freeclimbapi/MessageDeliveryWebhook.java
232231
src/main/java/com/github/freeclimbapi/MessageDirection.java
233232
src/main/java/com/github/freeclimbapi/MessageRequest.java
234233
src/main/java/com/github/freeclimbapi/MessageResult.java
235-
src/main/java/com/github/freeclimbapi/MessageResultAllOfTfn.java
236234
src/main/java/com/github/freeclimbapi/MessageStatus.java
237235
src/main/java/com/github/freeclimbapi/MessageStatusWebhook.java
238236
src/main/java/com/github/freeclimbapi/MessagesList.java
@@ -383,7 +381,6 @@ src/test/java/com/github/freeclimbapi/MakeCallRequestTest.java
383381
src/test/java/com/github/freeclimbapi/MessageDeliveryWebhookTest.java
384382
src/test/java/com/github/freeclimbapi/MessageDirectionTest.java
385383
src/test/java/com/github/freeclimbapi/MessageRequestTest.java
386-
src/test/java/com/github/freeclimbapi/MessageResultAllOfTfnTest.java
387384
src/test/java/com/github/freeclimbapi/MessageResultTest.java
388385
src/test/java/com/github/freeclimbapi/MessageStatusTest.java
389386
src/test/java/com/github/freeclimbapi/MessageStatusWebhookTest.java

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ Class | Method | HTTP request | Description
271271
- [MessageDirection](docs/MessageDirection.md)
272272
- [MessageRequest](docs/MessageRequest.md)
273273
- [MessageResult](docs/MessageResult.md)
274-
- [MessageResultAllOfTfn](docs/MessageResultAllOfTfn.md)
275274
- [MessageStatus](docs/MessageStatus.md)
276275
- [MessageStatusWebhook](docs/MessageStatusWebhook.md)
277276
- [MessagesList](docs/MessagesList.md)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ spotless {
146146
// don't need to set target, it is inferred from java
147147

148148
// apply a specific flavor of google-java-format
149-
googleJavaFormat('1.8').aosp().reflowLongStrings()
149+
googleJavaFormat('1.19.2').aosp().reflowLongStrings()
150150

151151
removeUnusedImports()
152152
importOrder()

docs/MessageResult.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Name | Type | Description | Notes
2323
**campaignId** | **String** | The unique identifier for the campaign associated with the message | [optional]
2424
**segmentCount** | **BigDecimal** | The number of segments into which the message was split | [optional]
2525
**mediaUrls** | **List<URI>** | an array of HTTP URLs which were attached this this message | [optional]
26-
**tfn** | [**MessageResultAllOfTfn**](MessageResultAllOfTfn.md) | | [optional]
26+
**tfn** | [**TFN**](TFN.md) | | [optional]
2727
**phoneNumberId** | **String** | String that uniquely identifies the phoneNumber resource used to send this Message | [optional]
2828
**applicationId** | **String** | String that uniquely identifies the Application resource used to send this Message | [optional]
2929

docs/MessageResultAllOfTfn.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

openapi.json

Lines changed: 30 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,7 @@
151151
},
152152
"GetDigitsReason": {
153153
"type": "string",
154-
"enum": [
155-
"finishKey",
156-
"timeout",
157-
"maxDigits",
158-
"tone"
159-
],
154+
"enum": ["finishKey", "timeout", "maxDigits", "tone"],
160155
"description": "This field explains how the GetDigits action ended. The value is one of the below: •finishKey - The finish key as specified had been pressed by the caller. Digit string has all keys up to, but not including, the finish key. •timeout - The timeout limit was reached prior to any other criteria being met. If any digits were collected, they will be included. •maxDigits - The maximum number of digits was reached and digit collection ended. •tone - Answering machine or fax tone detection occurred, interrupting digit collection. Any digits received up to this point are included in this webhook."
161156
},
162157
"ConferenceStatus": {
@@ -420,12 +415,7 @@
420415
"SMSTenDLCBrandIdentityStatus": {
421416
"type": "string",
422417
"description": "TCR assessment of the brand identification status.",
423-
"enum": [
424-
"SELF_DECLARED",
425-
"UNVERIFIED",
426-
"VERIFIED",
427-
"VETTED_VERIFIED"
428-
]
418+
"enum": ["SELF_DECLARED", "UNVERIFIED", "VERIFIED", "VETTED_VERIFIED"]
429419
},
430420
"CompletionResultStatus": {
431421
"type": "string",
@@ -494,32 +484,32 @@
494484
"Webhook": {
495485
"type": "object",
496486
"discriminator": {
497-
"propertyName": "requestType",
498-
"mapping": {
499-
"addToConferenceNotification": "#/components/schemas/AddToConferenceNotificationWebhook",
500-
"addToQueueNotification": "#/components/schemas/AddToQueueNotificationWebhook",
501-
"callControl": "#/components/schemas/CallControlWebhook",
502-
"callStatus": "#/components/schemas/CallStatusWebhook",
503-
"conferenceRecordingStatus": "#/components/schemas/ConferenceRecordingStatusWebhook",
504-
"conferenceStatus": "#/components/schemas/ConferenceStatusWebhook",
505-
"createConference": "#/components/schemas/CreateConferenceWebhook",
506-
"dequeue": "#/components/schemas/DequeueWebhook",
507-
"getDigits": "#/components/schemas/GetDigitsWebhook",
508-
"getSpeech": "#/components/schemas/GetSpeechWebhook",
509-
"inboundCall": "#/components/schemas/InboundCallWebhook",
510-
"leaveConference": "#/components/schemas/LeaveConferenceWebhook",
511-
"machineDetected": "#/components/schemas/MachineDetectedWebhook",
512-
"messageDelivery": "#/components/schemas/MessageDeliveryWebhook",
513-
"messageStatus": "#/components/schemas/MessageStatusWebhook",
514-
"outDialApiConnect": "#/components/schemas/OutDialApiConnectWebhook",
515-
"outDialConnect": "#/components/schemas/OutDialConnectWebhook",
516-
"outDialStart": "#/components/schemas/OutDialStartWebhook",
517-
"queueWait": "#/components/schemas/QueueWaitWebhook",
518-
"record": "#/components/schemas/RecordWebhook",
519-
"redirect": "#/components/schemas/RedirectWebhook",
520-
"removeFromQueueNotification": "#/components/schemas/RemoveFromQueueNotificationWebhook",
521-
"transcribe": "#/components/schemas/TranscribeWebhook"
522-
}
487+
"propertyName": "requestType",
488+
"mapping": {
489+
"addToConferenceNotification": "#/components/schemas/AddToConferenceNotificationWebhook",
490+
"addToQueueNotification": "#/components/schemas/AddToQueueNotificationWebhook",
491+
"callControl": "#/components/schemas/CallControlWebhook",
492+
"callStatus": "#/components/schemas/CallStatusWebhook",
493+
"conferenceRecordingStatus": "#/components/schemas/ConferenceRecordingStatusWebhook",
494+
"conferenceStatus": "#/components/schemas/ConferenceStatusWebhook",
495+
"createConference": "#/components/schemas/CreateConferenceWebhook",
496+
"dequeue": "#/components/schemas/DequeueWebhook",
497+
"getDigits": "#/components/schemas/GetDigitsWebhook",
498+
"getSpeech": "#/components/schemas/GetSpeechWebhook",
499+
"inboundCall": "#/components/schemas/InboundCallWebhook",
500+
"leaveConference": "#/components/schemas/LeaveConferenceWebhook",
501+
"machineDetected": "#/components/schemas/MachineDetectedWebhook",
502+
"messageDelivery": "#/components/schemas/MessageDeliveryWebhook",
503+
"messageStatus": "#/components/schemas/MessageStatusWebhook",
504+
"outDialApiConnect": "#/components/schemas/OutDialApiConnectWebhook",
505+
"outDialConnect": "#/components/schemas/OutDialConnectWebhook",
506+
"outDialStart": "#/components/schemas/OutDialStartWebhook",
507+
"queueWait": "#/components/schemas/QueueWaitWebhook",
508+
"record": "#/components/schemas/RecordWebhook",
509+
"redirect": "#/components/schemas/RedirectWebhook",
510+
"removeFromQueueNotification": "#/components/schemas/RemoveFromQueueNotificationWebhook",
511+
"transcribe": "#/components/schemas/TranscribeWebhook"
512+
}
523513
},
524514
"properties": {
525515
"requestType": {
@@ -3598,17 +3588,9 @@
35983588
"nullable": true
35993589
},
36003590
"tfn": {
3601-
"type": "object",
3602-
"required": [
3603-
"campaignId"
3604-
],
3605-
"properties": {
3606-
"campaignId": {
3607-
"$ref": "#/components/schemas/TFNCampaignId"
3608-
}
3609-
},
3591+
"$ref": "#/components/schemas/TFN",
36103592
"nullable": true
3611-
},
3593+
},
36123594
"phoneNumberId": {
36133595
"type": "string",
36143596
"description": "String that uniquely identifies the phoneNumber resource used to send this Message",

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
<!-- no need to specify files, inferred automatically, but you can if you want -->
210210
<!-- apply a specific flavor of google-java-format and reflow long strings -->
211211
<googleJavaFormat>
212-
<version>1.17.0</version>
212+
<version>1.19.2</version>
213213
<style>AOSP</style>
214214
<reflowLongStrings>true</reflowLongStrings>
215215
</googleJavaFormat>

src/main/java/com/github/freeclimbapi/models/MessageResult.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public static String getDiscriminatorValue() {
114114
public static final String SERIALIZED_NAME_TFN = "tfn";
115115

116116
@SerializedName(SERIALIZED_NAME_TFN)
117-
private MessageResultAllOfTfn tfn;
117+
private TFN tfn;
118118

119119
public static final String SERIALIZED_NAME_PHONE_NUMBER_ID = "phoneNumberId";
120120

@@ -484,7 +484,7 @@ public void setMediaUrls(List<URI> mediaUrls) {
484484
this.mediaUrls = mediaUrls;
485485
}
486486

487-
public MessageResult tfn(MessageResultAllOfTfn tfn) {
487+
public MessageResult tfn(TFN tfn) {
488488

489489
this.tfn = tfn;
490490
return this;
@@ -497,11 +497,11 @@ public MessageResult tfn(MessageResultAllOfTfn tfn) {
497497
*/
498498
@javax.annotation.Nullable
499499
@ApiModelProperty(value = "")
500-
public MessageResultAllOfTfn getTfn() {
500+
public TFN getTfn() {
501501
return tfn;
502502
}
503503

504-
public void setTfn(MessageResultAllOfTfn tfn) {
504+
public void setTfn(TFN tfn) {
505505
this.tfn = tfn;
506506
}
507507

src/main/java/com/github/freeclimbapi/models/MessageResultAllOfTfn.java

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)