Example #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));
 }
Example #2
0
 public Payment(AccountConfig account)
 {
     Account = account ??
               throw new ArgumentNullException("The benefit account details is required.", nameof(account));
 }
Example #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";
 }