@wix/auto_sdk_get-paid_receipts 1.0.145 → 1.0.146
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.
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4 -39
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +4 -39
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +4 -39
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +4 -39
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1244,13 +1244,10 @@ interface ReceiptCreatedEnvelope {
|
|
|
1244
1244
|
* Triggered when a receipt is created.
|
|
1245
1245
|
* @permissionScope Manage Receipts
|
|
1246
1246
|
* @permissionScopeId SCOPE.RECEIPTS.MANAGE
|
|
1247
|
-
* @permissionScope Manage Stores
|
|
1248
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1249
1247
|
* @permissionId RECEIPTS.RECEIPT_READ
|
|
1250
1248
|
* @webhook
|
|
1251
1249
|
* @eventType wix.receipts.v1.receipt_created
|
|
1252
1250
|
* @slug created
|
|
1253
|
-
* @documentationMaturity preview
|
|
1254
1251
|
*/
|
|
1255
1252
|
declare function onReceiptCreated(handler: (event: ReceiptCreatedEnvelope) => void | Promise<void>): void;
|
|
1256
1253
|
interface ReceiptSentEnvelope {
|
|
@@ -1261,13 +1258,10 @@ interface ReceiptSentEnvelope {
|
|
|
1261
1258
|
* Triggered when a receipt is sent.
|
|
1262
1259
|
* @permissionScope Manage Receipts
|
|
1263
1260
|
* @permissionScopeId SCOPE.RECEIPTS.MANAGE
|
|
1264
|
-
* @permissionScope Manage Stores
|
|
1265
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1266
1261
|
* @permissionId RECEIPTS.RECEIPT_READ
|
|
1267
1262
|
* @webhook
|
|
1268
1263
|
* @eventType wix.receipts.v1.receipt_sent
|
|
1269
1264
|
* @slug sent
|
|
1270
|
-
* @documentationMaturity preview
|
|
1271
1265
|
*/
|
|
1272
1266
|
declare function onReceiptSent(handler: (event: ReceiptSentEnvelope) => void | Promise<void>): void;
|
|
1273
1267
|
interface ReceiptUpdatedEnvelope {
|
|
@@ -1278,13 +1272,10 @@ interface ReceiptUpdatedEnvelope {
|
|
|
1278
1272
|
* Triggered when a receipt's number allocation is updated or a receipt document is generated.
|
|
1279
1273
|
* @permissionScope Manage Receipts
|
|
1280
1274
|
* @permissionScopeId SCOPE.RECEIPTS.MANAGE
|
|
1281
|
-
* @permissionScope Manage Stores
|
|
1282
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1283
1275
|
* @permissionId RECEIPTS.RECEIPT_READ
|
|
1284
1276
|
* @webhook
|
|
1285
1277
|
* @eventType wix.receipts.v1.receipt_updated
|
|
1286
1278
|
* @slug updated
|
|
1287
|
-
* @documentationMaturity preview
|
|
1288
1279
|
*/
|
|
1289
1280
|
declare function onReceiptUpdated(handler: (event: ReceiptUpdatedEnvelope) => void | Promise<void>): void;
|
|
1290
1281
|
/**
|
|
@@ -1293,7 +1284,6 @@ declare function onReceiptUpdated(handler: (event: ReceiptUpdatedEnvelope) => vo
|
|
|
1293
1284
|
* Receipt number is assigned later and will be provided in the Get Receipt response.
|
|
1294
1285
|
* @param receipt - Receipt to create.
|
|
1295
1286
|
* @public
|
|
1296
|
-
* @documentationMaturity preview
|
|
1297
1287
|
* @requiredField receipt
|
|
1298
1288
|
* @requiredField receipt.currency
|
|
1299
1289
|
* @requiredField receipt.lineItems
|
|
@@ -1327,7 +1317,6 @@ declare function createReceipt(receipt: NonNullablePaths<Receipt, `currency` | `
|
|
|
1327
1317
|
* Retrieves a receipt.
|
|
1328
1318
|
* @param receiptId - Receipt ID.
|
|
1329
1319
|
* @public
|
|
1330
|
-
* @documentationMaturity preview
|
|
1331
1320
|
* @requiredField receiptId
|
|
1332
1321
|
* @permissionId RECEIPTS.RECEIPT_READ
|
|
1333
1322
|
* @applicableIdentity APP
|
|
@@ -1338,7 +1327,6 @@ declare function getReceipt(receiptId: string): Promise<NonNullablePaths<Receipt
|
|
|
1338
1327
|
/**
|
|
1339
1328
|
* Retrieves a list of up to 100 receipts, given the specified filtering, paging, and sorting ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/api/rest/getting-started/api-query-language)).
|
|
1340
1329
|
* @public
|
|
1341
|
-
* @documentationMaturity preview
|
|
1342
1330
|
* @permissionId RECEIPTS.RECEIPT_READ
|
|
1343
1331
|
* @applicableIdentity APP
|
|
1344
1332
|
* @fqn wix.receipts.v1.Receipts.QueryReceipts
|
|
@@ -1360,65 +1348,46 @@ interface ReceiptsQueryResult extends QueryCursorResult {
|
|
|
1360
1348
|
interface ReceiptsQueryBuilder {
|
|
1361
1349
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1362
1350
|
* @param value - Value to compare against.
|
|
1363
|
-
* @documentationMaturity preview
|
|
1364
1351
|
*/
|
|
1365
1352
|
eq: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'numbering.number' | 'numbering.prefix' | 'numbering.suffix' | 'sourceReference.wixPaymentOrder.transactionId' | 'sourceReference.wixEcomOrder.transactionId' | 'sourceReference.appId' | 'sourceReference.externalReferenceId', value: any) => ReceiptsQueryBuilder;
|
|
1366
1353
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1367
1354
|
* @param value - Value to compare against.
|
|
1368
|
-
* @documentationMaturity preview
|
|
1369
1355
|
*/
|
|
1370
1356
|
ne: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'numbering.number' | 'numbering.prefix' | 'numbering.suffix' | 'sourceReference.wixPaymentOrder.transactionId' | 'sourceReference.wixEcomOrder.transactionId' | 'sourceReference.appId' | 'sourceReference.externalReferenceId', value: any) => ReceiptsQueryBuilder;
|
|
1371
1357
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1372
1358
|
* @param value - Value to compare against.
|
|
1373
|
-
* @documentationMaturity preview
|
|
1374
1359
|
*/
|
|
1375
1360
|
ge: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'numbering.number' | 'numbering.prefix' | 'numbering.suffix' | 'sourceReference.wixPaymentOrder.transactionId' | 'sourceReference.wixEcomOrder.transactionId' | 'sourceReference.appId' | 'sourceReference.externalReferenceId', value: any) => ReceiptsQueryBuilder;
|
|
1376
1361
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1377
1362
|
* @param value - Value to compare against.
|
|
1378
|
-
* @documentationMaturity preview
|
|
1379
1363
|
*/
|
|
1380
1364
|
gt: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'numbering.number' | 'numbering.prefix' | 'numbering.suffix' | 'sourceReference.wixPaymentOrder.transactionId' | 'sourceReference.wixEcomOrder.transactionId' | 'sourceReference.appId' | 'sourceReference.externalReferenceId', value: any) => ReceiptsQueryBuilder;
|
|
1381
1365
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1382
1366
|
* @param value - Value to compare against.
|
|
1383
|
-
* @documentationMaturity preview
|
|
1384
1367
|
*/
|
|
1385
1368
|
le: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'numbering.number' | 'numbering.prefix' | 'numbering.suffix' | 'sourceReference.wixPaymentOrder.transactionId' | 'sourceReference.wixEcomOrder.transactionId' | 'sourceReference.appId' | 'sourceReference.externalReferenceId', value: any) => ReceiptsQueryBuilder;
|
|
1386
1369
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1387
1370
|
* @param value - Value to compare against.
|
|
1388
|
-
* @documentationMaturity preview
|
|
1389
1371
|
*/
|
|
1390
1372
|
lt: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'numbering.number' | 'numbering.prefix' | 'numbering.suffix' | 'sourceReference.wixPaymentOrder.transactionId' | 'sourceReference.wixEcomOrder.transactionId' | 'sourceReference.appId' | 'sourceReference.externalReferenceId', value: any) => ReceiptsQueryBuilder;
|
|
1391
1373
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
1392
1374
|
* @param string - String to compare against. Case-insensitive.
|
|
1393
|
-
* @documentationMaturity preview
|
|
1394
1375
|
*/
|
|
1395
1376
|
startsWith: (propertyName: '_id' | 'numbering.prefix' | 'numbering.suffix' | 'sourceReference.wixPaymentOrder.transactionId' | 'sourceReference.wixEcomOrder.transactionId' | 'sourceReference.appId' | 'sourceReference.externalReferenceId', value: string) => ReceiptsQueryBuilder;
|
|
1396
1377
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
1397
1378
|
* @param values - List of values to compare against.
|
|
1398
|
-
* @documentationMaturity preview
|
|
1399
1379
|
*/
|
|
1400
1380
|
hasSome: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'numbering.number' | 'numbering.prefix' | 'numbering.suffix' | 'sourceReference.wixPaymentOrder.transactionId' | 'sourceReference.wixEcomOrder.transactionId' | 'sourceReference.appId' | 'sourceReference.externalReferenceId', value: any[]) => ReceiptsQueryBuilder;
|
|
1401
|
-
/** @documentationMaturity preview */
|
|
1402
1381
|
in: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'numbering.number' | 'numbering.prefix' | 'numbering.suffix' | 'sourceReference.wixPaymentOrder.transactionId' | 'sourceReference.wixEcomOrder.transactionId' | 'sourceReference.appId' | 'sourceReference.externalReferenceId', value: any) => ReceiptsQueryBuilder;
|
|
1403
|
-
/** @documentationMaturity preview */
|
|
1404
1382
|
exists: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'numbering.number' | 'numbering.prefix' | 'numbering.suffix' | 'sourceReference.wixPaymentOrder.transactionId' | 'sourceReference.wixEcomOrder.transactionId' | 'sourceReference.appId' | 'sourceReference.externalReferenceId', value: boolean) => ReceiptsQueryBuilder;
|
|
1405
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1406
|
-
* @documentationMaturity preview
|
|
1407
|
-
*/
|
|
1383
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
1408
1384
|
ascending: (...propertyNames: Array<'_id' | '_createdDate' | '_updatedDate' | 'numbering.number' | 'numbering.prefix' | 'numbering.suffix' | 'numbering.displayNumber' | 'sourceReference.wixPaymentOrder.transactionId' | 'sourceReference.wixEcomOrder.transactionId' | 'sourceReference.appId' | 'sourceReference.externalReferenceId'>) => ReceiptsQueryBuilder;
|
|
1409
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1410
|
-
* @documentationMaturity preview
|
|
1411
|
-
*/
|
|
1385
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
1412
1386
|
descending: (...propertyNames: Array<'_id' | '_createdDate' | '_updatedDate' | 'numbering.number' | 'numbering.prefix' | 'numbering.suffix' | 'numbering.displayNumber' | 'sourceReference.wixPaymentOrder.transactionId' | 'sourceReference.wixEcomOrder.transactionId' | 'sourceReference.appId' | 'sourceReference.externalReferenceId'>) => ReceiptsQueryBuilder;
|
|
1413
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1414
|
-
* @documentationMaturity preview
|
|
1415
|
-
*/
|
|
1387
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
1416
1388
|
limit: (limit: number) => ReceiptsQueryBuilder;
|
|
1417
|
-
/** @param cursor - A pointer to specific record
|
|
1418
|
-
* @documentationMaturity preview
|
|
1419
|
-
*/
|
|
1389
|
+
/** @param cursor - A pointer to specific record */
|
|
1420
1390
|
skipTo: (cursor: string) => ReceiptsQueryBuilder;
|
|
1421
|
-
/** @documentationMaturity preview */
|
|
1422
1391
|
find: () => Promise<ReceiptsQueryResult>;
|
|
1423
1392
|
}
|
|
1424
1393
|
/**
|
|
@@ -1427,7 +1396,6 @@ interface ReceiptsQueryBuilder {
|
|
|
1427
1396
|
* Note that you can access a receipt document with an `AVAILABLE` status with the URL provided in `document.downloadUrl` without regenerating.
|
|
1428
1397
|
* @param receiptId - Receipt ID.
|
|
1429
1398
|
* @public
|
|
1430
|
-
* @documentationMaturity preview
|
|
1431
1399
|
* @requiredField receiptId
|
|
1432
1400
|
* @permissionId RECEIPTS.RECEIPT_UPDATE
|
|
1433
1401
|
* @applicableIdentity APP
|
|
@@ -1444,7 +1412,6 @@ declare function regenerateReceiptDocument(receiptId: string): Promise<void & {
|
|
|
1444
1412
|
* Note that if the specified contact ID doesn't have an associated email address, the call will fail.
|
|
1445
1413
|
* @param receiptId - Receipt ID to send.
|
|
1446
1414
|
* @public
|
|
1447
|
-
* @documentationMaturity preview
|
|
1448
1415
|
* @requiredField receiptId
|
|
1449
1416
|
* @param options - Field options. The `contactId` object must be passed if one was not already specified upon receipt creation.
|
|
1450
1417
|
* @permissionId RECEIPTS.RECEIPT_SEND
|
|
@@ -1467,7 +1434,6 @@ interface SendReceiptEmailOptions {
|
|
|
1467
1434
|
*
|
|
1468
1435
|
* Receipt numbering is managed in the Receipts Settings API.
|
|
1469
1436
|
* @public
|
|
1470
|
-
* @documentationMaturity preview
|
|
1471
1437
|
* @param options - Field options.
|
|
1472
1438
|
* @permissionId RECEIPTS.RECEIPT_READ
|
|
1473
1439
|
* @applicableIdentity APP
|
|
@@ -1487,7 +1453,6 @@ interface GetLatestReceiptNumberOptions {
|
|
|
1487
1453
|
* @param _id - ID of the entity to update.
|
|
1488
1454
|
* @param namespace - Identifier for the app whose extended fields are being updated.
|
|
1489
1455
|
* @public
|
|
1490
|
-
* @documentationMaturity preview
|
|
1491
1456
|
* @requiredField _id
|
|
1492
1457
|
* @requiredField namespace
|
|
1493
1458
|
* @requiredField options
|