Skip to content

Commit

Permalink
Changing Recurring property to CofType
Browse files Browse the repository at this point in the history
  • Loading branch information
monikastojkova committed Feb 18, 2021
1 parent 6abd70e commit b4409b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/GloballyPaid.CSharp.Sdk/Enums/CofType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace GloballyPaid
{
public enum CofType
{
UNSCHEDULED_CARDHOLDER,
UNSCHEDULED_MERCHANT,
RECURRING,
INSTALLMENT
}
}
5 changes: 3 additions & 2 deletions src/GloballyPaid.CSharp.Sdk/Requests/ChargeRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ public class ChargeRequest : Request
[JsonProperty("capture")]
public bool Capture { get; set; } = true;

[JsonProperty("recurring")]
public bool Recurring { get; set; }
[JsonProperty("cof_type")]
[JsonConverter(typeof(StringEnumConverter))]
public CofType CofType { get; set; }

[JsonProperty("currency_code")]
[JsonConverter(typeof(StringEnumConverter))]
Expand Down

0 comments on commit b4409b6

Please sign in to comment.