From d64b50348655a15d6ceda83690708e3127288cbd Mon Sep 17 00:00:00 2001 From: Damian Karzon Date: Thu, 31 Aug 2023 12:15:56 +1000 Subject: [PATCH] Marking bank account fields as obsolete and adding new Token prop to SourceSaveOptions to align with API --- Pinch.SDK.sln | 7 +++++-- src/Pinch.SDK/Sources/SourceSaveOptions.cs | 13 +++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/Pinch.SDK.sln b/Pinch.SDK.sln index 03c18fa..71610c0 100644 --- a/Pinch.SDK.sln +++ b/Pinch.SDK.sln @@ -1,11 +1,14 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.31129.286 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34003.232 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{74D307F2-34AB-489C-BDC7-B770BFCD3CA7}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BCB43A02-9028-4F2A-BA2C-B66C99197E3F}" + ProjectSection(SolutionItems) = preProject + readme.md = readme.md + EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pinch.SDK.WebSample", "src\Pinch.SDK.WebSample\Pinch.SDK.WebSample.csproj", "{7509CEE7-D9B1-41C2-9E66-CD008DF23DBF}" EndProject diff --git a/src/Pinch.SDK/Sources/SourceSaveOptions.cs b/src/Pinch.SDK/Sources/SourceSaveOptions.cs index 328a6a5..a18134a 100644 --- a/src/Pinch.SDK/Sources/SourceSaveOptions.cs +++ b/src/Pinch.SDK/Sources/SourceSaveOptions.cs @@ -12,25 +12,34 @@ public class SourceSaveOptions /// The type of payment source to use. Can be either "bank-account" or "credit-card". /// public string SourceType { get; set; } - + + /// + /// The Token generated by the Pinch Capture javascript library. + /// + public string Token { get; set; } + /// /// The Payer's Bank Account Number. Currently must be between 3 and 10 digits long (inclusive). Everything except numbers will be stripped. /// + [Obsolete("Legacy. Bank Accounts should be tokenized and sent via the Token field.")] public string BankAccountNumber { get; set; } /// /// The Payer's BSB (Bank State Branch number). Must be 6 digits. Everything except numbers will be stripped. /// - public string BankAccountBsb { get; set; } + [Obsolete("Legacy. Bank Accounts should be tokenized and sent via the Token field.")] + public string BankAccountBsb { get; set; } /// /// The Payer's Bank Account Name. If left blank, it will be set to the Payer's name. /// + [Obsolete("Legacy. Bank Accounts should be tokenized and sent via the Token field.")] public string BankAccountName { get; set; } /// /// The Token generated by the Pinch Capture javascript library. /// + [Obsolete("Use Token instead.")] public string CreditCardToken { get; set; } ///