Skip to content

Commit

Permalink
Merge pull request #35 from PinchPayments/create-source-obsoletes
Browse files Browse the repository at this point in the history
SourceSaveOptions property updates
  • Loading branch information
dkarzon authored Sep 4, 2023
2 parents 8fc78ef + d64b503 commit 11350c6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Pinch.SDK.sln
Original file line number Diff line number Diff line change
@@ -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
Expand Down
13 changes: 11 additions & 2 deletions src/Pinch.SDK/Sources/SourceSaveOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,34 @@ public class SourceSaveOptions
/// The type of payment source to use. Can be either "bank-account" or "credit-card".
/// </summary>
public string SourceType { get; set; }


/// <summary>
/// The Token generated by the Pinch Capture javascript library.
/// </summary>
public string Token { get; set; }

/// <summary>
/// The Payer's Bank Account Number. Currently must be between 3 and 10 digits long (inclusive). Everything except numbers will be stripped.
/// </summary>
[Obsolete("Legacy. Bank Accounts should be tokenized and sent via the Token field.")]
public string BankAccountNumber { get; set; }

/// <summary>
/// The Payer's BSB (Bank State Branch number). Must be 6 digits. Everything except numbers will be stripped.
/// </summary>
public string BankAccountBsb { get; set; }
[Obsolete("Legacy. Bank Accounts should be tokenized and sent via the Token field.")]
public string BankAccountBsb { get; set; }

/// <summary>
/// The Payer's Bank Account Name. If left blank, it will be set to the Payer's name.
/// </summary>
[Obsolete("Legacy. Bank Accounts should be tokenized and sent via the Token field.")]
public string BankAccountName { get; set; }

/// <summary>
/// The Token generated by the Pinch Capture javascript library.
/// </summary>
[Obsolete("Use Token instead.")]
public string CreditCardToken { get; set; }

/// <summary>
Expand Down

0 comments on commit 11350c6

Please sign in to comment.