コード例 #1
0
        public async Task DeletePaymentRequestsByIds()
        {
            PaymentRequest payment = new PaymentRequest();

            long[] arr = new long[] { 5, 6 };
            await payment.DeletePaymentRequestsByIds(arr);
        }
コード例 #2
0
        public static async Task <ApiResponse> DeletePaymentRequestsByIds(long[] ids)
        {
            ApiResponse response = new ApiResponse();

            try
            {
                PaymentRequest request = new PaymentRequest();
                await request.DeletePaymentRequestsByIds(ids);
            }
            catch (ApiCustomException ex)
            {
                Logger.Singleton.Error(ex.Message);
                response.Error = new ApiError(ex.ErrorCode, ex.Message);
            }
            catch (Exception ex)
            {
                Logger.Singleton.Error(ex.Message);
                response.Error = new ApiError(ex.HResult, ex.Message);
            }
            return(response);
        }