Пример #1
0
 /// <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;
 }
Пример #2
0
 public DataCashRequestBuilderBase(DataCashConfiguration configuration)
 {
     if (configuration == null)
     {
         throw new ArgumentNullException("configuration");
     }
     _configuration = configuration;
 }
Пример #3
0
 public CancelGateway(DataCashConfiguration configuration, IHttpClient httpClient, IDataCashCancelTransactionRequestBuilder requestBuilder, ICancelTransactionResponseParser responseParser)
 {
     if (configuration == null) throw new ArgumentNullException("configuration");
     if (httpClient == null) throw new ArgumentNullException("httpClient");
     if (responseParser == null) throw new ArgumentNullException("responseParser");
     if (requestBuilder == null) throw new ArgumentNullException("requestBuilder");
     _configuration = configuration;
     _httpClient = httpClient;
     _requestBuilder = requestBuilder;
     _responseParser = responseParser;
 }
Пример #4
0
 /// <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 DataCashRecurringTxnGateway(
     DataCashConfiguration configuration,
     IHttpClient httpClient,
     IDataCashRecurringTransactionBuilder requestBuilder,
     IDataCashRecurringPaymentResponseParser responseParser,
     IRecurringRefundGateway 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;
 }
Пример #6
0
 public RefundGateway(DataCashConfiguration configuration, IHttpClient httpClient, IDataCashRefundTransactionRequestBuilder refundRequestBuilder, IRefundTransactionResponseParser refundResponseParser)
 {
     if (configuration == null)
     {
         throw new ArgumentNullException("configuration");
     }
     if (httpClient == null)
     {
         throw new ArgumentNullException("httpClient");
     }
     if (refundResponseParser == null)
     {
         throw new ArgumentNullException("refundResponseParser");
     }
     if (refundRequestBuilder == null)
     {
         throw new ArgumentNullException("refundResponseParser");
     }
     _configuration        = configuration;
     _httpClient           = httpClient;
     _refundRequestBuilder = refundRequestBuilder;
     _refundResponseParser = refundResponseParser;
 }
Пример #7
0
 public RefundGateway(DataCashConfiguration configuration)
     : this(configuration, new HttpClient(), new RefundTransactionRequestBuilder(configuration), new RefundTransactionResponseParser())
 {
 }
Пример #8
0
 public RefundTransactionRequestBuilder(DataCashConfiguration configuration)
     : base(configuration)
 {
 }
Пример #9
0
 public CancelGateway(DataCashConfiguration configuration)
     : this(configuration, new HttpClient(), new CancelTransactionRequestBuilder(configuration), new CancelTransactionResponseParser())
 {
 }
Пример #10
0
 public DataCashMoToGateway(DataCashConfiguration configuration)
     : this(configuration, new HttpClient(), new DataCashMoToRequestBuilder(configuration), new DataCashResponseParser(), new RefundGateway(configuration))
 {
 }
 public DataCashRecurringTxnGateway(DataCashConfiguration configuration)
     : this(configuration, new HttpClient(), new DataCashRecurringTransactionBuilder(configuration), new DataCashRecurringPaymentResponseParser(new DataCashResponseParser()), new DataCashRecurringRefundGateway(configuration), new CancelGateway(configuration))
 {
 }
Пример #12
0
 public DataCashMoToRequestBuilder(DataCashConfiguration configuration)
     : base(configuration)
 {
 }
Пример #13
0
 public DataCashRequestBuilderBase(DataCashConfiguration configuration)
 {
     if (configuration == null) throw new ArgumentNullException("configuration");
     _configuration = configuration;
 }
 public CancelTransactionRequestBuilder(DataCashConfiguration configuration)
     : base(configuration)
 {
 }
 public RefundTransactionRequestBuilder(DataCashConfiguration configuration)
     : base(configuration)
 {
 }
Пример #16
0
 public DataCashRecurringRefundGateway(DataCashConfiguration configuration) : base(configuration)
 {
 }
 public CancelTransactionRequestBuilder(DataCashConfiguration configuration)
     : base(configuration)
 {
 }
Пример #18
0
 public DataCashRecurringTransactionBuilder(DataCashConfiguration configuration)
     : base(configuration)
 {
 }
 public DataCashMoToRequestBuilder(DataCashConfiguration configuration)
     : base(configuration)
 {
 }
 public DataCash3DSecureAuthorizeRequestBuilder(DataCashConfiguration configuration)
     : base(configuration)
 {
 }
 public DataCash3DSecureAuthorizeRequestBuilder(DataCashConfiguration configuration)
     : base(configuration)
 {
 }
Пример #22
0
 public DataCashMoToGateway(DataCashConfiguration configuration)
     : this(configuration, new HttpClient(), new DataCashMoToRequestBuilder(configuration), new DataCashResponseParser(), new RefundGateway(configuration), new CancelGateway(configuration))
 {
 }