Skip to content

Commit

Permalink
Crankshaft[BU000004GHKA35] .NET client @ 2017-10-25 13:19:13 UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
Crankshaft Robot committed Oct 25, 2017
1 parent da6ed47 commit cec2ce0
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions GoCardless/Services/SubscriptionService.cs
Expand Up @@ -178,6 +178,21 @@ public Task<SubscriptionResponse> GetAsync(string identity, SubscriptionGetReque

/// <summary>
/// Updates a subscription object.
///
/// This fails with:
///
/// - `subscription_not_active` if the subscription is no longer active.
///
/// - `subscription_already_ended` if the subscription has taken all
/// payments.
///
/// - `mandate_payments_require_approval` if the amount is being changed
/// and the mandate requires approval.
///
/// - `exceeded_max_amendments` error if the amount is being changed and
/// the
/// subscription amount has already been changed 10 times.
///
/// </summary>
/// <param name="identity">Unique identifier, beginning with "SB".</param>
/// <param name="request">An optional `SubscriptionUpdateRequest` representing the body for this update request.</param>
Expand Down Expand Up @@ -508,10 +523,30 @@ public class SubscriptionGetRequest

/// <summary>
/// Updates a subscription object.
///
/// This fails with:
///
/// - `subscription_not_active` if the subscription is no longer active.
///
/// - `subscription_already_ended` if the subscription has taken all
/// payments.
///
/// - `mandate_payments_require_approval` if the amount is being changed and
/// the mandate requires approval.
///
/// - `exceeded_max_amendments` error if the amount is being changed and the
/// subscription amount has already been changed 10 times.
///
/// </summary>
public class SubscriptionUpdateRequest
{

/// <summary>
/// Amount in pence (GBP), cents (EUR), or öre (SEK).
/// </summary>
[JsonProperty("amount")]
public int? Amount { get; set; }

/// <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

0 comments on commit cec2ce0

Please sign in to comment.