<?php
/**
 * WARNING: Do not edit by hand, this file was generated by Crank:
 *
 * https://github.com/gocardless/crank
 */

namespace GoCardlessPro\Resources;

/**
 * A thin wrapper around a bank_account_detail, providing access to its
 * attributes
 *
 * @property-read mixed $ciphertext
 * @property-read mixed $encrypted_key
 * @property-read mixed $iv
 * @property-read mixed $protected
 * @property-read mixed $tag
 */
class BankAccountDetail extends BaseResource
{
    protected $model_name = "BankAccountDetail";

    /**
     * Base64 URL encoded encrypted payload, in this case bank details.
     */
    protected $ciphertext;

    /**
     * Base64 URL encoded symmetric content encryption key, encrypted with the
     * asymmetric key from your JWKS.
     */
    protected $encrypted_key;

    /**
     * Base64 URL encoded initialization vector, used during content encryption.
     */
    protected $iv;

    /**
     * Base64 URL encoded JWE header values, containing the following keys:
     * 
     *   - `alg`: the asymmetric encryption type used to encrypt symmetric key,
     * e.g: `RSA-OAEP`.
     *   - `enc`: the content encryption type, e.g: `A256GCM`.
     *   - `kid`: the ID of an RSA-2048 public key, from your JWKS, used to
     * encrypt the AES key.
     */
    protected $protected;

    /**
     * Base64 URL encoded authentication tag, used to verify payload integrity
     * during decryption.
     */
    protected $tag;

}
