Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #267 from Vonage/dev
Dev into Main for Release
- Loading branch information
Showing
50 changed files
with
1,319 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
branches: [ main, dev ] | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
Vonage.Test.Unit/Data/MessagingTests/SendSmsAsyncBadResponse.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"message-count": "1", | ||
"messages": [ | ||
{ | ||
"status": "4", | ||
"error-text": "invalid credentials" | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
Vonage.Test.Unit/Data/MessagingTests/SendSmsAsyncWithAllPropertiesSet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"message-count": "1", | ||
"messages": [ | ||
{ | ||
"to": "447700900000", | ||
"message-id": "0A0000000123ABCD1", | ||
"status": "0", | ||
"remaining-balance": "3.14159265", | ||
"message-price": "0.03330000", | ||
"network": "12345", | ||
"account-ref": "customer1234" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"message-count": "1", | ||
"messages": [ | ||
{ | ||
"status": "4", | ||
"error-text": "invalid credentials" | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
Vonage.Test.Unit/Data/MessagingTests/SendSmsTypicalUsageSimplifiedAsync.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"message-count": "1", | ||
"messages": [ | ||
{ | ||
"to": "447700900000", | ||
"message-id": "0A0000000123ABCD1", | ||
"status": "0", | ||
"remaining-balance": "3.14159265", | ||
"message-price": "0.03330000", | ||
"network": "12345", | ||
"account-ref": "customer1234" | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
Vonage.Test.Unit/Data/MessagingTests/SendSmsWithAllPropertiesSet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"message-count": "1", | ||
"messages": [ | ||
{ | ||
"to": "447700900000", | ||
"message-id": "0A0000000123ABCD1", | ||
"status": "0", | ||
"remaining-balance": "3.14159265", | ||
"message-price": "0.03330000", | ||
"network": "12345", | ||
"account-ref": "customer1234" | ||
} | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
Vonage.Test.Unit/Data/MessagingTests/SendSmsWrongCredentialsThrowsException.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"message-count": "1", | ||
"messages": [ | ||
{ | ||
"status": "4", | ||
"error-text": "invalid credentials" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"type": "UNAUTHORIZED", | ||
"error_title": "Unauthorized" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"type": "https://developer.nexmo.com/api-errors/redact#premature-redaction", | ||
"title": "Premature Redaction", | ||
"detail": "You must wait 60 minutes before redacting ID '0A000000B0C9A1234'", | ||
"instance": "bf0ca0bf927b3b52e3cb03217e1a1ddf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"type": "https://developer.nexmo.com/api-errors#invalid-id", | ||
"title": "Invalid ID", | ||
"detail": "ID '0A000000B0C9A1234' could not be found (type=MT)", | ||
"instance": "bf0ca0bf927b3b52e3cb03217e1a1ddf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"type": "https://developer.nexmo.com/api-errors#invalid-json", | ||
"title": "Invalid JSON", | ||
"detail": "Unexpected character ('\"' (code 34)): was expecting comma to separate Object entries", | ||
"instance": "bf0ca0bf927b3b52e3cb03217e1a1ddf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"type": "https://developer.nexmo.com/api-errors/redact#rate-limit", | ||
"title": "Rate Limit Hit", | ||
"detail": "Please wait, then retry your request", | ||
"instance": "bf0ca0bf927b3b52e3cb03217e1a1ddf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"msisdn": "15559301529", | ||
"opt-in": "true", | ||
"opt-in-date": "2014-08-21 17:34:47", | ||
"opt-out": "false" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"msisdn": "15559301529", | ||
"opt-in": "true", | ||
"opt-in-date": "2014-08-21 17:34:47", | ||
"opt-out": "false" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"opt-in-count": "3", | ||
"opt-in-list": [ | ||
{ | ||
"msisdn": "15558937009", | ||
"opt-in": "false", | ||
"opt-out": "true", | ||
"opt-out-date": "2014-06-27 18:31:33" | ||
}, | ||
{ | ||
"msisdn": "15554908975", | ||
"opt-in": "false", | ||
"opt-out": "true", | ||
"opt-out-date": "2014-07-18 16:20:20" | ||
}, | ||
{ | ||
"msisdn": "15559912501", | ||
"opt-in": "false", | ||
"opt-in-date": "2014-07-18 15:28:23", | ||
"opt-out": "true", | ||
"opt-out-date": "2014-08-18 23:17:40" | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
Vonage.Test.Unit/Data/ShortCodeTests/QueryOptInsAsync.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"opt-in-count": "3", | ||
"opt-in-list": [ | ||
{ | ||
"msisdn": "15558937009", | ||
"opt-in": "false", | ||
"opt-out": "true", | ||
"opt-out-date": "2014-06-27 18:31:33" | ||
}, | ||
{ | ||
"msisdn": "15554908975", | ||
"opt-in": "false", | ||
"opt-out": "true", | ||
"opt-out-date": "2014-07-18 16:20:20" | ||
}, | ||
{ | ||
"msisdn": "15559912501", | ||
"opt-in": "false", | ||
"opt-in-date": "2014-07-18 15:28:23", | ||
"opt-out": "true", | ||
"opt-out-date": "2014-08-18 23:17:40" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"message-count": "1", | ||
"messages": [ | ||
{ | ||
"status": "delivered", | ||
"message-id": "abcdefg", | ||
"to": "16365553226", | ||
"client-ref": "client-ref", | ||
"remaining-balance": "remaining-balance", | ||
"message-price": "message-price", | ||
"network": "network", | ||
"error-code": "0", | ||
"error-text": "error-message" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"message-count": "1", | ||
"messages": [ | ||
{ | ||
"status": "delivered", | ||
"message-id": "abcdefg", | ||
"to": "16365553226", | ||
"client-ref": "client-ref", | ||
"remaining-balance": "remaining-balance", | ||
"message-price": "message-price", | ||
"network": "network", | ||
"error-code": "0", | ||
"error-text": "error-message" | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
Vonage.Test.Unit/Data/ShortCodeTests/SendTwoFactorAuth.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"message-count": "1", | ||
"messages": [ | ||
{ | ||
"status": "returnCode", | ||
"message-id": "messageId", | ||
"to": "to", | ||
"client-ref": "client-ref", | ||
"remaining-balance": "remaining-balance", | ||
"message-price": "message-price", | ||
"network": "network", | ||
"error-text": "error-message" | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
Vonage.Test.Unit/Data/ShortCodeTests/SendTwoFactorAuthAsync.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"message-count": "1", | ||
"messages": [ | ||
{ | ||
"status": "returnCode", | ||
"message-id": "messageId", | ||
"to": "to", | ||
"client-ref": "client-ref", | ||
"remaining-balance": "remaining-balance", | ||
"message-price": "message-price", | ||
"network": "network", | ||
"error-text": "error-message" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.