From 1575feea261494eb4e2adf98f567853177a3a427 Mon Sep 17 00:00:00 2001 From: "REDMOND\\magoe" Date: Wed, 22 May 2019 15:42:47 -0700 Subject: [PATCH 1/7] Microsoft.Billing: Add APIs for validation of subscription transfer and product transfer across invoice sections --- .../preview/2018-11-01-preview/billing.json | 115 +++++++++++++++++- .../examples/TransferBillingSubscription.json | 3 +- .../examples/TransferProduct.json | 3 +- .../ValidateProductTransferFailure.json | 23 ++++ .../ValidateProductTransferSuccess.json | 19 +++ .../ValidateSubscriptionTransferFailure.json | 23 ++++ .../ValidateSubscriptionTransferSuccess.json | 19 +++ 7 files changed, 201 insertions(+), 4 deletions(-) create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json index 95c0890e34e7..3b2a9d03b767 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json @@ -3691,8 +3691,12 @@ "description": "The properties of the product to initiate a transfer.", "properties": { "destinationInvoiceSectionId": { - "description": "Destination invoice section id.", - "type": "string" + "type": "string", + "description": "The destination invoice section id." + }, + "destinationBillingProfileId": { + "type": "string", + "description": "The destination billing profile id." } } }, @@ -3735,9 +3739,64 @@ "destinationInvoiceSectionId": { "type": "string", "description": "The destination invoice section id." + }, + "destinationBillingProfileId": { + "type": "string", + "description": "The destination billing profile id." + } + } + }, + "ValidateSubscriptionTransferEligibilityResult": { + "type": "object", + "description": "Result of the transfer eligibility validation.", + "properties": { + "isTransferEligible": { + "description": "Specifies whether the transfer is eligible or not.", + "type": "boolean", + "readOnly": true + }, + "errorDetails": { + "description": "Validation error details.", + "type": "#/definitions/ValidateSubscriptionTransferEligibilityError" } } }, + "ValidateSubscriptionTransferEligibilityError": { + "type": "object", + "description": "Error details of the transfer eligibility validation", + "properties": { + "code": { + "description": "Error code for the product transfer validation.", + "$ref": "#/definitions/SubscriptionTransferValidationErrorCode" + }, + "message": { + "description": "The error message.", + "type": "string" + }, + "details": { + "description": "Detailed error message explaining the error.", + "type": "string" + } + } + }, + "SubscriptionTransferValidationErrorCode": { + "type": "string", + "description": "Error code of the transfer validation response.", + "enum": [ + "InvalidSource", + "SubscriptionNotActive", + "InsufficienctPermissionOnSource", + "InsufficienctPermissionOnDestination", + "DestinationBillingProfilePastDue", + "SubscriptionTypeNotSupported", + "CrossBillingAccountNotAllowed", + "NotAvailableForDestinationMarket" + ], + "x-ms-enum": { + "name": "subscriptionTransferValidationErrorCode", + "modelAsString": true + } + }, "UpdateAutoRenewOperationSummary": { "type": "object", "description": "Summary of cancel product operation", @@ -4738,6 +4797,58 @@ } } }, + "ValidateProductTransferEligibilityResult": { + "type": "object", + "description": "Result of the product transfer eligibility validation.", + "properties": { + "isTransferEligible": { + "description": "Specifies whether the transfer is eligible or not.", + "type": "boolean", + "readOnly": true + }, + "errorDetails": { + "description": "Validation error details.", + "type": "#/definitions/ValidateProductTransferEligibilityError" + } + } + }, + "ValidateProductTransferEligibilityError": { + "type": "object", + "description": "Error details of the product transfer eligibility validation.", + "properties": { + "code": { + "description": "Error code for the product transfer validation.", + "$ref": "#/definitions/ProductTransferValidationErrorCode" + }, + "message": { + "description": "The error message.", + "type": "string" + }, + "details": { + "description": "Detailed error message explaining the error.", + "type": "string" + } + } + }, + "ProductTransferValidationErrorCode": { + "type": "string", + "description": "Error code of the transfer validation response.", + "enum": [ + "InvalidSource", + "ProductNotActive", + "InsufficienctPermissionOnSource", + "InsufficienctPermissionOnDestination", + "DestinationBillingProfilePastDue", + "ProductTypeNotSupported", + "CrossBillingAccountNotAllowed", + "NotAvailableForDestinationMarket", + "OneTimePurchaseProductTransferNotAllowed" + ], + "x-ms-enum": { + "name": "productTransferValidationErrorCode", + "modelAsString": true + } + }, "BillingSubscriptionsListResult": { "description": "Result of listing billing subscriptions summary.", "properties": { diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/TransferBillingSubscription.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/TransferBillingSubscription.json index e9558c7d3d8b..28691c89e30f 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/TransferBillingSubscription.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/TransferBillingSubscription.json @@ -5,7 +5,8 @@ "invoiceSectionName": "{invoiceSectionName}", "billingSubscriptionName": "{billingSubscriptionName}", "parameters": { - "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{newInvoiceSectionName}" + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" } }, "responses": { diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/TransferProduct.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/TransferProduct.json index adcce68ee2c7..dc49de699f96 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/TransferProduct.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/TransferProduct.json @@ -5,7 +5,8 @@ "invoiceSectionName": "{invoiceSectionName}", "productName": "{productName}", "parameters": { - "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{newInvoiceSectionName}" + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" } }, "responses": { diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json new file mode 100644 index 000000000000..b21fc3654b7f --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "invoiceSectionName": "{invoiceSectionName}", + "productName": "{productName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "IsTransferEligible": "false", + "ErrorDetails": { + "Code" : "ProductTypeNotSupported", + "Message" : "Product '{productName}' is not allowed to be transferred." + } + } + } + } +} \ No newline at end of file diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json new file mode 100644 index 000000000000..dce612f3a096 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "invoiceSectionName": "{invoiceSectionName}", + "productName": "{productName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "IsTransferEligible": "true" + } + } + } +} \ No newline at end of file diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json new file mode 100644 index 000000000000..756f6ecfe0e6 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingSubscriptionName": "{billingSubscriptionName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "IsTransferEligible": "false", + "ErrorDetails": { + "Code" : "SubscriptionNotActive", + "Message" : "Invoice Sections can only be changed for active subscriptions." + } + } + } + } +} \ No newline at end of file diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json new file mode 100644 index 000000000000..2d3c75d7fd33 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingSubscriptionName": "{billingSubscriptionName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "IsTransferEligible": "true" + } + } + } +} \ No newline at end of file From ee9c084d114adadf33c21dae905c5554cb4a5577 Mon Sep 17 00:00:00 2001 From: "REDMOND\\magoe" Date: Wed, 22 May 2019 16:01:06 -0700 Subject: [PATCH 2/7] Microsoft.Billing: Add APIs for validation of subscription transfer and product transfer across invoice sections: Fix issues --- .../Microsoft.Billing/preview/2018-11-01-preview/billing.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json index 3b2a9d03b767..e7af8611a498 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json @@ -3757,7 +3757,7 @@ }, "errorDetails": { "description": "Validation error details.", - "type": "#/definitions/ValidateSubscriptionTransferEligibilityError" + "$ref": "#/definitions/ValidateSubscriptionTransferEligibilityError" } } }, @@ -4808,7 +4808,7 @@ }, "errorDetails": { "description": "Validation error details.", - "type": "#/definitions/ValidateProductTransferEligibilityError" + "$ref": "#/definitions/ValidateProductTransferEligibilityError" } } }, From 8b4c932bd870981d5e2eaa7d329e096b7a428afc Mon Sep 17 00:00:00 2001 From: "REDMOND\\magoe" Date: Wed, 29 May 2019 12:05:26 -0700 Subject: [PATCH 3/7] Microsoft.Billing: Add APIs for validation of subscription transfer and product transfer across invoice sections --- .../preview/2018-11-01-preview/billing.json | 100 +++++++++++++++++- 1 file changed, 98 insertions(+), 2 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json index e7af8611a498..fb168c19bd0e 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json @@ -1400,6 +1400,54 @@ } } }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}/validateTransferEligibility": { + "post": { + "x-ms-examples": { + "SubscriptionTransferValidateSuccess": { + "$ref": "./examples/ValidateSubscriptionTransferSuccess.json" + }, + "SubscriptionTransferValidateFailure": { + "$ref": "./examples/ValidateSubscriptionTransferFailure.json" + } + }, + "operationId": "BillingSubscriptions_ValidateTransfer", + "description": "Validates the transfer of billing subscriptions across invoice sections.", + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/billingSubscriptionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TransferBillingSubscriptionRequestProperties" + }, + "description": "Parameters supplied to the Transfer Billing Subscription operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ValidateSubscriptionTransferEligibilityResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/products": { "get": { "tags": [ @@ -1611,6 +1659,54 @@ } } }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/products/{productName}/validateTransferEligibility": { + "post": { + "x-ms-examples": { + "SubscriptionTransferValidateSuccess": { + "$ref": "./examples/ValidateProductTransferSuccess.json" + }, + "SubscriptionTransferValidateFailure": { + "$ref": "./examples/ValidateProductTransferFailure.json" + } + }, + "operationId": "Products_ValidateTransfer", + "description": "Validates the transfer of products across invoice sections.", + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/billingSubscriptionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TransferProductRequestProperties" + }, + "description": "Parameters supplied to the Transfer Products operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ValidateProductTransferEligibilityResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/transactions": { "get": { "tags": [ @@ -3785,8 +3881,8 @@ "enum": [ "InvalidSource", "SubscriptionNotActive", - "InsufficienctPermissionOnSource", - "InsufficienctPermissionOnDestination", + "InsufficientPermissionOnSource", + "InsufficientPermissionOnDestination", "DestinationBillingProfilePastDue", "SubscriptionTypeNotSupported", "CrossBillingAccountNotAllowed", From d71d95cb4d906cc39af789aadc692d99453b33fa Mon Sep 17 00:00:00 2001 From: "REDMOND\\magoe" Date: Wed, 29 May 2019 12:18:55 -0700 Subject: [PATCH 4/7] Microsoft.Billing: Add APIs for validation of subscription transfer and product transfer across invoice sections --- .../Microsoft.Billing/preview/2018-11-01-preview/billing.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json index fb168c19bd0e..e6ae402801c3 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json @@ -1679,7 +1679,7 @@ "$ref": "#/parameters/invoiceSectionNameParameter" }, { - "$ref": "#/parameters/billingSubscriptionNameParameter" + "$ref": "#/parameters/productNameParameter" }, { "name": "parameters", From 4b3af88ef898eb6ef8ac7fb9f04688a747a47c24 Mon Sep 17 00:00:00 2001 From: "REDMOND\\magoe" Date: Wed, 29 May 2019 12:32:06 -0700 Subject: [PATCH 5/7] Microsoft.Billing: Add APIs for validation of subscription transfer and product transfer across invoice sections --- .../examples/ValidateProductTransferFailure.json | 8 ++++---- .../examples/ValidateProductTransferSuccess.json | 2 +- .../examples/ValidateSubscriptionTransferFailure.json | 8 ++++---- .../examples/ValidateSubscriptionTransferSuccess.json | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json index b21fc3654b7f..d795c0f22276 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json @@ -12,10 +12,10 @@ "responses": { "200": { "body": { - "IsTransferEligible": "false", - "ErrorDetails": { - "Code" : "ProductTypeNotSupported", - "Message" : "Product '{productName}' is not allowed to be transferred." + "isTransferEligible": "false", + "errorDetails": { + "code" : "ProductTypeNotSupported", + "message" : "Product '{productName}' is not allowed to be transferred." } } } diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json index dce612f3a096..86b8a0062924 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json @@ -12,7 +12,7 @@ "responses": { "200": { "body": { - "IsTransferEligible": "true" + "isTransferEligible": "true" } } } diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json index 756f6ecfe0e6..e94a837ad420 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json @@ -12,10 +12,10 @@ "responses": { "200": { "body": { - "IsTransferEligible": "false", - "ErrorDetails": { - "Code" : "SubscriptionNotActive", - "Message" : "Invoice Sections can only be changed for active subscriptions." + "isTransferEligible": "false", + "errorDetails": { + "code" : "SubscriptionNotActive", + "message" : "Invoice Sections can only be changed for active subscriptions." } } } diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json index 2d3c75d7fd33..65919c9e54aa 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json @@ -12,7 +12,7 @@ "responses": { "200": { "body": { - "IsTransferEligible": "true" + "isTransferEligible": "true" } } } From 49adb40a8f92ad64e141a85581d0f9dbe4bcf242 Mon Sep 17 00:00:00 2001 From: "REDMOND\\magoe" Date: Wed, 29 May 2019 12:35:21 -0700 Subject: [PATCH 6/7] Microsoft.Billing: Add APIs for validation of subscription transfer and product transfer across invoice sections --- .../examples/ValidateProductTransferFailure.json | 2 +- .../examples/ValidateProductTransferSuccess.json | 2 +- .../examples/ValidateSubscriptionTransferFailure.json | 2 +- .../examples/ValidateSubscriptionTransferSuccess.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json index d795c0f22276..de33919caad3 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json @@ -12,7 +12,7 @@ "responses": { "200": { "body": { - "isTransferEligible": "false", + "isTransferEligible": false, "errorDetails": { "code" : "ProductTypeNotSupported", "message" : "Product '{productName}' is not allowed to be transferred." diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json index 86b8a0062924..7edb141ae853 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json @@ -12,7 +12,7 @@ "responses": { "200": { "body": { - "isTransferEligible": "true" + "isTransferEligible": true } } } diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json index e94a837ad420..e0004f41cd19 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json @@ -12,7 +12,7 @@ "responses": { "200": { "body": { - "isTransferEligible": "false", + "isTransferEligible": false, "errorDetails": { "code" : "SubscriptionNotActive", "message" : "Invoice Sections can only be changed for active subscriptions." diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json index 65919c9e54aa..c5e93cf366ec 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json @@ -12,7 +12,7 @@ "responses": { "200": { "body": { - "isTransferEligible": "true" + "isTransferEligible": true } } } From 385f978904ef94d58bd1c7c880f987cb6f1d2c3a Mon Sep 17 00:00:00 2001 From: "REDMOND\\magoe" Date: Wed, 29 May 2019 14:48:26 -0700 Subject: [PATCH 7/7] Microsoft.Billing: Add APIs for validation of subscription transfer and product transfer across invoice sections --- .../Microsoft.Billing/preview/2018-11-01-preview/billing.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json index e6ae402801c3..0af8d52cbe50 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json @@ -4932,8 +4932,8 @@ "enum": [ "InvalidSource", "ProductNotActive", - "InsufficienctPermissionOnSource", - "InsufficienctPermissionOnDestination", + "InsufficientPermissionOnSource", + "InsufficientPermissionOnDestination", "DestinationBillingProfilePastDue", "ProductTypeNotSupported", "CrossBillingAccountNotAllowed",