@wix/auto_sdk_benefit-programs_transactions 1.0.29 → 1.0.30

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.
@@ -169,6 +169,18 @@ interface CommonIdentificationDataIdOneOf {
169
169
  */
170
170
  wixUserId?: string;
171
171
  }
172
+ declare enum IdentityType {
173
+ /** Unknown type. This value is not used. */
174
+ UNKNOWN = "UNKNOWN",
175
+ /** A site visitor who has not logged in. */
176
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
177
+ /** A logged-in site member. */
178
+ MEMBER = "MEMBER",
179
+ /** A Wix account holder, such as a site owner or contributor. */
180
+ WIX_USER = "WIX_USER"
181
+ }
182
+ /** @enumType */
183
+ type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
172
184
  declare enum TransactionStatus {
173
185
  UNDEFINED = "UNDEFINED",
174
186
  /** Transaction is pending. This is the initial transaction status. */
@@ -255,6 +267,143 @@ interface ExtendedFields {
255
267
  */
256
268
  namespaces?: Record<string, Record<string, any>>;
257
269
  }
270
+ interface RequestedValues {
271
+ /**
272
+ * Amount the balance was adjusted in this transaction.
273
+ * @decimalValue options { gte:0, maxScale:4 }
274
+ */
275
+ amount?: string;
276
+ /** Where the credits came from. */
277
+ source?: BalanceTypeWithLiterals;
278
+ /** Where the credits went to. */
279
+ target?: BalanceTypeWithLiterals;
280
+ }
281
+ interface FailedTransactionDetails {
282
+ /**
283
+ * Response status
284
+ * @maxLength 32
285
+ */
286
+ responseStatus?: string | null;
287
+ /**
288
+ * Error code.
289
+ * @maxLength 32
290
+ */
291
+ errorCode?: string | null;
292
+ /**
293
+ * Error message
294
+ * @maxLength 256
295
+ */
296
+ errorMessage?: string | null;
297
+ }
298
+ interface CreateTransactionRequest {
299
+ /** Transaction to create. */
300
+ transaction?: Transaction;
301
+ }
302
+ interface CreateTransactionResponse {
303
+ /** Created transaction. */
304
+ transaction?: Transaction;
305
+ }
306
+ interface BulkCreateTransactionsRequest {
307
+ /**
308
+ * Transactions to be created.
309
+ * @minSize 1
310
+ * @maxSize 100
311
+ */
312
+ transactions?: Transaction[];
313
+ /**
314
+ * Whether to return the full item entities.
315
+ *
316
+ * Default: `false`
317
+ */
318
+ returnEntity?: boolean;
319
+ }
320
+ interface BulkCreateTransactionsResponse {
321
+ /**
322
+ * List of results for each transaction.
323
+ *
324
+ * Includes the transaction and whether the operation was successful.
325
+ * @minSize 1
326
+ * @maxSize 100
327
+ */
328
+ results?: BulkTransactionResult[];
329
+ /** Bulk action metadata. */
330
+ bulkActionMetadata?: BulkActionMetadata;
331
+ }
332
+ interface BulkTransactionResult {
333
+ /** Metadata for the item. */
334
+ itemMetadata?: ItemMetadata;
335
+ /** Created transaction. */
336
+ transaction?: Transaction;
337
+ }
338
+ interface ItemMetadata {
339
+ /**
340
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
341
+ * @format GUID
342
+ */
343
+ id?: string | null;
344
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
345
+ originalIndex?: number;
346
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
347
+ success?: boolean;
348
+ /** Details about the error in case of failure. */
349
+ error?: ApplicationError;
350
+ }
351
+ interface ApplicationError {
352
+ /** Error code. */
353
+ code?: string;
354
+ /** Description of the error. */
355
+ description?: string;
356
+ /** Data related to the error. */
357
+ data?: Record<string, any> | null;
358
+ }
359
+ interface BulkActionMetadata {
360
+ /** Number of items that were successfully processed. */
361
+ totalSuccesses?: number;
362
+ /** Number of items that couldn't be processed. */
363
+ totalFailures?: number;
364
+ /** Number of failures without details because detailed failure threshold was exceeded. */
365
+ undetailedFailures?: number;
366
+ }
367
+ interface UpdateTransactionRequest {
368
+ /** Transaction to update. */
369
+ transaction?: Transaction;
370
+ }
371
+ interface UpdateTransactionResponse {
372
+ /** Updated transaction. */
373
+ transaction?: Transaction;
374
+ }
375
+ interface BulkUpdateTransactionsRequest {
376
+ /**
377
+ * Transactions to update.
378
+ * @minSize 1
379
+ * @maxSize 100
380
+ */
381
+ transactions?: MaskedTransaction[];
382
+ /**
383
+ * Whether to return full transaction entities.
384
+ *
385
+ * Default: `false`
386
+ */
387
+ returnEntity?: boolean;
388
+ }
389
+ interface MaskedTransaction {
390
+ /** Transaction to be updated. */
391
+ transaction?: Transaction;
392
+ /** Explicit list of fields to update. */
393
+ fieldMask?: string[];
394
+ }
395
+ interface BulkUpdateTransactionsResponse {
396
+ /**
397
+ * List of results for each Transaction.
398
+ *
399
+ * Includes the Transaction and whether the update was successful.
400
+ * @minSize 1
401
+ * @maxSize 100
402
+ */
403
+ results?: BulkTransactionResult[];
404
+ /** Bulk action metadata. */
405
+ bulkActionMetadata?: BulkActionMetadata;
406
+ }
258
407
  interface GetTransactionRequest {
259
408
  /**
260
409
  * ID of the transaction to retrieve.
@@ -357,6 +506,142 @@ interface Cursors {
357
506
  */
358
507
  prev?: string | null;
359
508
  }
509
+ interface DomainEvent extends DomainEventBodyOneOf {
510
+ createdEvent?: EntityCreatedEvent;
511
+ updatedEvent?: EntityUpdatedEvent;
512
+ deletedEvent?: EntityDeletedEvent;
513
+ actionEvent?: ActionEvent;
514
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
515
+ id?: string;
516
+ /**
517
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
518
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
519
+ */
520
+ entityFqdn?: string;
521
+ /**
522
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
523
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
524
+ */
525
+ slug?: string;
526
+ /** ID of the entity associated with the event. */
527
+ entityId?: string;
528
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
529
+ eventTime?: Date | null;
530
+ /**
531
+ * Whether the event was triggered as a result of a privacy regulation application
532
+ * (for example, GDPR).
533
+ */
534
+ triggeredByAnonymizeRequest?: boolean | null;
535
+ /** If present, indicates the action that triggered the event. */
536
+ originatedFrom?: string | null;
537
+ /**
538
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
539
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
540
+ */
541
+ entityEventSequence?: string | null;
542
+ }
543
+ /** @oneof */
544
+ interface DomainEventBodyOneOf {
545
+ createdEvent?: EntityCreatedEvent;
546
+ updatedEvent?: EntityUpdatedEvent;
547
+ deletedEvent?: EntityDeletedEvent;
548
+ actionEvent?: ActionEvent;
549
+ }
550
+ interface EntityCreatedEvent {
551
+ entityAsJson?: string;
552
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
553
+ restoreInfo?: RestoreInfo;
554
+ }
555
+ interface RestoreInfo {
556
+ deletedDate?: Date | null;
557
+ }
558
+ interface EntityUpdatedEvent {
559
+ /**
560
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
561
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
562
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
563
+ */
564
+ currentEntityAsJson?: string;
565
+ }
566
+ interface EntityDeletedEvent {
567
+ /** Entity that was deleted. */
568
+ deletedEntityAsJson?: string | null;
569
+ }
570
+ interface ActionEvent {
571
+ bodyAsJson?: string;
572
+ }
573
+ interface MessageEnvelope {
574
+ /**
575
+ * App instance ID.
576
+ * @format GUID
577
+ */
578
+ instanceId?: string | null;
579
+ /**
580
+ * Event type.
581
+ * @maxLength 150
582
+ */
583
+ eventType?: string;
584
+ /** The identification type and identity data. */
585
+ identity?: IdentificationData;
586
+ /** Stringify payload. */
587
+ data?: string;
588
+ }
589
+ interface IdentificationData extends IdentificationDataIdOneOf {
590
+ /**
591
+ * ID of a site visitor that has not logged in to the site.
592
+ * @format GUID
593
+ */
594
+ anonymousVisitorId?: string;
595
+ /**
596
+ * ID of a site visitor that has logged in to the site.
597
+ * @format GUID
598
+ */
599
+ memberId?: string;
600
+ /**
601
+ * ID of a Wix user (site owner, contributor, etc.).
602
+ * @format GUID
603
+ */
604
+ wixUserId?: string;
605
+ /**
606
+ * ID of an app.
607
+ * @format GUID
608
+ */
609
+ appId?: string;
610
+ /** @readonly */
611
+ identityType?: WebhookIdentityTypeWithLiterals;
612
+ }
613
+ /** @oneof */
614
+ interface IdentificationDataIdOneOf {
615
+ /**
616
+ * ID of a site visitor that has not logged in to the site.
617
+ * @format GUID
618
+ */
619
+ anonymousVisitorId?: string;
620
+ /**
621
+ * ID of a site visitor that has logged in to the site.
622
+ * @format GUID
623
+ */
624
+ memberId?: string;
625
+ /**
626
+ * ID of a Wix user (site owner, contributor, etc.).
627
+ * @format GUID
628
+ */
629
+ wixUserId?: string;
630
+ /**
631
+ * ID of an app.
632
+ * @format GUID
633
+ */
634
+ appId?: string;
635
+ }
636
+ declare enum WebhookIdentityType {
637
+ UNKNOWN = "UNKNOWN",
638
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
639
+ MEMBER = "MEMBER",
640
+ WIX_USER = "WIX_USER",
641
+ APP = "APP"
642
+ }
643
+ /** @enumType */
644
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
360
645
 
361
646
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
362
647
  getUrl: (context: any) => string;
@@ -373,4 +658,4 @@ declare function getTransaction(): __PublicMethodMetaInfo<'GET', {
373
658
  }, GetTransactionRequest$1, GetTransactionRequest, GetTransactionResponse$1, GetTransactionResponse>;
374
659
  declare function queryTransactions(): __PublicMethodMetaInfo<'POST', {}, QueryTransactionsRequest$1, QueryTransactionsRequest, QueryTransactionsResponse$1, QueryTransactionsResponse>;
375
660
 
376
- export { type __PublicMethodMetaInfo, getTransaction, queryTransactions };
661
+ export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, BalanceType as BalanceTypeOriginal, type BalanceTypeWithLiterals as BalanceTypeWithLiteralsOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateTransactionsRequest as BulkCreateTransactionsRequestOriginal, type BulkCreateTransactionsResponse as BulkCreateTransactionsResponseOriginal, type BulkTransactionResult as BulkTransactionResultOriginal, type BulkUpdateTransactionsRequest as BulkUpdateTransactionsRequestOriginal, type BulkUpdateTransactionsResponse as BulkUpdateTransactionsResponseOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type CreateTransactionRequest as CreateTransactionRequestOriginal, type CreateTransactionResponse as CreateTransactionResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FailedTransactionDetails as FailedTransactionDetailsOriginal, type GetTransactionRequest as GetTransactionRequestOriginal, type GetTransactionResponse as GetTransactionResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, type ItemMetadata as ItemMetadataOriginal, type Item as ItemOriginal, type MaskedTransaction as MaskedTransactionOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PoolInfo as PoolInfoOriginal, type QueryTransactionsRequest as QueryTransactionsRequestOriginal, type QueryTransactionsResponse as QueryTransactionsResponseOriginal, type RequestedValues as RequestedValuesOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type TransactionDetails as TransactionDetailsOriginal, type Transaction as TransactionOriginal, type TransactionStatusDetailsOneOf as TransactionStatusDetailsOneOfOriginal, TransactionStatus as TransactionStatusOriginal, type TransactionStatusWithLiterals as TransactionStatusWithLiteralsOriginal, type UpdateTransactionRequest as UpdateTransactionRequestOriginal, type UpdateTransactionResponse as UpdateTransactionResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, getTransaction, queryTransactions };
package/build/cjs/meta.js CHANGED
@@ -20,6 +20,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ BalanceTypeOriginal: () => BalanceType,
24
+ IdentityTypeOriginal: () => IdentityType,
25
+ SortOrderOriginal: () => SortOrder,
26
+ TransactionStatusOriginal: () => TransactionStatus,
27
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
28
  getTransaction: () => getTransaction2,
