From d2b06560f012b9c9f1b20ffdae1abbefc6317367 Mon Sep 17 00:00:00 2001 From: "gocardless-ci-robot[bot]" <123969075+gocardless-ci-robot[bot]@users.noreply.github.com> Date: Fri, 23 Aug 2024 07:10:12 +0000 Subject: [PATCH] Changes generated by 9afc71409527dd47fee1cee4714d893e8cd3f093 This commit was automatically created from gocardless/gocardless-dotnet-template@9afc71409527dd47fee1cee4714d893e8cd3f093 by the `push-files` action. Workflow run: https://github.com/gocardless/gocardless-dotnet-template/actions/runs/10521485595 --- GoCardless/Resources/Mandate.cs | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/GoCardless/Resources/Mandate.cs b/GoCardless/Resources/Mandate.cs index 6e9ef72..2e92637 100644 --- a/GoCardless/Resources/Mandate.cs +++ b/GoCardless/Resources/Mandate.cs @@ -41,6 +41,14 @@ public class Mandate [JsonProperty("consent_parameters")] public MandateConsentParameters ConsentParameters { get; set; } + /// + /// (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. + /// + [JsonProperty("consent_type")] + public string ConsentType { get; set; } + /// /// Fixed [timestamp](#api-usage-time-zones--dates), recording when this /// resource was created. @@ -272,6 +280,33 @@ public enum MandateConsentParameterPeriodPeriod { Flexible, } + /// + /// (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. + /// + [JsonConverter(typeof(GcStringEnumConverter), (int)Unknown)] + public enum MandateConsentType { + /// Unknown status + [EnumMember(Value = "unknown")] + Unknown = 0, + + /// `consent_type` with a value of "one_off" + [EnumMember(Value = "one_off")] + OneOff, + /// `consent_type` with a value of "single" + [EnumMember(Value = "single")] + Single, + /// `consent_type` with a value of "recurring" + [EnumMember(Value = "recurring")] + Recurring, + /// `consent_type` with a value of "standing" + [EnumMember(Value = "standing")] + Standing, + /// `consent_type` with a value of "sporadic" + [EnumMember(Value = "sporadic")] + Sporadic, + } + /// /// This field will decide how GoCardless handles settlement of funds from the customer. ///