@veloceapps/api 11.0.0-80 → 11.0.0-81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1265,39 +1265,25 @@ class SalesTransactionApiService {
1265
1265
  }
1266
1266
  /**
1267
1267
  * This endpoint doesn't include orders and assets
1268
- * @param objectId SF record ID (quoteId | accountId | opportunityId | orderId etc)
1268
+ * @param headerId SF record ID (quoteId | accountId | opportunityId | orderId etc)
1269
1269
  * @param params Query params
1270
1270
  * @param options Request options
1271
1271
  */
1272
- getState(objectId, params, options) {
1272
+ getState(headerId, params, options) {
1273
1273
  return this.httpService.api({
1274
1274
  method: 'get',
1275
- url: `${this.SERVICE_URL}/${objectId}`,
1275
+ url: `${this.SERVICE_URL}/query/${headerId}`,
1276
1276
  params: params,
1277
1277
  ...options,
1278
1278
  });
1279
1279
  }
1280
1280
  upsert(request, options) {
1281
- return of({
1282
- id: 'ID',
1283
- });
1284
- // return this.httpService.api({
1285
- // method: 'post',
1286
- // url: `${this.SERVICE_URL}`,
1287
- // body: request,
1288
- // ...options,
1289
- // });
1290
- }
1291
- submit(request, options) {
1292
- return of({
1293
- id: 'ID',
1281
+ return this.httpService.api({
1282
+ method: 'post',
1283
+ url: `${this.SERVICE_URL}`,
1284
+ body: request,
1285
+ ...options,
1294
1286
  });
1295
- // return this.httpService.api({
1296
- // method: 'post',
1297
- // url: `${this.SERVICE_URL}`,
1298
- // body: request,
1299
- // ...options,
1300
- // });
1301
1287
  }
1302
1288
  }
1303
1289
  SalesTransactionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });