Skip to content

Commit 8efdbd7

Browse files
mdrichardsonTom Laird-McConnell
authored andcommitted
Obsoleted payment schemas (#3054)
* Obsoleted payment schemas * deprecated payments * removed duplicate obsoletes
1 parent bc90baf commit 8efdbd7

20 files changed

+90
-55
lines changed

libraries/Microsoft.Bot.Schema/ActionTypes.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// regenerated.
99
// </auto-generated>
1010

11+
using System;
12+
1113
namespace Microsoft.Bot.Schema
1214
{
1315

@@ -25,6 +27,7 @@ public static class ActionTypes
2527
public const string DownloadFile = "downloadFile";
2628
public const string Signin = "signin";
2729
public const string Call = "call";
30+
[Obsolete("Bot Framework no longer supports payments.")]
2831
public const string Payment = "payment";
2932
public const string MessageBack = "messageBack";
3033
public const string openApp = "openApp";

libraries/Microsoft.Bot.Schema/CardAction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public CardAction()
3232
/// <param name="type">The type of action implemented by this button.
3333
/// Possible values include: 'openUrl', 'imBack', 'postBack',
3434
/// 'playAudio', 'playVideo', 'showImage', 'downloadFile', 'signin',
35-
/// 'call', 'payment', 'messageBack', 'openApp'</param>
35+
/// 'call', 'messageBack', 'openApp'</param>
3636
/// <param name="title">Text description which appears on the
3737
/// button</param>
3838
/// <param name="image">Image URL which will appear on the button, next
@@ -65,7 +65,7 @@ public CardAction()
6565
/// Gets or sets the type of action implemented by this button.
6666
/// Possible values include: 'openUrl', 'imBack', 'postBack',
6767
/// 'playAudio', 'playVideo', 'showImage', 'downloadFile', 'signin',
68-
/// 'call', 'payment', 'messageBack'
68+
/// 'call', 'messageBack'
6969
/// </summary>
7070
[JsonProperty(PropertyName = "type")]
7171
public string Type { get; set; }

libraries/Microsoft.Bot.Schema/MicrosoftPayMethodData.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <auto-generated>
1+
// <auto-generated>
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
// Licensed under the MIT License. See License.txt in the project root for
44
// license information.
@@ -11,13 +11,13 @@
1111
namespace Microsoft.Bot.Schema
1212
{
1313
using Newtonsoft.Json;
14-
using System.Collections;
14+
using System;
1515
using System.Collections.Generic;
16-
using System.Linq;
1716

1817
/// <summary>
1918
/// W3C Payment Method Data for Microsoft Pay
2019
/// </summary>
20+
[Obsolete("Bot Framework no longer supports payments.")]
2121
public partial class MicrosoftPayMethodData
2222
{
2323
/// <summary>

libraries/Microsoft.Bot.Schema/PaymentAddress.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <auto-generated>
1+
// <auto-generated>
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
// Licensed under the MIT License. See License.txt in the project root for
44
// license information.
@@ -11,13 +11,13 @@
1111
namespace Microsoft.Bot.Schema
1212
{
1313
using Newtonsoft.Json;
14-
using System.Collections;
14+
using System;
1515
using System.Collections.Generic;
16-
using System.Linq;
1716

1817
/// <summary>
1918
/// Address within a Payment Request
2019
/// </summary>
20+
[Obsolete("Bot Framework no longer supports payments.")]
2121
public partial class PaymentAddress
2222
{
2323
/// <summary>

libraries/Microsoft.Bot.Schema/PaymentCurrencyAmount.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <auto-generated>
1+
// <auto-generated>
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
// Licensed under the MIT License. See License.txt in the project root for
44
// license information.
@@ -10,12 +10,13 @@
1010

1111
namespace Microsoft.Bot.Schema
1212
{
13+
using System;
1314
using Newtonsoft.Json;
14-
using System.Linq;
1515

1616
/// <summary>
1717
/// Supplies monetary amounts
1818
/// </summary>
19+
[Obsolete("Bot Framework no longer supports payments.")]
1920
public partial class PaymentCurrencyAmount
2021
{
2122
/// <summary>

libraries/Microsoft.Bot.Schema/PaymentDetails.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <auto-generated>
1+
// <auto-generated>
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
// Licensed under the MIT License. See License.txt in the project root for
44
// license information.
@@ -11,13 +11,13 @@
1111
namespace Microsoft.Bot.Schema
1212
{
1313
using Newtonsoft.Json;
14-
using System.Collections;
14+
using System;
1515
using System.Collections.Generic;
16-
using System.Linq;
1716

1817
/// <summary>
1918
/// Provides information about the requested transaction
2019
/// </summary>
20+
[Obsolete("Bot Framework no longer supports payments.")]
2121
public partial class PaymentDetails
2222
{
2323
/// <summary>

libraries/Microsoft.Bot.Schema/PaymentDetailsModifier.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <auto-generated>
1+
// <auto-generated>
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
// Licensed under the MIT License. See License.txt in the project root for
44
// license information.
@@ -11,14 +11,14 @@
1111
namespace Microsoft.Bot.Schema
1212
{
1313
using Newtonsoft.Json;
14-
using System.Collections;
14+
using System;
1515
using System.Collections.Generic;
16-
using System.Linq;
1716

1817
/// <summary>
1918
/// Provides details that modify the PaymentDetails based on payment method
2019
/// identifier
2120
/// </summary>
21+
[Obsolete("Bot Framework no longer supports payments.")]
2222
public partial class PaymentDetailsModifier
2323
{
2424
/// <summary>

libraries/Microsoft.Bot.Schema/PaymentItem.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <auto-generated>
1+
// <auto-generated>
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
// Licensed under the MIT License. See License.txt in the project root for
44
// license information.
@@ -11,11 +11,12 @@
1111
namespace Microsoft.Bot.Schema
1212
{
1313
using Newtonsoft.Json;
14-
using System.Linq;
14+
using System;
1515

1616
/// <summary>
1717
/// Indicates what the payment request is for and the value asked for
1818
/// </summary>
19+
[Obsolete("Bot Framework no longer supports payments.")]
1920
public partial class PaymentItem
2021
{
2122
/// <summary>

libraries/Microsoft.Bot.Schema/PaymentMethodData.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <auto-generated>
1+
// <auto-generated>
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
// Licensed under the MIT License. See License.txt in the project root for
44
// license information.
@@ -11,14 +11,14 @@
1111
namespace Microsoft.Bot.Schema
1212
{
1313
using Newtonsoft.Json;
14-
using System.Collections;
14+
using System;
1515
using System.Collections.Generic;
16-
using System.Linq;
1716

1817
/// <summary>
1918
/// Indicates a set of supported payment methods and any associated payment
2019
/// method specific data for those methods
2120
/// </summary>
21+
[Obsolete("Bot Framework no longer supports payments.")]
2222
public partial class PaymentMethodData
2323
{
2424
/// <summary>

libraries/Microsoft.Bot.Schema/PaymentOperations.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
using System;
5+
46
namespace Microsoft.Bot.Schema
57
{
68
/// <summary>
79
/// Names for invocable operations in the payment callback protocol.
810
/// </summary>
11+
[Obsolete("Bot Framework no longer supports payments.")]
912
public static class PaymentOperations
1013
{
1114
/// <summary>

0 commit comments

Comments
 (0)