@veloceapps/api 11.0.0-81 → 11.0.0-82

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.
@@ -1263,13 +1263,27 @@ class SalesTransactionApiService {
1263
1263
  this.httpService = httpService;
1264
1264
  this.SERVICE_URL = '/v2/transactions';
1265
1265
  }
1266
+ /**
1267
+ * This endpoint doesn't include orders and assets
1268
+ * @param objectId SF record ID (quoteId | accountId | opportunityId | orderId etc)
1269
+ * @param params Query params
1270
+ * @param options Request options
1271
+ */
1272
+ getState(objectId, params, options) {
1273
+ return this.httpService.api({
1274
+ method: 'get',
1275
+ url: `${this.SERVICE_URL}/${objectId}`,
1276
+ params: params,
1277
+ ...options,
1278
+ });
1279
+ }
1266
1280
  /**
1267
1281
  * This endpoint doesn't include orders and assets
1268
1282
  * @param headerId SF record ID (quoteId | accountId | opportunityId | orderId etc)
1269
1283
  * @param params Query params
1270
1284
  * @param options Request options
1271
1285
  */
1272
- getState(headerId, params, options) {
1286
+ query(headerId, params, options) {
1273
1287
  return this.httpService.api({
1274
1288
  method: 'get',
1275
1289
  url: `${this.SERVICE_URL}/query/${headerId}`,