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