def close_billing_agreement(
      amazon_billing_agreement_id,
      closure_reason: nil,
      merchant_id: @merchant_id,
      mws_auth_token: nil
    )

      parameters = {
        'Action' => 'CloseBillingAgreement',
        'SellerId' => merchant_id,
        'AmazonBillingAgreementId' => amazon_billing_agreement_id
      }

      optional = {
        'ClosureReason' => closure_reason,
        'MWSAuthToken' => mws_auth_token
      }

      operation(parameters, optional)
    end
def close_billing_agreement(
      amazon_billing_agreement_id,
      closure_reason: nil,
      merchant_id: @merchant_id,
      mws_auth_token: nil
    )

      parameters = {
        'Action' => 'CloseBillingAgreement',
        'SellerId' => merchant_id,
        'AmazonBillingAgreementId' => amazon_billing_agreement_id
      }

      optional = {
        'ClosureReason' => closure_reason,
        'MWSAuthToken' => mws_auth_token
      }

      operation(parameters, optional)
    end
Confirms that you want to terminate the billing agreement with the buyer
 and that you do not expect to create any new order references or
 authorizations on this billing agreement
 @see https://pay.amazon.com/documentation/apireference/201751630#201751950
 @param amazon_billing_agreement_id [String]
 @optional closure_reason [String]
 @optional merchant_id [String]
 @optional mws_auth_token [String]