initialize method
Initializes the client
Implementation
Future<void> initialize() async {
// TODO Initialize Services
_authenticationService = AuthenticationService(
clientId: clientId,
clientSecret: clientSecret,
authorizationEndpoint: "https://$_url/oauth2/authorize",
tokenEndpoint: "https://$_url/oauth2/token",
revocationEndpoint: "https://$_url/oauth2/token");
_terminalService = TerminalService(
authenticationService: _authenticationService!, baseUrl: _url);
_orderService = OrderService(
authenticationService: _authenticationService!, baseUrl: _url);
_subscriptionService = SubscriptionService(
authenticationService: _authenticationService!, baseUrl: _url);
_invoiceService = InvoiceService(
authenticationService: _authenticationService!, baseUrl: _url);
_catalogService = CatalogService(
authenticationService: _authenticationService!, baseUrl: _url);
_inventoryService = InventoryService(
authenticationService: _authenticationService!, baseUrl: _url);
_customerService = CustomerService(
authenticationService: _authenticationService!, baseUrl: _url);
_loyaltyService = LoyaltyService(
authenticationService: _authenticationService!, baseUrl: _url);
_giftCardService = GiftCardService(
authenticationService: _authenticationService!, baseUrl: _url);
_bookingsService = BookingsService(
authenticationService: _authenticationService!, baseUrl: _url);
_merchantService = MerchantService(
authenticationService: _authenticationService!, baseUrl: _url);
_teamService = TeamService(
authenticationService: _authenticationService!, baseUrl: _url);
_bankAccountService = BankAccountService(
authenticationService: _authenticationService!, baseUrl: _url);
_onlineService = OnlineService(
authenticationService: _authenticationService!, baseUrl: _url);
_paymentService = PaymentService(
authenticationService: _authenticationService!, baseUrl: _url);
}