Exemplo n.º 1
0
 public Payment(AccountConfig account, PaymentRequest paymentRequest)
 {
     Account = account ??
               throw new ArgumentNullException("The benefit account details is required.", nameof(account));
     PaymentRequest = paymentRequest ??
                      throw new ArgumentNullException("The payment request payload is required.",
                                                      nameof(paymentRequest));
 }
Exemplo n.º 2
0
 public Payment(AccountConfig account)
 {
     Account = account ??
               throw new ArgumentNullException("The benefit account details is required.", nameof(account));
 }
Exemplo n.º 3
0
 public RestApiHelper(AccountConfig account, Environment environment)
 {
     Account     = account;
     Environment = environment;
     BaseUrl     = Environment == Environment.Test ? "https://www.test.benefit-gateway.bh" : "https://www.benefit-gateway.bh";
 }