public async static Task <CustomerBeneficiary> GetAsync(CancellationToken cancellationToken, int?customerId, int?customerBeneficiaryId, Connection connection = null, object userDefinedObjectForLogging = null)
        {
            var cb = new CustomerBeneficiary(customerId);

            cb.CustomerBeneficiaryId = customerBeneficiaryId;
            return(await cb.GetAsync(cancellationToken, connection, userDefinedObjectForLogging));
        }
        /// <summary>
        /// Creates a customer beneficiary using properties from the current object.
        /// </summary>
        /// <param name="connection"></param>
        /// <returns></returns>
        public async virtual Task <CustomerBeneficiary> UpdateAsync(CancellationToken cancellationToken, Connection connection = null, object userDefinedObjectForLogging = null)
        {
            connection = connection ?? Connection.CreateFromConfig();
            var rv1 = await Requestor.PostAsync <CustomerBeneficiary>(cancellationToken, "customerBeneficiary/update", connection, this, userDefinedObjectForLogging);

            this.RequestId = rv1.RequestId;
            var rv = await CustomerBeneficiary.GetAsync(cancellationToken, this.CustomerId, (int)this.CustomerBeneficiaryId, connection, userDefinedObjectForLogging);

            rv.RequestId = rv1.RequestId;
            return(rv);
        }