docs: def replace_payment_transaction_by_id(cls, payment_transaction_id, payment_transaction, **kwargs):
          """Replace PaymentTransaction
  
          Replace all attributes of PaymentTransaction
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async=True
          >>> thread = api.replace_payment_transaction_by_id(payment_transaction_id, payment_transaction, async=True)
          >>> result = thread.get()
  
          :param async bool
          :param str payment_transaction_id: ID of paymentTransaction to replace (required)
          :param PaymentTransaction payment_transaction: Attributes of paymentTransaction to replace (required)
          :return: PaymentTransaction
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async'):
              return cls._replace_payment_transaction_by_id_with_http_info(payment_transaction_id, payment_transaction, **kwargs)
          else:
              (data) = cls._replace_payment_transaction_by_id_with_http_info(payment_transaction_id, payment_transaction, **kwargs)
              return data