@epcc-sdk/sdks-cart-checkout-order 0.0.6 → 0.0.7
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/README.md +27 -2
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.cjs +176 -2
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +134 -107
- package/dist/client/sdk.gen.d.ts +134 -107
- package/dist/client/sdk.gen.mjs +164 -1
- package/dist/client/sdk.gen.mjs.map +1 -1
- package/dist/client/transformers.gen.cjs +111 -0
- package/dist/client/transformers.gen.cjs.map +1 -0
- package/dist/client/transformers.gen.d.cts +12 -0
- package/dist/client/transformers.gen.d.ts +12 -0
- package/dist/client/transformers.gen.mjs +80 -0
- package/dist/client/transformers.gen.mjs.map +1 -0
- package/dist/client/types.gen.cjs.map +1 -1
- package/dist/client/types.gen.d.cts +1722 -1153
- package/dist/client/types.gen.d.ts +1722 -1153
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# @epcc-sdk/sdks-cart-checkout-order SDK
|
|
2
2
|
|
|
3
|
-
Below you
|
|
3
|
+
Below you'll find instructions on how to install, set up, and use the client, along with a list of available operations.
|
|
4
|
+
|
|
4
5
|
|
|
5
6
|
## Features
|
|
6
7
|
|
|
@@ -12,6 +13,7 @@ Below you’ll find instructions on how to install, set up, and use the client,
|
|
|
12
13
|
|
|
13
14
|
---
|
|
14
15
|
|
|
16
|
+
|
|
15
17
|
## Installation
|
|
16
18
|
|
|
17
19
|
```bash
|
|
@@ -263,8 +265,20 @@ const product = await getACart({
|
|
|
263
265
|
|
|
264
266
|
- **`updateCustomDiscountForCartItem`** (`PUT /v2/carts/{cartID}/items/{cartitemID}/custom-discounts/{customdiscountID}`)
|
|
265
267
|
|
|
268
|
+
- **`getShippingGroups`** (`GET /v2/carts/{cartID}/shipping-groups`)
|
|
269
|
+
|
|
270
|
+
- **`createShippingGroup`** (`POST /v2/carts/{cartID}/shipping-groups`)
|
|
271
|
+
|
|
272
|
+
- **`deleteCartShippingGroup`** (`DELETE /v2/carts/{cartId}/shipping-groups/{shippingGroupId}`)
|
|
273
|
+
|
|
274
|
+
- **`getShippingGroupById`** (`GET /v2/carts/{cartId}/shipping-groups/{shippingGroupId}`)
|
|
275
|
+
|
|
276
|
+
- **`updateShippingGroup`** (`PUT /v2/carts/{cartId}/shipping-groups/{shippingGroupId}`)
|
|
277
|
+
|
|
266
278
|
- **`createCartPaymentIntent`** (`POST /v2/carts/{cartID}/payments`)
|
|
267
279
|
|
|
280
|
+
- **`updateCartPaymentIntent`** (`PUT /v2/carts/{cartID}/payments/{paymentIntentID}`)
|
|
281
|
+
|
|
268
282
|
- **`checkoutApi`** (`POST /v2/carts/{cartID}/checkout`)
|
|
269
283
|
|
|
270
284
|
- **`getCustomerOrders`** (`GET /v2/orders`)
|
|
@@ -277,6 +291,8 @@ const product = await getACart({
|
|
|
277
291
|
|
|
278
292
|
- **`anonymizeOrders`** (`POST /v2/orders/anonymize`)
|
|
279
293
|
|
|
294
|
+
- **`confirmOrder`** (`POST /v2/orders/{orderID}/confirm`)
|
|
295
|
+
|
|
280
296
|
- **`paymentSetup`** (`POST /v2/orders/{orderID}/payments`)
|
|
281
297
|
|
|
282
298
|
- **`confirmPayment`** (`POST /v2/orders/{orderID}/transactions/{transactionID}/confirm`)
|
|
@@ -291,6 +307,15 @@ const product = await getACart({
|
|
|
291
307
|
|
|
292
308
|
- **`cancelATransaction`** (`POST /v2/orders/{orderID}/transactions/{transactionID}/cancel`)
|
|
293
309
|
|
|
310
|
+
- **`getOrderShippingGroups`** (`GET /v2/orders/{orderID}/shipping-groups`)
|
|
294
311
|
|
|
312
|
+
- **`createOrderShippingGroup`** (`POST /v2/orders/{orderID}/shipping-groups`)
|
|
295
313
|
|
|
296
|
-
|
|
314
|
+
- **`getShippingGroupsById`** (`GET /v2/orders/{orderID}/shipping-groups/{shippingGroupID}`)
|
|
315
|
+
|
|
316
|
+
- **`putShippingGroupById`** (`PUT /v2/orders/{orderID}/shipping-groups/{shippingGroupID}`)
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
---
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AccountCheckout, AddAllOrNothingOptionsObject, AddCustomDiscountToCartItemData, AddCustomDiscountToCartItemError, AddCustomDiscountToCartItemErrors, AddCustomDiscountToCartItemResponse, AddCustomDiscountToCartItemResponses, AddTaxItemToCartData, AddTaxItemToCartError, AddTaxItemToCartErrors, AddTaxItemToCartResponse, AddTaxItemToCartResponses, AnonymizeOrdersData, AnonymizeOrdersError, AnonymizeOrdersErrors, AnonymizeOrdersResponse, AnonymizeOrdersResponses, BillingAddress, BulkAddCustomDiscountsToCartData, BulkAddCustomDiscountsToCartError, BulkAddCustomDiscountsToCartErrors, BulkAddCustomDiscountsToCartResponse, BulkAddCustomDiscountsToCartResponses, BulkAddItemsRequest, BulkAddTaxItemsToCartData, BulkAddTaxItemsToCartError, BulkAddTaxItemsToCartErrors, BulkAddTaxItemsToCartResponse, BulkAddTaxItemsToCartResponses, BulkDeleteCustomDiscountsFromCartData,
|
|
2
|
-
export { addCustomDiscountToCartItem, addTaxItemToCart, anonymizeOrders, bulkAddCustomDiscountsToCart, bulkAddTaxItemsToCart, bulkDeleteCustomDiscountsFromCart, bulkDeleteTaxItemsFromCart, bulkUpdateItemsInCart, cancelATransaction, captureATransaction, checkoutApi, client, confirmPayment, createACart, createAccountCartAssociation, createCartPaymentIntent, createCustomerCartAssociation, deleteACart, deleteACartItem, deleteAPromotionViaPromotionCode, deleteATaxItem, deleteAccountCartAssociation, deleteAllCartItems, deleteCustomDiscountFromCart, deleteCustomDiscountFromCartItem, deleteCustomerCartAssociation, getACart, getATransaction, getAnOrder, getCartItems, getCarts, getCustomerOrders, getOrderItems, getOrderTransactions, manageCarts, paymentSetup, refundATransaction, updateACart, updateACartItem, updateATaxItem, updateAnOrder, updateCustomDiscountForCart, updateCustomDiscountForCartItem } from './sdk.gen.cjs';
|
|
1
|
+
export { AccountCheckout, AddAllOrNothingOptionsObject, AddCustomDiscountToCartItemData, AddCustomDiscountToCartItemError, AddCustomDiscountToCartItemErrors, AddCustomDiscountToCartItemResponse, AddCustomDiscountToCartItemResponses, AddTaxItemToCartData, AddTaxItemToCartError, AddTaxItemToCartErrors, AddTaxItemToCartResponse, AddTaxItemToCartResponses, AnonymizeOrdersData, AnonymizeOrdersError, AnonymizeOrdersErrors, AnonymizeOrdersResponse, AnonymizeOrdersResponses, BillingAddress, BulkAddCustomDiscountsToCartData, BulkAddCustomDiscountsToCartError, BulkAddCustomDiscountsToCartErrors, BulkAddCustomDiscountsToCartResponse, BulkAddCustomDiscountsToCartResponses, BulkAddItemsRequest, BulkAddTaxItemsToCartData, BulkAddTaxItemsToCartError, BulkAddTaxItemsToCartErrors, BulkAddTaxItemsToCartResponse, BulkAddTaxItemsToCartResponses, BulkDeleteCustomDiscountsFromCartData, BulkDeleteCustomDiscountsFromCartResponse, BulkDeleteCustomDiscountsFromCartResponses, BulkDeleteTaxItemsFromCartData, BulkDeleteTaxItemsFromCartResponse, BulkDeleteTaxItemsFromCartResponses, BulkUpdateCartsItems, BulkUpdateItemsInCartData, BulkUpdateItemsInCartError, BulkUpdateItemsInCartErrors, BulkUpdateItemsInCartResponses, CancelATransactionData, CancelATransactionError, CancelATransactionErrors, CancelATransactionResponse, CancelATransactionResponses, CaptureATransactionData, CaptureATransactionError, CaptureATransactionErrors, CaptureATransactionResponse, CaptureATransactionResponses, CartCollectionResponse, CartContact, CartEntityResponse, CartItemBulkCustomDiscountObject, CartItemFormattedPriceData, CartItemObject, CartItemObjectData, CartItemObjectRequest, CartItemRelationship, CartItemResponse, CartItemTaxesEntityResponse, CartItemsResponse, CartMergeObject, CartMergeObjectRequest, CartPaymentUpdate, CartResponse, CartTimestamps, CartsBulkCustomDiscounts, CartsBulkCustomDiscountsCollectionResponse, CartsBulkCustomDiscountsResponse, CartsBulkTaxes, CartsCustomDiscountsCollectionResponse, CartsCustomDiscountsEntityRequest, CartsCustomDiscountsEntityResponse, CartsCustomDiscountsObject, CartsCustomDiscountsResponseObject, CartsItemsTaxesObject, CartsRelationshipsAccountsData, CartsRelationshipsCustomersData, CartsRequest, CartsResponse, CheckoutApiData, CheckoutApiError, CheckoutApiErrors, CheckoutApiResponse, CheckoutApiResponses, ConfirmOrderData, ConfirmOrderError, ConfirmOrderErrors, ConfirmOrderResponse, ConfirmOrderResponses, ConfirmPaymentData, ConfirmPaymentError, ConfirmPaymentErrors, ConfirmPaymentResponse, ConfirmPaymentResponses, Contact, CreateACartData, CreateACartError, CreateACartErrors, CreateACartResponse, CreateACartResponses, CreateAccountCartAssociationData, CreateAccountCartAssociationError, CreateAccountCartAssociationErrors, CreateAccountCartAssociationResponse, CreateAccountCartAssociationResponses, CreateCartPaymentIntentData, CreateCartPaymentIntentResponse, CreateCartPaymentIntentResponses, CreateCustomerCartAssociationData, CreateCustomerCartAssociationError, CreateCustomerCartAssociationErrors, CreateCustomerCartAssociationResponse, CreateCustomerCartAssociationResponses, CreateOrderShippingGroupData, CreateOrderShippingGroupError, CreateOrderShippingGroupErrors, CreateOrderShippingGroupResponse, CreateOrderShippingGroupResponses, CreateShippingGroupData, CreateShippingGroupError, CreateShippingGroupErrors, CreateShippingGroupRequest, CreateShippingGroupResponse, CreateShippingGroupResponses, CustomAttributes, CustomDiscountRelationshipsCartItemRequest, CustomItemObject, CustomItemObjectData, CustomerCheckout, DataAdyenPayment, DataAuthorizeNetPayment, DataBasePayments, DataBraintreePayment, DataCardConnectPayment, DataCyberSourcePayment, DataManualPayment, DataPayPalExpressCheckoutPayment, DataPaymentObject, DataStripeConnectPayment, DataStripePayment, DataStripePaymentIntentsPayment, DeleteACartData, DeleteACartError, DeleteACartErrors, DeleteACartItemData, DeleteACartItemResponse, DeleteACartItemResponses, DeleteACartResponse, DeleteACartResponses, DeleteAPromotionViaPromotionCodeData, DeleteAPromotionViaPromotionCodeResponse, DeleteAPromotionViaPromotionCodeResponses, DeleteATaxItemData, DeleteATaxItemResponse, DeleteATaxItemResponses, DeleteAccountCartAssociationData, DeleteAccountCartAssociationError, DeleteAccountCartAssociationErrors, DeleteAccountCartAssociationResponse, DeleteAccountCartAssociationResponses, DeleteAllCartItemsData, DeleteAllCartItemsError, DeleteAllCartItemsErrors, DeleteAllCartItemsResponse, DeleteAllCartItemsResponses, DeleteCartShippingGroupData, DeleteCartShippingGroupError, DeleteCartShippingGroupErrors, DeleteCartShippingGroupResponse, DeleteCartShippingGroupResponses, DeleteCustomDiscountFromCartData, DeleteCustomDiscountFromCartItemData, DeleteCustomDiscountFromCartItemResponse, DeleteCustomDiscountFromCartItemResponses, DeleteCustomDiscountFromCartResponse, DeleteCustomDiscountFromCartResponses, DeleteCustomerCartAssociationData, DeleteCustomerCartAssociationError, DeleteCustomerCartAssociationErrors, DeleteCustomerCartAssociationResponse, DeleteCustomerCartAssociationResponses, DeliveryEstimate, Discount, DiscountData, DiscountSettings, Discounts, ElasticPathPaymentsPoweredByStripePayment, FormattedPriceData, Gateway, GetACartData, GetACartError, GetACartErrors, GetACartResponse, GetACartResponses, GetATransactionData, GetATransactionResponse, GetATransactionResponses, GetAnOrderData, GetAnOrderError, GetAnOrderErrors, GetAnOrderResponse, GetAnOrderResponses, GetCartItemsData, GetCartItemsResponse, GetCartItemsResponses, GetCartsData, GetCartsError, GetCartsErrors, GetCartsResponse, GetCartsResponses, GetCustomerOrdersData, GetCustomerOrdersResponse, GetCustomerOrdersResponses, GetOrderItemsData, GetOrderItemsResponse, GetOrderItemsResponses, GetOrderShippingGroupsData, GetOrderShippingGroupsError, GetOrderShippingGroupsErrors, GetOrderShippingGroupsResponse, GetOrderShippingGroupsResponses, GetOrderTransactionsData, GetOrderTransactionsError, GetOrderTransactionsErrors, GetOrderTransactionsResponse, GetOrderTransactionsResponses, GetShippingGroupByIdData, GetShippingGroupByIdError, GetShippingGroupByIdErrors, GetShippingGroupByIdResponse, GetShippingGroupByIdResponses, GetShippingGroupsByIdData, GetShippingGroupsByIdError, GetShippingGroupsByIdErrors, GetShippingGroupsByIdResponse, GetShippingGroupsByIdResponses, GetShippingGroupsData, GetShippingGroupsError, GetShippingGroupsErrors, GetShippingGroupsResponse, GetShippingGroupsResponses, InventorySettings, ItemPriceData, ManageCartsData, ManageCartsError, ManageCartsErrors, ManageCartsResponse, ManageCartsResponses, Method, Money, OrderCollectionResponse, OrderEntityResponse, OrderItemCollectionResponse, OrderItemFormattedUnitPriceData, OrderItemResponse, OrderMeta, OrderPriceData, OrderPriceWrapperMeta, OrderResponse, OrdersAddressData, OrdersAnonymizeData, OrdersAnonymizeRequest, OrdersCancelData, OrdersFulfilledData, OrdersListResponse, OrdersTransactionsCancelRequest, OrdersTransactionsCaptureRequest, OrdersTransactionsConfirmRequest, OrdersTransactionsRefundRequest, OrdersUpdateRequest, Payment, PaymentSetupData, PaymentSetupError, PaymentSetupErrors, PaymentSetupResponse, PaymentSetupResponses, PaymentsRequest, PromotionItemObject, PromotionItemObjectData, PutShippingGroupByIdData, PutShippingGroupByIdError, PutShippingGroupByIdErrors, PutShippingGroupByIdResponse, PutShippingGroupByIdResponses, ReOrderObject, ReOrderObjectRequest, RefundATransactionData, RefundATransactionError, RefundATransactionErrors, RefundATransactionResponse, RefundATransactionResponses, RelationshipArray, RelationshipItem, ResponseData, ResponseErrorItem, ResponseErrorResponse, ResponseMetaCarts, ResponseMetaOrders, ResponsePageLinks, ResponsePaginationPage, ResponsePaginationResults, Shipping, ShippingAddress, ShippingGroupMeta, ShippingGroupResponse, ShippingPriceRequest, ShippingPriceResponse, SingleRelationship, Status, SubscriptionItemObject, SubscriptionItemObjectData, Timestamps, TransactionEntityResponse, TransactionListResponse, TransactionResponse, Type, UpdateACartData, UpdateACartError, UpdateACartErrors, UpdateACartItemData, UpdateACartItemError, UpdateACartItemErrors, UpdateACartItemResponse, UpdateACartItemResponses, UpdateACartResponse, UpdateACartResponses, UpdateATaxItemData, UpdateATaxItemResponse, UpdateATaxItemResponses, UpdateAllOrNothingOptionsObject, UpdateAnOrderData, UpdateAnOrderError, UpdateAnOrderErrors, UpdateAnOrderResponse, UpdateAnOrderResponses, UpdateCartPaymentIntentData, UpdateCartPaymentIntentResponse, UpdateCartPaymentIntentResponses, UpdateCartShippingGroupRequest, UpdateCartsItems, UpdateCustomDiscountForCartData, UpdateCustomDiscountForCartItemData, UpdateCustomDiscountForCartItemResponse, UpdateCustomDiscountForCartItemResponses, UpdateCustomDiscountForCartResponse, UpdateCustomDiscountForCartResponses, UpdateOrderShippingGroupRequest, UpdateShippingGroupData, UpdateShippingGroupError, UpdateShippingGroupErrors, UpdateShippingGroupResponse, UpdateShippingGroupResponses } from './types.gen.cjs';
|
|
2
|
+
export { addCustomDiscountToCartItem, addTaxItemToCart, anonymizeOrders, bulkAddCustomDiscountsToCart, bulkAddTaxItemsToCart, bulkDeleteCustomDiscountsFromCart, bulkDeleteTaxItemsFromCart, bulkUpdateItemsInCart, cancelATransaction, captureATransaction, checkoutApi, client, confirmOrder, confirmPayment, createACart, createAccountCartAssociation, createCartPaymentIntent, createCustomerCartAssociation, createOrderShippingGroup, createShippingGroup, deleteACart, deleteACartItem, deleteAPromotionViaPromotionCode, deleteATaxItem, deleteAccountCartAssociation, deleteAllCartItems, deleteCartShippingGroup, deleteCustomDiscountFromCart, deleteCustomDiscountFromCartItem, deleteCustomerCartAssociation, getACart, getATransaction, getAnOrder, getCartItems, getCarts, getCustomerOrders, getOrderItems, getOrderShippingGroups, getOrderTransactions, getShippingGroupById, getShippingGroups, getShippingGroupsById, manageCarts, paymentSetup, putShippingGroupById, refundATransaction, updateACart, updateACartItem, updateATaxItem, updateAnOrder, updateCartPaymentIntent, updateCustomDiscountForCart, updateCustomDiscountForCartItem, updateShippingGroup } from './sdk.gen.cjs';
|
|
3
3
|
import '@hey-api/client-fetch';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AccountCheckout, AddAllOrNothingOptionsObject, AddCustomDiscountToCartItemData, AddCustomDiscountToCartItemError, AddCustomDiscountToCartItemErrors, AddCustomDiscountToCartItemResponse, AddCustomDiscountToCartItemResponses, AddTaxItemToCartData, AddTaxItemToCartError, AddTaxItemToCartErrors, AddTaxItemToCartResponse, AddTaxItemToCartResponses, AnonymizeOrdersData, AnonymizeOrdersError, AnonymizeOrdersErrors, AnonymizeOrdersResponse, AnonymizeOrdersResponses, BillingAddress, BulkAddCustomDiscountsToCartData, BulkAddCustomDiscountsToCartError, BulkAddCustomDiscountsToCartErrors, BulkAddCustomDiscountsToCartResponse, BulkAddCustomDiscountsToCartResponses, BulkAddItemsRequest, BulkAddTaxItemsToCartData, BulkAddTaxItemsToCartError, BulkAddTaxItemsToCartErrors, BulkAddTaxItemsToCartResponse, BulkAddTaxItemsToCartResponses, BulkDeleteCustomDiscountsFromCartData,
|
|
2
|
-
export { addCustomDiscountToCartItem, addTaxItemToCart, anonymizeOrders, bulkAddCustomDiscountsToCart, bulkAddTaxItemsToCart, bulkDeleteCustomDiscountsFromCart, bulkDeleteTaxItemsFromCart, bulkUpdateItemsInCart, cancelATransaction, captureATransaction, checkoutApi, client, confirmPayment, createACart, createAccountCartAssociation, createCartPaymentIntent, createCustomerCartAssociation, deleteACart, deleteACartItem, deleteAPromotionViaPromotionCode, deleteATaxItem, deleteAccountCartAssociation, deleteAllCartItems, deleteCustomDiscountFromCart, deleteCustomDiscountFromCartItem, deleteCustomerCartAssociation, getACart, getATransaction, getAnOrder, getCartItems, getCarts, getCustomerOrders, getOrderItems, getOrderTransactions, manageCarts, paymentSetup, refundATransaction, updateACart, updateACartItem, updateATaxItem, updateAnOrder, updateCustomDiscountForCart, updateCustomDiscountForCartItem } from './sdk.gen.js';
|
|
1
|
+
export { AccountCheckout, AddAllOrNothingOptionsObject, AddCustomDiscountToCartItemData, AddCustomDiscountToCartItemError, AddCustomDiscountToCartItemErrors, AddCustomDiscountToCartItemResponse, AddCustomDiscountToCartItemResponses, AddTaxItemToCartData, AddTaxItemToCartError, AddTaxItemToCartErrors, AddTaxItemToCartResponse, AddTaxItemToCartResponses, AnonymizeOrdersData, AnonymizeOrdersError, AnonymizeOrdersErrors, AnonymizeOrdersResponse, AnonymizeOrdersResponses, BillingAddress, BulkAddCustomDiscountsToCartData, BulkAddCustomDiscountsToCartError, BulkAddCustomDiscountsToCartErrors, BulkAddCustomDiscountsToCartResponse, BulkAddCustomDiscountsToCartResponses, BulkAddItemsRequest, BulkAddTaxItemsToCartData, BulkAddTaxItemsToCartError, BulkAddTaxItemsToCartErrors, BulkAddTaxItemsToCartResponse, BulkAddTaxItemsToCartResponses, BulkDeleteCustomDiscountsFromCartData, BulkDeleteCustomDiscountsFromCartResponse, BulkDeleteCustomDiscountsFromCartResponses, BulkDeleteTaxItemsFromCartData, BulkDeleteTaxItemsFromCartResponse, BulkDeleteTaxItemsFromCartResponses, BulkUpdateCartsItems, BulkUpdateItemsInCartData, BulkUpdateItemsInCartError, BulkUpdateItemsInCartErrors, BulkUpdateItemsInCartResponses, CancelATransactionData, CancelATransactionError, CancelATransactionErrors, CancelATransactionResponse, CancelATransactionResponses, CaptureATransactionData, CaptureATransactionError, CaptureATransactionErrors, CaptureATransactionResponse, CaptureATransactionResponses, CartCollectionResponse, CartContact, CartEntityResponse, CartItemBulkCustomDiscountObject, CartItemFormattedPriceData, CartItemObject, CartItemObjectData, CartItemObjectRequest, CartItemRelationship, CartItemResponse, CartItemTaxesEntityResponse, CartItemsResponse, CartMergeObject, CartMergeObjectRequest, CartPaymentUpdate, CartResponse, CartTimestamps, CartsBulkCustomDiscounts, CartsBulkCustomDiscountsCollectionResponse, CartsBulkCustomDiscountsResponse, CartsBulkTaxes, CartsCustomDiscountsCollectionResponse, CartsCustomDiscountsEntityRequest, CartsCustomDiscountsEntityResponse, CartsCustomDiscountsObject, CartsCustomDiscountsResponseObject, CartsItemsTaxesObject, CartsRelationshipsAccountsData, CartsRelationshipsCustomersData, CartsRequest, CartsResponse, CheckoutApiData, CheckoutApiError, CheckoutApiErrors, CheckoutApiResponse, CheckoutApiResponses, ConfirmOrderData, ConfirmOrderError, ConfirmOrderErrors, ConfirmOrderResponse, ConfirmOrderResponses, ConfirmPaymentData, ConfirmPaymentError, ConfirmPaymentErrors, ConfirmPaymentResponse, ConfirmPaymentResponses, Contact, CreateACartData, CreateACartError, CreateACartErrors, CreateACartResponse, CreateACartResponses, CreateAccountCartAssociationData, CreateAccountCartAssociationError, CreateAccountCartAssociationErrors, CreateAccountCartAssociationResponse, CreateAccountCartAssociationResponses, CreateCartPaymentIntentData, CreateCartPaymentIntentResponse, CreateCartPaymentIntentResponses, CreateCustomerCartAssociationData, CreateCustomerCartAssociationError, CreateCustomerCartAssociationErrors, CreateCustomerCartAssociationResponse, CreateCustomerCartAssociationResponses, CreateOrderShippingGroupData, CreateOrderShippingGroupError, CreateOrderShippingGroupErrors, CreateOrderShippingGroupResponse, CreateOrderShippingGroupResponses, CreateShippingGroupData, CreateShippingGroupError, CreateShippingGroupErrors, CreateShippingGroupRequest, CreateShippingGroupResponse, CreateShippingGroupResponses, CustomAttributes, CustomDiscountRelationshipsCartItemRequest, CustomItemObject, CustomItemObjectData, CustomerCheckout, DataAdyenPayment, DataAuthorizeNetPayment, DataBasePayments, DataBraintreePayment, DataCardConnectPayment, DataCyberSourcePayment, DataManualPayment, DataPayPalExpressCheckoutPayment, DataPaymentObject, DataStripeConnectPayment, DataStripePayment, DataStripePaymentIntentsPayment, DeleteACartData, DeleteACartError, DeleteACartErrors, DeleteACartItemData, DeleteACartItemResponse, DeleteACartItemResponses, DeleteACartResponse, DeleteACartResponses, DeleteAPromotionViaPromotionCodeData, DeleteAPromotionViaPromotionCodeResponse, DeleteAPromotionViaPromotionCodeResponses, DeleteATaxItemData, DeleteATaxItemResponse, DeleteATaxItemResponses, DeleteAccountCartAssociationData, DeleteAccountCartAssociationError, DeleteAccountCartAssociationErrors, DeleteAccountCartAssociationResponse, DeleteAccountCartAssociationResponses, DeleteAllCartItemsData, DeleteAllCartItemsError, DeleteAllCartItemsErrors, DeleteAllCartItemsResponse, DeleteAllCartItemsResponses, DeleteCartShippingGroupData, DeleteCartShippingGroupError, DeleteCartShippingGroupErrors, DeleteCartShippingGroupResponse, DeleteCartShippingGroupResponses, DeleteCustomDiscountFromCartData, DeleteCustomDiscountFromCartItemData, DeleteCustomDiscountFromCartItemResponse, DeleteCustomDiscountFromCartItemResponses, DeleteCustomDiscountFromCartResponse, DeleteCustomDiscountFromCartResponses, DeleteCustomerCartAssociationData, DeleteCustomerCartAssociationError, DeleteCustomerCartAssociationErrors, DeleteCustomerCartAssociationResponse, DeleteCustomerCartAssociationResponses, DeliveryEstimate, Discount, DiscountData, DiscountSettings, Discounts, ElasticPathPaymentsPoweredByStripePayment, FormattedPriceData, Gateway, GetACartData, GetACartError, GetACartErrors, GetACartResponse, GetACartResponses, GetATransactionData, GetATransactionResponse, GetATransactionResponses, GetAnOrderData, GetAnOrderError, GetAnOrderErrors, GetAnOrderResponse, GetAnOrderResponses, GetCartItemsData, GetCartItemsResponse, GetCartItemsResponses, GetCartsData, GetCartsError, GetCartsErrors, GetCartsResponse, GetCartsResponses, GetCustomerOrdersData, GetCustomerOrdersResponse, GetCustomerOrdersResponses, GetOrderItemsData, GetOrderItemsResponse, GetOrderItemsResponses, GetOrderShippingGroupsData, GetOrderShippingGroupsError, GetOrderShippingGroupsErrors, GetOrderShippingGroupsResponse, GetOrderShippingGroupsResponses, GetOrderTransactionsData, GetOrderTransactionsError, GetOrderTransactionsErrors, GetOrderTransactionsResponse, GetOrderTransactionsResponses, GetShippingGroupByIdData, GetShippingGroupByIdError, GetShippingGroupByIdErrors, GetShippingGroupByIdResponse, GetShippingGroupByIdResponses, GetShippingGroupsByIdData, GetShippingGroupsByIdError, GetShippingGroupsByIdErrors, GetShippingGroupsByIdResponse, GetShippingGroupsByIdResponses, GetShippingGroupsData, GetShippingGroupsError, GetShippingGroupsErrors, GetShippingGroupsResponse, GetShippingGroupsResponses, InventorySettings, ItemPriceData, ManageCartsData, ManageCartsError, ManageCartsErrors, ManageCartsResponse, ManageCartsResponses, Method, Money, OrderCollectionResponse, OrderEntityResponse, OrderItemCollectionResponse, OrderItemFormattedUnitPriceData, OrderItemResponse, OrderMeta, OrderPriceData, OrderPriceWrapperMeta, OrderResponse, OrdersAddressData, OrdersAnonymizeData, OrdersAnonymizeRequest, OrdersCancelData, OrdersFulfilledData, OrdersListResponse, OrdersTransactionsCancelRequest, OrdersTransactionsCaptureRequest, OrdersTransactionsConfirmRequest, OrdersTransactionsRefundRequest, OrdersUpdateRequest, Payment, PaymentSetupData, PaymentSetupError, PaymentSetupErrors, PaymentSetupResponse, PaymentSetupResponses, PaymentsRequest, PromotionItemObject, PromotionItemObjectData, PutShippingGroupByIdData, PutShippingGroupByIdError, PutShippingGroupByIdErrors, PutShippingGroupByIdResponse, PutShippingGroupByIdResponses, ReOrderObject, ReOrderObjectRequest, RefundATransactionData, RefundATransactionError, RefundATransactionErrors, RefundATransactionResponse, RefundATransactionResponses, RelationshipArray, RelationshipItem, ResponseData, ResponseErrorItem, ResponseErrorResponse, ResponseMetaCarts, ResponseMetaOrders, ResponsePageLinks, ResponsePaginationPage, ResponsePaginationResults, Shipping, ShippingAddress, ShippingGroupMeta, ShippingGroupResponse, ShippingPriceRequest, ShippingPriceResponse, SingleRelationship, Status, SubscriptionItemObject, SubscriptionItemObjectData, Timestamps, TransactionEntityResponse, TransactionListResponse, TransactionResponse, Type, UpdateACartData, UpdateACartError, UpdateACartErrors, UpdateACartItemData, UpdateACartItemError, UpdateACartItemErrors, UpdateACartItemResponse, UpdateACartItemResponses, UpdateACartResponse, UpdateACartResponses, UpdateATaxItemData, UpdateATaxItemResponse, UpdateATaxItemResponses, UpdateAllOrNothingOptionsObject, UpdateAnOrderData, UpdateAnOrderError, UpdateAnOrderErrors, UpdateAnOrderResponse, UpdateAnOrderResponses, UpdateCartPaymentIntentData, UpdateCartPaymentIntentResponse, UpdateCartPaymentIntentResponses, UpdateCartShippingGroupRequest, UpdateCartsItems, UpdateCustomDiscountForCartData, UpdateCustomDiscountForCartItemData, UpdateCustomDiscountForCartItemResponse, UpdateCustomDiscountForCartItemResponses, UpdateCustomDiscountForCartResponse, UpdateCustomDiscountForCartResponses, UpdateOrderShippingGroupRequest, UpdateShippingGroupData, UpdateShippingGroupError, UpdateShippingGroupErrors, UpdateShippingGroupResponse, UpdateShippingGroupResponses } from './types.gen.js';
|
|
2
|
+
export { addCustomDiscountToCartItem, addTaxItemToCart, anonymizeOrders, bulkAddCustomDiscountsToCart, bulkAddTaxItemsToCart, bulkDeleteCustomDiscountsFromCart, bulkDeleteTaxItemsFromCart, bulkUpdateItemsInCart, cancelATransaction, captureATransaction, checkoutApi, client, confirmOrder, confirmPayment, createACart, createAccountCartAssociation, createCartPaymentIntent, createCustomerCartAssociation, createOrderShippingGroup, createShippingGroup, deleteACart, deleteACartItem, deleteAPromotionViaPromotionCode, deleteATaxItem, deleteAccountCartAssociation, deleteAllCartItems, deleteCartShippingGroup, deleteCustomDiscountFromCart, deleteCustomDiscountFromCartItem, deleteCustomerCartAssociation, getACart, getATransaction, getAnOrder, getCartItems, getCarts, getCustomerOrders, getOrderItems, getOrderShippingGroups, getOrderTransactions, getShippingGroupById, getShippingGroups, getShippingGroupsById, manageCarts, paymentSetup, putShippingGroupById, refundATransaction, updateACart, updateACartItem, updateATaxItem, updateAnOrder, updateCartPaymentIntent, updateCustomDiscountForCart, updateCustomDiscountForCartItem, updateShippingGroup } from './sdk.gen.js';
|
|
3
3
|
import '@hey-api/client-fetch';
|
package/dist/client/sdk.gen.cjs
CHANGED
|
@@ -30,17 +30,21 @@ __export(sdk_gen_exports, {
|
|
|
30
30
|
captureATransaction: () => captureATransaction,
|
|
31
31
|
checkoutApi: () => checkoutApi,
|
|
32
32
|
client: () => client,
|
|
33
|
+
confirmOrder: () => confirmOrder,
|
|
33
34
|
confirmPayment: () => confirmPayment,
|
|
34
35
|
createACart: () => createACart,
|
|
35
36
|
createAccountCartAssociation: () => createAccountCartAssociation,
|
|
36
37
|
createCartPaymentIntent: () => createCartPaymentIntent,
|
|
37
38
|
createCustomerCartAssociation: () => createCustomerCartAssociation,
|
|
39
|
+
createOrderShippingGroup: () => createOrderShippingGroup,
|
|
40
|
+
createShippingGroup: () => createShippingGroup,
|
|
38
41
|
deleteACart: () => deleteACart,
|
|
39
42
|
deleteACartItem: () => deleteACartItem,
|
|
40
43
|
deleteAPromotionViaPromotionCode: () => deleteAPromotionViaPromotionCode,
|
|
41
44
|
deleteATaxItem: () => deleteATaxItem,
|
|
42
45
|
deleteAccountCartAssociation: () => deleteAccountCartAssociation,
|
|
43
46
|
deleteAllCartItems: () => deleteAllCartItems,
|
|
47
|
+
deleteCartShippingGroup: () => deleteCartShippingGroup,
|
|
44
48
|
deleteCustomDiscountFromCart: () => deleteCustomDiscountFromCart,
|
|
45
49
|
deleteCustomDiscountFromCartItem: () => deleteCustomDiscountFromCartItem,
|
|
46
50
|
deleteCustomerCartAssociation: () => deleteCustomerCartAssociation,
|
|
@@ -51,16 +55,23 @@ __export(sdk_gen_exports, {
|
|
|
51
55
|
getCarts: () => getCarts,
|
|
52
56
|
getCustomerOrders: () => getCustomerOrders,
|
|
53
57
|
getOrderItems: () => getOrderItems,
|
|
58
|
+
getOrderShippingGroups: () => getOrderShippingGroups,
|
|
54
59
|
getOrderTransactions: () => getOrderTransactions,
|
|
60
|
+
getShippingGroupById: () => getShippingGroupById,
|
|
61
|
+
getShippingGroups: () => getShippingGroups,
|
|
62
|
+
getShippingGroupsById: () => getShippingGroupsById,
|
|
55
63
|
manageCarts: () => manageCarts,
|
|
56
64
|
paymentSetup: () => paymentSetup,
|
|
65
|
+
putShippingGroupById: () => putShippingGroupById,
|
|
57
66
|
refundATransaction: () => refundATransaction,
|
|
58
67
|
updateACart: () => updateACart,
|
|
59
68
|
updateACartItem: () => updateACartItem,
|
|
60
69
|
updateATaxItem: () => updateATaxItem,
|
|
61
70
|
updateAnOrder: () => updateAnOrder,
|
|
71
|
+
updateCartPaymentIntent: () => updateCartPaymentIntent,
|
|
62
72
|
updateCustomDiscountForCart: () => updateCustomDiscountForCart,
|
|
63
|
-
updateCustomDiscountForCartItem: () => updateCustomDiscountForCartItem
|
|
73
|
+
updateCustomDiscountForCartItem: () => updateCustomDiscountForCartItem,
|
|
74
|
+
updateShippingGroup: () => updateShippingGroup
|
|
64
75
|
});
|
|
65
76
|
module.exports = __toCommonJS(sdk_gen_exports);
|
|
66
77
|
var import_client_fetch = require("@hey-api/client-fetch");
|
|
@@ -465,6 +476,74 @@ const updateCustomDiscountForCartItem = (options) => {
|
|
|
465
476
|
url: "/v2/carts/{cartID}/items/{cartitemID}/custom-discounts/{customdiscountID}"
|
|
466
477
|
});
|
|
467
478
|
};
|
|
479
|
+
const getShippingGroups = (options) => {
|
|
480
|
+
return (options?.client ?? client).get({
|
|
481
|
+
...options,
|
|
482
|
+
security: [
|
|
483
|
+
{
|
|
484
|
+
scheme: "bearer",
|
|
485
|
+
type: "http"
|
|
486
|
+
}
|
|
487
|
+
],
|
|
488
|
+
url: "/v2/carts/{cartID}/shipping-groups"
|
|
489
|
+
});
|
|
490
|
+
};
|
|
491
|
+
const createShippingGroup = (options) => {
|
|
492
|
+
return (options?.client ?? client).post({
|
|
493
|
+
...options,
|
|
494
|
+
headers: {
|
|
495
|
+
"Content-Type": "application/json",
|
|
496
|
+
...options?.headers
|
|
497
|
+
},
|
|
498
|
+
security: [
|
|
499
|
+
{
|
|
500
|
+
scheme: "bearer",
|
|
501
|
+
type: "http"
|
|
502
|
+
}
|
|
503
|
+
],
|
|
504
|
+
url: "/v2/carts/{cartID}/shipping-groups"
|
|
505
|
+
});
|
|
506
|
+
};
|
|
507
|
+
const deleteCartShippingGroup = (options) => {
|
|
508
|
+
return (options?.client ?? client).delete({
|
|
509
|
+
...options,
|
|
510
|
+
security: [
|
|
511
|
+
{
|
|
512
|
+
scheme: "bearer",
|
|
513
|
+
type: "http"
|
|
514
|
+
}
|
|
515
|
+
],
|
|
516
|
+
url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
|
|
517
|
+
});
|
|
518
|
+
};
|
|
519
|
+
const getShippingGroupById = (options) => {
|
|
520
|
+
return (options?.client ?? client).get({
|
|
521
|
+
...options,
|
|
522
|
+
security: [
|
|
523
|
+
{
|
|
524
|
+
scheme: "bearer",
|
|
525
|
+
type: "http"
|
|
526
|
+
}
|
|
527
|
+
],
|
|
528
|
+
url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
|
|
529
|
+
});
|
|
530
|
+
};
|
|
531
|
+
const updateShippingGroup = (options) => {
|
|
532
|
+
return (options?.client ?? client).put({
|
|
533
|
+
...options,
|
|
534
|
+
headers: {
|
|
535
|
+
"Content-Type": "application/json",
|
|
536
|
+
...options?.headers
|
|
537
|
+
},
|
|
538
|
+
security: [
|
|
539
|
+
{
|
|
540
|
+
scheme: "bearer",
|
|
541
|
+
type: "http"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
|
|
545
|
+
});
|
|
546
|
+
};
|
|
468
547
|
const createCartPaymentIntent = (options) => {
|
|
469
548
|
return (options?.client ?? client).post({
|
|
470
549
|
...options,
|
|
@@ -481,6 +560,22 @@ const createCartPaymentIntent = (options) => {
|
|
|
481
560
|
url: "/v2/carts/{cartID}/payments"
|
|
482
561
|
});
|
|
483
562
|
};
|
|
563
|
+
const updateCartPaymentIntent = (options) => {
|
|
564
|
+
return (options?.client ?? client).put({
|
|
565
|
+
...options,
|
|
566
|
+
headers: {
|
|
567
|
+
"Content-Type": "application/json",
|
|
568
|
+
...options?.headers
|
|
569
|
+
},
|
|
570
|
+
security: [
|
|
571
|
+
{
|
|
572
|
+
scheme: "bearer",
|
|
573
|
+
type: "http"
|
|
574
|
+
}
|
|
575
|
+
],
|
|
576
|
+
url: "/v2/carts/{cartID}/payments/{paymentIntentID}"
|
|
577
|
+
});
|
|
578
|
+
};
|
|
484
579
|
const checkoutApi = (options) => {
|
|
485
580
|
return (options?.client ?? client).post({
|
|
486
581
|
...options,
|
|
@@ -565,6 +660,18 @@ const anonymizeOrders = (options) => {
|
|
|
565
660
|
url: "/v2/orders/anonymize"
|
|
566
661
|
});
|
|
567
662
|
};
|
|
663
|
+
const confirmOrder = (options) => {
|
|
664
|
+
return (options?.client ?? client).post({
|
|
665
|
+
...options,
|
|
666
|
+
security: [
|
|
667
|
+
{
|
|
668
|
+
scheme: "bearer",
|
|
669
|
+
type: "http"
|
|
670
|
+
}
|
|
671
|
+
],
|
|
672
|
+
url: "/v2/orders/{orderID}/confirm"
|
|
673
|
+
});
|
|
674
|
+
};
|
|
568
675
|
const paymentSetup = (options) => {
|
|
569
676
|
return (options?.client ?? client).post({
|
|
570
677
|
...options,
|
|
@@ -669,6 +776,62 @@ const cancelATransaction = (options) => {
|
|
|
669
776
|
url: "/v2/orders/{orderID}/transactions/{transactionID}/cancel"
|
|
670
777
|
});
|
|
671
778
|
};
|
|
779
|
+
const getOrderShippingGroups = (options) => {
|
|
780
|
+
return (options?.client ?? client).get({
|
|
781
|
+
...options,
|
|
782
|
+
security: [
|
|
783
|
+
{
|
|
784
|
+
scheme: "bearer",
|
|
785
|
+
type: "http"
|
|
786
|
+
}
|
|
787
|
+
],
|
|
788
|
+
url: "/v2/orders/{orderID}/shipping-groups"
|
|
789
|
+
});
|
|
790
|
+
};
|
|
791
|
+
const createOrderShippingGroup = (options) => {
|
|
792
|
+
return (options?.client ?? client).post({
|
|
793
|
+
...options,
|
|
794
|
+
headers: {
|
|
795
|
+
"Content-Type": "application/json",
|
|
796
|
+
...options?.headers
|
|
797
|
+
},
|
|
798
|
+
security: [
|
|
799
|
+
{
|
|
800
|
+
scheme: "bearer",
|
|
801
|
+
type: "http"
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
url: "/v2/orders/{orderID}/shipping-groups"
|
|
805
|
+
});
|
|
806
|
+
};
|
|
807
|
+
const getShippingGroupsById = (options) => {
|
|
808
|
+
return (options?.client ?? client).get({
|
|
809
|
+
...options,
|
|
810
|
+
security: [
|
|
811
|
+
{
|
|
812
|
+
scheme: "bearer",
|
|
813
|
+
type: "http"
|
|
814
|
+
}
|
|
815
|
+
],
|
|
816
|
+
url: "/v2/orders/{orderID}/shipping-groups/{shippingGroupID}"
|
|
817
|
+
});
|
|
818
|
+
};
|
|
819
|
+
const putShippingGroupById = (options) => {
|
|
820
|
+
return (options?.client ?? client).put({
|
|
821
|
+
...options,
|
|
822
|
+
headers: {
|
|
823
|
+
"Content-Type": "application/json",
|
|
824
|
+
...options?.headers
|
|
825
|
+
},
|
|
826
|
+
security: [
|
|
827
|
+
{
|
|
828
|
+
scheme: "bearer",
|
|
829
|
+
type: "http"
|
|
830
|
+
}
|
|
831
|
+
],
|
|
832
|
+
url: "/v2/orders/{orderID}/shipping-groups/{shippingGroupID}"
|
|
833
|
+
});
|
|
834
|
+
};
|
|
672
835
|
// Annotate the CommonJS export names for ESM import in node:
|
|
673
836
|
0 && (module.exports = {
|
|
674
837
|
addCustomDiscountToCartItem,
|
|
@@ -683,17 +846,21 @@ const cancelATransaction = (options) => {
|
|
|
683
846
|
captureATransaction,
|
|
684
847
|
checkoutApi,
|
|
685
848
|
client,
|
|
849
|
+
confirmOrder,
|
|
686
850
|
confirmPayment,
|
|
687
851
|
createACart,
|
|
688
852
|
createAccountCartAssociation,
|
|
689
853
|
createCartPaymentIntent,
|
|
690
854
|
createCustomerCartAssociation,
|
|
855
|
+
createOrderShippingGroup,
|
|
856
|
+
createShippingGroup,
|
|
691
857
|
deleteACart,
|
|
692
858
|
deleteACartItem,
|
|
693
859
|
deleteAPromotionViaPromotionCode,
|
|
694
860
|
deleteATaxItem,
|
|
695
861
|
deleteAccountCartAssociation,
|
|
696
862
|
deleteAllCartItems,
|
|
863
|
+
deleteCartShippingGroup,
|
|
697
864
|
deleteCustomDiscountFromCart,
|
|
698
865
|
deleteCustomDiscountFromCartItem,
|
|
699
866
|
deleteCustomerCartAssociation,
|
|
@@ -704,15 +871,22 @@ const cancelATransaction = (options) => {
|
|
|
704
871
|
getCarts,
|
|
705
872
|
getCustomerOrders,
|
|
706
873
|
getOrderItems,
|
|
874
|
+
getOrderShippingGroups,
|
|
707
875
|
getOrderTransactions,
|
|
876
|
+
getShippingGroupById,
|
|
877
|
+
getShippingGroups,
|
|
878
|
+
getShippingGroupsById,
|
|
708
879
|
manageCarts,
|
|
709
880
|
paymentSetup,
|
|
881
|
+
putShippingGroupById,
|
|
710
882
|
refundATransaction,
|
|
711
883
|
updateACart,
|
|
712
884
|
updateACartItem,
|
|
713
885
|
updateATaxItem,
|
|
714
886
|
updateAnOrder,
|
|
887
|
+
updateCartPaymentIntent,
|
|
715
888
|
updateCustomDiscountForCart,
|
|
716
|
-
updateCustomDiscountForCartItem
|
|
889
|
+
updateCustomDiscountForCartItem,
|
|
890
|
+
updateShippingGroup
|
|
717
891
|
});
|
|
718
892
|
//# sourceMappingURL=sdk.gen.cjs.map
|