Skip to content

Commit

Permalink
Changes generated by 2f23200f3cf18848a0986f6b65b443800fd9dfba
Browse files Browse the repository at this point in the history
  • Loading branch information
gocardless-robot committed Nov 24, 2023
1 parent 27661f7 commit b36852b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
28 changes: 16 additions & 12 deletions GoCardless/Resources/TransferredMandate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,32 @@ namespace GoCardless.Resources
public class TransferredMandate
{
/// <summary>
/// Encrypted bank account details
/// Encrypted customer bank account details, containing:
/// `iban`, `account_holder_name`, `swift_bank_code`,
/// `swift_branch_code`, `swift_account_number`
/// </summary>
[JsonProperty("encrypted_data")]
public string EncryptedData { get; set; }
[JsonProperty("encrypted_customer_bank_details")]
public string EncryptedCustomerBankDetails { get; set; }

/// <summary>
/// Encrypted AES key
/// Random AES-256 key used to encrypt bank account details, itself
/// encrypted with your public key.
/// </summary>
[JsonProperty("key")]
public string Key { get; set; }

/// <summary>
/// Public key id used to encrypt AES key
/// </summary>
[JsonProperty("kid")]
public string Kid { get; set; }
[JsonProperty("encrypted_decryption_key")]
public string EncryptedDecryptionKey { get; set; }

/// <summary>
/// Resources linked to this TransferredMandate.
/// </summary>
[JsonProperty("links")]
public TransferredMandateLinks Links { get; set; }

/// <summary>
/// The ID of an RSA-2048 public key, from your JWKS, used to encrypt
/// the AES key.
/// </summary>
[JsonProperty("public_key_id")]
public string PublicKeyId { get; set; }
}

/// <summary>
Expand Down
15 changes: 5 additions & 10 deletions GoCardless/Services/TransferredMandateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public TransferredMandateService(GoCardlessClient goCardlessClient)
}

/// <summary>
/// Returns encrypted bank details for the transferred mandate
/// Returns new customer bank details for a mandate that's been recently
/// transferred
/// </summary>
/// <param name="identity">Unique identifier, beginning with "MD". Note that this prefix may
/// not apply to mandates created before 2016.</param>
Expand All @@ -50,23 +51,17 @@ public Task<TransferredMandateResponse> TransferredMandatesAsync(string identity
new KeyValuePair<string, object>("identity", identity),
};

return _goCardlessClient.ExecuteAsync<TransferredMandateResponse>("GET", "/transferred_mandate/:identity", urlParams, request, null, null, customiseRequestMessage);
return _goCardlessClient.ExecuteAsync<TransferredMandateResponse>("GET", "/transferred_mandates/:identity", urlParams, request, null, null, customiseRequestMessage);
}
}


/// <summary>
/// Returns encrypted bank details for the transferred mandate
/// Returns new customer bank details for a mandate that's been recently
/// transferred
/// </summary>
public class TransferredMandateTransferredMandatesRequest
{

/// <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.
/// </summary>
[JsonProperty("metadata")]
public IDictionary<String, String> Metadata { get; set; }
}

/// <summary>
Expand Down

0 comments on commit b36852b

Please sign in to comment.