diff --git a/sdk/communication/communication-short-codes/CHANGELOG.md b/sdk/communication/communication-short-codes/CHANGELOG.md
index 6792d64157d1..b9197cc3c36d 100644
--- a/sdk/communication/communication-short-codes/CHANGELOG.md
+++ b/sdk/communication/communication-short-codes/CHANGELOG.md
@@ -1,14 +1,11 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
-
+## 1.0.0-beta.2 (2022-02-08)
### Features Added
+- Migrated from using `@azure/core-http` to `@azure/core-rest-pipeline` for the handling of HTTP requests. See [Azure Core v1 vs v2](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-rest-pipeline/documentation/core2.md) for more on the difference and benefits of the move.
### Breaking Changes
-
-### Bugs Fixed
-
-### Other Changes
+- `ShortCodesClient.submitUSProgramBrief` no longer returns the generic `RestResponse` type, and instead returns the more specific `USProgramBrief`. Because of this, the `_response` property is no longer exposed in the returned object. However, in the operation options, it can take a callback (`onResponse`) to access the HTTP response. See https://github.com/Azure/autorest.typescript/wiki/%60core-http%60-dependency-migration-to-%60core-client%60-%60core-rest-pipeline%60#change-to-the-_response-property
## 1.0.0-beta.1 (2021-11-05)
diff --git a/sdk/communication/communication-short-codes/package.json b/sdk/communication/communication-short-codes/package.json
index c4b5cfc4fe7a..13856a64976c 100644
--- a/sdk/communication/communication-short-codes/package.json
+++ b/sdk/communication/communication-short-codes/package.json
@@ -1,7 +1,7 @@
{
"name": "@azure-tools/communication-short-codes",
"version": "1.0.0-beta.2",
- "description": "SDK for Azure Communication Services which facilitates short code management.\"",
+ "description": "SDK for Azure Communication Services which facilitates short code management.",
"sdk-type": "client",
"main": "dist/index.js",
"module": "dist-esm/src/index.js",
@@ -59,12 +59,13 @@
"sideEffects": false,
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
"dependencies": {
- "@azure/communication-common": "^1.1.0",
"@azure/abort-controller": "^1.0.0",
+ "@azure/communication-common": "^2.0.0",
"@azure/core-auth": "^1.3.0",
- "@azure/core-http": "^2.0.0",
+ "@azure/core-client": "^1.3.2",
"@azure/core-lro": "^2.2.0",
"@azure/core-paging": "^1.1.1",
+ "@azure/core-rest-pipeline": "^1.3.2",
"@azure/core-tracing": "1.0.0-preview.13",
"@azure/logger": "^1.0.0",
"events": "^3.0.0",
@@ -107,6 +108,22 @@
"sinon": "^9.0.2",
"typescript": "~4.2.0"
},
+ "//metadata": {
+ "constantPaths": [
+ {
+ "path": "src/generated/src/shortCodesClientContext.ts",
+ "prefix": "packageDetails"
+ },
+ {
+ "path": "src/utils/constants.ts",
+ "prefix": "SDK_VERSION"
+ },
+ {
+ "path": "swagger/README.md",
+ "prefix": "package-version"
+ }
+ ]
+ },
"//sampleConfiguration": {
"productName": "Azure Communication Services - Short Codes",
"productSlugs": [
diff --git a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.json b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.json
index 97a2cd6daa02..ad7fcebca744 100644
--- a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.json
+++ b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.json
@@ -12,12 +12,13 @@
"responseHeaders": {
"api-supported-versions": "2021-10-25-preview",
"content-type": "application/json",
- "date": "Mon, 15 Nov 2021 22:40:34 GMT",
- "ms-cv": "zErQ4Ec7a0i0sFdmWoK/rQ.0",
+ "date": "Thu, 10 Mar 2022 23:11:51 GMT",
+ "ms-cv": "FslQOErR5E+l+8cdRdyeAQ.0",
"request-context": "appId=",
- "x-azure-ref": "04+GSYQAAAAC9sRVfIXB+ToPN1jzr+CyKV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx",
+ "strict-transport-security": "max-age=2592000",
+ "x-azure-ref": "0t4UqYgAAAADgVC8+v8yKTJEc2fkf0PJDTEFYMzExMDAwMTA4MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
"x-cache": "CONFIG_NOCACHE",
- "x-processing-time": "204ms"
+ "x-processing-time": "349ms"
}
},
{
@@ -28,17 +29,18 @@
},
"requestBody": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
"status": 201,
- "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2021-11-15T22:40:37.3636499+00:00\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
+ "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2022-03-10T23:11:53.6656036+00:00\",\"programDetails\":{\"isVanity\":false,\"preferredVanityNumbers\":[],\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
"responseHeaders": {
"api-supported-versions": "2021-10-25-preview",
"content-type": "application/json; charset=utf-8",
- "date": "Mon, 15 Nov 2021 22:40:36 GMT",
+ "date": "Thu, 10 Mar 2022 23:11:53 GMT",
"location": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000",
- "ms-cv": "G0v7LrdrjU67oZgHrpa1Pw.0",
+ "ms-cv": "8d016Qt6w0WUlG9VlvsV6Q.0",
"request-context": "appId=",
- "x-azure-ref": "04+GSYQAAAADvmEVc3Pl4QKcQCIbV4nM3V1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx",
+ "strict-transport-security": "max-age=2592000",
+ "x-azure-ref": "0t4UqYgAAAABD0iNH6O1mTLjbTv7ZGI17TEFYMzExMDAwMTA4MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
"x-cache": "CONFIG_NOCACHE",
- "x-processing-time": "1952ms"
+ "x-processing-time": "2187ms"
}
},
{
@@ -49,16 +51,17 @@
},
"requestBody": null,
"status": 200,
- "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2021-11-15T22:40:37.3636499+00:00\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
+ "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2022-03-10T23:11:53.6656036+00:00\",\"programDetails\":{\"isVanity\":false,\"preferredVanityNumbers\":[],\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
"responseHeaders": {
"api-supported-versions": "2021-10-25-preview",
"content-type": "application/json; charset=utf-8",
- "date": "Mon, 15 Nov 2021 22:40:38 GMT",
- "ms-cv": "J+qbtHjUZ0+BVGPSqBJ6mA.0",
+ "date": "Thu, 10 Mar 2022 23:11:55 GMT",
+ "ms-cv": "TxU5T3Iec0S3LuMO+vsvYQ.0",
"request-context": "appId=",
- "x-azure-ref": "05eGSYQAAAABKs6iTAuWlT6ZSEp4Up91rV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx",
+ "strict-transport-security": "max-age=2592000",
+ "x-azure-ref": "0uoUqYgAAAAB5SHbha62BTq69UdnpraHUTEFYMzExMDAwMTA4MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
"x-cache": "CONFIG_NOCACHE",
- "x-processing-time": "1255ms"
+ "x-processing-time": "1605ms"
}
},
{
@@ -69,16 +72,17 @@
},
"requestBody": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"programDetails\":{\"signUpUrl\":\"https://endpoint/updated-sign-up\",\"termsOfServiceUrl\":\"https://endpoint/updated-terms\",\"privacyPolicyUrl\":\"https://endpoint/updated-privacy\"}}",
"status": 200,
- "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2021-11-15T22:40:37.3636499+00:00\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://endpoint/updated-sign-up\",\"termsOfServiceUrl\":\"https://endpoint/updated-terms\",\"privacyPolicyUrl\":\"https://endpoint/updated-privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
+ "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2022-03-10T23:11:53.6656036+00:00\",\"programDetails\":{\"isVanity\":false,\"preferredVanityNumbers\":[],\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://endpoint/updated-sign-up\",\"termsOfServiceUrl\":\"https://endpoint/updated-terms\",\"privacyPolicyUrl\":\"https://endpoint/updated-privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
"responseHeaders": {
"api-supported-versions": "2021-10-25-preview",
"content-type": "application/json; charset=utf-8",
- "date": "Mon, 15 Nov 2021 22:40:39 GMT",
- "ms-cv": "05uefirc8kisJRB9e+lzQA.0",
+ "date": "Thu, 10 Mar 2022 23:11:57 GMT",
+ "ms-cv": "HU9pC/AKSEq4cIG0PRMM/A.0",
"request-context": "appId=",
- "x-azure-ref": "05+GSYQAAAAAudLy8sJ4aR44esIzuS6r/V1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx",
+ "strict-transport-security": "max-age=2592000",
+ "x-azure-ref": "0u4UqYgAAAAAKbHSR7wnIS6dBy4ZkdQlETEFYMzExMDAwMTA4MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
"x-cache": "CONFIG_NOCACHE",
- "x-processing-time": "1516ms"
+ "x-processing-time": "1896ms"
}
},
{
@@ -89,37 +93,40 @@
},
"requestBody": null,
"status": 200,
- "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2021-11-15T22:40:37.3636499+00:00\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://endpoint/updated-sign-up\",\"termsOfServiceUrl\":\"https://endpoint/updated-terms\",\"privacyPolicyUrl\":\"https://endpoint/updated-privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
+ "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2022-03-10T23:11:53.6656036+00:00\",\"programDetails\":{\"isVanity\":false,\"preferredVanityNumbers\":[],\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://endpoint/updated-sign-up\",\"termsOfServiceUrl\":\"https://endpoint/updated-terms\",\"privacyPolicyUrl\":\"https://endpoint/updated-privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
"responseHeaders": {
"api-supported-versions": "2021-10-25-preview",
"content-type": "application/json; charset=utf-8",
- "date": "Mon, 15 Nov 2021 22:40:41 GMT",
- "ms-cv": "cn8CMWtdPUeiUbXw+OByHQ.0",
+ "date": "Thu, 10 Mar 2022 23:11:59 GMT",
+ "ms-cv": "B21SSATd1U6tOivjXVHzjA.0",
"request-context": "appId=",
- "x-azure-ref": "06OGSYQAAAACPuj0JRjmmTbLWCVVswx7eV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx",
+ "strict-transport-security": "max-age=2592000",
+ "x-azure-ref": "0vYUqYgAAAAAXIQIbrKu2QIommICJbIHjTEFYMzExMDAwMTA4MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
"x-cache": "CONFIG_NOCACHE",
- "x-processing-time": "1292ms"
+ "x-processing-time": "1663ms"
}
},
{
"method": "GET",
"url": "https://endpoint/shortCodes/countries/US/programBriefs",
"query": {
+ "skip": "0",
"top": "100",
"api-version": "2021-10-25-preview"
},
"requestBody": null,
"status": 200,
- "response": "{\"programBriefs\":[{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2021-11-15T22:40:37.3636499+00:00\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://endpoint/updated-sign-up\",\"termsOfServiceUrl\":\"https://endpoint/updated-terms\",\"privacyPolicyUrl\":\"https://endpoint/updated-privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}]}",
+ "response": "{\"programBriefs\":[{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2022-03-10T23:11:53.6656036+00:00\",\"programDetails\":{\"isVanity\":false,\"preferredVanityNumbers\":[],\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://endpoint/updated-sign-up\",\"termsOfServiceUrl\":\"https://endpoint/updated-terms\",\"privacyPolicyUrl\":\"https://endpoint/updated-privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}]}",
"responseHeaders": {
"api-supported-versions": "2021-10-25-preview",
"content-type": "application/json; charset=utf-8",
- "date": "Mon, 15 Nov 2021 22:40:42 GMT",
- "ms-cv": "Myx6UbRC2kqU0+csuqcHBQ.0",
+ "date": "Thu, 10 Mar 2022 23:12:01 GMT",
+ "ms-cv": "ubrfEN5a8ECeY0FUakgFTw.0",
"request-context": "appId=",
- "x-azure-ref": "06uGSYQAAAAAhCWQDadr0QpuTZS6gc+MbV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx",
+ "strict-transport-security": "max-age=2592000",
+ "x-azure-ref": "0v4UqYgAAAABLHpb0gJZERp9aRwRlgPdTTEFYMzExMDAwMTA4MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
"x-cache": "CONFIG_NOCACHE",
- "x-processing-time": "1257ms"
+ "x-processing-time": "2031ms"
}
},
{
@@ -133,12 +140,13 @@
"response": "",
"responseHeaders": {
"api-supported-versions": "2021-10-25-preview",
- "date": "Mon, 15 Nov 2021 22:40:43 GMT",
- "ms-cv": "Z1Gdrq8eAEyVsQB0+Qhjig.0",
+ "date": "Thu, 10 Mar 2022 23:12:01 GMT",
+ "ms-cv": "CL9Zd7/+Tky/NmoczFpssg.0",
"request-context": "appId=",
- "x-azure-ref": "06+GSYQAAAABfVAQ7obBkTqg+I5Zzt7woV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx",
+ "strict-transport-security": "max-age=2592000",
+ "x-azure-ref": "0wYUqYgAAAAAy/WqAFliFQ5/sCZdFq7R4TEFYMzExMDAwMTA4MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
"x-cache": "CONFIG_NOCACHE",
- "x-processing-time": "402ms"
+ "x-processing-time": "622ms"
}
},
{
@@ -153,12 +161,13 @@
"responseHeaders": {
"api-supported-versions": "2021-10-25-preview",
"content-type": "application/json",
- "date": "Mon, 15 Nov 2021 22:40:43 GMT",
- "ms-cv": "edWxQM/KC062fD5WBLbpmA.0",
+ "date": "Thu, 10 Mar 2022 23:12:02 GMT",
+ "ms-cv": "tn12VdnddU+OHLLASkpYmw.0",
"request-context": "appId=",
- "x-azure-ref": "07OGSYQAAAABzevHrfeh8TYNfesAfCD2rV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx",
+ "strict-transport-security": "max-age=2592000",
+ "x-azure-ref": "0woUqYgAAAAAz/tOLVfnFRpLmBB1DY8K7TEFYMzExMDAwMTA4MDQ1ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
"x-cache": "CONFIG_NOCACHE",
- "x-processing-time": "191ms"
+ "x-processing-time": "370ms"
}
}
],
@@ -166,5 +175,5 @@
"uniqueName": {},
"newDate": {}
},
- "hash": "4a6fd68a9ce6df85fa67bf14f8797a43"
+ "hash": "d327d1e180fe142b11ff284a68a63c01"
}
\ No newline at end of file
diff --git a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.json b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.json
index 4be57b84c3e4..ff3a017757a3 100644
--- a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.json
+++ b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.json
@@ -6,18 +6,19 @@
"query": {
"api-version": "2021-10-25-preview"
},
- "requestBody": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Help Message\",\"optOutMessage\":\"OUT\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\"}}",
- "status": 200,
- "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2021-11-04T22:53:48.0978151+00:00\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Help Message\",\"optOutMessage\":\"OUT\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\"}}",
+ "requestBody": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
+ "status": 201,
+ "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2022-01-18T17:53:39.1834992+00:00\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
"responseHeaders": {
"api-supported-versions": "2021-10-25-preview",
"content-type": "application/json; charset=utf-8",
- "date": "Thu, 04 Nov 2021 22:54:00 GMT",
- "ms-cv": "JrQxJ7VAV0Cc6i+FAGNHIQ.0",
+ "date": "Tue, 18 Jan 2022 17:53:40 GMT",
+ "location": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000",
+ "ms-cv": "Kja19AZa2UuVA28EQ4TvgQ.0",
"request-context": "appId=",
- "x-azure-ref": "0h2SEYQAAAAAPdmV3yC4VSKn4aD+vCk1XTUlBMzAxMDAwMTA5MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
+ "x-azure-ref": "0n/7mYQAAAAA4nn5f6aR9RZZHZfvMO5G1TUlBMzAxMDAwMTA5MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
"x-cache": "CONFIG_NOCACHE",
- "x-processing-time": "2001ms"
+ "x-processing-time": "4890ms"
}
},
{
@@ -28,16 +29,16 @@
},
"requestBody": null,
"status": 200,
- "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2021-11-04T22:53:48.0978151+00:00\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Help Message\",\"optOutMessage\":\"OUT\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\"}}",
+ "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2022-01-18T17:53:39.1834992+00:00\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
"responseHeaders": {
"api-supported-versions": "2021-10-25-preview",
"content-type": "application/json; charset=utf-8",
- "date": "Thu, 04 Nov 2021 22:54:01 GMT",
- "ms-cv": "m9gtL+eVcUCNAyEQPsTpMQ.0",
+ "date": "Tue, 18 Jan 2022 17:53:43 GMT",
+ "ms-cv": "yjzcIILN10iCOLFsc61DCQ.0",
"request-context": "appId=",
- "x-azure-ref": "0iWSEYQAAAAAIslOsLZ8GTpWb9RgoK7YcTUlBMzAxMDAwMTA5MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
+ "x-azure-ref": "0pf7mYQAAAADBNnHwEGTySZIWv02rSkEUTUlBMzAxMDAwMTA5MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
"x-cache": "CONFIG_NOCACHE",
- "x-processing-time": "1522ms"
+ "x-processing-time": "2843ms"
}
},
{
@@ -51,12 +52,12 @@
"response": "",
"responseHeaders": {
"api-supported-versions": "2021-10-25-preview",
- "date": "Thu, 04 Nov 2021 22:54:02 GMT",
- "ms-cv": "kGAUUlK+BkSHyo6hI8RQrQ.0",
+ "date": "Tue, 18 Jan 2022 17:53:46 GMT",
+ "ms-cv": "zyejen9X/UaSrLkzv98+9Q.0",
"request-context": "appId=",
- "x-azure-ref": "0imSEYQAAAABsn2vAJ16lQbioEYs1dJnLTUlBMzAxMDAwMTA5MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
+ "x-azure-ref": "0qP7mYQAAAAAnC20EJwRXR75KY3FbSwl8TUlBMzAxMDAwMTA5MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
"x-cache": "CONFIG_NOCACHE",
- "x-processing-time": "524ms"
+ "x-processing-time": "2797ms"
}
}
],
@@ -64,5 +65,5 @@
"uniqueName": {},
"newDate": {}
},
- "hash": "88793149dee314aad0b01a8737ed5fe5"
+ "hash": "bf8aaceb963343e826b368a5592e93c2"
}
\ No newline at end of file
diff --git a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.json b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.json
index 8a3e271e917f..64ce207954b6 100644
--- a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.json
+++ b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.json
@@ -4,6 +4,7 @@
"method": "GET",
"url": "https://endpoint/shortCodes",
"query": {
+ "skip": "0",
"top": "100",
"api-version": "2021-10-25-preview"
},
@@ -13,12 +14,12 @@
"responseHeaders": {
"api-supported-versions": "2021-10-25-preview",
"content-type": "application/json; charset=utf-8",
- "date": "Mon, 15 Nov 2021 22:40:34 GMT",
- "ms-cv": "+674kVjwPES0vEbm6uOHag.0",
+ "date": "Tue, 18 Jan 2022 17:53:57 GMT",
+ "ms-cv": "EjDEFD3JHE2Rx7ZGkfZiog.0",
"request-context": "appId=",
- "x-azure-ref": "04uGSYQAAAAC21OB5ieczR6VA/3Fnn9LRV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx",
+ "x-azure-ref": "0tf7mYQAAAAA2Fv38mIaKRrmfz3CjSrFyTUlBMzAxMDAwMTA5MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
"x-cache": "CONFIG_NOCACHE",
- "x-processing-time": "384ms"
+ "x-processing-time": "1554ms"
}
}
],
@@ -26,5 +27,5 @@
"uniqueName": {},
"newDate": {}
},
- "hash": "09d87905de946cf74582e07adbf6234b"
+ "hash": "30959777d88128e9d0c848e21982cfb8"
}
\ No newline at end of file
diff --git a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.json b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.json
index 0e0463d4a963..61ba01e07c7d 100644
--- a/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.json
+++ b/sdk/communication/communication-short-codes/recordings/browsers/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.json
@@ -6,19 +6,19 @@
"query": {
"api-version": "2021-10-25-preview"
},
- "requestBody": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Help Message\",\"optOutMessage\":\"OUT\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\"}}",
+ "requestBody": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
"status": 201,
- "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2021-11-04T22:54:05.1182784+00:00\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Help Message\",\"optOutMessage\":\"OUT\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\"}}",
+ "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2022-01-18T17:53:51.3297452+00:00\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
"responseHeaders": {
"api-supported-versions": "2021-10-25-preview",
"content-type": "application/json; charset=utf-8",
- "date": "Thu, 04 Nov 2021 22:54:04 GMT",
+ "date": "Tue, 18 Jan 2022 17:53:52 GMT",
"location": "https://endpoint/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000",
- "ms-cv": "AiiSvL/uGEa+JdC0RzXdPA.0",
+ "ms-cv": "pbbqZH3fK0mdKIRIJ8FSXQ.0",
"request-context": "appId=",
- "x-azure-ref": "0i2SEYQAAAACXt75GbTWOSL85DXnl+fvpTUlBMzAxMDAwMTA5MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
+ "x-azure-ref": "0q/7mYQAAAACx/xH7HZGmTKC0vbF534keTUlBMzAxMDAwMTA5MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
"x-cache": "CONFIG_NOCACHE",
- "x-processing-time": "2101ms"
+ "x-processing-time": "5903ms"
}
},
{
@@ -27,18 +27,18 @@
"query": {
"api-version": "2021-10-25-preview"
},
- "requestBody": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST UPDATE\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Help Message\",\"optOutMessage\":\"OUT\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\"}}",
+ "requestBody": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST UPDATE\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
"status": 200,
- "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2021-11-04T22:54:05.1182784+00:00\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST UPDATE\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Help Message\",\"optOutMessage\":\"OUT\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\"}}",
+ "response": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"status\":\"draft\",\"reviewNotes\":[],\"costs\":[{\"amount\":650.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"once\"},{\"amount\":1000.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"}],\"statusUpdatedDate\":\"2022-01-18T17:53:51.3297452+00:00\",\"programDetails\":{\"isVanity\":false,\"numberType\":\"shortCode\",\"isPoliticalCampaign\":false,\"name\":\"Contoso Loyalty Program\",\"description\":\"TEST UPDATE\",\"url\":\"https://endpoint/loyalty-program\",\"signUpTypes\":[\"sms\",\"website\"],\"signUpUrl\":\"https://contoso.com/sign-up\",\"termsOfServiceUrl\":\"https://contoso.com/terms\",\"privacyPolicyUrl\":\"https://contoso.com/privacy\"},\"companyInformation\":{\"name\":\"Contoso\",\"url\":\"https://contoso.com\",\"address\":\"1 Contoso Way Redmond, WA 98052\",\"contactInformation\":{\"name\":\"Alex\",\"phone\":\"+14255551234\",\"email\":\"alex@contoso.com\"},\"customerCareInformation\":{\"tollFreeNumber\":\"+18005551234\",\"email\":\"customercare@contoso.com\"}},\"messageDetails\":{\"supportedProtocols\":[\"sms\"],\"recurrence\":\"subscription\",\"helpMessage\":\"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.\",\"optOutMessage\":\"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.\",\"optInMessage\":\"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'\",\"optInReply\":\"JOIN\",\"confirmationMessage\":\"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!\",\"directionality\":\"twoWay\",\"useCases\":[{\"contentCategory\":\"coupons\",\"examples\":[{\"messages\":[{\"direction\":\"fromUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgram\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]},{\"contentCategory\":\"loyaltyProgramPointsPrizes\",\"examples\":[{\"messages\":[{\"direction\":\"toUser\",\"text\":\"txtMessage\"}]}]}]},\"trafficDetails\":{\"totalMonthlyVolume\":10000,\"monthlyAverageMessagesFromUser\":1,\"monthlyAverageMessagesToUser\":3,\"isSpiky\":true,\"spikeDetails\":\"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.\",\"estimatedRampUpTimeInDays\":0}}",
"responseHeaders": {
"api-supported-versions": "2021-10-25-preview",
"content-type": "application/json; charset=utf-8",
- "date": "Thu, 04 Nov 2021 22:54:07 GMT",
- "ms-cv": "sQMbsRfq2kqZ4n5O/2RFsQ.0",
+ "date": "Tue, 18 Jan 2022 17:53:56 GMT",
+ "ms-cv": "710ZwsRvYECooNQCTicG7A.0",
"request-context": "appId=",
- "x-azure-ref": "0jWSEYQAAAADyJujDTULgQqyJgA3ewGFXTUlBMzAxMDAwMTA5MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
+ "x-azure-ref": "0sf7mYQAAAACwYBLR+yLISJu7SnOry/rCTUlBMzAxMDAwMTA5MDQ5ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==",
"x-cache": "CONFIG_NOCACHE",
- "x-processing-time": "2366ms"
+ "x-processing-time": "3947ms"
}
}
],
@@ -46,5 +46,5 @@
"uniqueName": {},
"newDate": {}
},
- "hash": "c26d11fc1116cc9023a390af1176b31d"
+ "hash": "c9c9eb0c8c30b821c0fdddbd9ee46bb6"
}
\ No newline at end of file
diff --git a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.js b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.js
index b5eb16a1db07..65b692abee75 100644
--- a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.js
+++ b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_gets_updates_lists_and_deletes_us_program_brief/recording_can_create_get_update_list_and_delete_a_us_program_brief.js
@@ -1,6 +1,6 @@
let nock = require('nock');
-module.exports.hash = "4d852ec321ad8daf08cbb2381a510539";
+module.exports.hash = "2b9e6b9f157858fc5a08462c58536ee3";
module.exports.testInfo = {"uniqueName":{},"newDate":{}}
@@ -8,204 +8,204 @@ nock('https://endpoint', {"encodedQueryParams":true})
.get('/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000')
.query(true)
.reply(404, {"error":{"code":"NotFound","message":"Could not find the ProgramBrief with key 'Azure|00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000'"}}, [
- 'Date',
- 'Mon, 15 Nov 2021 22:40:07 GMT',
- 'Content-Type',
- 'application/json',
'Transfer-Encoding',
'chunked',
- 'Connection',
- 'keep-alive',
+ 'Content-Type',
+ 'application/json',
'Request-Context',
'appId=',
'MS-CV',
- 'cnge6RMf20yD8hGYK0Jxdw.0',
+ 'BUh48JQB+EujJeYhDo8PdQ.0',
+ 'Strict-Transport-Security',
+ 'max-age=2592000',
'api-supported-versions',
'2021-10-25-preview',
'X-Processing-Time',
- '237ms',
- 'x-azure-ref',
- '20211115T224007Z-6gfrwk89mp1791236q2316qve40000000fp000000000854p',
+ '383ms',
'X-Cache',
- 'CONFIG_NOCACHE'
+ 'CONFIG_NOCACHE',
+ 'X-Azure-Ref',
+ '0qYUqYgAAAABTztMvIj83R6/TbjNysWqeTEFYMzExMDAwMTA4MDA3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
+ 'Date',
+ 'Thu, 10 Mar 2022 23:11:37 GMT'
]);
nock('https://endpoint', {"encodedQueryParams":true})
.patch('/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000', {"id":"00000000-0000-0000-0000-000000000000","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}})
.query(true)
- .reply(201, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2021-11-15T22:40:19.3355182+00:00","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}}, [
- 'Date',
- 'Mon, 15 Nov 2021 22:40:11 GMT',
- 'Content-Type',
- 'application/json; charset=utf-8',
+ .reply(201, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2022-03-10T23:11:39.028054+00:00","programDetails":{"isVanity":false,"preferredVanityNumbers":[],"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}}, [
'Transfer-Encoding',
'chunked',
- 'Connection',
- 'keep-alive',
+ 'Content-Type',
+ 'application/json; charset=utf-8',
'Location',
'https://smstestapp.communication.azure.com/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000',
'Request-Context',
'appId=',
'MS-CV',
- 'A6fW2ZU8eUu6bcyeO+/OrA.0',
+ 'oOegC43wQEWEqHe00i4+0A.0',
+ 'Strict-Transport-Security',
+ 'max-age=2592000',
'api-supported-versions',
'2021-10-25-preview',
'X-Processing-Time',
- '2828ms',
- 'x-azure-ref',
- '20211115T224008Z-6gfrwk89mp1791236q2316qve40000000fp00000000085az',
+ '1775ms',
'X-Cache',
- 'CONFIG_NOCACHE'
+ 'CONFIG_NOCACHE',
+ 'X-Azure-Ref',
+ '0qYUqYgAAAAAKIBXAGf1nSIDhLjgSRkEZTEFYMzExMDAwMTA4MDA3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
+ 'Date',
+ 'Thu, 10 Mar 2022 23:11:39 GMT'
]);
nock('https://endpoint', {"encodedQueryParams":true})
.get('/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000')
.query(true)
- .reply(200, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2021-11-15T22:40:19.3355182+00:00","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}}, [
- 'Date',
- 'Mon, 15 Nov 2021 22:40:12 GMT',
- 'Content-Type',
- 'application/json; charset=utf-8',
+ .reply(200, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2022-03-10T23:11:39.028054+00:00","programDetails":{"isVanity":false,"preferredVanityNumbers":[],"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}}, [
'Transfer-Encoding',
'chunked',
- 'Connection',
- 'keep-alive',
+ 'Content-Type',
+ 'application/json; charset=utf-8',
'Request-Context',
'appId=',
'MS-CV',
- 'KpZzGKmxjE2AUNsQoyRJLg.0',
+ '+vnnkpkXQ0q14O9TG4Sg4A.0',
+ 'Strict-Transport-Security',
+ 'max-age=2592000',
'api-supported-versions',
'2021-10-25-preview',
'X-Processing-Time',
- '1485ms',
- 'x-azure-ref',
- '20211115T224011Z-6gfrwk89mp1791236q2316qve40000000fp00000000085zz',
+ '1470ms',
'X-Cache',
- 'CONFIG_NOCACHE'
+ 'CONFIG_NOCACHE',
+ 'X-Azure-Ref',
+ '0q4UqYgAAAAA9KMimDh8NQ7sF7ZQri77wTEFYMzExMDAwMTA4MDA3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
+ 'Date',
+ 'Thu, 10 Mar 2022 23:11:40 GMT'
]);
nock('https://endpoint', {"encodedQueryParams":true})
.patch('/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000', {"id":"00000000-0000-0000-0000-000000000000","programDetails":{"signUpUrl":"https://endpoint/updated-sign-up","termsOfServiceUrl":"https://endpoint/updated-terms","privacyPolicyUrl":"https://endpoint/updated-privacy"}})
.query(true)
- .reply(200, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2021-11-15T22:40:19.3355182+00:00","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://endpoint/updated-sign-up","termsOfServiceUrl":"https://endpoint/updated-terms","privacyPolicyUrl":"https://endpoint/updated-privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}}, [
- 'Date',
- 'Mon, 15 Nov 2021 22:40:14 GMT',
- 'Content-Type',
- 'application/json; charset=utf-8',
+ .reply(200, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2022-03-10T23:11:39.028054+00:00","programDetails":{"isVanity":false,"preferredVanityNumbers":[],"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://endpoint/updated-sign-up","termsOfServiceUrl":"https://endpoint/updated-terms","privacyPolicyUrl":"https://endpoint/updated-privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}}, [
'Transfer-Encoding',
'chunked',
- 'Connection',
- 'keep-alive',
+ 'Content-Type',
+ 'application/json; charset=utf-8',
'Request-Context',
'appId=',
'MS-CV',
- 'tL136UZtE0C7+i2hq5mR9w.0',
+ 'R/+SpGj9BE2NooNNw1C3dQ.0',
+ 'Strict-Transport-Security',
+ 'max-age=2592000',
'api-supported-versions',
'2021-10-25-preview',
'X-Processing-Time',
- '1942ms',
- 'x-azure-ref',
- '20211115T224012Z-6gfrwk89mp1791236q2316qve40000000fp00000000086d2',
+ '1661ms',
'X-Cache',
- 'CONFIG_NOCACHE'
+ 'CONFIG_NOCACHE',
+ 'X-Azure-Ref',
+ '0rIUqYgAAAABytqUSL7iYR5GmCZYJrTksTEFYMzExMDAwMTA4MDA3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
+ 'Date',
+ 'Thu, 10 Mar 2022 23:11:42 GMT'
]);
nock('https://endpoint', {"encodedQueryParams":true})
.get('/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000')
.query(true)
- .reply(200, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2021-11-15T22:40:19.3355182+00:00","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://endpoint/updated-sign-up","termsOfServiceUrl":"https://endpoint/updated-terms","privacyPolicyUrl":"https://endpoint/updated-privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}}, [
- 'Date',
- 'Mon, 15 Nov 2021 22:40:16 GMT',
- 'Content-Type',
- 'application/json; charset=utf-8',
+ .reply(200, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2022-03-10T23:11:39.028054+00:00","programDetails":{"isVanity":false,"preferredVanityNumbers":[],"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://endpoint/updated-sign-up","termsOfServiceUrl":"https://endpoint/updated-terms","privacyPolicyUrl":"https://endpoint/updated-privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}}, [
'Transfer-Encoding',
'chunked',
- 'Connection',
- 'keep-alive',
+ 'Content-Type',
+ 'application/json; charset=utf-8',
'Request-Context',
'appId=',
'MS-CV',
- 'F+wbYVG42E+yG09ZABKVqw.0',
+ 'qgmqPiCzBUSQmBOs/YKCJw.0',
+ 'Strict-Transport-Security',
+ 'max-age=2592000',
'api-supported-versions',
'2021-10-25-preview',
'X-Processing-Time',
- '1673ms',
- 'x-azure-ref',
- '20211115T224014Z-6gfrwk89mp1791236q2316qve40000000fp00000000086x8',
+ '1803ms',
'X-Cache',
- 'CONFIG_NOCACHE'
+ 'CONFIG_NOCACHE',
+ 'X-Azure-Ref',
+ '0roUqYgAAAABrzgdUZVUaQbhvymIvQMWyTEFYMzExMDAwMTA4MDA3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
+ 'Date',
+ 'Thu, 10 Mar 2022 23:11:44 GMT'
]);
nock('https://endpoint', {"encodedQueryParams":true})
.get('/shortCodes/countries/US/programBriefs')
.query(true)
- .reply(200, {"programBriefs":[{"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2021-11-15T22:40:19.3355182+00:00","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://endpoint/updated-sign-up","termsOfServiceUrl":"https://endpoint/updated-terms","privacyPolicyUrl":"https://endpoint/updated-privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}}]}, [
- 'Date',
- 'Mon, 15 Nov 2021 22:40:18 GMT',
- 'Content-Type',
- 'application/json; charset=utf-8',
+ .reply(200, {"programBriefs":[{"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2022-03-10T23:11:39.028054+00:00","programDetails":{"isVanity":false,"preferredVanityNumbers":[],"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://endpoint/updated-sign-up","termsOfServiceUrl":"https://endpoint/updated-terms","privacyPolicyUrl":"https://endpoint/updated-privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}}]}, [
'Transfer-Encoding',
'chunked',
- 'Connection',
- 'keep-alive',
+ 'Content-Type',
+ 'application/json; charset=utf-8',
'Request-Context',
'appId=',
'MS-CV',
- 'Taga7R3XZEmV+t9kXFMfLA.0',
+ 'K+LYs77Jmk2WbEVKS3Mpzg.0',
+ 'Strict-Transport-Security',
+ 'max-age=2592000',
'api-supported-versions',
'2021-10-25-preview',
'X-Processing-Time',
- '1649ms',
- 'x-azure-ref',
- '20211115T224016Z-6gfrwk89mp1791236q2316qve40000000fp00000000087bs',
+ '1576ms',
'X-Cache',
- 'CONFIG_NOCACHE'
+ 'CONFIG_NOCACHE',
+ 'X-Azure-Ref',
+ '0sIUqYgAAAADJfF7iJ7cqQ4RzhahBIUZvTEFYMzExMDAwMTA4MDA3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
+ 'Date',
+ 'Thu, 10 Mar 2022 23:11:45 GMT'
]);
nock('https://endpoint', {"encodedQueryParams":true})
.delete('/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000')
.query(true)
.reply(204, "", [
- 'Date',
- 'Mon, 15 Nov 2021 22:40:19 GMT',
- 'Connection',
- 'keep-alive',
'Request-Context',
'appId=',
'MS-CV',
- 'zS5t0JI9xkGQ6SsYpLAwew.0',
+ '7EWFQlP/B0yOZGdS3ugVSw.0',
+ 'Strict-Transport-Security',
+ 'max-age=2592000',
'api-supported-versions',
'2021-10-25-preview',
'X-Processing-Time',
- '519ms',
- 'x-azure-ref',
- '20211115T224018Z-6gfrwk89mp1791236q2316qve40000000fp00000000087uq',
+ '594ms',
'X-Cache',
- 'CONFIG_NOCACHE'
+ 'CONFIG_NOCACHE',
+ 'X-Azure-Ref',
+ '0soUqYgAAAAAaixqlv/qBQ7ZfrdnQEoMqTEFYMzExMDAwMTA4MDA3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
+ 'Date',
+ 'Thu, 10 Mar 2022 23:11:46 GMT'
]);
nock('https://endpoint', {"encodedQueryParams":true})
.get('/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000')
.query(true)
.reply(404, {"error":{"code":"NotFound","message":"Could not find the ProgramBrief with key 'Azure|00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000'"}}, [
- 'Date',
- 'Mon, 15 Nov 2021 22:40:19 GMT',
- 'Content-Type',
- 'application/json',
'Transfer-Encoding',
'chunked',
- 'Connection',
- 'keep-alive',
+ 'Content-Type',
+ 'application/json',
'Request-Context',
'appId=',
'MS-CV',
- 'JF27intjRUuVVe7QQNApZw.0',
+ 'IDdx1SbUy02cyXSgIq2Svw.0',
+ 'Strict-Transport-Security',
+ 'max-age=2592000',
'api-supported-versions',
'2021-10-25-preview',
'X-Processing-Time',
- '233ms',
- 'x-azure-ref',
- '20211115T224019Z-6gfrwk89mp1791236q2316qve40000000fp000000000881e',
+ '407ms',
'X-Cache',
- 'CONFIG_NOCACHE'
+ 'CONFIG_NOCACHE',
+ 'X-Azure-Ref',
+ '0soUqYgAAAACdCcJE7IdHT4Rs5ko2ZsbnTEFYMzExMDAwMTA4MDA3ADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
+ 'Date',
+ 'Thu, 10 Mar 2022 23:11:46 GMT'
]);
diff --git a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.js b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.js
index c32b21db9a05..297c476bf3bf 100644
--- a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.js
+++ b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__creates_us_program_brief_using_upsert/recording_can_create_get_and_delete_a_us_program_brief.js
@@ -1,37 +1,39 @@
let nock = require('nock');
-module.exports.hash = "dfb7df05fe9dd2649b3041f6aa8b8a73";
+module.exports.hash = "019f5e9fc2ec32608680e9de152b6109";
module.exports.testInfo = {"uniqueName":{},"newDate":{}}
nock('https://endpoint', {"encodedQueryParams":true})
- .patch('/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000', {"id":"00000000-0000-0000-0000-000000000000","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Help Message","optOutMessage":"OUT","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day."}})
+ .patch('/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000', {"id":"00000000-0000-0000-0000-000000000000","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}})
.query(true)
- .reply(200, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2021-11-04T22:53:21.5807425+00:00","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Help Message","optOutMessage":"OUT","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day."}}, [
+ .reply(201, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2022-01-18T17:52:43.6001504+00:00","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}}, [
'Transfer-Encoding',
'chunked',
'Content-Type',
'application/json; charset=utf-8',
+ 'Location',
+ 'https://smstestapp.communication.azure.com/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000',
'Request-Context',
'appId=',
'MS-CV',
- '/hg/kDA6skW54whuWeDc8A.0',
+ 'MQrf0PO+QkKurvWfeq2ryg.0',
'api-supported-versions',
'2021-10-25-preview',
'X-Processing-Time',
- '1967ms',
+ '4596ms',
'X-Cache',
'CONFIG_NOCACHE',
'X-Azure-Ref',
- '0dWSEYQAAAAAZ5Pd2cyyOTanVuTlU88pDTUlBMzAxMDAwMTA5MDExADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
+ '0aP7mYQAAAABgAH6M0/J5R69FB/sM8JulTUlBRURHRTIyMjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx',
'Date',
- 'Thu, 04 Nov 2021 22:53:43 GMT'
+ 'Tue, 18 Jan 2022 17:52:45 GMT'
]);
nock('https://endpoint', {"encodedQueryParams":true})
.get('/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000')
.query(true)
- .reply(200, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2021-11-04T22:53:21.5807425+00:00","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Help Message","optOutMessage":"OUT","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day."}}, [
+ .reply(200, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2022-01-18T17:52:43.6001504+00:00","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}}, [
'Transfer-Encoding',
'chunked',
'Content-Type',
@@ -39,17 +41,17 @@ nock('https://endpoint', {"encodedQueryParams":true})
'Request-Context',
'appId=',
'MS-CV',
- 'vHczlYr/P0qhDifeA3OpSw.0',
+ 'I01fDc/8HE+iPSm7Mnrz3w.0',
'api-supported-versions',
'2021-10-25-preview',
'X-Processing-Time',
- '1553ms',
+ '2562ms',
'X-Cache',
'CONFIG_NOCACHE',
'X-Azure-Ref',
- '0eGSEYQAAAACwM/EXDJJISITGwAN3ddu6TUlBMzAxMDAwMTA5MDExADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
+ '0bf7mYQAAAADXCM/0QSSxT5FKbvIooq9gTUlBRURHRTIyMjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx',
'Date',
- 'Thu, 04 Nov 2021 22:53:44 GMT'
+ 'Tue, 18 Jan 2022 17:52:47 GMT'
]);
nock('https://endpoint', {"encodedQueryParams":true})
@@ -59,15 +61,15 @@ nock('https://endpoint', {"encodedQueryParams":true})
'Request-Context',
'appId=',
'MS-CV',
- 'JANtCDJeGkKIktmPUMkaMg.0',
+ 'seWj0ijW+EGlsfadCAumvg.0',
'api-supported-versions',
'2021-10-25-preview',
'X-Processing-Time',
- '541ms',
+ '2688ms',
'X-Cache',
'CONFIG_NOCACHE',
'X-Azure-Ref',
- '0eWSEYQAAAADE2TZzkViMRalpD85uwoRKTUlBMzAxMDAwMTA5MDExADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
+ '0cP7mYQAAAACxi0boczuuSrI/AQEQEA03TUlBRURHRTIyMjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx',
'Date',
- 'Thu, 04 Nov 2021 22:53:45 GMT'
+ 'Tue, 18 Jan 2022 17:52:50 GMT'
]);
diff --git a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.js b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.js
index 68b2803984b8..e2494bd5d791 100644
--- a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.js
+++ b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__lists_short_codes/recording_can_list_all_acquired_short_codes.js
@@ -1,6 +1,6 @@
let nock = require('nock');
-module.exports.hash = "cd026b9bd924e93065b201c18fbe020e";
+module.exports.hash = "5961d6997afea3ffd1118dfacea58c64";
module.exports.testInfo = {"uniqueName":{},"newDate":{}}
@@ -15,15 +15,15 @@ nock('https://endpoint', {"encodedQueryParams":true})
'Request-Context',
'appId=',
'MS-CV',
- 'hM3lBNqudkGXkJIDR1letg.0',
+ 'v8XKfIEgoEGkN9iaiACDlA.0',
'api-supported-versions',
'2021-10-25-preview',
'X-Processing-Time',
- '465ms',
+ '1505ms',
'X-Cache',
'CONFIG_NOCACHE',
'X-Azure-Ref',
- '0z+GSYQAAAAC/7IlfQV7ORJ/vKFE/fdn9V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx',
+ '0fP7mYQAAAAAv7CxNa0R1SrLrvV+6+FWATUlBRURHRTIyMTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx',
'Date',
- 'Mon, 15 Nov 2021 22:40:15 GMT'
+ 'Tue, 18 Jan 2022 17:53:01 GMT'
]);
diff --git a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.js b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.js
index c0e2c84d2a0a..a6be20f957b7 100644
--- a/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.js
+++ b/sdk/communication/communication-short-codes/recordings/node/shortcodesclient__updates_us_program_brief_using_upsert/recording_can_create_and_update_a_us_program_brief.js
@@ -1,13 +1,13 @@
let nock = require('nock');
-module.exports.hash = "01a39203ef68d5762b3452f5ac920266";
+module.exports.hash = "9dd1e5fbe524ca86b1bdc3074376a12a";
module.exports.testInfo = {"uniqueName":{},"newDate":{}}
nock('https://endpoint', {"encodedQueryParams":true})
- .patch('/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000', {"id":"00000000-0000-0000-0000-000000000000","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Help Message","optOutMessage":"OUT","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day."}})
+ .patch('/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000', {"id":"00000000-0000-0000-0000-000000000000","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}})
.query(true)
- .reply(201, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2021-11-04T22:53:48.0978151+00:00","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Help Message","optOutMessage":"OUT","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day."}}, [
+ .reply(201, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2022-01-18T17:52:53.9226164+00:00","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST Customers can sign up to receive regular updates on coupons and other perks of our loyalty program.","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}}, [
'Transfer-Encoding',
'chunked',
'Content-Type',
@@ -17,23 +17,23 @@ nock('https://endpoint', {"encodedQueryParams":true})
'Request-Context',
'appId=',
'MS-CV',
- 'Fuo++oqwM0OkJR0YGX7uJg.0',
+ 'Jnn/VW5LVEmoH+8C1CUKHA.0',
'api-supported-versions',
'2021-10-25-preview',
'X-Processing-Time',
- '2180ms',
+ '4454ms',
'X-Cache',
'CONFIG_NOCACHE',
'X-Azure-Ref',
- '0emSEYQAAAADIqKVZEYKWQ7bd8RsQF5iwTUlBMzAxMDAwMTA5MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
+ '0c/7mYQAAAAD9QymsIag9RZqRe7ByS2PDTUlBMzAxMDAwMTA5MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
'Date',
- 'Thu, 04 Nov 2021 22:53:48 GMT'
+ 'Tue, 18 Jan 2022 17:52:55 GMT'
]);
nock('https://endpoint', {"encodedQueryParams":true})
- .patch('/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000', {"id":"00000000-0000-0000-0000-000000000000","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST UPDATE","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Help Message","optOutMessage":"OUT","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day."}})
+ .patch('/shortCodes/countries/US/programBriefs/00000000-0000-0000-0000-000000000000', {"id":"00000000-0000-0000-0000-000000000000","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST UPDATE","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}})
.query(true)
- .reply(200, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2021-11-04T22:53:48.0978151+00:00","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST UPDATE","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Help Message","optOutMessage":"OUT","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day."}}, [
+ .reply(200, {"id":"00000000-0000-0000-0000-000000000000","status":"draft","reviewNotes":[],"costs":[{"amount":650,"currencyCode":"USD","billingFrequency":"once"},{"amount":1000,"currencyCode":"USD","billingFrequency":"monthly"}],"statusUpdatedDate":"2022-01-18T17:52:53.9226164+00:00","programDetails":{"isVanity":false,"numberType":"shortCode","isPoliticalCampaign":false,"name":"Contoso Loyalty Program","description":"TEST UPDATE","url":"https://endpoint/loyalty-program","signUpTypes":["sms","website"],"signUpUrl":"https://contoso.com/sign-up","termsOfServiceUrl":"https://contoso.com/terms","privacyPolicyUrl":"https://contoso.com/privacy"},"companyInformation":{"name":"Contoso","url":"https://contoso.com","address":"1 Contoso Way Redmond, WA 98052","contactInformation":{"name":"Alex","phone":"+14255551234","email":"alex@contoso.com"},"customerCareInformation":{"tollFreeNumber":"+18005551234","email":"customercare@contoso.com"}},"messageDetails":{"supportedProtocols":["sms"],"recurrence":"subscription","helpMessage":"Send 'Stop' to unsubscribe, send 'Start' to resubscribe.","optOutMessage":"You've been unsubscribed from these messages. Send 'Start' if you want to resubscribe.","optInMessage":"Someone requested to subscribe this number to receive updates about Contoso's loyalty program. To confirm subscription, reply to this message with 'JOIN'","optInReply":"JOIN","confirmationMessage":"Congrats, you have been successfully subscribed to loyalty program updates. Welcome!","directionality":"twoWay","useCases":[{"contentCategory":"coupons","examples":[{"messages":[{"direction":"fromUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgram","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]},{"contentCategory":"loyaltyProgramPointsPrizes","examples":[{"messages":[{"direction":"toUser","text":"txtMessage"}]}]}]},"trafficDetails":{"totalMonthlyVolume":10000,"monthlyAverageMessagesFromUser":1,"monthlyAverageMessagesToUser":3,"isSpiky":true,"spikeDetails":"Higher traffic expected around major shopping holidays, most notably Black Friday and Memorial Day.","estimatedRampUpTimeInDays":0}}, [
'Transfer-Encoding',
'chunked',
'Content-Type',
@@ -41,15 +41,15 @@ nock('https://endpoint', {"encodedQueryParams":true})
'Request-Context',
'appId=',
'MS-CV',
- '5pyDRAJ6RkqMw5YTJvTZPQ.0',
+ 'qo7avcRvoEGwD1nQ8odhDg.0',
'api-supported-versions',
'2021-10-25-preview',
'X-Processing-Time',
- '1827ms',
+ '4070ms',
'X-Cache',
'CONFIG_NOCACHE',
'X-Azure-Ref',
- '0fGSEYQAAAACM51T6fai9RoW7gEXbWbOXTUlBMzAxMDAwMTA5MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
+ '0d/7mYQAAAACPTtIoFwrARoU5j0Xo7sbqTUlBMzAxMDAwMTA5MDUzADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==',
'Date',
- 'Thu, 04 Nov 2021 22:53:50 GMT'
+ 'Tue, 18 Jan 2022 17:52:59 GMT'
]);
diff --git a/sdk/communication/communication-short-codes/review/communication-short-codes.api.md b/sdk/communication/communication-short-codes/review/communication-short-codes.api.md
index b96fd271b2f7..87860d960b0b 100644
--- a/sdk/communication/communication-short-codes/review/communication-short-codes.api.md
+++ b/sdk/communication/communication-short-codes/review/communication-short-codes.api.md
@@ -5,13 +5,11 @@
```ts
///
-
-import * as coreHttp from '@azure/core-http';
+import { CommonClientOptions } from '@azure/core-client';
+import * as coreClient from '@azure/core-client';
import { KeyCredential } from '@azure/core-auth';
-import { OperationOptions } from '@azure/core-http';
+import { OperationOptions } from '@azure/core-client';
import { PagedAsyncIterableIterator } from '@azure/core-paging';
-import { PipelineOptions } from '@azure/core-http';
-import { RestResponse } from '@azure/core-http';
import { TokenCredential } from '@azure/core-auth';
// @public
@@ -149,7 +147,7 @@ export class ShortCodesClient {
constructor(endpoint: string, credential: KeyCredential, options?: ShortCodesClientOptions);
constructor(endpoint: string, credential: TokenCredential, options?: ShortCodesClientOptions);
// (undocumented)
- deleteUSProgramBrief(programBriefId: string, options?: DeleteUSProgramBriefOptions): Promise;
+ deleteUSProgramBrief(programBriefId: string, options?: DeleteUSProgramBriefOptions): Promise;
// (undocumented)
getUSProgramBrief(programBriefId: string, options?: GetUSProgramBriefOptions): Promise;
// (undocumented)
@@ -157,23 +155,23 @@ export class ShortCodesClient {
// (undocumented)
listUSProgramBriefs(options?: ListUSProgramBriefsOptions): PagedAsyncIterableIterator;
// (undocumented)
- submitUSProgramBrief(programBriefId: string, options?: SubmitUSProgramBriefOptions): Promise;
+ submitUSProgramBrief(programBriefId: string, options?: SubmitUSProgramBriefOptions): Promise;
// (undocumented)
- upsertUSProgramBrief(programBriefId: string, options?: ShortCodesUpsertUSProgramBriefOptionalParams): Promise;
+ upsertUSProgramBrief(programBriefId: string, options?: ShortCodesUpsertUSProgramBriefOptionalParams): Promise;
}
// @public
-export interface ShortCodesClientOptions extends PipelineOptions {
+export interface ShortCodesClientOptions extends CommonClientOptions {
}
// @public
-export interface ShortCodesGetShortCodesOptionalParams extends coreHttp.OperationOptions {
+export interface ShortCodesGetShortCodesOptionalParams extends coreClient.OperationOptions {
skip?: number;
top?: number;
}
// @public
-export interface ShortCodesUpsertUSProgramBriefOptionalParams extends coreHttp.OperationOptions {
+export interface ShortCodesUpsertUSProgramBriefOptionalParams extends coreClient.OperationOptions {
body?: USProgramBrief;
}
diff --git a/sdk/communication/communication-short-codes/samples-dev/createAndDeleteProgramBrief.ts b/sdk/communication/communication-short-codes/samples-dev/createAndDeleteProgramBrief.ts
index 84920bc6f601..01e8f216aa3e 100644
--- a/sdk/communication/communication-short-codes/samples-dev/createAndDeleteProgramBrief.ts
+++ b/sdk/communication/communication-short-codes/samples-dev/createAndDeleteProgramBrief.ts
@@ -95,26 +95,41 @@ export async function main() {
};
// create program brief
- var createResponse = await client.upsertUSProgramBrief(programBriefId, programBriefRequest);
- if (createResponse._response.status != 201) {
- throw new Error(`Program brief creation failed.
- Status code: ${createResponse._response.status}; Error: ${
- createResponse._response.bodyAsText
- }; CV: ${createResponse._response.headers.get("MS-CV")}`);
- } else {
- console.log(`Successfully created a new program brief with Id ${programBriefId}.`);
- }
+ var createResponse = await client.upsertUSProgramBrief(programBriefId, {
+ ...programBriefRequest,
+ onResponse:
+ (response) =>
+ (res = response) => {
+ if (!res || res.status != 201) {
+ throw new Error(
+ `Program brief creation failed.
+ Status code: ${res.status};
+ Error: ${res.bodyAsText};
+ CV: ${res.headers.get("MS-CV")}`
+ );
+ }
+ },
+ });
+ console.log(`Successfully created a new program brief with Id ${createResponse.id}`);
// delete program brief
- var deleteResponse = await client.deleteUSProgramBrief(programBriefId);
- if (deleteResponse._response.status == 204) {
- console.log(`Successfully deleted draft program brief with Id ${programBriefId}`);
- } else {
- console.log(`Failed to delete draft program brief with Id ${programBriefId}.
- Status code: ${deleteResponse._response.status}; Error: ${
- deleteResponse._response.bodyAsText
- }; CV: ${deleteResponse._response.headers.get("MS-CV")}`);
- }
+ var deleteResponse = client.deleteUSProgramBrief(programBriefId, {
+ onResponse:
+ (response) =>
+ (res = response) => {
+ if (!res || res.status != 204) {
+ throw new Error(
+ `Program brief deletion failed.
+ Status code: ${res.status};
+ Error: ${res.bodyAsText};
+ CV: ${res.headers.get("MS-CV")}`
+ );
+ }
+ },
+ });
+ console.log(
+ `Successfully deleted draft program brief with Id ${programBriefId} ${deleteResponse}`
+ );
}
main().catch((error) => {
diff --git a/sdk/communication/communication-short-codes/samples-dev/getAllProgramBriefs.ts b/sdk/communication/communication-short-codes/samples-dev/getAllProgramBriefs.ts
index 54e099740d2a..6bd476c52a19 100644
--- a/sdk/communication/communication-short-codes/samples-dev/getAllProgramBriefs.ts
+++ b/sdk/communication/communication-short-codes/samples-dev/getAllProgramBriefs.ts
@@ -23,8 +23,20 @@ export async function main() {
const client = new ShortCodesClient(connectionString);
// get all program briefs for a resource
- var programBriefs = await client.listUSProgramBriefs();
-
+ var programBriefs = await client.listUSProgramBriefs({
+ onResponse:
+ (response) =>
+ (res = response) => {
+ if (!res || res.status != 200) {
+ throw new Error(
+ `US Program briefs Listing failed.
+ Status code: ${res.status};
+ Error: ${res.bodyAsText};
+ CV: ${res.headers.get("MS-CV")}`
+ );
+ }
+ },
+ });
// find draft program briefs, and delete them
for await (const programBrief of programBriefs) {
console.log(`Program Brief with Id ${programBrief.id} has status ${programBrief.status}`);
diff --git a/sdk/communication/communication-short-codes/samples-dev/getAllShortCodes.ts b/sdk/communication/communication-short-codes/samples-dev/getAllShortCodes.ts
index 4ea0b059a1b8..95b6b7809755 100644
--- a/sdk/communication/communication-short-codes/samples-dev/getAllShortCodes.ts
+++ b/sdk/communication/communication-short-codes/samples-dev/getAllShortCodes.ts
@@ -23,8 +23,20 @@ export async function main() {
const client = new ShortCodesClient(connectionString);
// get all short codes for a resource
- var shortCodes = await client.listShortCodes();
-
+ var shortCodes = await client.listShortCodes({
+ onResponse:
+ (response) =>
+ (res = response) => {
+ if (!res || res.status != 201) {
+ throw new Error(
+ `Short Codes listing failed.
+ Status code: ${res.status};
+ Error: ${res.bodyAsText};
+ CV: ${res.headers.get("MS-CV")}`
+ );
+ }
+ },
+ });
// print all short codes
for await (const shortCode of shortCodes) {
console.log(`${shortCode}`);
diff --git a/sdk/communication/communication-short-codes/samples-dev/getAndUpdateProgramBrief.ts b/sdk/communication/communication-short-codes/samples-dev/getAndUpdateProgramBrief.ts
index 95047ffabb3e..99c87262b812 100644
--- a/sdk/communication/communication-short-codes/samples-dev/getAndUpdateProgramBrief.ts
+++ b/sdk/communication/communication-short-codes/samples-dev/getAndUpdateProgramBrief.ts
@@ -42,17 +42,22 @@ export async function main() {
},
},
};
- var upsertResponse = await client.upsertUSProgramBrief(programBriefId, updateRequest);
- if (upsertResponse._response.status == 200) {
- console.log(
- `Successfully updated terms of service and privacy policy for program brief ${programBriefId}`
- );
- } else {
- throw new Error(`Failed to update program brief with Id ${programBriefId}.
- Status code: ${upsertResponse._response.status}; Error: ${
- upsertResponse._response.bodyAsText
- }; CV: ${upsertResponse._response.headers.get("MS-CV")}`);
- }
+ var upsertResponse = await client.upsertUSProgramBrief(programBriefId, {
+ ...updateRequest,
+ onResponse:
+ (response) =>
+ (res = response) => {
+ if (!res || res.status != 200) {
+ throw new Error(
+ `Failed to update program brief with Id ${programBriefId}.
+ Status code: ${res.status}; Error: ${res.bodyAsText}; CV: ${res.headers.get("MS-CV")}`
+ );
+ }
+ },
+ });
+ console.log(
+ `Successfully updated terms of service and privacy policy for program brief ${programBriefId} ${upsertResponse}`
+ );
}
main().catch((error) => {
diff --git a/sdk/communication/communication-short-codes/src/generated/src/index.ts b/sdk/communication/communication-short-codes/src/generated/src/index.ts
index afce18b78e04..79a111145fba 100644
--- a/sdk/communication/communication-short-codes/src/generated/src/index.ts
+++ b/sdk/communication/communication-short-codes/src/generated/src/index.ts
@@ -10,3 +10,4 @@
export * from "./models";
export { ShortCodesClient } from "./shortCodesClient";
export { ShortCodesClientContext } from "./shortCodesClientContext";
+export * from "./operationsInterfaces";
diff --git a/sdk/communication/communication-short-codes/src/generated/src/models/index.ts b/sdk/communication/communication-short-codes/src/generated/src/models/index.ts
index 88c23bdd675d..87abfb09fe2c 100644
--- a/sdk/communication/communication-short-codes/src/generated/src/models/index.ts
+++ b/sdk/communication/communication-short-codes/src/generated/src/models/index.ts
@@ -6,7 +6,7 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as coreHttp from "@azure/core-http";
+import * as coreClient from "@azure/core-client";
/** A wrapper for a list of short code entities. */
export interface ShortCodes {
@@ -320,7 +320,7 @@ export type MessageDirection = "toUser" | "fromUser";
/** Optional parameters. */
export interface ShortCodesGetShortCodesOptionalParams
- extends coreHttp.OperationOptions {
+ extends coreClient.OperationOptions {
/** An optional parameter for how many entries to skip, for pagination purposes. */
skip?: number;
/** An optional parameter for how many entries to return, for pagination purposes. */
@@ -328,63 +328,39 @@ export interface ShortCodesGetShortCodesOptionalParams
}
/** Contains response data for the getShortCodes operation. */
-export type ShortCodesGetShortCodesResponse = ShortCodes & {
- /** The underlying HTTP response. */
- _response: coreHttp.HttpResponse & {
- /** The response body as text (string format) */
- bodyAsText: string;
-
- /** The response body as parsed JSON or XML */
- parsedBody: ShortCodes;
- };
-};
+export type ShortCodesGetShortCodesResponse = ShortCodes;
/** Optional parameters. */
export interface ShortCodesUpsertUSProgramBriefOptionalParams
- extends coreHttp.OperationOptions {
+ extends coreClient.OperationOptions {
/** Data to create new a Program Brief or fields to update an existing Program Brief */
body?: USProgramBrief;
}
/** Contains response data for the upsertUSProgramBrief operation. */
-export type ShortCodesUpsertUSProgramBriefResponse = USProgramBrief & {
- /** The underlying HTTP response. */
- _response: coreHttp.HttpResponse & {
- /** The response body as text (string format) */
- bodyAsText: string;
+export type ShortCodesUpsertUSProgramBriefResponse = USProgramBrief;
- /** The response body as parsed JSON or XML */
- parsedBody: USProgramBrief;
- };
-};
+/** Optional parameters. */
+export interface ShortCodesDeleteUSProgramBriefOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Optional parameters. */
+export interface ShortCodesGetUSProgramBriefOptionalParams
+ extends coreClient.OperationOptions {}
/** Contains response data for the getUSProgramBrief operation. */
-export type ShortCodesGetUSProgramBriefResponse = USProgramBrief & {
- /** The underlying HTTP response. */
- _response: coreHttp.HttpResponse & {
- /** The response body as text (string format) */
- bodyAsText: string;
+export type ShortCodesGetUSProgramBriefResponse = USProgramBrief;
- /** The response body as parsed JSON or XML */
- parsedBody: USProgramBrief;
- };
-};
+/** Optional parameters. */
+export interface ShortCodesSubmitUSProgramBriefOptionalParams
+ extends coreClient.OperationOptions {}
/** Contains response data for the submitUSProgramBrief operation. */
-export type ShortCodesSubmitUSProgramBriefResponse = USProgramBrief & {
- /** The underlying HTTP response. */
- _response: coreHttp.HttpResponse & {
- /** The response body as text (string format) */
- bodyAsText: string;
-
- /** The response body as parsed JSON or XML */
- parsedBody: USProgramBrief;
- };
-};
+export type ShortCodesSubmitUSProgramBriefResponse = USProgramBrief;
/** Optional parameters. */
export interface ShortCodesGetUSProgramBriefsOptionalParams
- extends coreHttp.OperationOptions {
+ extends coreClient.OperationOptions {
/** An optional parameter for how many entries to skip, for pagination purposes. */
skip?: number;
/** An optional parameter for how many entries to return, for pagination purposes. */
@@ -392,20 +368,11 @@ export interface ShortCodesGetUSProgramBriefsOptionalParams
}
/** Contains response data for the getUSProgramBriefs operation. */
-export type ShortCodesGetUSProgramBriefsResponse = USProgramBriefs & {
- /** The underlying HTTP response. */
- _response: coreHttp.HttpResponse & {
- /** The response body as text (string format) */
- bodyAsText: string;
-
- /** The response body as parsed JSON or XML */
- parsedBody: USProgramBriefs;
- };
-};
+export type ShortCodesGetUSProgramBriefsResponse = USProgramBriefs;
/** Optional parameters. */
export interface ShortCodesGetShortCodesNextOptionalParams
- extends coreHttp.OperationOptions {
+ extends coreClient.OperationOptions {
/** An optional parameter for how many entries to skip, for pagination purposes. */
skip?: number;
/** An optional parameter for how many entries to return, for pagination purposes. */
@@ -413,20 +380,11 @@ export interface ShortCodesGetShortCodesNextOptionalParams
}
/** Contains response data for the getShortCodesNext operation. */
-export type ShortCodesGetShortCodesNextResponse = ShortCodes & {
- /** The underlying HTTP response. */
- _response: coreHttp.HttpResponse & {
- /** The response body as text (string format) */
- bodyAsText: string;
-
- /** The response body as parsed JSON or XML */
- parsedBody: ShortCodes;
- };
-};
+export type ShortCodesGetShortCodesNextResponse = ShortCodes;
/** Optional parameters. */
export interface ShortCodesGetUSProgramBriefsNextOptionalParams
- extends coreHttp.OperationOptions {
+ extends coreClient.OperationOptions {
/** An optional parameter for how many entries to skip, for pagination purposes. */
skip?: number;
/** An optional parameter for how many entries to return, for pagination purposes. */
@@ -434,20 +392,11 @@ export interface ShortCodesGetUSProgramBriefsNextOptionalParams
}
/** Contains response data for the getUSProgramBriefsNext operation. */
-export type ShortCodesGetUSProgramBriefsNextResponse = USProgramBriefs & {
- /** The underlying HTTP response. */
- _response: coreHttp.HttpResponse & {
- /** The response body as text (string format) */
- bodyAsText: string;
-
- /** The response body as parsed JSON or XML */
- parsedBody: USProgramBriefs;
- };
-};
+export type ShortCodesGetUSProgramBriefsNextResponse = USProgramBriefs;
/** Optional parameters. */
export interface ShortCodesClientOptionalParams
- extends coreHttp.ServiceClientOptions {
+ extends coreClient.ServiceClientOptions {
/** Api Version */
apiVersion?: string;
/** Overrides client endpoint. */
diff --git a/sdk/communication/communication-short-codes/src/generated/src/models/mappers.ts b/sdk/communication/communication-short-codes/src/generated/src/models/mappers.ts
index d73940be38d7..0abcff879083 100644
--- a/sdk/communication/communication-short-codes/src/generated/src/models/mappers.ts
+++ b/sdk/communication/communication-short-codes/src/generated/src/models/mappers.ts
@@ -6,9 +6,9 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as coreHttp from "@azure/core-http";
+import * as coreClient from "@azure/core-client";
-export const ShortCodes: coreHttp.CompositeMapper = {
+export const ShortCodes: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ShortCodes",
@@ -35,7 +35,7 @@ export const ShortCodes: coreHttp.CompositeMapper = {
}
};
-export const ShortCode: coreHttp.CompositeMapper = {
+export const ShortCode: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ShortCode",
@@ -49,8 +49,7 @@ export const ShortCode: coreHttp.CompositeMapper = {
numberType: {
serializedName: "numberType",
type: {
- name: "Enum",
- allowedValues: ["shortCode", "alphaId"]
+ name: "String"
}
},
countryCode: {
@@ -80,7 +79,7 @@ export const ShortCode: coreHttp.CompositeMapper = {
}
};
-export const CommunicationErrorResponse: coreHttp.CompositeMapper = {
+export const CommunicationErrorResponse: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "CommunicationErrorResponse",
@@ -96,7 +95,7 @@ export const CommunicationErrorResponse: coreHttp.CompositeMapper = {
}
};
-export const CommunicationError: coreHttp.CompositeMapper = {
+export const CommunicationError: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "CommunicationError",
@@ -146,7 +145,7 @@ export const CommunicationError: coreHttp.CompositeMapper = {
}
};
-export const USProgramBrief: coreHttp.CompositeMapper = {
+export const USProgramBrief: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "USProgramBrief",
@@ -161,15 +160,7 @@ export const USProgramBrief: coreHttp.CompositeMapper = {
status: {
serializedName: "status",
type: {
- name: "Enum",
- allowedValues: [
- "submitted",
- "approved",
- "submitNewVanityNumbers",
- "updateProgramBrief",
- "draft",
- "denied"
- ]
+ name: "String"
}
},
number: {
@@ -246,7 +237,7 @@ export const USProgramBrief: coreHttp.CompositeMapper = {
}
};
-export const ReviewNote: coreHttp.CompositeMapper = {
+export const ReviewNote: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ReviewNote",
@@ -267,7 +258,7 @@ export const ReviewNote: coreHttp.CompositeMapper = {
}
};
-export const ShortCodeCost: coreHttp.CompositeMapper = {
+export const ShortCodeCost: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ShortCodeCost",
@@ -290,15 +281,14 @@ export const ShortCodeCost: coreHttp.CompositeMapper = {
serializedName: "billingFrequency",
required: true,
type: {
- name: "Enum",
- allowedValues: ["monthly", "once"]
+ name: "String"
}
}
}
}
};
-export const ProgramDetails: coreHttp.CompositeMapper = {
+export const ProgramDetails: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ProgramDetails",
@@ -323,8 +313,7 @@ export const ProgramDetails: coreHttp.CompositeMapper = {
numberType: {
serializedName: "numberType",
type: {
- name: "Enum",
- allowedValues: ["shortCode", "alphaId"]
+ name: "String"
}
},
isPoliticalCampaign: {
@@ -396,7 +385,7 @@ export const ProgramDetails: coreHttp.CompositeMapper = {
}
};
-export const CompanyInformation: coreHttp.CompositeMapper = {
+export const CompanyInformation: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "CompanyInformation",
@@ -437,7 +426,7 @@ export const CompanyInformation: coreHttp.CompositeMapper = {
}
};
-export const ContactInformation: coreHttp.CompositeMapper = {
+export const ContactInformation: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ContactInformation",
@@ -464,7 +453,7 @@ export const ContactInformation: coreHttp.CompositeMapper = {
}
};
-export const CustomerCareInformation: coreHttp.CompositeMapper = {
+export const CustomerCareInformation: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "CustomerCareInformation",
@@ -485,7 +474,7 @@ export const CustomerCareInformation: coreHttp.CompositeMapper = {
}
};
-export const MessageDetails: coreHttp.CompositeMapper = {
+export const MessageDetails: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "MessageDetails",
@@ -505,8 +494,7 @@ export const MessageDetails: coreHttp.CompositeMapper = {
recurrence: {
serializedName: "recurrence",
type: {
- name: "Enum",
- allowedValues: ["subscription", "transaction"]
+ name: "String"
}
},
helpMessage: {
@@ -542,8 +530,7 @@ export const MessageDetails: coreHttp.CompositeMapper = {
directionality: {
serializedName: "directionality",
type: {
- name: "Enum",
- allowedValues: ["oneWay", "twoWay"]
+ name: "String"
}
},
useCases: {
@@ -562,7 +549,7 @@ export const MessageDetails: coreHttp.CompositeMapper = {
}
};
-export const UseCase: coreHttp.CompositeMapper = {
+export const UseCase: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "UseCase",
@@ -570,50 +557,7 @@ export const UseCase: coreHttp.CompositeMapper = {
contentCategory: {
serializedName: "contentCategory",
type: {
- name: "Enum",
- allowedValues: [
- "ringTones",
- "smsChat",
- "video",
- "loyaltyProgramPointsPrizes",
- "gifting",
- "inApplicationBilling",
- "textToScreen",
- "games",
- "audioChat",
- "mmsPictures",
- "sweepstakesContestAuction",
- "financialBanking",
- "premiumWap",
- "queryService",
- "wallpaperScreensaver",
- "voting",
- "application",
- "mobileGivingDonations",
- "coupons",
- "loyaltyProgram",
- "noPointsPrizes",
- "informationalAlerts",
- "microBilling",
- "trivia",
- "entertainmentAlerts",
- "accountNotification",
- "ageGatedContent",
- "conversationalMessaging",
- "deliveryNotification",
- "education",
- "emergencyAlerts",
- "fraudAlerts",
- "loanArrangement",
- "onBehalfOfCarrier",
- "political",
- "promotionalMarketing",
- "publicServiceAnnouncements",
- "securityAlerts",
- "socialMedia",
- "twoFactorAuthentication",
- "other"
- ]
+ name: "String"
}
},
examples: {
@@ -632,7 +576,7 @@ export const UseCase: coreHttp.CompositeMapper = {
}
};
-export const MessageExampleSequence: coreHttp.CompositeMapper = {
+export const MessageExampleSequence: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "MessageExampleSequence",
@@ -653,7 +597,7 @@ export const MessageExampleSequence: coreHttp.CompositeMapper = {
}
};
-export const MessageExample: coreHttp.CompositeMapper = {
+export const MessageExample: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "MessageExample",
@@ -661,8 +605,7 @@ export const MessageExample: coreHttp.CompositeMapper = {
direction: {
serializedName: "direction",
type: {
- name: "Enum",
- allowedValues: ["toUser", "fromUser"]
+ name: "String"
}
},
text: {
@@ -675,7 +618,7 @@ export const MessageExample: coreHttp.CompositeMapper = {
}
};
-export const TrafficDetails: coreHttp.CompositeMapper = {
+export const TrafficDetails: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "TrafficDetails",
@@ -736,7 +679,7 @@ export const TrafficDetails: coreHttp.CompositeMapper = {
}
};
-export const USProgramBriefs: coreHttp.CompositeMapper = {
+export const USProgramBriefs: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "USProgramBriefs",
diff --git a/sdk/communication/communication-short-codes/src/generated/src/models/parameters.ts b/sdk/communication/communication-short-codes/src/generated/src/models/parameters.ts
index f6e6c19b585d..0802cc9465be 100644
--- a/sdk/communication/communication-short-codes/src/generated/src/models/parameters.ts
+++ b/sdk/communication/communication-short-codes/src/generated/src/models/parameters.ts
@@ -10,7 +10,7 @@ import {
OperationParameter,
OperationURLParameter,
OperationQueryParameter
-} from "@azure/core-http";
+} from "@azure/core-client";
import { USProgramBrief as USProgramBriefMapper } from "../models/mappers";
export const accept: OperationParameter = {
@@ -40,6 +40,7 @@ export const endpoint: OperationURLParameter = {
export const skip: OperationQueryParameter = {
parameterPath: ["options", "skip"],
mapper: {
+ defaultValue: 0,
serializedName: "skip",
type: {
name: "Number"
diff --git a/sdk/communication/communication-short-codes/src/generated/src/operations/index.ts b/sdk/communication/communication-short-codes/src/generated/src/operations/index.ts
index 093f97caf8e4..e81a526aabdb 100644
--- a/sdk/communication/communication-short-codes/src/generated/src/operations/index.ts
+++ b/sdk/communication/communication-short-codes/src/generated/src/operations/index.ts
@@ -6,4 +6,4 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./shortCodes";
+export * from "./shortCodesOperations";
diff --git a/sdk/communication/communication-short-codes/src/generated/src/operations/shortCodes.ts b/sdk/communication/communication-short-codes/src/generated/src/operations/shortCodesOperations.ts
similarity index 77%
rename from sdk/communication/communication-short-codes/src/generated/src/operations/shortCodes.ts
rename to sdk/communication/communication-short-codes/src/generated/src/operations/shortCodesOperations.ts
index a3df641bb5e7..776c94fdbf7d 100644
--- a/sdk/communication/communication-short-codes/src/generated/src/operations/shortCodes.ts
+++ b/sdk/communication/communication-short-codes/src/generated/src/operations/shortCodesOperations.ts
@@ -7,7 +7,8 @@
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import * as coreHttp from "@azure/core-http";
+import { ShortCodesOperations } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { ShortCodesClientContext } from "../shortCodesClientContext";
@@ -21,19 +22,23 @@ import {
ShortCodesGetShortCodesResponse,
ShortCodesUpsertUSProgramBriefOptionalParams,
ShortCodesUpsertUSProgramBriefResponse,
+ ShortCodesDeleteUSProgramBriefOptionalParams,
+ ShortCodesGetUSProgramBriefOptionalParams,
ShortCodesGetUSProgramBriefResponse,
+ ShortCodesSubmitUSProgramBriefOptionalParams,
ShortCodesSubmitUSProgramBriefResponse,
ShortCodesGetUSProgramBriefsResponse,
ShortCodesGetShortCodesNextResponse,
ShortCodesGetUSProgramBriefsNextResponse
} from "../models";
-/** Class representing a ShortCodes. */
-export class ShortCodes {
+///
+/** Class containing ShortCodesOperations operations. */
+export class ShortCodesOperationsImpl implements ShortCodesOperations {
private readonly client: ShortCodesClientContext;
/**
- * Initialize a new instance of the class ShortCodes class.
+ * Initialize a new instance of the class ShortCodesOperations class.
* @param client Reference to the service client
*/
constructor(client: ShortCodesClientContext) {
@@ -131,13 +136,10 @@ export class ShortCodes {
private _getShortCodes(
options?: ShortCodesGetShortCodesOptionalParams
): Promise {
- const operationArguments: coreHttp.OperationArguments = {
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
- };
return this.client.sendOperationRequest(
- operationArguments,
+ { options },
getShortCodesOperationSpec
- ) as Promise;
+ );
}
/**
@@ -149,14 +151,10 @@ export class ShortCodes {
programBriefId: string,
options?: ShortCodesUpsertUSProgramBriefOptionalParams
): Promise {
- const operationArguments: coreHttp.OperationArguments = {
- programBriefId,
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
- };
return this.client.sendOperationRequest(
- operationArguments,
+ { programBriefId, options },
upsertUSProgramBriefOperationSpec
- ) as Promise;
+ );
}
/**
@@ -166,52 +164,42 @@ export class ShortCodes {
*/
deleteUSProgramBrief(
programBriefId: string,
- options?: coreHttp.OperationOptions
- ): Promise {
- const operationArguments: coreHttp.OperationArguments = {
- programBriefId,
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
- };
+ options?: ShortCodesDeleteUSProgramBriefOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- operationArguments,
+ { programBriefId, options },
deleteUSProgramBriefOperationSpec
- ) as Promise;
+ );
}
/**
- * @param programBriefId
+ * Get a US Program Brief by id.
+ * @param programBriefId Program Brief Id. Must be a valid GUID
* @param options The options parameters.
*/
getUSProgramBrief(
programBriefId: string,
- options?: coreHttp.OperationOptions
+ options?: ShortCodesGetUSProgramBriefOptionalParams
): Promise {
- const operationArguments: coreHttp.OperationArguments = {
- programBriefId,
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
- };
return this.client.sendOperationRequest(
- operationArguments,
+ { programBriefId, options },
getUSProgramBriefOperationSpec
- ) as Promise;
+ );
}
/**
- * @param programBriefId
+ * Submits a US Program Brief for review.
+ * @param programBriefId Program Brief Id. Must be a valid GUID
* @param options The options parameters.
*/
submitUSProgramBrief(
programBriefId: string,
- options?: coreHttp.OperationOptions
+ options?: ShortCodesSubmitUSProgramBriefOptionalParams
): Promise {
- const operationArguments: coreHttp.OperationArguments = {
- programBriefId,
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
- };
return this.client.sendOperationRequest(
- operationArguments,
+ { programBriefId, options },
submitUSProgramBriefOperationSpec
- ) as Promise;
+ );
}
/**
@@ -221,13 +209,10 @@ export class ShortCodes {
private _getUSProgramBriefs(
options?: ShortCodesGetUSProgramBriefsOptionalParams
): Promise {
- const operationArguments: coreHttp.OperationArguments = {
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
- };
return this.client.sendOperationRequest(
- operationArguments,
+ { options },
getUSProgramBriefsOperationSpec
- ) as Promise;
+ );
}
/**
@@ -239,14 +224,10 @@ export class ShortCodes {
nextLink: string,
options?: ShortCodesGetShortCodesNextOptionalParams
): Promise {
- const operationArguments: coreHttp.OperationArguments = {
- nextLink,
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
- };
return this.client.sendOperationRequest(
- operationArguments,
+ { nextLink, options },
getShortCodesNextOperationSpec
- ) as Promise;
+ );
}
/**
@@ -258,20 +239,16 @@ export class ShortCodes {
nextLink: string,
options?: ShortCodesGetUSProgramBriefsNextOptionalParams
): Promise {
- const operationArguments: coreHttp.OperationArguments = {
- nextLink,
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
- };
return this.client.sendOperationRequest(
- operationArguments,
+ { nextLink, options },
getUSProgramBriefsNextOperationSpec
- ) as Promise;
+ );
}
}
// Operation Specifications
-const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
-const getShortCodesOperationSpec: coreHttp.OperationSpec = {
+const getShortCodesOperationSpec: coreClient.OperationSpec = {
path: "/shortCodes",
httpMethod: "GET",
responses: {
@@ -287,7 +264,7 @@ const getShortCodesOperationSpec: coreHttp.OperationSpec = {
headerParameters: [Parameters.accept],
serializer
};
-const upsertUSProgramBriefOperationSpec: coreHttp.OperationSpec = {
+const upsertUSProgramBriefOperationSpec: coreClient.OperationSpec = {
path: "/shortCodes/countries/US/programBriefs/{programBriefId}",
httpMethod: "PATCH",
responses: {
@@ -308,7 +285,7 @@ const upsertUSProgramBriefOperationSpec: coreHttp.OperationSpec = {
mediaType: "json",
serializer
};
-const deleteUSProgramBriefOperationSpec: coreHttp.OperationSpec = {
+const deleteUSProgramBriefOperationSpec: coreClient.OperationSpec = {
path: "/shortCodes/countries/US/programBriefs/{programBriefId}",
httpMethod: "DELETE",
responses: {
@@ -322,7 +299,7 @@ const deleteUSProgramBriefOperationSpec: coreHttp.OperationSpec = {
headerParameters: [Parameters.accept],
serializer
};
-const getUSProgramBriefOperationSpec: coreHttp.OperationSpec = {
+const getUSProgramBriefOperationSpec: coreClient.OperationSpec = {
path: "/shortCodes/countries/US/programBriefs/{programBriefId}",
httpMethod: "GET",
responses: {
@@ -338,7 +315,7 @@ const getUSProgramBriefOperationSpec: coreHttp.OperationSpec = {
headerParameters: [Parameters.accept],
serializer
};
-const submitUSProgramBriefOperationSpec: coreHttp.OperationSpec = {
+const submitUSProgramBriefOperationSpec: coreClient.OperationSpec = {
path: "/shortCodes/countries/US/programBriefs/{programBriefId}/:submit",
httpMethod: "POST",
responses: {
@@ -354,7 +331,7 @@ const submitUSProgramBriefOperationSpec: coreHttp.OperationSpec = {
headerParameters: [Parameters.accept],
serializer
};
-const getUSProgramBriefsOperationSpec: coreHttp.OperationSpec = {
+const getUSProgramBriefsOperationSpec: coreClient.OperationSpec = {
path: "/shortCodes/countries/US/programBriefs",
httpMethod: "GET",
responses: {
@@ -370,7 +347,7 @@ const getUSProgramBriefsOperationSpec: coreHttp.OperationSpec = {
headerParameters: [Parameters.accept],
serializer
};
-const getShortCodesNextOperationSpec: coreHttp.OperationSpec = {
+const getShortCodesNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
@@ -386,7 +363,7 @@ const getShortCodesNextOperationSpec: coreHttp.OperationSpec = {
headerParameters: [Parameters.accept],
serializer
};
-const getUSProgramBriefsNextOperationSpec: coreHttp.OperationSpec = {
+const getUSProgramBriefsNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
diff --git a/sdk/communication/communication-short-codes/src/generated/src/operationsInterfaces/index.ts b/sdk/communication/communication-short-codes/src/generated/src/operationsInterfaces/index.ts
new file mode 100644
index 000000000000..e81a526aabdb
--- /dev/null
+++ b/sdk/communication/communication-short-codes/src/generated/src/operationsInterfaces/index.ts
@@ -0,0 +1,9 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+export * from "./shortCodesOperations";
diff --git a/sdk/communication/communication-short-codes/src/generated/src/operationsInterfaces/shortCodesOperations.ts b/sdk/communication/communication-short-codes/src/generated/src/operationsInterfaces/shortCodesOperations.ts
new file mode 100644
index 000000000000..8488564d447b
--- /dev/null
+++ b/sdk/communication/communication-short-codes/src/generated/src/operationsInterfaces/shortCodesOperations.ts
@@ -0,0 +1,77 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import {
+ ShortCode,
+ ShortCodesGetShortCodesOptionalParams,
+ USProgramBrief,
+ ShortCodesGetUSProgramBriefsOptionalParams,
+ ShortCodesUpsertUSProgramBriefOptionalParams,
+ ShortCodesUpsertUSProgramBriefResponse,
+ ShortCodesDeleteUSProgramBriefOptionalParams,
+ ShortCodesGetUSProgramBriefOptionalParams,
+ ShortCodesGetUSProgramBriefResponse,
+ ShortCodesSubmitUSProgramBriefOptionalParams,
+ ShortCodesSubmitUSProgramBriefResponse
+} from "../models";
+
+///
+/** Interface representing a ShortCodesOperations. */
+export interface ShortCodesOperations {
+ /**
+ * Gets the list of short codes for the current resource.
+ * @param options The options parameters.
+ */
+ listShortCodes(
+ options?: ShortCodesGetShortCodesOptionalParams
+ ): PagedAsyncIterableIterator;
+ /**
+ * Gets the list of US Program Briefs for the current resource.
+ * @param options The options parameters.
+ */
+ listUSProgramBriefs(
+ options?: ShortCodesGetUSProgramBriefsOptionalParams
+ ): PagedAsyncIterableIterator;
+ /**
+ * Creates or updates a US Program Brief.
+ * @param programBriefId Program Brief Id. Must be a valid GUID
+ * @param options The options parameters.
+ */
+ upsertUSProgramBrief(
+ programBriefId: string,
+ options?: ShortCodesUpsertUSProgramBriefOptionalParams
+ ): Promise;
+ /**
+ * Deletes a US Program Brief.
+ * @param programBriefId Program Brief Id. Must be a valid GUID
+ * @param options The options parameters.
+ */
+ deleteUSProgramBrief(
+ programBriefId: string,
+ options?: ShortCodesDeleteUSProgramBriefOptionalParams
+ ): Promise;
+ /**
+ * Get a US Program Brief by id.
+ * @param programBriefId Program Brief Id. Must be a valid GUID
+ * @param options The options parameters.
+ */
+ getUSProgramBrief(
+ programBriefId: string,
+ options?: ShortCodesGetUSProgramBriefOptionalParams
+ ): Promise;
+ /**
+ * Submits a US Program Brief for review.
+ * @param programBriefId Program Brief Id. Must be a valid GUID
+ * @param options The options parameters.
+ */
+ submitUSProgramBrief(
+ programBriefId: string,
+ options?: ShortCodesSubmitUSProgramBriefOptionalParams
+ ): Promise;
+}
diff --git a/sdk/communication/communication-short-codes/src/generated/src/shortCodesClient.ts b/sdk/communication/communication-short-codes/src/generated/src/shortCodesClient.ts
index 92cefbb3a9d6..fd5d5a89eeaa 100644
--- a/sdk/communication/communication-short-codes/src/generated/src/shortCodesClient.ts
+++ b/sdk/communication/communication-short-codes/src/generated/src/shortCodesClient.ts
@@ -6,7 +6,8 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ShortCodes } from "./operations";
+import { ShortCodesOperationsImpl } from "./operations";
+import { ShortCodesOperations } from "./operationsInterfaces";
import { ShortCodesClientContext } from "./shortCodesClientContext";
import { ShortCodesClientOptionalParams } from "./models";
@@ -18,8 +19,8 @@ export class ShortCodesClient extends ShortCodesClientContext {
*/
constructor(endpoint: string, options?: ShortCodesClientOptionalParams) {
super(endpoint, options);
- this.shortCodes = new ShortCodes(this);
+ this.shortCodesOperations = new ShortCodesOperationsImpl(this);
}
- shortCodes: ShortCodes;
+ shortCodesOperations: ShortCodesOperations;
}
diff --git a/sdk/communication/communication-short-codes/src/generated/src/shortCodesClientContext.ts b/sdk/communication/communication-short-codes/src/generated/src/shortCodesClientContext.ts
index 1492b3ce153e..baa9d060ca3d 100644
--- a/sdk/communication/communication-short-codes/src/generated/src/shortCodesClientContext.ts
+++ b/sdk/communication/communication-short-codes/src/generated/src/shortCodesClientContext.ts
@@ -6,13 +6,10 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as coreHttp from "@azure/core-http";
+import * as coreClient from "@azure/core-client";
import { ShortCodesClientOptionalParams } from "./models";
-const packageName = "azure-communication-short-codes";
-const packageVersion = "1.0.0-beta.1";
-
-export class ShortCodesClientContext extends coreHttp.ServiceClient {
+export class ShortCodesClientContext extends coreClient.ServiceClient {
endpoint: string;
apiVersion: string;
@@ -30,18 +27,25 @@ export class ShortCodesClientContext extends coreHttp.ServiceClient {
if (!options) {
options = {};
}
-
- if (!options.userAgent) {
- const defaultUserAgent = coreHttp.getDefaultUserAgentValue();
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
- }
-
- super(undefined, options);
-
- this.requestContentType = "application/json; charset=utf-8";
-
- this.baseUri = options.endpoint || "{endpoint}";
-
+ const defaults: ShortCodesClientOptionalParams = {
+ requestContentType: "application/json; charset=utf-8"
+ };
+
+ const packageDetails = `azsdk-js-communication-short-codes/1.0.0-beta.2`;
+ const userAgentPrefix =
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
+ : `${packageDetails}`;
+
+ const optionsWithDefaults = {
+ ...defaults,
+ ...options,
+ userAgentOptions: {
+ userAgentPrefix
+ },
+ baseUri: options.endpoint || "{endpoint}"
+ };
+ super(optionsWithDefaults);
// Parameter assignments
this.endpoint = endpoint;
diff --git a/sdk/communication/communication-short-codes/src/models.ts b/sdk/communication/communication-short-codes/src/models.ts
index ed77b51a5e2e..082d88a7fdc4 100644
--- a/sdk/communication/communication-short-codes/src/models.ts
+++ b/sdk/communication/communication-short-codes/src/models.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
-import { OperationOptions } from "@azure/core-http";
+import { OperationOptions } from "@azure/core-client";
import { ShortCodesGetShortCodesOptionalParams } from ".";
/**
diff --git a/sdk/communication/communication-short-codes/src/shortCodesClient.ts b/sdk/communication/communication-short-codes/src/shortCodesClient.ts
index 3d228a4c3573..eef69396ca89 100644
--- a/sdk/communication/communication-short-codes/src/shortCodesClient.ts
+++ b/sdk/communication/communication-short-codes/src/shortCodesClient.ts
@@ -2,22 +2,12 @@
// Licensed under the MIT license.
///
-import {
- parseClientArguments,
- isKeyCredential,
- createCommunicationAuthPolicy,
-} from "@azure/communication-common";
-import { isTokenCredential, KeyCredential, TokenCredential } from "@azure/core-auth";
-import {
- PipelineOptions,
- InternalPipelineOptions,
- createPipelineFromOptions,
- RestResponse,
-} from "@azure/core-http";
+import { isKeyCredential, parseClientArguments } from "@azure/communication-common";
+import { KeyCredential, TokenCredential, isTokenCredential } from "@azure/core-auth";
+import { CommonClientOptions, InternalClientPipelineOptions } from "@azure/core-client";
import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { logger, createSpan, SDK_VERSION } from "./utils";
+import { createSpan, logger } from "./utils";
import { ShortCodesClient as ShortCodesGeneratedClient } from "./generated/src";
-import { ShortCodes as GeneratedClient } from "./generated/src/operations";
import {
ShortCode,
ShortCodesUpsertUSProgramBriefOptionalParams,
@@ -31,11 +21,12 @@ import {
ListUSProgramBriefsOptions,
SubmitUSProgramBriefOptions,
} from "./models";
+import { createCommunicationAuthPolicy } from "@azure/communication-common";
/**
* Client options used to configure the ShortCodesClient API requests.
*/
-export interface ShortCodesClientOptions extends PipelineOptions {}
+export interface ShortCodesClientOptions extends CommonClientOptions {}
const isShortCodesClientOptions = (options: any): options is ShortCodesClientOptions =>
options && !isKeyCredential(options) && !isTokenCredential(options);
@@ -44,7 +35,7 @@ export class ShortCodesClient {
/**
* A reference to the auto-generated ShortCodes HTTP client.
*/
- private readonly client: GeneratedClient;
+ private readonly client: ShortCodesGeneratedClient;
public constructor(connectionString: string, options?: ShortCodesClientOptions);
@@ -69,19 +60,8 @@ export class ShortCodesClient {
const options = isShortCodesClientOptions(credentialOrOptions)
? credentialOrOptions
: maybeOptions;
- const libInfo = `azsdk-js-communication-short-codes/${SDK_VERSION}`;
-
- if (!options.userAgentOptions) {
- options.userAgentOptions = {};
- }
- if (options.userAgentOptions.userAgentPrefix) {
- options.userAgentOptions.userAgentPrefix = `${options.userAgentOptions.userAgentPrefix} ${libInfo}`;
- } else {
- options.userAgentOptions.userAgentPrefix = libInfo;
- }
-
- const internalPipelineOptions: InternalPipelineOptions = {
+ const internalPipelineOptions: InternalClientPipelineOptions = {
...options,
...{
loggingOptions: {
@@ -90,9 +70,9 @@ export class ShortCodesClient {
},
};
+ this.client = new ShortCodesGeneratedClient(url, internalPipelineOptions);
const authPolicy = createCommunicationAuthPolicy(credential);
- const pipeline = createPipelineFromOptions(internalPipelineOptions, authPolicy);
- this.client = new ShortCodesGeneratedClient(url, pipeline).shortCodes;
+ this.client.pipeline.addPolicy(authPolicy);
}
public listShortCodes(
@@ -100,7 +80,7 @@ export class ShortCodesClient {
): PagedAsyncIterableIterator {
const { span, updatedOptions } = createSpan("ShortCodesClient-listShortCodes", options);
try {
- return this.client.listShortCodes(updatedOptions);
+ return this.client.shortCodesOperations.listShortCodes(updatedOptions);
} catch (e) {
span.setStatus({
code: SpanStatusCode.ERROR,
@@ -115,10 +95,13 @@ export class ShortCodesClient {
public async upsertUSProgramBrief(
programBriefId: string,
options: ShortCodesUpsertUSProgramBriefOptionalParams = {}
- ): Promise {
+ ): Promise {
const { span, updatedOptions } = createSpan("ShortCodesClient-upsertUSProgramBrief", options);
try {
- return await this.client.upsertUSProgramBrief(programBriefId, updatedOptions);
+ return await this.client.shortCodesOperations.upsertUSProgramBrief(
+ programBriefId,
+ updatedOptions
+ );
} catch (e) {
span.setStatus({
code: SpanStatusCode.ERROR,
@@ -133,10 +116,13 @@ export class ShortCodesClient {
public async deleteUSProgramBrief(
programBriefId: string,
options?: DeleteUSProgramBriefOptions
- ): Promise {
+ ): Promise {
const { span, updatedOptions } = createSpan("ShortCodesClient-deleteUSProgramBrief", options);
try {
- return await this.client.deleteUSProgramBrief(programBriefId, updatedOptions);
+ return await this.client.shortCodesOperations.deleteUSProgramBrief(
+ programBriefId,
+ updatedOptions
+ );
} catch (e) {
span.setStatus({
code: SpanStatusCode.ERROR,
@@ -154,7 +140,10 @@ export class ShortCodesClient {
): Promise {
const { span, updatedOptions } = createSpan("ShortCodesClient-getUSProgramBrief", options);
try {
- return await this.client.getUSProgramBrief(programBriefId, updatedOptions);
+ return await this.client.shortCodesOperations.getUSProgramBrief(
+ programBriefId,
+ updatedOptions
+ );
} catch (e) {
span.setStatus({
code: SpanStatusCode.ERROR,
@@ -171,7 +160,7 @@ export class ShortCodesClient {
): PagedAsyncIterableIterator {
const { span, updatedOptions } = createSpan("ShortCodesClient-listUSProgramBriefs", options);
try {
- return this.client.listUSProgramBriefs(updatedOptions);
+ return this.client.shortCodesOperations.listUSProgramBriefs(updatedOptions);
} catch (e) {
span.setStatus({
code: SpanStatusCode.ERROR,
@@ -186,10 +175,13 @@ export class ShortCodesClient {
public async submitUSProgramBrief(
programBriefId: string,
options?: SubmitUSProgramBriefOptions
- ): Promise {
+ ): Promise {
const { span, updatedOptions } = createSpan("ShortCodesClient-submitUSProgramBrief", options);
try {
- return await this.client.submitUSProgramBrief(programBriefId, updatedOptions);
+ return await this.client.shortCodesOperations.submitUSProgramBrief(
+ programBriefId,
+ updatedOptions
+ );
} catch (e) {
span.setStatus({
code: SpanStatusCode.ERROR,
diff --git a/sdk/communication/communication-short-codes/src/utils/constants.ts b/sdk/communication/communication-short-codes/src/utils/constants.ts
index 47dc16dd0f7c..328eef7797c9 100644
--- a/sdk/communication/communication-short-codes/src/utils/constants.ts
+++ b/sdk/communication/communication-short-codes/src/utils/constants.ts
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
-export const SDK_VERSION: string = "1.0.0-beta.1";
+export const SDK_VERSION: string = "1.0.0-beta.2";
diff --git a/sdk/communication/communication-short-codes/swagger/README.md b/sdk/communication/communication-short-codes/swagger/README.md
index a8b4da981467..70497fd196e2 100644
--- a/sdk/communication/communication-short-codes/swagger/README.md
+++ b/sdk/communication/communication-short-codes/swagger/README.md
@@ -5,9 +5,9 @@
## Configuration
```yaml
-package-name: azure-communication-short-codes
+package-name: "@azure/communication-short-codes"
description: Short code acquiring and management client
-package-version: 1.0.0-beta.1
+package-version: 1.0.0-beta.2
generate-metadata: false
license-header: MICROSOFT_MIT_NO_VERSION
output-folder: ../src/generated
@@ -17,7 +17,7 @@ model-date-time-as-string: false
optional-response-headers: true
payload-flattening-threshold: 10
use-extension:
- "@autorest/typescript": "6.0.0-dev.20210223.1"
+ "@autorest/typescript": "6.0.0-beta.15"
add-credentials: false
azure-arm: false
skip-enum-validation: true
diff --git a/sdk/communication/communication-short-codes/test/private/headers.spec.ts b/sdk/communication/communication-short-codes/test/internal/headers.spec.ts
similarity index 95%
rename from sdk/communication/communication-short-codes/test/private/headers.spec.ts
rename to sdk/communication/communication-short-codes/test/internal/headers.spec.ts
index 6904ca5c2529..131e2224892a 100644
--- a/sdk/communication/communication-short-codes/test/private/headers.spec.ts
+++ b/sdk/communication/communication-short-codes/test/internal/headers.spec.ts
@@ -2,23 +2,24 @@
// Licensed under the MIT license.
import { AzureKeyCredential } from "@azure/core-auth";
-import { isNode, WebResourceLike } from "@azure/core-http";
import { TokenCredential } from "@azure/identity";
import { assert } from "chai";
+import { PipelineRequest } from "@azure/core-rest-pipeline";
import sinon from "sinon";
import { ShortCodesClient } from "../../src/shortCodesClient";
import { getUSProgramBriefHttpClient } from "../public/utils/mockHttpClients";
import { SDK_VERSION } from "../../src/utils/constants";
import { Context } from "mocha";
import { createMockToken } from "../public/utils/recordedClient";
+import { isNode } from "@azure/test-utils";
-describe("PhoneNumbersClient - headers", function () {
+describe("ShortCodesClient - headers", function () {
const endpoint = "https://contoso.spool.azure.local";
const accessKey = "banana";
let client = new ShortCodesClient(endpoint, new AzureKeyCredential(accessKey), {
httpClient: getUSProgramBriefHttpClient,
});
- let request: WebResourceLike;
+ let request: PipelineRequest;
afterEach(function () {
sinon.restore();
diff --git a/sdk/communication/communication-short-codes/test/public/createGetDeleteUSProgramBrief.spec.ts b/sdk/communication/communication-short-codes/test/public/createGetDeleteUSProgramBrief.spec.ts
new file mode 100644
index 000000000000..c0c25e16d82e
--- /dev/null
+++ b/sdk/communication/communication-short-codes/test/public/createGetDeleteUSProgramBrief.spec.ts
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT license.
+
+import { Recorder } from "@azure-tools/test-recorder";
+import { assert } from "chai";
+import { Context } from "mocha";
+import { ShortCodesClient, ShortCodesUpsertUSProgramBriefOptionalParams } from "../../src";
+import { createRecordedClient } from "./utils/recordedClient";
+import { getTestUSProgramBrief } from "./utils/testUSProgramBrief";
+
+describe(`ShortCodesClient - creates US Program Brief using upsert`, function () {
+ let recorder: Recorder;
+ let client: ShortCodesClient;
+
+ beforeEach(function (this: Context) {
+ ({ client, recorder } = createRecordedClient(this));
+ });
+
+ afterEach(async function (this: Context) {
+ if (!this.currentTest?.isPending()) {
+ await recorder.stop();
+ }
+ });
+
+ it("can create, get and delete a US Program Brief", async function () {
+ const uspb = getTestUSProgramBrief();
+ const programBriefRequest: ShortCodesUpsertUSProgramBriefOptionalParams = {
+ body: uspb,
+ };
+
+ const submitRes = await client.upsertUSProgramBrief(uspb.id, programBriefRequest);
+ console.log(submitRes.id);
+ assert.isOk(submitRes);
+
+ const { id } = await client.getUSProgramBrief(uspb.id);
+ assert.strictEqual(uspb.id, id);
+
+ const delRes = await client.deleteUSProgramBrief(id);
+ assert.isOk(delRes);
+ }).timeout(15000);
+});
diff --git a/sdk/communication/communication-short-codes/test/public/createUpdateUSProgramBrief.spec.ts b/sdk/communication/communication-short-codes/test/public/createUpdateUSProgramBrief.spec.ts
new file mode 100644
index 000000000000..12e9d1f622be
--- /dev/null
+++ b/sdk/communication/communication-short-codes/test/public/createUpdateUSProgramBrief.spec.ts
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT license.
+
+import { Recorder } from "@azure-tools/test-recorder";
+import { assert } from "chai";
+import { Context } from "mocha";
+import { ShortCodesClient, ShortCodesUpsertUSProgramBriefOptionalParams } from "../../src";
+import { createRecordedClient } from "./utils/recordedClient";
+import { getTestUSProgramBrief } from "./utils/testUSProgramBrief";
+
+describe(`ShortCodesClient - updates US Program Brief using upsert`, function () {
+ let recorder: Recorder;
+ let client: ShortCodesClient;
+
+ beforeEach(function (this: Context) {
+ ({ client, recorder } = createRecordedClient(this));
+ });
+
+ afterEach(async function (this: Context) {
+ if (!this.currentTest?.isPending()) {
+ await recorder.stop();
+ }
+ });
+
+ it("can create and update a US Program Brief", async function () {
+ const uspb = getTestUSProgramBrief();
+ const programBriefRequest: ShortCodesUpsertUSProgramBriefOptionalParams = {
+ body: uspb,
+ };
+ const submitRes = await client.upsertUSProgramBrief(uspb.id, programBriefRequest);
+ assert.isOk(submitRes);
+
+ uspb.programDetails!.description = "TEST UPDATE";
+ programBriefRequest.body = uspb;
+
+ const updateRes = await client.upsertUSProgramBrief(uspb.id, programBriefRequest);
+
+ assert.isOk(updateRes);
+ assert.equal(updateRes.programDetails?.description, uspb.programDetails?.description);
+ }).timeout(15000);
+});
diff --git a/sdk/communication/communication-short-codes/test/public/manageUSProgramBriefs.spec.ts b/sdk/communication/communication-short-codes/test/public/manageUSProgramBriefs.spec.ts
index 4b9f91ed38b4..768df88f874f 100644
--- a/sdk/communication/communication-short-codes/test/public/manageUSProgramBriefs.spec.ts
+++ b/sdk/communication/communication-short-codes/test/public/manageUSProgramBriefs.spec.ts
@@ -5,6 +5,7 @@ import { Recorder } from "@azure-tools/test-recorder";
import { assert } from "chai";
import { Context } from "mocha";
import { ShortCodesClient, ShortCodesUpsertUSProgramBriefOptionalParams } from "../../src";
+import { USProgramBrief } from "../../src/generated/src";
import { createRecordedClient } from "./utils/recordedClient";
import {
assertEditableFieldsAreEqual,
@@ -12,6 +13,16 @@ import {
getTestUSProgramBrief,
} from "./utils/testUSProgramBrief";
+function getExpectedResponseFor(programBrief: USProgramBrief): USProgramBrief {
+ return {
+ ...programBrief,
+
+ // Currently, the server rejects payloads that include preferredVanityNumbers if isVanity=false.
+ // However, the response always includes preferredVanityNumbers, regardless of the isVanity flag.
+ programDetails: { ...programBrief.programDetails, preferredVanityNumbers: [] },
+ };
+}
+
describe(`ShortCodesClient - creates, gets, updates, lists, and deletes US Program Brief`, function () {
let recorder: Recorder;
let client: ShortCodesClient;
@@ -56,15 +67,11 @@ describe(`ShortCodesClient - creates, gets, updates, lists, and deletes US Progr
// create program brief by calling upsert
const submitResult = await client.upsertUSProgramBrief(uspb.id, createRequest);
assert.isOk(submitResult, "Failed to create program brief");
- assert.equal(
- uspb.id,
- submitResult._response.parsedBody["id"],
- "Program brief creation returned the wrong Id"
- );
+ assert.equal(uspb.id, submitResult.id, "Program brief creation returned the wrong Id");
// get program brief, verify it was created correctly
let getRes = await client.getUSProgramBrief(uspb.id);
- assertEditableFieldsAreEqual(uspb, getRes, "get after initial create");
+ assertEditableFieldsAreEqual(getExpectedResponseFor(uspb), getRes, "get after initial create");
// update program brief by calling upsert
if (uspb.programDetails) {
@@ -75,22 +82,18 @@ describe(`ShortCodesClient - creates, gets, updates, lists, and deletes US Progr
const updateResult = await client.upsertUSProgramBrief(uspb.id, updateRequest);
assert.isOk(updateResult, "Update program brief failed");
- assert.equal(
- uspb.id,
- updateResult._response.parsedBody["id"],
- "Update program brief returned the wrong Id"
- );
+ assert.equal(uspb.id, updateResult.id, "Update program brief returned the wrong Id");
// get program brief, verify it was updated correctly
getRes = await client.getUSProgramBrief(uspb.id);
- assertEditableFieldsAreEqual(uspb, getRes, "get after update");
+ assertEditableFieldsAreEqual(getExpectedResponseFor(uspb), getRes, "get after update");
// list program briefs, validate test program brief is in the list
let foundTestProgramBrief = false;
for await (const pb of client.listUSProgramBriefs()) {
if (pb.id === uspb.id) {
foundTestProgramBrief = true;
- assertEditableFieldsAreEqual(uspb, pb, "list all program briefs");
+ assertEditableFieldsAreEqual(getExpectedResponseFor(uspb), pb, "list all program briefs");
}
}
assert.isTrue(
@@ -105,5 +108,5 @@ describe(`ShortCodesClient - creates, gets, updates, lists, and deletes US Progr
await doesProgramBriefExist(client, uspb.id),
"Delete program brief was unsuccessful, program brief is still returned"
);
- }).timeout(15000);
+ }).timeout(35000);
});
diff --git a/sdk/communication/communication-short-codes/test/public/utils/mockHttpClients.ts b/sdk/communication/communication-short-codes/test/public/utils/mockHttpClients.ts
index e4153d211ec0..e0ea06d3df66 100644
--- a/sdk/communication/communication-short-codes/test/public/utils/mockHttpClients.ts
+++ b/sdk/communication/communication-short-codes/test/public/utils/mockHttpClients.ts
@@ -1,29 +1,22 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
-import { HttpClient, WebResourceLike, HttpOperationResponse } from "@azure/core-http";
-import { USProgramBrief } from "../../../src";
-import { getTestUSProgramBrief } from "./testUSProgramBrief";
+import { HttpClient, PipelineRequest, PipelineResponse } from "@azure/core-rest-pipeline";
export const createMockHttpClient = >(
status: number = 200,
parsedBody?: T
): HttpClient => {
return {
- async sendRequest(request: WebResourceLike): Promise {
+ async sendRequest(request: PipelineRequest): Promise {
return {
status,
request,
headers: request.headers,
- parsedBody,
+ bodyAsText: JSON.stringify(parsedBody),
};
},
};
};
-const uspb = getTestUSProgramBrief();
-
-export const getUSProgramBriefHttpClient: HttpClient = createMockHttpClient(
- 200,
- uspb
-);
+export const getUSProgramBriefHttpClient: HttpClient = createMockHttpClient(200);
diff --git a/sdk/communication/communication-short-codes/test/public/utils/recordedClient.ts b/sdk/communication/communication-short-codes/test/public/utils/recordedClient.ts
index 8fc1165378d8..d38a19a1cc9a 100644
--- a/sdk/communication/communication-short-codes/test/public/utils/recordedClient.ts
+++ b/sdk/communication/communication-short-codes/test/public/utils/recordedClient.ts
@@ -5,28 +5,24 @@ import { Context } from "mocha";
import * as dotenv from "dotenv";
import {
- env,
Recorder,
- record,
RecorderEnvironmentSetup,
+ env,
+ isLiveMode,
isPlaybackMode,
+ record,
} from "@azure-tools/test-recorder";
-import {
- DefaultHttpClient,
- HttpClient,
- HttpOperationResponse,
- isNode,
- TokenCredential,
- WebResourceLike,
-} from "@azure/core-http";
import { ShortCodesClient, ShortCodesClientOptions } from "../../../src";
import { parseConnectionString } from "@azure/communication-common";
-import { ClientSecretCredential, DefaultAzureCredential } from "@azure/identity";
+import { ClientSecretCredential, DefaultAzureCredential, TokenCredential } from "@azure/identity";
+import { createXhrHttpClient, isNode } from "@azure/test-utils";
if (isNode) {
dotenv.config();
}
+const httpClient = isNode || isLiveMode() ? undefined : createXhrHttpClient();
+
export interface RecordedClient {
client: T;
recorder: Recorder;
@@ -58,15 +54,17 @@ export function createRecordedClient(context: Context): RecordedClient Promise<{ token: string; expiresOnTimestamp: number }>;
+} {
return {
- getToken: async (_scopes) => {
+ getToken: async (_scopes: string) => {
return { token: "testToken", expiresOnTimestamp: 11111 };
},
};
@@ -86,7 +84,7 @@ export function createRecordedClientWithToken(
// casting is a workaround to enable min-max testing
return {
client: new ShortCodesClient(endpoint, credential, {
- httpClient: createTestHttpClient(),
+ httpClient,
} as ShortCodesClientOptions),
recorder,
};
@@ -105,7 +103,7 @@ export function createRecordedClientWithToken(
// casting is a workaround to enable min-max testing
return {
client: new ShortCodesClient(endpoint, credential, {
- httpClient: createTestHttpClient(),
+ httpClient,
} as ShortCodesClientOptions),
recorder,
};
@@ -114,24 +112,3 @@ export function createRecordedClientWithToken(
export const testPollerOptions = {
pollInterval: isPlaybackMode() ? 0 : undefined,
};
-
-function createTestHttpClient(): HttpClient {
- const customHttpClient = new DefaultHttpClient();
-
- const originalSendRequest = customHttpClient.sendRequest;
- customHttpClient.sendRequest = async function (
- httpRequest: WebResourceLike
- ): Promise {
- const requestResponse = await originalSendRequest.apply(this, [httpRequest]);
-
- console.log(
- `MS-CV header for request: ${httpRequest.url} (${
- requestResponse.status
- } - ${requestResponse.headers.get("ms-cv")})`
- );
-
- return requestResponse;
- };
-
- return customHttpClient;
-}
diff --git a/sdk/communication/communication-short-codes/test/public/utils/testUSProgramBrief.ts b/sdk/communication/communication-short-codes/test/public/utils/testUSProgramBrief.ts
index d29d8c78b1f9..33368ef38373 100644
--- a/sdk/communication/communication-short-codes/test/public/utils/testUSProgramBrief.ts
+++ b/sdk/communication/communication-short-codes/test/public/utils/testUSProgramBrief.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
-import { RestError } from "@azure/core-http";
+import { RestError } from "@azure/core-rest-pipeline";
import { assert } from "chai";
import { USProgramBrief } from "../../../src";
import { ShortCodesClient } from "../../../src";