Skip to content

Commit

Permalink
Changes generated by 507040162e12f42793a8eb8ab0b5441775b41075
Browse files Browse the repository at this point in the history
  • Loading branch information
gocardless-ci-robot[bot] committed Aug 13, 2024
1 parent 846f999 commit 8d2805b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions GoCardless/Resources/BillingRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,14 @@ public class BillingRequestMandateRequest
[JsonProperty("authorisation_source")]
public BillingRequestMandateRequestAuthorisationSource? AuthorisationSource { get; set; }

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

/// <summary>
/// Constraints that will apply to the mandate_request. (Optional)
/// Specifically for PayTo and VRP.
Expand Down Expand Up @@ -608,6 +616,34 @@ public enum BillingRequestMandateRequestAuthorisationSource {
Paper,
}

/// <summary>
/// This attribute represents the authorisation type between the payer and merchant. It can be
/// set to one-off, recurring or standing for ACH scheme. And single, recurring and sporadic for
/// PAD scheme.
/// </summary>
[JsonConverter(typeof(GcStringEnumConverter), (int)Unknown)]
public enum BillingRequestMandateRequestConsentType {
/// <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>
/// Represents a billing request mandate request constraint resource.
///
Expand Down

0 comments on commit 8d2805b

Please sign in to comment.