@wix/auto_sdk_ecom_order-payment-requests 1.0.64 → 1.0.66

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.
Files changed (41) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +14 -16
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +29 -11
  5. package/build/cjs/index.typings.js +1 -3
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +28 -1
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.js +16 -16
  10. package/build/cjs/schemas.js.map +1 -1
  11. package/build/es/index.d.mts +1 -1
  12. package/build/es/index.mjs +14 -16
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +29 -11
  15. package/build/es/index.typings.mjs +1 -3
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +28 -1
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/es/schemas.mjs +16 -16
  20. package/build/es/schemas.mjs.map +1 -1
  21. package/build/internal/cjs/index.d.ts +3 -2
  22. package/build/internal/cjs/index.js +14 -16
  23. package/build/internal/cjs/index.js.map +1 -1
  24. package/build/internal/cjs/index.typings.d.ts +31 -12
  25. package/build/internal/cjs/index.typings.js +1 -3
  26. package/build/internal/cjs/index.typings.js.map +1 -1
  27. package/build/internal/cjs/meta.d.ts +28 -1
  28. package/build/internal/cjs/meta.js.map +1 -1
  29. package/build/internal/cjs/schemas.js +16 -16
  30. package/build/internal/cjs/schemas.js.map +1 -1
  31. package/build/internal/es/index.d.mts +3 -2
  32. package/build/internal/es/index.mjs +14 -16
  33. package/build/internal/es/index.mjs.map +1 -1
  34. package/build/internal/es/index.typings.d.mts +31 -12
  35. package/build/internal/es/index.typings.mjs +1 -3
  36. package/build/internal/es/index.typings.mjs.map +1 -1
  37. package/build/internal/es/meta.d.mts +28 -1
  38. package/build/internal/es/meta.mjs.map +1 -1
  39. package/build/internal/es/schemas.mjs +16 -16
  40. package/build/internal/es/schemas.mjs.map +1 -1
  41. package/package.json +2 -2
@@ -460,6 +460,25 @@ interface ChargeOrderPaymentRequestResponse {
460
460
  */
461
461
  paymentResponseToken?: string | null;
462
462
  }
