/// <summary> /// TODO: Make internal and visible to Moolah.Specs /// </summary> public DataCashMoToGateway( DataCashConfiguration configuration, IHttpClient httpClient, IDataCashPaymentRequestBuilder requestBuilder, IDataCashResponseParser responseParser) { if (configuration == null) { throw new ArgumentNullException("configuration"); } if (httpClient == null) { throw new ArgumentNullException("httpClient"); } if (requestBuilder == null) { throw new ArgumentNullException("requestBuilder"); } if (responseParser == null) { throw new ArgumentNullException("responseParser"); } _configuration = configuration; _httpClient = httpClient; _paymentRequestBuilder = requestBuilder; _responseParser = responseParser; }
/// <summary> /// TODO: Make internal and visible to Moolah.Specs /// </summary> public DataCashMoToGateway( DataCashConfiguration configuration, IHttpClient httpClient, IDataCashPaymentRequestBuilder requestBuilder, IDataCashResponseParser responseParser) { if (configuration == null) throw new ArgumentNullException("configuration"); if (httpClient == null) throw new ArgumentNullException("httpClient"); if (requestBuilder == null) throw new ArgumentNullException("requestBuilder"); if (responseParser == null) throw new ArgumentNullException("responseParser"); _configuration = configuration; _httpClient = httpClient; _paymentRequestBuilder = requestBuilder; _responseParser = responseParser; }
internal DataCashMoToGateway( DataCashConfiguration configuration, IHttpClient httpClient, IDataCashPaymentRequestBuilder requestBuilder, IDataCashResponseParser responseParser, IRefundGateway refundGateway, ICancelGateway cancelGateway) { if (configuration == null) { throw new ArgumentNullException("configuration"); } if (httpClient == null) { throw new ArgumentNullException("httpClient"); } if (requestBuilder == null) { throw new ArgumentNullException("requestBuilder"); } if (responseParser == null) { throw new ArgumentNullException("responseParser"); } if (refundGateway == null) { throw new ArgumentNullException("refundGateway"); } if (cancelGateway == null) { throw new ArgumentNullException("cancelGateway"); } _configuration = configuration; _httpClient = httpClient; _paymentRequestBuilder = requestBuilder; _responseParser = responseParser; _refundGateway = refundGateway; _cancelGateway = cancelGateway; }
public DataCashRecurringPaymentResponseParser(IDataCashResponseParser baseParser) { BaseParser = baseParser; }