Skip to content

Commit

Permalink
Changes generated by 9afc71409527dd47fee1cee4714d893e8cd3f093
Browse files Browse the repository at this point in the history
  • Loading branch information
gocardless-ci-robot[bot] committed Aug 23, 2024
1 parent e7f5fb3 commit d2b0656
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions GoCardless/Resources/Mandate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ public class Mandate
[JsonProperty("consent_parameters")]
public MandateConsentParameters ConsentParameters { get; set; }

/// <summary>
/// (Optional) Specifies the type of authorisation agreed between the
/// payer and merchant. It can be set to one-off, recurring or standing
/// for ACH, or single, recurring and sporadic for PAD.
/// </summary>
[JsonProperty("consent_type")]
public string ConsentType { get; set; }

/// <summary>
/// Fixed [timestamp](#api-usage-time-zones--dates), recording when this
/// resource was created.
Expand Down Expand Up @@ -272,6 +280,33 @@ public enum MandateConsentParameterPeriodPeriod {
Flexible,
}

/// <summary>
/// (Optional) Specifies the type of authorisation agreed between the payer and merchant. It can
/// be set to one-off, recurring or standing for ACH, or single, recurring and sporadic for PAD.
/// </summary>
[JsonConverter(typeof(GcStringEnumConverter), (int)Unknown)]
public enum MandateConsentType {
/// <summary>Unknown status</summary>
[EnumMember(Value = "unknown")]
Unknown = 0,

/// <summary>`consent_type` with a value of "one_off"</summary>
[EnumMember(Value = "one_off")]
OneOff,
/// <summary>`consent_type` with a value of "single"</summary>
[EnumMember(Value = "single")]
Single,
/// <summary>`consent_type` with a value of "recurring"</summary>
[EnumMember(Value = "recurring")]
Recurring,
/// <summary>`consent_type` with a value of "standing"</summary>
[EnumMember(Value = "standing")]
Standing,
/// <summary>`consent_type` with a value of "sporadic"</summary>
[EnumMember(Value = "sporadic")]
Sporadic,
}

/// <summary>
/// This field will decide how GoCardless handles settlement of funds from the customer.
///
Expand Down

0 comments on commit d2b0656

Please sign in to comment.