463
+ interface InvalidPaymentStatusErrorData {
464
+ /**
465
+ * Token for completing the payment. Same value as `paymentResponseToken` in a successful response.
466
+ *
467
+ * Returned only when the charge reached the payment provider.
468
+ * @maxLength 1000
469
+ */
470
+ paymentResponseToken?: string | null;
471
+ /**
472
+ * Status of the payment that blocked the charge, for example `DECLINED` or `CANCELED`.
473
+ * @maxLength 100
474
+ */
475
+ paymentStatus?: string;
476
+ /**
477
+ * Reason the payment provider gave for the status, such as a gateway reason code. Falls back to `paymentStatus` when the provider doesn't give a reason.
478
+ * @maxLength 100
479
+ */
480
+ failureDetails?: string | null;
481
+ }
463
482
  interface DomainEvent extends DomainEventBodyOneOf {
464
483
  createdEvent?: EntityCreatedEvent;
465
484
  updatedEvent?: EntityUpdatedEvent;
@@ -628,6 +647,10 @@ type CreateOrderPaymentRequestApplicationErrors = {
628
647
  code?: 'INVALID_ORDER_STATUS_FOR_SUBSCRIPTION';
629
648
  description?: string;
630
649
  data?: Record<string, any>;
650
+ } | {
651
+ code?: 'SUBSCRIPTION_ALREADY_STARTED';
652
+ description?: string;
653
+ data?: Record<string, any>;
631
654
  } | {
632
655
  code?: 'ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND';
633
656
  description?: string;
@@ -716,6 +739,10 @@ type ChargeOrderPaymentRequestApplicationErrors = {
716
739
  code?: 'PAYMENT_METHOD_UNAVAILABLE';
717
740
  description?: string;
718
741
  data?: Record<string, any>;
742
+ } | {
743
+ code?: 'INVALID_PAYMENT_STATUS';
744
+ description?: string;
745
+ data?: InvalidPaymentStatusErrorData;
719
746
  };
720
747
  interface BaseEventMetadata {
721
748
  /**
@@ -1127,11 +1154,6 @@ interface OrderPaymentRequestsQueryBuilder {
1127
1154
  * @documentationMaturity preview
1128
1155
  */
1129
1156
  startsWith: (propertyName: '_id' | 'source.appId' | 'source.externalId' | 'orderId' | 'orderNumber' | 'paymentGatewayOrderId' | 'title' | 'description', value: string) => OrderPaymentRequestsQueryBuilder;
1130
- /** @param propertyName - Property whose value is compared with `values`.
1131
- * @param values - List of values to compare against.
1132
- * @documentationMaturity preview
1133
- */
1134
- hasSome: (propertyName: '_id' | 'source.appId' | 'source.externalId' | 'status' | 'orderId' | 'orderNumber' | 'paymentGatewayOrderId' | 'title' | 'description' | 'expirationDate' | '_createdDate' | '_updatedDate', value: any[]) => OrderPaymentRequestsQueryBuilder;
1135
1157
  /** @documentationMaturity preview */
1136
1158
  in: (propertyName: '_id' | 'source.appId' | 'source.externalId' | 'status' | 'orderId' | 'orderNumber' | 'paymentGatewayOrderId' | 'title' | 'description' | 'expirationDate' | '_createdDate' | '_updatedDate', value: any) => OrderPaymentRequestsQueryBuilder;
1137
1159
  /** @documentationMaturity preview */
@@ -1242,11 +1264,7 @@ type OrderPaymentRequestQuery = {
1242
1264
  }[];
1243
1265
  };
1244
1266
  declare const utils: {
1245
- query: {
1246
- QueryBuilder: () => _wix_sdk_types.QueryBuilder<OrderPaymentRequest, OrderPaymentRequestQuerySpec, OrderPaymentRequestQuery>;
1247
- Filter: _wix_sdk_types.FilterFactory<OrderPaymentRequest, OrderPaymentRequestQuerySpec>;
1248
- Sort: _wix_sdk_types.SortFactory<OrderPaymentRequestQuerySpec>;
1249
- };
1267
+ query: _wix_sdk_types.QueryHelpers<OrderPaymentRequest, OrderPaymentRequestQuerySpec, OrderPaymentRequestQuery>;
1250
1268
  };
1251
1269
  /**
1252
1270
  * Retrieves the payment page URL for an order payment request.
@@ -1303,4 +1321,4 @@ interface ChargeOrderPaymentRequestOptions {
1303
1321
  paymentToken?: string | null;
1304
1322
  }
1305
1323
 
1306
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type ActionLink, type ActionLinks, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, type BulkCreateOrderPaymentRequestsOptions, type BulkCreateOrderPaymentRequestsRequest, type BulkCreateOrderPaymentRequestsResponse, type BulkOrderPaymentRequestItem, type BulkOrderPaymentRequestResult, type ChargeOrderPaymentRequestApplicationErrors, type ChargeOrderPaymentRequestOptions, type ChargeOrderPaymentRequestRequest, type ChargeOrderPaymentRequestResponse, type CommonQueryWithEntityContext, type CreateOrderPaymentRequestApplicationErrors, type CreateOrderPaymentRequestOptions, type CreateOrderPaymentRequestRequest, type CreateOrderPaymentRequestResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteOrderPaymentRequestApplicationErrors, type DeleteOrderPaymentRequestRequest, type DeleteOrderPaymentRequestResponse, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GetOrderPaymentRequestApplicationErrors, type GetOrderPaymentRequestRequest, type GetOrderPaymentRequestResponse, type GetOrderPaymentRequestURLRequest, type GetOrderPaymentRequestURLResponse, type GetOrderPaymentRequestUrlApplicationErrors, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MessageEnvelope, type OrderPaymentRequest, type OrderPaymentRequestCreatedEnvelope, type OrderPaymentRequestDeletedEnvelope, type OrderPaymentRequestExpired, type OrderPaymentRequestExpiredEnvelope, type OrderPaymentRequestPaid, type OrderPaymentRequestPaidEnvelope, type OrderPaymentRequestQuery, type OrderPaymentRequestQuerySpec, type OrderPaymentRequestUpdatedEnvelope, type OrderPaymentRequestVoided, type OrderPaymentRequestVoidedEnvelope, type OrderPaymentRequestsQueryBuilder, type OrderPaymentRequestsQueryResult, PaymentMethod, type PaymentMethodWithLiterals, type Price, type QueryOrderPaymentRequestsRequest, type QueryOrderPaymentRequestsResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type Source, Status, type StatusWithLiterals, type SubscriptionInfo, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateOrderPaymentRequest, type UpdateOrderPaymentRequestApplicationErrors, type UpdateOrderPaymentRequestRequest, type UpdateOrderPaymentRequestResponse, type VoidOrderPaymentRequestApplicationErrors, type VoidOrderPaymentRequestRequest, type VoidOrderPaymentRequestResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, onOrderPaymentRequestCreated, onOrderPaymentRequestDeleted, onOrderPaymentRequestExpired, onOrderPaymentRequestPaid, onOrderPaymentRequestUpdated, onOrderPaymentRequestVoided, queryOrderPaymentRequests, typedQueryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest, utils, voidOrderPaymentRequest };
1324
+ export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type ActionLink, type ActionLinks, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, type BulkCreateOrderPaymentRequestsOptions, type BulkCreateOrderPaymentRequestsRequest, type BulkCreateOrderPaymentRequestsResponse, type BulkOrderPaymentRequestItem, type BulkOrderPaymentRequestResult, type ChargeOrderPaymentRequestApplicationErrors, type ChargeOrderPaymentRequestOptions, type ChargeOrderPaymentRequestRequest, type ChargeOrderPaymentRequestResponse, type CommonQueryWithEntityContext, type CreateOrderPaymentRequestApplicationErrors, type CreateOrderPaymentRequestOptions, type CreateOrderPaymentRequestRequest, type CreateOrderPaymentRequestResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteOrderPaymentRequestApplicationErrors, type DeleteOrderPaymentRequestRequest, type DeleteOrderPaymentRequestResponse, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GetOrderPaymentRequestApplicationErrors, type GetOrderPaymentRequestRequest, type GetOrderPaymentRequestResponse, type GetOrderPaymentRequestURLRequest, type GetOrderPaymentRequestURLResponse, type GetOrderPaymentRequestUrlApplicationErrors, type IdentificationData, type IdentificationDataIdOneOf, type InvalidPaymentStatusErrorData, type ItemMetadata, type MessageEnvelope, type OrderPaymentRequest, type OrderPaymentRequestCreatedEnvelope, type OrderPaymentRequestDeletedEnvelope, type OrderPaymentRequestExpired, type OrderPaymentRequestExpiredEnvelope, type OrderPaymentRequestPaid, type OrderPaymentRequestPaidEnvelope, type OrderPaymentRequestQuery, type OrderPaymentRequestQuerySpec, type OrderPaymentRequestUpdatedEnvelope, type OrderPaymentRequestVoided, type OrderPaymentRequestVoidedEnvelope, type OrderPaymentRequestsQueryBuilder, type OrderPaymentRequestsQueryResult, PaymentMethod, type PaymentMethodWithLiterals, type Price, type QueryOrderPaymentRequestsRequest, type QueryOrderPaymentRequestsResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type Source, Status, type StatusWithLiterals, type SubscriptionInfo, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateOrderPaymentRequest, type UpdateOrderPaymentRequestApplicationErrors, type UpdateOrderPaymentRequestRequest, type UpdateOrderPaymentRequestResponse, type VoidOrderPaymentRequestApplicationErrors, type VoidOrderPaymentRequestRequest, type VoidOrderPaymentRequestResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, onOrderPaymentRequestCreated, onOrderPaymentRequestDeleted, onOrderPaymentRequestExpired, onOrderPaymentRequestPaid, onOrderPaymentRequestUpdated, onOrderPaymentRequestVoided, queryOrderPaymentRequests, typedQueryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest, utils, voidOrderPaymentRequest };
@@ -657,9 +657,7 @@ async function typedQueryOrderPaymentRequests(query) {
657
657
  }
658
658
  }
659
659
  var utils = {
660
- query: {
661
- ...createQueryUtils()
662
- }
660
+ query: /* @__PURE__ */ createQueryUtils()
663
661
  };
664
662
  async function getOrderPaymentRequestUrl2(orderPaymentRequestId) {
665
663
  const { httpClient, sideEffects } = arguments[1];