Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added cleared flag to GlobalConstants.cs and Purchases.cs #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Empty file.
1,029 changes: 1,029 additions & 0 deletions .vs/Paysafe/config/applicationhost.config

Large diffs are not rendered by default.

Binary file added .vs/Paysafe/v17/.suo
Binary file not shown.
1 change: 1 addition & 0 deletions Paysafe/Common/GlobalConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public class GlobalConstants
public static readonly string cellPhone = "cellPhone";
public static readonly string childAccountNum = "childAccountNum";
public static readonly string city = "city";
public static readonly string cleared = "cleared";
public static readonly string code = "code";
public static readonly string confirmationNumber = "confirmationNumber";
public static readonly string country = "country";
Expand Down
44 changes: 37 additions & 7 deletions Paysafe/DirectDebit/Purchases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ public static string getPageableArrayKey()
{DirectDebitConstants.dupCheck, BOOL_TYPE},
{DirectDebitConstants.txnTime, typeof(DateTime)},
{DirectDebitConstants.currencyCode,STRING_TYPE},
{DirectDebitConstants.error, typeof(OptError)},
{DirectDebitConstants.status, DirectDebitConstants.enumStatus},
{DirectDebitConstants.error, typeof(OptError)},
{DirectDebitConstants.status, DirectDebitConstants.enumStatus},
{DirectDebitConstants.cleared, BOOL_TYPE},
{DirectDebitConstants.links, typeof(List<Link>)}
};
};

/// <summary>
/// Get the id
Expand Down Expand Up @@ -329,6 +330,24 @@ public void status(string data)
this.setProperty(DirectDebitConstants.status, data);
}

/// <summary>
/// Get the cleared
/// </summary>
/// <returns>bool</returns>
public bool cleared()
{
return this.getProperty(DirectDebitConstants.cleared);
}

/// <summary>
/// Set the cleared
/// </summary>
/// <returns>void</returns>
public void cleared(string data)
{
this.setProperty(DirectDebitConstants.cleared, data);
}

/// <summary>
/// Get the error
/// </summary>
Expand Down Expand Up @@ -462,7 +481,7 @@ public SEPABankAccounts.SEPAAccountBuilder<PurchasesBuilder> sepa()
}
return this.properties[DirectDebitConstants.sepa] as SEPABankAccounts.SEPAAccountBuilder<PurchasesBuilder>;
}

/// <summary>
/// Build a profile within this authorization.
/// </summary>
Expand All @@ -475,7 +494,7 @@ public Profile.ProfileBuilder<PurchasesBuilder> profile()
}
return this.properties[DirectDebitConstants.profile] as Profile.ProfileBuilder<PurchasesBuilder>;
}

/// <summary>
/// Build a billing details object within this authorization.
/// </summary>
Expand Down Expand Up @@ -511,6 +530,17 @@ public PurchasesBuilder dupCheck(bool data)
return this;
}

/// <summary>
/// Set the cleared parameter
/// </summary>
/// <param name=data>string</param>
/// <returns>PurchasesBuilder</returns>
public PurchasesBuilder cleared(bool data)
{
this.properties[DirectDebitConstants.cleared] = data;
return this;
}

/// <summary>
/// Set the currencyCode parameter
/// </summary>
Expand All @@ -531,8 +561,8 @@ public PurchasesBuilder status(string data)
{
this.properties[DirectDebitConstants.status] = data;
return this;
}
}
}
}

}
1 change: 1 addition & 0 deletions SampleApp/SampleApp.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>
Expand Down