24
29
  queryTransactions: () => queryTransactions2
25
30
  });
@@ -185,6 +190,41 @@ function queryTransactions(payload) {
185
190
  return __queryTransactions;
186
191
  }
187
192
 
193
+ // src/benefit-programs-v1-transaction-transactions.types.ts
194
+ var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
195
+ BalanceType2["UNDEFINED"] = "UNDEFINED";
196
+ BalanceType2["AVAILABLE"] = "AVAILABLE";
197
+ BalanceType2["EXTERNAL"] = "EXTERNAL";
198
+ return BalanceType2;
199
+ })(BalanceType || {});
200
+ var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
201
+ IdentityType2["UNKNOWN"] = "UNKNOWN";
202
+ IdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
203
+ IdentityType2["MEMBER"] = "MEMBER";
204
+ IdentityType2["WIX_USER"] = "WIX_USER";
205
+ return IdentityType2;
206
+ })(IdentityType || {});
207
+ var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
208
+ TransactionStatus2["UNDEFINED"] = "UNDEFINED";
209
+ TransactionStatus2["PENDING"] = "PENDING";
210
+ TransactionStatus2["COMPLETED"] = "COMPLETED";
211
+ TransactionStatus2["FAILED"] = "FAILED";
212
+ return TransactionStatus2;
213
+ })(TransactionStatus || {});
214
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
215
+ SortOrder2["ASC"] = "ASC";
216
+ SortOrder2["DESC"] = "DESC";
217
+ return SortOrder2;
218
+ })(SortOrder || {});
219
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
220
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
221
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
222
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
223
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
224
+ WebhookIdentityType2["APP"] = "APP";
225
+ return WebhookIdentityType2;
226
+ })(WebhookIdentityType || {});
227
+
188
228
  // src/benefit-programs-v1-transaction-transactions.meta.ts
