Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 public DataCashRequestBuilderBase(DataCashConfiguration configuration)
 {
     if (configuration == null)
     {
         throw new ArgumentNullException("configuration");
     }
     _configuration = configuration;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 7
0
 public RefundGateway(DataCashConfiguration configuration)
     : this(configuration, new HttpClient(), new RefundTransactionRequestBuilder(configuration), new RefundTransactionResponseParser())
 {
 }
Ejemplo n.º 8
0
 public RefundTransactionRequestBuilder(DataCashConfiguration configuration)
     : base(configuration)
 {
 }
Ejemplo n.º 9
0
 public CancelGateway(DataCashConfiguration configuration)
     : this(configuration, new HttpClient(), new CancelTransactionRequestBuilder(configuration), new CancelTransactionResponseParser())
 {
 }
Ejemplo n.º 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))
 {
 }
Ejemplo n.º 12
0
 public DataCashMoToRequestBuilder(DataCashConfiguration configuration)
     : base(configuration)
 {
 }
Ejemplo n.º 13
0
 public DataCashRequestBuilderBase(DataCashConfiguration configuration)
 {
     if (configuration == null) throw new ArgumentNullException("configuration");
     _configuration = configuration;
 }
Ejemplo n.º 14
0
 public CancelTransactionRequestBuilder(DataCashConfiguration configuration)
     : base(configuration)
 {
 }
Ejemplo n.º 15
0
 public RefundTransactionRequestBuilder(DataCashConfiguration configuration)
     : base(configuration)
 {
 }
Ejemplo n.º 16
0
 public DataCashRecurringRefundGateway(DataCashConfiguration configuration) : base(configuration)
 {
 }
 public CancelTransactionRequestBuilder(DataCashConfiguration configuration)
     : base(configuration)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 22
0
 public DataCashMoToGateway(DataCashConfiguration configuration)
     : this(configuration, new HttpClient(), new DataCashMoToRequestBuilder(configuration), new DataCashResponseParser(), new RefundGateway(configuration), new CancelGateway(configuration))
 {
 }