Skip to content

Commit

Permalink
Changes generated by 1f72d0686f9521a143716e1998c41ac067fcac61
Browse files Browse the repository at this point in the history
This commit was automatically created from gocardless/gocardless-dotnet-template@1f72d06
by the `push-files` action.

Workflow run: https://github.com/gocardless/gocardless-dotnet-template/actions/runs/8833867401
  • Loading branch information
gocardless-ci-robot[bot] committed Apr 25, 2024
1 parent ee6bb9a commit ccdd3fb
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ artifacts/
*.pidb
*.svclog
*.scc
*.DS_Store

# Chutzpah Test files
_Chutzpah*
Expand Down
36 changes: 36 additions & 0 deletions GoCardless/Resources/BillingRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,20 @@ public class BillingRequestPaymentRequest
[JsonProperty("description")]
public string Description { get; set; }

/// <summary>
/// This field will decide how GoCardless handles settlement of funds
/// from the customer.
///
/// - `managed` will be moved through GoCardless' account, batched, and
/// payed out.
/// - `direct` will be a direct transfer from the payer's account to the
/// merchant where
/// invoicing will be handled separately.
///
/// </summary>
[JsonProperty("funds_settlement")]
public BillingRequestPaymentRequestFundsSettlement? FundsSettlement { get; set; }

/// <summary>
/// Resources linked to this BillingRequestPaymentRequest.
/// </summary>
Expand All @@ -870,6 +884,28 @@ public class BillingRequestPaymentRequest
public string Scheme { get; set; }
}

/// <summary>
/// This field will decide how GoCardless handles settlement of funds from the customer.
///
/// - `managed` will be moved through GoCardless' account, batched, and payed out.
/// - `direct` will be a direct transfer from the payer's account to the merchant where
/// invoicing will be handled separately.
///
/// </summary>
[JsonConverter(typeof(GcStringEnumConverter), (int)Unknown)]
public enum BillingRequestPaymentRequestFundsSettlement {
/// <summary>Unknown status</summary>
[EnumMember(Value = "unknown")]
Unknown = 0,

/// <summary>`funds_settlement` with a value of "managed"</summary>
[EnumMember(Value = "managed")]
Managed,
/// <summary>`funds_settlement` with a value of "direct"</summary>
[EnumMember(Value = "direct")]
Direct,
}

/// <summary>
/// Resources linked to this BillingRequestPaymentRequest
/// </summary>
Expand Down
15 changes: 9 additions & 6 deletions GoCardless/Services/BankDetailsLookupService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ public BankDetailsLookupService(GoCardlessClient goCardlessClient)
}

/// <summary>
/// Performs a bank details lookup. As part of the lookup, a modulus
/// check and
/// reachability check are performed.
/// Performs a bank details lookup. As part of the lookup, some
/// validations are performed such as a modulus check for GBP accounts
/// and a reachability check for PayTo. These checks vary per scheme.
/// Please reach out to us if you require more information about the
/// checks.
///
/// If your request returns an [error](#api-usage-errors) or the
/// `available_debit_schemes`
Expand Down Expand Up @@ -79,9 +81,10 @@ public Task<BankDetailsLookupResponse> CreateAsync(BankDetailsLookupCreateReques


/// <summary>
/// Performs a bank details lookup. As part of the lookup, a modulus check
/// and
/// reachability check are performed.
/// Performs a bank details lookup. As part of the lookup, some validations
/// are performed such as a modulus check for GBP accounts and a
/// reachability check for PayTo. These checks vary per scheme. Please reach
/// out to us if you require more information about the checks.
///
/// If your request returns an [error](#api-usage-errors) or the
/// `available_debit_schemes`
Expand Down
36 changes: 36 additions & 0 deletions GoCardless/Services/BillingRequestService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,42 @@ public class BillingRequestPaymentRequest
[JsonProperty("description")]
public string Description { get; set; }

/// <summary>
/// This field will decide how GoCardless handles settlement of
/// funds from the customer.
///
/// - `managed` will be moved through GoCardless' account, batched,
/// and payed out.
/// - `direct` will be a direct transfer from the payer's account to
/// the merchant where
/// invoicing will be handled separately.
///
/// </summary>
[JsonProperty("funds_settlement")]
public BillingRequestFundsSettlement? FundsSettlement { get; set; }
/// <summary>
/// This field will decide how GoCardless handles settlement of funds
/// from the customer.
///
/// - `managed` will be moved through GoCardless' account, batched, and
/// payed out.
/// - `direct` will be a direct transfer from the payer's account to the
/// merchant where
/// invoicing will be handled separately.
///
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum BillingRequestFundsSettlement
{

/// <summary>`funds_settlement` with a value of "managed"</summary>
[EnumMember(Value = "managed")]
Managed,
/// <summary>`funds_settlement` with a value of "direct"</summary>
[EnumMember(Value = "direct")]
Direct,
}

/// <summary>
/// Key-value store of custom data. Up to 3 keys are permitted, with
/// key names up to 50 characters and values up to 500 characters.
Expand Down
1 change: 1 addition & 0 deletions tmp-push-files-checkout
Submodule tmp-push-files-checkout added at ee6bb9

0 comments on commit ccdd3fb

Please sign in to comment.