def set_billing_agreement_details(
      amazon_billing_agreement_id,
      platform_id: nil,
      seller_note: nil,
      seller_billing_agreement_id: nil,
      custom_information: nil,
      store_name: nil,
      merchant_id: @merchant_id,
      mws_auth_token: nil
    )

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

      optional = {
        'BillingAgreementAttributes.PlatformId' => platform_id,
        'BillingAgreementAttributes.SellerNote' => seller_note,
        'BillingAgreementAttributes.SellerBillingAgreementAttributes.SellerBillingAgreementId' => seller_billing_agreement_id,
        'BillingAgreementAttributes.SellerBillingAgreementAttributes.CustomInformation' => custom_information,
        'BillingAgreementAttributes.SellerBillingAgreementAttributes.StoreName' => store_name,
        'MWSAuthToken' => mws_auth_token
      }

      operation(parameters, optional)
    end
def set_billing_agreement_details(
      amazon_billing_agreement_id,
      platform_id: nil,
      seller_note: nil,
      seller_billing_agreement_id: nil,
      custom_information: nil,
      store_name: nil,
      merchant_id: @merchant_id,
      mws_auth_token: nil
    )

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

      optional = {
        'BillingAgreementAttributes.PlatformId' => platform_id,
        'BillingAgreementAttributes.SellerNote' => seller_note,
        'BillingAgreementAttributes.SellerBillingAgreementAttributes.SellerBillingAgreementId' => seller_billing_agreement_id,
        'BillingAgreementAttributes.SellerBillingAgreementAttributes.CustomInformation' => custom_information,
        'BillingAgreementAttributes.SellerBillingAgreementAttributes.StoreName' => store_name,
        'MWSAuthToken' => mws_auth_token
      }

      operation(parameters, optional)
    end
Sets billing agreement details such as a description of the agreement
 and other information about the seller.
 @see https://pay.amazon.com/documentation/apireference/201751630#201751700
 @param amazon_billing_agreement_id [String]
 @optional platform_id [String]
 @optional seller_note [String]
 @optional seller_billing_agreement_id [String]
 @optional custom_information [String]
 @optional store_name [String]
 @optional merchant_id [String]
 @optional mws_auth_token [String]