Пример #1
0
 public Task <bool> IsSetAsync(
     UserFlagType type,
     Dictionary <string, string> headers = default,
     CancellationToken ct = default)
 {
     return(_factory.GetAsync <bool>(_host + "/User/Flags/v1/IsSet", new { type }, headers, ct));
 }
Пример #2
0
 public Task <StockArrival> GetAsync(
     Guid id,
     Dictionary <string, string> headers = default,
     CancellationToken ct = default)
 {
     return(_factory.GetAsync <StockArrival>(_host + "/Stock/Arrivals/v1/Get", new { id }, headers, ct));
 }
Пример #3
0
 public Task <Order> GetAsync(
     Guid id,
     Dictionary <string, string> headers = default,
     CancellationToken ct = default)
 {
     return(_factory.GetAsync <Order>(_host + "/Orders/v1/Get", new { id }, headers, ct));
 }
Пример #4
0
 public Task <CrmTaskStatus> GetAsync(
     Guid id,
     Dictionary <string, string> headers = default,
     CancellationToken ct = default)
 {
     return(_factory.GetAsync <CrmTaskStatus>(_host + "/Tasks/Statuses/v1/Get", new { id }, headers, ct));
 }
 public Task <ProductAttribute> GetAsync(
     Guid id,
     Dictionary <string, string> headers = default,
     CancellationToken ct = default)
 {
     return(_factory.GetAsync <ProductAttribute>(_host + "/Products/Attributes/v1/Get", new { id }, headers, ct));
 }
Пример #6
0
 public Task <CustomerSource> GetAsync(
     Guid id,
     Dictionary <string, string> headers = default,
     CancellationToken ct = default)
 {
     return(_factory.GetAsync <CustomerSource>(_host + "/Customers/Sources/v1/Get", new { id }, headers, ct));
 }
Пример #7
0
 public Task <UserInfo> GetAsync(Dictionary <string, string> headers = default, CancellationToken ct = default)
 {
     return(_factory.GetAsync <UserInfo>(_host + "/UserInfo/Get", null, headers, ct));
 }
Пример #8
0
 public Task <AccountSetting> GetAsync(
     Dictionary <string, string> headers = default,
     CancellationToken ct = default)
 {
     return(_factory.GetAsync <AccountSetting>(_host + "/Account/Settings/v1/Get", null, headers, ct));
 }
Пример #9
0
 public Task <bool> IsAuthenticatedAsync(
     Dictionary <string, string> headers = default,
     CancellationToken ct = default)
 {
     return(_factory.GetAsync <bool>(_host + "/Auth/IsAuthenticated", null, headers, ct));
 }