189
229
  function getTransaction2() {
190
230
  const payload = { transactionId: ":transactionId" };
@@ -224,6 +264,11 @@ function queryTransactions2() {
224
264
  }
225
265
  // Annotate the CommonJS export names for ESM import in node:
226
266
  0 && (module.exports = {
267
+ BalanceTypeOriginal,
268
+ IdentityTypeOriginal,
269
+ SortOrderOriginal,
270
+ TransactionStatusOriginal,
271
+ WebhookIdentityTypeOriginal,
227
272
  getTransaction,
228
273
  queryTransactions
229
274
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/benefit-programs-v1-transaction-transactions.http.ts","../../src/benefit-programs-v1-transaction-transactions.meta.ts"],"sourcesContent":["export * from './src/benefit-programs-v1-transaction-transactions.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixBenefitProgramsV1TransactionTransactionServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/pool-transactions',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n _: [\n {\n srcPath: '/_api/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_benefit-programs_transactions';\n\n/** Retrieves a transaction. */\nexport function getTransaction(payload: object): RequestOptionsFactory<any> {\n function __getTransaction({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.transaction',\n method: 'GET' as any,\n methodFqn:\n 'wix.benefit_programs.v1.transaction.TransactionService.GetTransaction',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1TransactionTransactionServiceUrl({\n protoPath: '/v1/transactions/{transactionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'transaction.createdDate' },\n { path: 'transaction.updatedDate' },\n { path: 'transaction.details.effectiveDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTransaction;\n}\n\n/**\n * Creates a query to retrieve a list of transactions.\n *\n * The Query Transactions method builds a query to retrieve a list of transactions and returns a `TransactionsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * 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.\n *\n * Query Transactions has a default paging limit of 50, which you can override.\n *\n * For a full description of the item object, see the object returned for the `items` property in `TransactionsQueryResult`.\n */\nexport function queryTransactions(payload: object): RequestOptionsFactory<any> {\n function __queryTransactions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.transaction',\n method: 'POST' as any,\n methodFqn:\n 'wix.benefit_programs.v1.transaction.TransactionService.QueryTransactions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1TransactionTransactionServiceUrl({\n protoPath: '/v1/transactions/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'transactions.createdDate' },\n { path: 'transactions.updatedDate' },\n { path: 'transactions.details.effectiveDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTransactions;\n}\n","import * as ambassadorWixBenefitProgramsV1Transaction from './benefit-programs-v1-transaction-transactions.http.js';\nimport * as ambassadorWixBenefitProgramsV1TransactionTypes from './benefit-programs-v1-transaction-transactions.types.js';\nimport * as ambassadorWixBenefitProgramsV1TransactionUniversalTypes from './benefit-programs-v1-transaction-transactions.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getTransaction(): __PublicMethodMetaInfo<\n 'GET',\n { transactionId: string },\n ambassadorWixBenefitProgramsV1TransactionUniversalTypes.GetTransactionRequest,\n ambassadorWixBenefitProgramsV1TransactionTypes.GetTransactionRequest,\n ambassadorWixBenefitProgramsV1TransactionUniversalTypes.GetTransactionResponse,\n ambassadorWixBenefitProgramsV1TransactionTypes.GetTransactionResponse\n> {\n const payload = { transactionId: ':transactionId' } as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Transaction.getTransaction(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/transactions/{transactionId}',\n pathParams: { transactionId: 'transactionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryTransactions(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1TransactionUniversalTypes.QueryTransactionsRequest,\n ambassadorWixBenefitProgramsV1TransactionTypes.QueryTransactionsRequest,\n ambassadorWixBenefitProgramsV1TransactionUniversalTypes.QueryTransactionsResponse,\n ambassadorWixBenefitProgramsV1TransactionTypes.QueryTransactionsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Transaction.queryTransactions(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/transactions/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,4DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,S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,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,eAAe,gBAAgB;AAAA,IAC7C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,qBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACsC,kBAAkB,OAAO;AAErE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getTransaction","queryTransactions","import_rest_modules","payload","getTransaction","queryTransactions"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/benefit-programs-v1-transaction-transactions.http.ts","../../src/benefit-programs-v1-transaction-transactions.types.ts","../../src/benefit-programs-v1-transaction-transactions.meta.ts"],"sourcesContent":["export * from './src/benefit-programs-v1-transaction-transactions.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixBenefitProgramsV1TransactionTransactionServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/pool-transactions',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n _: [\n {\n srcPath: '/_api/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/_api/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/benefit-programs/v1/transactions',\n destPath: '/v1/transactions',\n },\n {\n srcPath: '/benefit-programs/v1/bulk/transactions',\n destPath: '/v1/bulk/transactions',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_benefit-programs_transactions';\n\n/** Retrieves a transaction. */\nexport function getTransaction(payload: object): RequestOptionsFactory<any> {\n function __getTransaction({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.transaction',\n method: 'GET' as any,\n methodFqn:\n 'wix.benefit_programs.v1.transaction.TransactionService.GetTransaction',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1TransactionTransactionServiceUrl({\n protoPath: '/v1/transactions/{transactionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'transaction.createdDate' },\n { path: 'transaction.updatedDate' },\n { path: 'transaction.details.effectiveDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTransaction;\n}\n\n/**\n * Creates a query to retrieve a list of transactions.\n *\n * The Query Transactions method builds a query to retrieve a list of transactions and returns a `TransactionsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * 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.\n *\n * Query Transactions has a default paging limit of 50, which you can override.\n *\n * For a full description of the item object, see the object returned for the `items` property in `TransactionsQueryResult`.\n */\nexport function queryTransactions(payload: object): RequestOptionsFactory<any> {\n function __queryTransactions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.transaction',\n method: 'POST' as any,\n methodFqn:\n 'wix.benefit_programs.v1.transaction.TransactionService.QueryTransactions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1TransactionTransactionServiceUrl({\n protoPath: '/v1/transactions/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'transactions.createdDate' },\n { path: 'transactions.updatedDate' },\n { path: 'transactions.details.effectiveDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTransactions;\n}\n","export interface Transaction extends TransactionStatusDetailsOneOf {\n /**\n * Transaction ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the transaction is updated.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the transaction was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the transaction was updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Pool associated with this transaction.\n * @readonly\n */\n pool?: PoolInfo;\n /**\n * Amount the balance was adjusted in this transaction.\n * @decimalValue options { gte:0, maxScale:4 }\n */\n amount?: string;\n /** Where the credits came from. */\n source?: BalanceTypeWithLiterals;\n /** Where the credits went to. */\n target?: BalanceTypeWithLiterals;\n /**\n * Unique identifier, generated by the client.\n * Used to recognize repeated attempts to make the same request.\n * @maxLength 200\n * @readonly\n */\n idempotencyKey?: string;\n /**\n * 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.\n * @format GUID\n * @readonly\n */\n relatedTransactionId?: string | null;\n /**\n * Beneficiary of the pool associated with this transaction.\n * @readonly\n * @immutable\n */\n beneficiary?: CommonIdentificationData;\n /**\n * Identity that created the transaction.\n * @readonly\n * @immutable\n */\n instructingParty?: CommonIdentificationData;\n /** Transaction status. */\n status?: TransactionStatusWithLiterals;\n /**\n * Additional transaction details.\n * @readonly\n */\n details?: TransactionDetails;\n /**\n * Custom field data for the transaction object.\n *\n * [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.\n */\n extendedFields?: ExtendedFields;\n /**\n * External transaction ID.\n * @format GUID\n * @readonly\n * @immutable\n */\n externalId?: string | null;\n}\n\n/** @oneof */\nexport interface TransactionStatusDetailsOneOf {}\n\nexport interface PoolInfo {\n /**\n * Pool ID.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * ID of the pool definition the pool was created from.\n * @format GUID\n * @readonly\n */\n poolDefinitionId?: string | null;\n /**\n * ID of the program definition containing the pool definition the pool was created from.\n * @format GUID\n * @readonly\n */\n programDefinitionId?: string | null;\n /**\n * ID of the program that contains the pool.\n * @format GUID\n * @readonly\n */\n programId?: string | null;\n /**\n * Available credits.\n * @decimalValue options { gte:0, maxScale:4 }\n * @readonly\n */\n creditAmount?: string | null;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n * @readonly\n */\n namespace?: string | null;\n}\n\nexport enum BalanceType {\n UNDEFINED = 'UNDEFINED',\n /** In a pool's balance. */\n AVAILABLE = 'AVAILABLE',\n /** Outside a pool's balance. */\n EXTERNAL = 'EXTERNAL',\n}\n\n/** @enumType */\nexport type BalanceTypeWithLiterals =\n | BalanceType\n | 'UNDEFINED'\n | 'AVAILABLE'\n | 'EXTERNAL';\n\nexport interface CommonIdentificationData\n extends CommonIdentificationDataIdOneOf {\n /**\n * ID of a site visitor that hasn't logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site member.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user.\n * @format GUID\n */\n wixUserId?: string;\n}\n\n/** @oneof */\nexport interface CommonIdentificationDataIdOneOf {\n /**\n * ID of a site visitor that hasn't logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site member.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user.\n * @format GUID\n */\n wixUserId?: string;\n}\n\nexport enum IdentityType {\n /** Unknown type. This value is not used. */\n UNKNOWN = 'UNKNOWN',\n /** A site visitor who has not logged in. */\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n /** A logged-in site member. */\n MEMBER = 'MEMBER',\n /** A Wix account holder, such as a site owner or contributor. */\n WIX_USER = 'WIX_USER',\n}\n\n/** @enumType */\nexport type IdentityTypeWithLiterals =\n | IdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER';\n\nexport enum TransactionStatus {\n UNDEFINED = 'UNDEFINED',\n /** Transaction is pending. This is the initial transaction status. */\n PENDING = 'PENDING',\n /** Transaction completed successfully. */\n COMPLETED = 'COMPLETED',\n /** Transaction failed. */\n FAILED = 'FAILED',\n}\n\n/** @enumType */\nexport type TransactionStatusWithLiterals =\n | TransactionStatus\n | 'UNDEFINED'\n | 'PENDING'\n | 'COMPLETED'\n | 'FAILED';\n\nexport interface TransactionDetails {\n /**\n * Item associated with the transaction.\n * @readonly\n */\n item?: Item;\n /** Amount of items associated with the transaction. */\n itemCount?: number | null;\n /**\n * Date and time the transaction was created.\n * @readonly\n */\n effectiveDate?: Date | null;\n /**\n * Reason for the transaction. For example, `Redemption`.\n * @readonly\n * @maxLength 256\n */\n reason?: string | null;\n /**\n * Benefit key associated with the transaction.\n * @maxLength 64\n * @immutable\n */\n benefitKey?: string | null;\n}\n\nexport interface Item {\n /**\n * Item ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Item external ID.\n * @format GUID\n * @readonly\n */\n externalId?: string | null;\n /**\n * Item category.\n * @maxLength 20\n * @readonly\n */\n category?: string | null;\n /**\n * Item set ID.\n * @format GUID\n * @readonly\n */\n itemSetId?: string | null;\n /**\n * Item name.\n * @maxLength 64\n * @readonly\n */\n displayName?: string | null;\n /**\n * Provider app id\n * @format GUID\n * @readonly\n */\n providerAppId?: string | null;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface RequestedValues {\n /**\n * Amount the balance was adjusted in this transaction.\n * @decimalValue options { gte:0, maxScale:4 }\n */\n amount?: string;\n /** Where the credits came from. */\n source?: BalanceTypeWithLiterals;\n /** Where the credits went to. */\n target?: BalanceTypeWithLiterals;\n}\n\nexport interface FailedTransactionDetails {\n /**\n * Response status\n * @maxLength 32\n */\n responseStatus?: string | null;\n /**\n * Error code.\n * @maxLength 32\n */\n errorCode?: string | null;\n /**\n * Error message\n * @maxLength 256\n */\n errorMessage?: string | null;\n}\n\nexport interface CreateTransactionRequest {\n /** Transaction to create. */\n transaction?: Transaction;\n}\n\nexport interface CreateTransactionResponse {\n /** Created transaction. */\n transaction?: Transaction;\n}\n\nexport interface BulkCreateTransactionsRequest {\n /**\n * Transactions to be created.\n * @minSize 1\n * @maxSize 100\n */\n transactions?: Transaction[];\n /**\n * Whether to return the full item entities.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateTransactionsResponse {\n /**\n * List of results for each transaction.\n *\n * Includes the transaction and whether the operation was successful.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkTransactionResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkTransactionResult {\n /** Metadata for the item. */\n itemMetadata?: ItemMetadata;\n /** Created transaction. */\n transaction?: Transaction;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n * @format GUID\n */\n id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface UpdateTransactionRequest {\n /** Transaction to update. */\n transaction?: Transaction;\n}\n\nexport interface UpdateTransactionResponse {\n /** Updated transaction. */\n transaction?: Transaction;\n}\n\nexport interface BulkUpdateTransactionsRequest {\n /**\n * Transactions to update.\n * @minSize 1\n * @maxSize 100\n */\n transactions?: MaskedTransaction[];\n /**\n * Whether to return full transaction entities.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n}\n\nexport interface MaskedTransaction {\n /** Transaction to be updated. */\n transaction?: Transaction;\n /** Explicit list of fields to update. */\n fieldMask?: string[];\n}\n\nexport interface BulkUpdateTransactionsResponse {\n /**\n * List of results for each Transaction.\n *\n * Includes the Transaction and whether the update was successful.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkTransactionResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface GetTransactionRequest {\n /**\n * ID of the transaction to retrieve.\n * @format GUID\n */\n transactionId: string;\n}\n\nexport interface GetTransactionResponse {\n /** Retrieved transaction. */\n transaction?: Transaction;\n}\n\nexport interface QueryTransactionsRequest {\n /** Filter, sort, and paging to apply to the query. */\n query: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** 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`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)\n * for more information.\n */\n filter?: Record<string, any> | null;\n /**\n * List of sort objects.\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** 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`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /**\n * Sort order. Use `ASC` for ascending order or `DESC` for descending order.\n *\n * Default: `ASC`\n */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n /** Ascending sort order. */\n ASC = 'ASC',\n /** Descending sort order. */\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryTransactionsResponse {\n /** List of retrieved transactions. */\n transactions?: Transaction[];\n /** Metadata for paginated results. */\n metadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n","import * as ambassadorWixBenefitProgramsV1Transaction from './benefit-programs-v1-transaction-transactions.http.js';\nimport * as ambassadorWixBenefitProgramsV1TransactionTypes from './benefit-programs-v1-transaction-transactions.types.js';\nimport * as ambassadorWixBenefitProgramsV1TransactionUniversalTypes from './benefit-programs-v1-transaction-transactions.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getTransaction(): __PublicMethodMetaInfo<\n 'GET',\n { transactionId: string },\n ambassadorWixBenefitProgramsV1TransactionUniversalTypes.GetTransactionRequest,\n ambassadorWixBenefitProgramsV1TransactionTypes.GetTransactionRequest,\n ambassadorWixBenefitProgramsV1TransactionUniversalTypes.GetTransactionResponse,\n ambassadorWixBenefitProgramsV1TransactionTypes.GetTransactionResponse\n> {\n const payload = { transactionId: ':transactionId' } as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Transaction.getTransaction(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/transactions/{transactionId}',\n pathParams: { transactionId: 'transactionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryTransactions(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1TransactionUniversalTypes.QueryTransactionsRequest,\n ambassadorWixBenefitProgramsV1TransactionTypes.QueryTransactionsRequest,\n ambassadorWixBenefitProgramsV1TransactionUniversalTypes.QueryTransactionsResponse,\n ambassadorWixBenefitProgramsV1TransactionTypes.QueryTransactionsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1Transaction.queryTransactions(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/transactions/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Transaction as TransactionOriginal,\n TransactionStatusDetailsOneOf as TransactionStatusDetailsOneOfOriginal,\n PoolInfo as PoolInfoOriginal,\n BalanceType as BalanceTypeOriginal,\n BalanceTypeWithLiterals as BalanceTypeWithLiteralsOriginal,\n CommonIdentificationData as CommonIdentificationDataOriginal,\n CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal,\n IdentityType as IdentityTypeOriginal,\n IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal,\n TransactionStatus as TransactionStatusOriginal,\n TransactionStatusWithLiterals as TransactionStatusWithLiteralsOriginal,\n TransactionDetails as TransactionDetailsOriginal,\n Item as ItemOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n RequestedValues as RequestedValuesOriginal,\n FailedTransactionDetails as FailedTransactionDetailsOriginal,\n CreateTransactionRequest as CreateTransactionRequestOriginal,\n CreateTransactionResponse as CreateTransactionResponseOriginal,\n BulkCreateTransactionsRequest as BulkCreateTransactionsRequestOriginal,\n BulkCreateTransactionsResponse as BulkCreateTransactionsResponseOriginal,\n BulkTransactionResult as BulkTransactionResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n UpdateTransactionRequest as UpdateTransactionRequestOriginal,\n UpdateTransactionResponse as UpdateTransactionResponseOriginal,\n BulkUpdateTransactionsRequest as BulkUpdateTransactionsRequestOriginal,\n MaskedTransaction as MaskedTransactionOriginal,\n BulkUpdateTransactionsResponse as BulkUpdateTransactionsResponseOriginal,\n GetTransactionRequest as GetTransactionRequestOriginal,\n GetTransactionResponse as GetTransactionResponseOriginal,\n QueryTransactionsRequest as QueryTransactionsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryTransactionsResponse as QueryTransactionsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n} from './benefit-programs-v1-transaction-transactions.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,4DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;A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ACL,EAAAA,qBAAA,aAAU;AACV,EAAAA,qBAAA,uBAAoB;AACpB,EAAAA,qBAAA,YAAS;AACT,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,SAAM;AALI,SAAAA;AAAA,GAAA;;;ACnqBL,SAASC,kBAOd;AACA,QAAM,UAAU,EAAE,eAAe,iBAAiB;AAElD,QAAM,oBACsC,eAAe,OAAO;AAElE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,eAAe,gBAAgB;AAAA,IAC7C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,qBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACsC,kBAAkB,OAAO;AAErE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getTransaction","queryTransactions","import_rest_modules","payload","BalanceType","IdentityType","TransactionStatus","SortOrder","WebhookIdentityType","getTransaction","queryTransactions"]}