@wix/auto_sdk_benefit-programs_transactions 1.0.2 → 1.0.4
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/src/benefit-programs-v1-transaction-transactions.http.d.ts +6 -4
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.http.js +6 -4
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.http.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.public.d.ts +7 -5
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.public.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.d.ts +47 -53
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.js +4 -6
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.d.ts +54 -58
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.js +11 -11
- package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.js.map +1 -1
- package/build/es/src/benefit-programs-v1-transaction-transactions.http.d.ts +6 -4
- package/build/es/src/benefit-programs-v1-transaction-transactions.http.js +6 -4
- package/build/es/src/benefit-programs-v1-transaction-transactions.http.js.map +1 -1
- package/build/es/src/benefit-programs-v1-transaction-transactions.public.d.ts +7 -5
- package/build/es/src/benefit-programs-v1-transaction-transactions.public.js.map +1 -1
- package/build/es/src/benefit-programs-v1-transaction-transactions.types.d.ts +47 -53
- package/build/es/src/benefit-programs-v1-transaction-transactions.types.js +4 -6
- package/build/es/src/benefit-programs-v1-transaction-transactions.types.js.map +1 -1
- package/build/es/src/benefit-programs-v1-transaction-transactions.universal.d.ts +54 -58
- package/build/es/src/benefit-programs-v1-transaction-transactions.universal.js +11 -11
- package/build/es/src/benefit-programs-v1-transaction-transactions.universal.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.d.ts +6 -4
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.js +6 -4
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.public.d.ts +7 -5
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.public.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.d.ts +47 -53
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.js +4 -6
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.d.ts +54 -58
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.js +11 -11
- package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.d.ts +6 -4
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.js +6 -4
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.public.d.ts +7 -5
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.public.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.d.ts +47 -53
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.js +4 -6
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.d.ts +54 -58
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.js +11 -11
- package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -4,12 +4,14 @@ export declare function getTransaction(payload: object): RequestOptionsFactory<a
|
|
|
4
4
|
/**
|
|
5
5
|
* Creates a query to retrieve a list of transactions.
|
|
6
6
|
*
|
|
7
|
-
* The
|
|
7
|
+
* The Query Transactions method builds a query to retrieve a list of transactions and returns a `TransactionsQueryBuilder` object.
|
|
8
8
|
*
|
|
9
|
-
* The returned object contains the query definition, which is used to run the query using the
|
|
9
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
10
10
|
*
|
|
11
|
-
* You can refine the query by chaining `TransactionsQueryBuilder` methods onto the query. `TransactionsQueryBuilder` methods enable you to filter, sort, and control the results that
|
|
11
|
+
* You can refine the query by chaining `TransactionsQueryBuilder` methods onto the query. `TransactionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Transactions returns.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* Query Transactions has a default paging limit of 50, which you can override.
|
|
14
|
+
*
|
|
15
|
+
* For a full description of the item object, see the object returned for the `items` property in `TransactionsQueryResult`.
|
|
14
16
|
*/
|
|
15
17
|
export declare function queryTransactions(payload: object): RequestOptionsFactory<any>;
|
|
@@ -116,13 +116,15 @@ exports.getTransaction = getTransaction;
|
|
|
116
116
|
/**
|
|
117
117
|
* Creates a query to retrieve a list of transactions.
|
|
118
118
|
*
|
|
119
|
-
* The
|
|
119
|
+
* The Query Transactions method builds a query to retrieve a list of transactions and returns a `TransactionsQueryBuilder` object.
|
|
120
120
|
*
|
|
121
|
-
* The returned object contains the query definition, which is used to run the query using the
|
|
121
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
122
122
|
*
|
|
123
|
-
* You can refine the query by chaining `TransactionsQueryBuilder` methods onto the query. `TransactionsQueryBuilder` methods enable you to filter, sort, and control the results that
|
|
123
|
+
* You can refine the query by chaining `TransactionsQueryBuilder` methods onto the query. `TransactionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Transactions returns.
|
|
124
124
|
*
|
|
125
|
-
*
|
|
125
|
+
* Query Transactions has a default paging limit of 50, which you can override.
|
|
126
|
+
*
|
|
127
|
+
* For a full description of the item object, see the object returned for the `items` property in `TransactionsQueryResult`.
|
|
126
128
|
*/
|
|
127
129
|
function queryTransactions(payload) {
|
|
128
130
|
function __queryTransactions({ host }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-transaction-transactions.http.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,2DAA2D,CAClE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,oBAAoB;gBAC7B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,kBAAkB;aAC7B;YACD;gBACE,OAAO,EAAE,6CAA6C;gBACtD,QAAQ,EAAE,uBAAuB;aAClC;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,kBAAkB;aAC7B;YACD;gBACE,OAAO,EAAE,6CAA6C;gBACtD,QAAQ,EAAE,uBAAuB;aAClC;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,kBAAkB;aAC7B;YACD;gBACE,OAAO,EAAE,6CAA6C;gBACtD,QAAQ,EAAE,uBAAuB;aAClC;SACF;QACD,gBAAgB,EAAE;YAChB;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,kBAAkB;aAC7B;YACD;gBACE,OAAO,EAAE,6CAA6C;gBACtD,QAAQ,EAAE,uBAAuB;aAClC;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,kBAAkB;aAC7B;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,kBAAkB;aAC7B;YACD;gBACE,OAAO,EAAE,6CAA6C;gBACtD,QAAQ,EAAE,uBAAuB;aAClC;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,kBAAkB;aAC7B;YACD;gBACE,OAAO,EAAE,6CAA6C;gBACtD,QAAQ,EAAE,uBAAuB;aAClC;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,6CAA6C,CAAC;AAEnE,+BAA+B;AAC/B,SAAgB,cAAc,CAAC,OAAe;IAC5C,SAAS,gBAAgB,CAAC,EAAE,IAAI,EAAO;QACrC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,qCAAqC;YACjD,MAAM,EAAE,KAAY;YACpB,SAAS,EACP,uEAAuE;YACzE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,2DAA2D,CAAC;gBAC/D,SAAS,EAAE,kCAAkC;gBAC7C,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,IAAA,gCAAiB,EAAC,OAAO,CAAC;YAClC,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,yBAAyB,EAAE;wBACnC,EAAE,IAAI,EAAE,yBAAyB,EAAE;wBACnC,EAAE,IAAI,EAAE,mCAAmC,EAAE;qBAC9C;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AA/BD,wCA+BC;AAED
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-transaction-transactions.http.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;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,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;YACb,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,0BAA0B,EAAE;wBACpC,EAAE,IAAI,EAAE,0BAA0B,EAAE;wBACpC,EAAE,IAAI,EAAE,oCAAoC,EAAE;qBAC/C;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AA/BD,8CA+BC"}
|
|
@@ -7,7 +7,7 @@ export declare function getTransaction(httpClient: HttpClient): GetTransactionSi
|
|
|
7
7
|
interface GetTransactionSignature {
|
|
8
8
|
/**
|
|
9
9
|
* Retrieves a transaction.
|
|
10
|
-
* @param -
|
|
10
|
+
* @param - ID of the transaction to retrieve.
|
|
11
11
|
* @returns Retrieved transaction.
|
|
12
12
|
*/
|
|
13
13
|
(transactionId: string): Promise<Transaction & TransactionNonNullableFields>;
|
|
@@ -17,13 +17,15 @@ interface QueryTransactionsSignature {
|
|
|
17
17
|
/**
|
|
18
18
|
* Creates a query to retrieve a list of transactions.
|
|
19
19
|
*
|
|
20
|
-
* The
|
|
20
|
+
* The Query Transactions method builds a query to retrieve a list of transactions and returns a `TransactionsQueryBuilder` object.
|
|
21
21
|
*
|
|
22
|
-
* The returned object contains the query definition, which is used to run the query using the
|
|
22
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
23
23
|
*
|
|
24
|
-
* You can refine the query by chaining `TransactionsQueryBuilder` methods onto the query. `TransactionsQueryBuilder` methods enable you to filter, sort, and control the results that
|
|
24
|
+
* You can refine the query by chaining `TransactionsQueryBuilder` methods onto the query. `TransactionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Transactions returns.
|
|
25
25
|
*
|
|
26
|
-
*
|
|
26
|
+
* Query Transactions has a default paging limit of 50, which you can override.
|
|
27
|
+
*
|
|
28
|
+
* For a full description of the item object, see the object returned for the `items` property in `TransactionsQueryResult`.
|
|
27
29
|
*/
|
|
28
30
|
(): TransactionsQueryBuilder;
|
|
29
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-transaction-transactions.public.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.public.ts"],"names":[],"mappings":";;;AACA,2IAMqE;AAExD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAEpE,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,aAAqB,EAAE,EAAE,CAC/B,IAAA,0EAAuB,EACrB,aAAa;IACb,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,wCASC;AAWD,SAAgB,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,6EAA0B;IACxB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,8CAQC;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-transaction-transactions.public.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.public.ts"],"names":[],"mappings":";;;AACA,2IAMqE;AAExD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAEpE,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,aAAqB,EAAE,EAAE,CAC/B,IAAA,0EAAuB,EACrB,aAAa;IACb,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,wCASC;AAWD,SAAgB,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,6EAA0B;IACxB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,8CAQC;AAmBD,yIAmDqE;AAhDnE,wJAAA,WAAW,OAAA;AA2BX,yJAAA,YAAY,OAAA;AAUZ,sJAAA,SAAS,OAAA;AAKT,8JAAA,iBAAiB,OAAA;AAKjB,gKAAA,mBAAmB,OAAA"}
|
|
@@ -21,18 +21,18 @@ export interface Transaction {
|
|
|
21
21
|
*/
|
|
22
22
|
updatedDate?: Date | null;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Pool associated with this transaction.
|
|
25
25
|
* @readonly
|
|
26
26
|
*/
|
|
27
27
|
pool?: PoolInfo;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Amount the balance was adjusted in this transaction.
|
|
30
30
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
31
31
|
*/
|
|
32
32
|
amount?: string;
|
|
33
|
-
/**
|
|
33
|
+
/** Where the credits came from. */
|
|
34
34
|
source?: BalanceType;
|
|
35
|
-
/**
|
|
35
|
+
/** Where the credits went to. */
|
|
36
36
|
target?: BalanceType;
|
|
37
37
|
/**
|
|
38
38
|
* Unique identifier, generated by the client.
|
|
@@ -42,26 +42,22 @@ export interface Transaction {
|
|
|
42
42
|
*/
|
|
43
43
|
idempotencyKey?: string;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* ID of the related transaction. For example, if this transaction is a refund for a benefit redemption, the related transaction is the benefit redemption transaction.
|
|
46
46
|
* @format GUID
|
|
47
47
|
* @readonly
|
|
48
48
|
*/
|
|
49
49
|
relatedTransactionId?: string | null;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Beneficiary of the pool associated with this transaction.
|
|
52
52
|
* @readonly
|
|
53
53
|
*/
|
|
54
54
|
beneficiary?: CommonIdentificationData;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Identity that created the transaction.
|
|
57
57
|
* @readonly
|
|
58
58
|
*/
|
|
59
59
|
instructingParty?: CommonIdentificationData;
|
|
60
|
-
/**
|
|
61
|
-
* Transaction status.
|
|
62
|
-
*
|
|
63
|
-
* `PENDING` is the initial status of a transaction. After the balance is updated, the status changes to `COMPLETED` if the transaction was successful, or `FAILED`, if the balance update fails.
|
|
64
|
-
*/
|
|
60
|
+
/** Transaction status. */
|
|
65
61
|
status?: TransactionStatus;
|
|
66
62
|
/**
|
|
67
63
|
* Additional transaction details.
|
|
@@ -71,42 +67,42 @@ export interface Transaction {
|
|
|
71
67
|
/**
|
|
72
68
|
* Custom field data for the transaction object.
|
|
73
69
|
*
|
|
74
|
-
* [Extended fields](https://dev.wix.com/docs/
|
|
70
|
+
* [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
|
|
75
71
|
*/
|
|
76
72
|
extendedFields?: ExtendedFields;
|
|
77
73
|
}
|
|
78
74
|
export interface PoolInfo {
|
|
79
75
|
/**
|
|
80
|
-
*
|
|
76
|
+
* Pool ID.
|
|
81
77
|
* @format GUID
|
|
82
78
|
* @readonly
|
|
83
79
|
*/
|
|
84
80
|
id?: string;
|
|
85
81
|
/**
|
|
86
|
-
*
|
|
82
|
+
* ID of the pool definition the pool was created from.
|
|
87
83
|
* @format GUID
|
|
88
84
|
* @readonly
|
|
89
85
|
*/
|
|
90
86
|
poolDefinitionId?: string | null;
|
|
91
87
|
/**
|
|
92
|
-
* ID
|
|
88
|
+
* ID of the program definition containing the pool definition the pool was created from.
|
|
93
89
|
* @format GUID
|
|
94
90
|
* @readonly
|
|
95
91
|
*/
|
|
96
92
|
programDefinitionId?: string | null;
|
|
97
93
|
/**
|
|
98
|
-
* ID of the program
|
|
94
|
+
* ID of the program that contains the pool.
|
|
99
95
|
* @format GUID
|
|
100
96
|
* @readonly
|
|
101
97
|
*/
|
|
102
98
|
programId?: string | null;
|
|
103
99
|
/**
|
|
104
|
-
*
|
|
100
|
+
* Available credits.
|
|
105
101
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
106
102
|
*/
|
|
107
103
|
creditAmount?: string | null;
|
|
108
104
|
/**
|
|
109
|
-
*
|
|
105
|
+
* Namespace for your app or site's benefit programs.
|
|
110
106
|
* @minLength 1
|
|
111
107
|
* @maxLength 50
|
|
112
108
|
*/
|
|
@@ -114,26 +110,24 @@ export interface PoolInfo {
|
|
|
114
110
|
}
|
|
115
111
|
export declare enum BalanceType {
|
|
116
112
|
UNDEFINED = "UNDEFINED",
|
|
117
|
-
/**
|
|
113
|
+
/** In a pool's balance. */
|
|
118
114
|
AVAILABLE = "AVAILABLE",
|
|
119
|
-
/**
|
|
120
|
-
RESERVED = "RESERVED",
|
|
121
|
-
/** External balance. */
|
|
115
|
+
/** Outside a pool's balance. */
|
|
122
116
|
EXTERNAL = "EXTERNAL"
|
|
123
117
|
}
|
|
124
118
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
125
119
|
/**
|
|
126
|
-
* ID of a site visitor that
|
|
120
|
+
* ID of a site visitor that hasn't logged in to the site.
|
|
127
121
|
* @format GUID
|
|
128
122
|
*/
|
|
129
123
|
anonymousVisitorId?: string;
|
|
130
124
|
/**
|
|
131
|
-
* ID of a site
|
|
125
|
+
* ID of a site member.
|
|
132
126
|
* @format GUID
|
|
133
127
|
*/
|
|
134
128
|
memberId?: string;
|
|
135
129
|
/**
|
|
136
|
-
* ID of a Wix user
|
|
130
|
+
* ID of a Wix user.
|
|
137
131
|
* @format GUID
|
|
138
132
|
*/
|
|
139
133
|
wixUserId?: string;
|
|
@@ -141,17 +135,17 @@ export interface CommonIdentificationData extends CommonIdentificationDataIdOneO
|
|
|
141
135
|
/** @oneof */
|
|
142
136
|
export interface CommonIdentificationDataIdOneOf {
|
|
143
137
|
/**
|
|
144
|
-
* ID of a site visitor that
|
|
138
|
+
* ID of a site visitor that hasn't logged in to the site.
|
|
145
139
|
* @format GUID
|
|
146
140
|
*/
|
|
147
141
|
anonymousVisitorId?: string;
|
|
148
142
|
/**
|
|
149
|
-
* ID of a site
|
|
143
|
+
* ID of a site member.
|
|
150
144
|
* @format GUID
|
|
151
145
|
*/
|
|
152
146
|
memberId?: string;
|
|
153
147
|
/**
|
|
154
|
-
* ID of a Wix user
|
|
148
|
+
* ID of a Wix user.
|
|
155
149
|
* @format GUID
|
|
156
150
|
*/
|
|
157
151
|
wixUserId?: string;
|
|
@@ -168,29 +162,28 @@ export declare enum IdentityType {
|
|
|
168
162
|
}
|
|
169
163
|
export declare enum TransactionStatus {
|
|
170
164
|
UNDEFINED = "UNDEFINED",
|
|
171
|
-
/** Transaction is pending. */
|
|
165
|
+
/** Transaction is pending. This is the initial transaction status. */
|
|
172
166
|
PENDING = "PENDING",
|
|
173
|
-
/** Transaction completed. */
|
|
167
|
+
/** Transaction completed successfully. */
|
|
174
168
|
COMPLETED = "COMPLETED",
|
|
175
169
|
/** Transaction failed. */
|
|
176
170
|
FAILED = "FAILED"
|
|
177
171
|
}
|
|
178
172
|
export interface TransactionDetails {
|
|
179
173
|
/**
|
|
180
|
-
* Item associated with the
|
|
181
|
-
* The redemption of this item triggered the balance adjustment.
|
|
174
|
+
* Item associated with the transaction.
|
|
182
175
|
* @readonly
|
|
183
176
|
*/
|
|
184
177
|
item?: Item;
|
|
185
|
-
/**
|
|
178
|
+
/** Amount of items associated with the transaction. */
|
|
186
179
|
itemCount?: number | null;
|
|
187
180
|
/**
|
|
188
|
-
* Date and time the transaction was
|
|
181
|
+
* Date and time the transaction was created.
|
|
189
182
|
* @readonly
|
|
190
183
|
*/
|
|
191
184
|
effectiveDate?: Date | null;
|
|
192
185
|
/**
|
|
193
|
-
* Reason for the transaction. For example, `Redemption
|
|
186
|
+
* Reason for the transaction. For example, `Redemption`.
|
|
194
187
|
* @readonly
|
|
195
188
|
* @maxLength 256
|
|
196
189
|
*/
|
|
@@ -204,24 +197,25 @@ export interface Item {
|
|
|
204
197
|
*/
|
|
205
198
|
id?: string | null;
|
|
206
199
|
/**
|
|
207
|
-
*
|
|
200
|
+
* Item external ID.
|
|
208
201
|
* @format GUID
|
|
209
202
|
* @readonly
|
|
210
203
|
*/
|
|
211
204
|
externalId?: string | null;
|
|
212
205
|
/**
|
|
213
|
-
* Item category.
|
|
206
|
+
* Item category.
|
|
214
207
|
* @maxLength 20
|
|
215
208
|
* @readonly
|
|
216
209
|
*/
|
|
217
210
|
category?: string | null;
|
|
218
211
|
/**
|
|
212
|
+
* Item set ID.
|
|
219
213
|
* @format GUID
|
|
220
214
|
* @readonly
|
|
221
215
|
*/
|
|
222
216
|
itemSetId?: string | null;
|
|
223
217
|
/**
|
|
224
|
-
* Item
|
|
218
|
+
* Item name.
|
|
225
219
|
* @maxLength 64
|
|
226
220
|
* @readonly
|
|
227
221
|
*/
|
|
@@ -349,7 +343,7 @@ export interface BulkUpdateTransactionsResponse {
|
|
|
349
343
|
}
|
|
350
344
|
export interface GetTransactionRequest {
|
|
351
345
|
/**
|
|
352
|
-
*
|
|
346
|
+
* ID of the transaction to retrieve.
|
|
353
347
|
* @format GUID
|
|
354
348
|
*/
|
|
355
349
|
transactionId: string;
|
|
@@ -359,24 +353,20 @@ export interface GetTransactionResponse {
|
|
|
359
353
|
transaction?: Transaction;
|
|
360
354
|
}
|
|
361
355
|
export interface QueryTransactionsRequest {
|
|
362
|
-
/**
|
|
356
|
+
/** Filter, sort, and paging to apply to the query. */
|
|
363
357
|
query: CursorQuery;
|
|
364
358
|
}
|
|
365
359
|
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
366
360
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
367
361
|
cursorPaging?: CursorPaging;
|
|
368
362
|
/**
|
|
369
|
-
* Filter object
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
* "fieldName2":{"$operator":"value2"}
|
|
373
|
-
* }`
|
|
374
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
363
|
+
* Filter object.
|
|
364
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
365
|
+
* for more information.
|
|
375
366
|
*/
|
|
376
367
|
filter?: Record<string, any> | null;
|
|
377
368
|
/**
|
|
378
|
-
*
|
|
379
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
369
|
+
* List of sort objects.
|
|
380
370
|
* @maxSize 5
|
|
381
371
|
*/
|
|
382
372
|
sort?: Sorting[];
|
|
@@ -388,11 +378,15 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
388
378
|
}
|
|
389
379
|
export interface Sorting {
|
|
390
380
|
/**
|
|
391
|
-
*
|
|
381
|
+
* Field to sort by.
|
|
392
382
|
* @maxLength 512
|
|
393
383
|
*/
|
|
394
384
|
fieldName?: string;
|
|
395
|
-
/**
|
|
385
|
+
/**
|
|
386
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
387
|
+
*
|
|
388
|
+
* Default: `ASC`
|
|
389
|
+
*/
|
|
396
390
|
order?: SortOrder;
|
|
397
391
|
}
|
|
398
392
|
export declare enum SortOrder {
|
|
@@ -403,7 +397,7 @@ export declare enum SortOrder {
|
|
|
403
397
|
}
|
|
404
398
|
export interface CursorPaging {
|
|
405
399
|
/**
|
|
406
|
-
* Maximum number of items to return
|
|
400
|
+
* Maximum number of items to return.
|
|
407
401
|
* @max 100
|
|
408
402
|
*/
|
|
409
403
|
limit?: number | null;
|
|
@@ -417,7 +411,7 @@ export interface CursorPaging {
|
|
|
417
411
|
cursor?: string | null;
|
|
418
412
|
}
|
|
419
413
|
export interface QueryTransactionsResponse {
|
|
420
|
-
/**
|
|
414
|
+
/** List of retrieved transactions. */
|
|
421
415
|
transactions?: Transaction[];
|
|
422
416
|
/** Metadata for paginated results. */
|
|
423
417
|
metadata?: CursorPagingMetadata;
|
|
@@ -4,11 +4,9 @@ exports.WebhookIdentityType = exports.SortOrder = exports.TransactionStatus = ex
|
|
|
4
4
|
var BalanceType;
|
|
5
5
|
(function (BalanceType) {
|
|
6
6
|
BalanceType["UNDEFINED"] = "UNDEFINED";
|
|
7
|
-
/**
|
|
7
|
+
/** In a pool's balance. */
|
|
8
8
|
BalanceType["AVAILABLE"] = "AVAILABLE";
|
|
9
|
-
/**
|
|
10
|
-
BalanceType["RESERVED"] = "RESERVED";
|
|
11
|
-
/** External balance. */
|
|
9
|
+
/** Outside a pool's balance. */
|
|
12
10
|
BalanceType["EXTERNAL"] = "EXTERNAL";
|
|
13
11
|
})(BalanceType || (exports.BalanceType = BalanceType = {}));
|
|
14
12
|
var IdentityType;
|
|
@@ -25,9 +23,9 @@ var IdentityType;
|
|
|
25
23
|
var TransactionStatus;
|
|
26
24
|
(function (TransactionStatus) {
|
|
27
25
|
TransactionStatus["UNDEFINED"] = "UNDEFINED";
|
|
28
|
-
/** Transaction is pending. */
|
|
26
|
+
/** Transaction is pending. This is the initial transaction status. */
|
|
29
27
|
TransactionStatus["PENDING"] = "PENDING";
|
|
30
|
-
/** Transaction completed. */
|
|
28
|
+
/** Transaction completed successfully. */
|
|
31
29
|
TransactionStatus["COMPLETED"] = "COMPLETED";
|
|
32
30
|
/** Transaction failed. */
|
|
33
31
|
TransactionStatus["FAILED"] = "FAILED";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-transaction-transactions.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-transaction-transactions.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.types.ts"],"names":[],"mappings":";;;AAgHA,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,2BAA2B;IAC3B,sCAAuB,CAAA;IACvB,gCAAgC;IAChC,oCAAqB,CAAA;AACvB,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AAwCD,IAAY,YASX;AATD,WAAY,YAAY;IACtB,4CAA4C;IAC5C,mCAAmB,CAAA;IACnB,4CAA4C;IAC5C,uDAAuC,CAAA;IACvC,+BAA+B;IAC/B,iCAAiB,CAAA;IACjB,iEAAiE;IACjE,qCAAqB,CAAA;AACvB,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AAED,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,4CAAuB,CAAA;IACvB,sEAAsE;IACtE,wCAAmB,CAAA;IACnB,0CAA0C;IAC1C,4CAAuB,CAAA;IACvB,0BAA0B;IAC1B,sCAAiB,CAAA;AACnB,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B;AAoPD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAqMD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|