def replace_store_credit_payment_by_id(cls, store_credit_payment_id, store_credit_payment, **kwargs):
        """Replace StoreCreditPayment

        Replace all attributes of StoreCreditPayment
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async=True
        >>> thread = api.replace_store_credit_payment_by_id(store_credit_payment_id, store_credit_payment, async=True)
        >>> result = thread.get()

        :param async bool
        :param str store_credit_payment_id: ID of storeCreditPayment to replace (required)
        :param StoreCreditPayment store_credit_payment: Attributes of storeCreditPayment to replace (required)
        :return: StoreCreditPayment
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async'):
            return cls._replace_store_credit_payment_by_id_with_http_info(store_credit_payment_id, store_credit_payment, **kwargs)
        else:
            (data) = cls._replace_store_credit_payment_by_id_with_http_info(store_credit_payment_id, store_credit_payment, **kwargs)
            return data