def get_billing_agreement_details(
      amazon_billing_agreement_id,
      address_consent_token: nil,
      access_token: nil,
      merchant_id: @merchant_id,
      mws_auth_token: nil
    )

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

      optional = {
        # Preseving address_consent_token for backwards compatibility
        # AccessToken returns all data in AddressConsentToken plus new data
        # You cannot pass both address_consent_token and access_token in
        # the same call or you will encounter a 400/"AmbiguousToken" error
        'AccessToken' => access_token,
        'AddressConsentToken' => address_consent_token,
        'MWSAuthToken' => mws_auth_token
      }

      operation(parameters, optional)
    end
def get_billing_agreement_details(
      amazon_billing_agreement_id,
      address_consent_token: nil,
      access_token: nil,
      merchant_id: @merchant_id,
      mws_auth_token: nil
    )

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

      optional = {
        # Preseving address_consent_token for backwards compatibility
        # AccessToken returns all data in AddressConsentToken plus new data
        # You cannot pass both address_consent_token and access_token in
        # the same call or you will encounter a 400/"AmbiguousToken" error
        'AccessToken' => access_token,
        'AddressConsentToken' => address_consent_token,
        'MWSAuthToken' => mws_auth_token
      }

      operation(parameters, optional)
    end
Returns details about the Billing Agreement object and its current state
 @see https://pay.amazon.com/documentation/apireference/201751630#201751690
 @param amazon_billing_agreement_id [String]
 @optional address_consent_token [String]
 @optional access_token [String]
 @optional merchant_id [String]
 @optional mws_auth_token [String]