Skip to content

Commit

Permalink
Merge pull request #35 from gocardless/template-changes
Browse files Browse the repository at this point in the history
Changes from gocardless-dotnet-template
  • Loading branch information
saurav1991 authored Feb 6, 2020
2 parents c7afcb2 + 6ba0b96 commit 14562c4
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions GoCardless/Resources/Payment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ public class Payment
[JsonProperty("reference")]
public string Reference { get; set; }

/// <summary>
/// On failure, automatically retry the payment using [Optimise Smart
/// Payment Retries](#optimise-smart-payment-retries). Default is
/// `false`.
/// </summary>
[JsonProperty("retry_if_possible")]
public bool? RetryIfPossible { get; set; }

/// <summary>
/// One of:
/// <ul>
Expand Down
8 changes: 8 additions & 0 deletions GoCardless/Resources/Subscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ public class Subscription
[JsonProperty("payment_reference")]
public string PaymentReference { get; set; }

/// <summary>
/// On failure, automatically retry payments using [Optimise Smart
/// Payment Retries](#optimise-smart-payment-retries). Default is
/// `false`.
/// </summary>
[JsonProperty("retry_if_possible")]
public bool? RetryIfPossible { get; set; }

/// <summary>
/// The date on which the first payment should be charged. Must be on or
/// after the [mandate](#core-endpoints-mandates)'s
Expand Down
8 changes: 8 additions & 0 deletions GoCardless/Services/InstalmentScheduleService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,14 @@ public class InstalmentScheduleLinks
[JsonProperty("payment_reference")]
public string PaymentReference { get; set; }

/// <summary>
/// On failure, automatically retry payments using [Optimise Smart
/// Payment Retries](#optimise-smart-payment-retries). Default is
/// `false`.
/// </summary>
[JsonProperty("retry_if_possible")]
public bool? RetryIfPossible { get; set; }

/// <summary>
/// The total amount of the instalment schedule, defined as the sum of
/// all individual
Expand Down
16 changes: 16 additions & 0 deletions GoCardless/Services/PaymentService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,14 @@ public class PaymentLinks
[JsonProperty("reference")]
public string Reference { get; set; }

/// <summary>
/// On failure, automatically retry the payment using [Optimise Smart
/// Payment Retries](#optimise-smart-payment-retries). Default is
/// `false`.
/// </summary>
[JsonProperty("retry_if_possible")]
public bool? RetryIfPossible { get; set; }

/// <summary>
/// A unique key to ensure that this request only succeeds once, allowing you to safely retry request errors such as network failures.
/// Any requests, where supported, to create a resource with a key that has previously been used will not succeed.
Expand Down Expand Up @@ -623,6 +631,14 @@ public class PaymentUpdateRequest
/// </summary>
[JsonProperty("metadata")]
public IDictionary<String, String> Metadata { get; set; }

/// <summary>
/// On failure, automatically retry the payment using [Optimise Smart
/// Payment Retries](#optimise-smart-payment-retries). Default is
/// `false`.
/// </summary>
[JsonProperty("retry_if_possible")]
public bool? RetryIfPossible { get; set; }
}


Expand Down
8 changes: 8 additions & 0 deletions GoCardless/Services/SubscriptionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,14 @@ public enum SubscriptionMonth
[JsonProperty("payment_reference")]
public string PaymentReference { get; set; }

/// <summary>
/// On failure, automatically retry payments using [Optimise Smart
/// Payment Retries](#optimise-smart-payment-retries). Default is
/// `false`.
/// </summary>
[JsonProperty("retry_if_possible")]
public bool? RetryIfPossible { get; set; }

/// <summary>
/// The date on which the first payment should be charged. Must be on or
/// after the [mandate](#core-endpoints-mandates)'s
Expand Down

0 comments on commit 14562c4

Please sign in to comment.