@wix/auto_sdk_ecom_order-payment-requests 1.0.65 → 1.0.67

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 (39) hide show
  1. package/build/cjs/index.js +14 -16
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +5 -10
  4. package/build/cjs/index.typings.js +1 -3
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +4 -0
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/cjs/schemas.js +16 -16
  9. package/build/cjs/schemas.js.map +1 -1
  10. package/build/es/index.mjs +14 -16
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/index.typings.d.mts +5 -10
  13. package/build/es/index.typings.mjs +1 -3
  14. package/build/es/index.typings.mjs.map +1 -1
  15. package/build/es/meta.d.mts +4 -0
  16. package/build/es/meta.mjs.map +1 -1
  17. package/build/es/schemas.mjs +16 -16
  18. package/build/es/schemas.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -0
  20. package/build/internal/cjs/index.js +14 -16
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +6 -10
  23. package/build/internal/cjs/index.typings.js +1 -3
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +4 -0
  26. package/build/internal/cjs/meta.js.map +1 -1
  27. package/build/internal/cjs/schemas.js +16 -16
  28. package/build/internal/cjs/schemas.js.map +1 -1
  29. package/build/internal/es/index.d.mts +1 -0
  30. package/build/internal/es/index.mjs +14 -16
  31. package/build/internal/es/index.mjs.map +1 -1
  32. package/build/internal/es/index.typings.d.mts +6 -10
  33. package/build/internal/es/index.typings.mjs +1 -3
  34. package/build/internal/es/index.typings.mjs.map +1 -1
  35. package/build/internal/es/meta.d.mts +4 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/build/internal/es/schemas.mjs +16 -16
  38. package/build/internal/es/schemas.mjs.map +1 -1
  39. package/package.json +3 -3
@@ -686,6 +686,10 @@ type CreateOrderPaymentRequestApplicationErrors = {
686
686
  code?: 'INVALID_ORDER_STATUS_FOR_SUBSCRIPTION';
687
687
  description?: string;
688
688
  data?: Record<string, any>;
689
+ } | {
690
+ code?: 'SUBSCRIPTION_ALREADY_STARTED';
691
+ description?: string;
692
+ data?: Record<string, any>;
689
693
  } | {
690
694
  code?: 'ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND';
691
695
  description?: string;
@@ -992,6 +996,7 @@ interface CreateOrderPaymentRequestOptions {
992
996
  * - `ORDER_NOT_FOUND`: The referenced order wasn't found.
993
997
  * - `PARTIAL_PAYMENT_NOT_SUPPORTED_FOR_SUBSCRIPTION`: The requested amount doesn't equal the subscription order total.
994
998
  * - `INVALID_ORDER_STATUS_FOR_SUBSCRIPTION`: The subscription order isn't in `INITIALIZED` status.
999
+ * - `SUBSCRIPTION_ALREADY_STARTED`: The order's subscription has already started billing.
995
1000
  * - `SITE_NOT_PUBLISHED`: The site isn't published.
996
1001
  * - `ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND`: The Payment Request Page isn't available on the site.
997
1002
  * @param orderPaymentRequests - Order payment requests to create.
@@ -1224,11 +1229,6 @@ interface OrderPaymentRequestsQueryBuilder {
1224
1229
  * @documentationMaturity preview
1225
1230
  */
1226
1231
  startsWith: (propertyName: '_id' | 'source.appId' | 'source.externalId' | 'orderId' | 'orderNumber' | 'paymentGatewayOrderId' | 'title' | 'description', value: string) => OrderPaymentRequestsQueryBuilder;
1227
- /** @param propertyName - Property whose value is compared with `values`.
1228
- * @param values - List of values to compare against.
1229
- * @documentationMaturity preview
1230
- */
1231
- hasSome: (propertyName: '_id' | 'source.appId' | 'source.externalId' | 'status' | 'orderId' | 'orderNumber' | 'paymentGatewayOrderId' | 'title' | 'description' | 'expirationDate' | '_createdDate' | '_updatedDate', value: any[]) => OrderPaymentRequestsQueryBuilder;
1232
1232
  /** @documentationMaturity preview */
1233
1233
  in: (propertyName: '_id' | 'source.appId' | 'source.externalId' | 'status' | 'orderId' | 'orderNumber' | 'paymentGatewayOrderId' | 'title' | 'description' | 'expirationDate' | '_createdDate' | '_updatedDate', value: any) => OrderPaymentRequestsQueryBuilder;
1234
1234
  /** @documentationMaturity preview */
@@ -1353,11 +1353,7 @@ type OrderPaymentRequestQuery = {
1353
1353
  }[];
1354
1354
  };
1355
1355
  declare const utils: {
1356
- query: {
1357
- QueryBuilder: () => _wix_sdk_types.QueryBuilder<OrderPaymentRequest, OrderPaymentRequestQuerySpec, OrderPaymentRequestQuery>;
1358
- Filter: _wix_sdk_types.FilterFactory<OrderPaymentRequest, OrderPaymentRequestQuerySpec>;
1359
- Sort: _wix_sdk_types.SortFactory<OrderPaymentRequestQuerySpec>;
1360
- };
1356
+ query: _wix_sdk_types.QueryHelpers<OrderPaymentRequest, OrderPaymentRequestQuerySpec, OrderPaymentRequestQuery>;
1361
1357
  };
1362
1358
  /**
1363
1359
  * Retrieves the payment page URL for an order payment request.
@@ -695,9 +695,7 @@ async function typedQueryOrderPaymentRequests(query) {
695
695
  }
696
696
  }
697
697
  var utils = {
698
- query: {
699
- ...(0, import_query_builder_utils.createQueryUtils)()
700
- }
698
+ query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)()
701
699
  };
702
700
  async function getOrderPaymentRequestUrl2(orderPaymentRequestId) {
703
701
  const { httpClient, sideEffects } = arguments[1];