@digital8/lighting-illusions-ts-sdk 0.0.2036 → 0.0.2038
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/.openapi-generator/FILES +0 -186
- package/README.md +2 -125
- package/dist/apis/AdminApi.d.ts +0 -17
- package/dist/apis/AdminApi.js +0 -60
- package/dist/apis/SiteApi.d.ts +0 -16
- package/dist/apis/SiteApi.js +0 -60
- package/dist/apis/index.d.ts +0 -4
- package/dist/apis/index.js +0 -4
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AddressResource.d.ts +1 -13
- package/dist/models/AddressResource.js +7 -13
- package/dist/models/CreateStoreRequestAddress.d.ts +0 -6
- package/dist/models/CreateStoreRequestAddress.js +0 -2
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
- package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
- package/dist/models/SitePaymentConfigResource.d.ts +0 -6
- package/dist/models/SitePaymentConfigResource.js +0 -4
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- package/dist/models/UpdateSiteRequest.d.ts +0 -6
- package/dist/models/UpdateSiteRequest.js +0 -4
- package/dist/models/index.d.ts +0 -89
- package/dist/models/index.js +0 -89
- package/docs/AddressResource.md +0 -4
- package/docs/AdminApi.md +0 -66
- package/docs/CreateStoreRequestAddress.md +0 -2
- package/docs/ProductChildSiteDetailLiteResource.md +0 -2
- package/docs/SiteApi.md +0 -66
- package/docs/SitePaymentConfigResource.md +0 -2
- package/docs/UpdateSiteRequest.md +0 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +0 -54
- package/src/apis/SiteApi.ts +0 -54
- package/src/apis/index.ts +0 -4
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AddressResource.ts +8 -25
- package/src/models/CreateStoreRequestAddress.ts +0 -8
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
- package/src/models/SitePaymentConfigResource.ts +0 -9
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +6 -4
- package/src/models/UpdateSiteRequest.ts +0 -9
- package/src/models/index.ts +0 -89
- package/dist/apis/CartsApi.d.ts +0 -215
- package/dist/apis/CartsApi.js +0 -814
- package/dist/apis/CustomersApi.d.ts +0 -83
- package/dist/apis/CustomersApi.js +0 -320
- package/dist/apis/OrdersApi.d.ts +0 -228
- package/dist/apis/OrdersApi.js +0 -870
- package/dist/apis/TransactionsApi.d.ts +0 -69
- package/dist/apis/TransactionsApi.js +0 -262
- package/dist/models/AddressType.d.ts +0 -25
- package/dist/models/AddressType.js +0 -51
- package/dist/models/AdminNoteResource.d.ts +0 -69
- package/dist/models/AdminNoteResource.js +0 -72
- package/dist/models/AdminNoteResourceArrayResponse.d.ts +0 -33
- package/dist/models/AdminNoteResourceArrayResponse.js +0 -50
- package/dist/models/AdminOrderResource.d.ts +0 -300
- package/dist/models/AdminOrderResource.js +0 -223
- package/dist/models/AdminOrderResourceArrayResponse.d.ts +0 -33
- package/dist/models/AdminOrderResourceArrayResponse.js +0 -50
- package/dist/models/AttachCartCouponRequest.d.ts +0 -32
- package/dist/models/AttachCartCouponRequest.js +0 -51
- package/dist/models/AttachCartItemRequest.d.ts +0 -44
- package/dist/models/AttachCartItemRequest.js +0 -57
- package/dist/models/AttachOrderCouponRequest.d.ts +0 -32
- package/dist/models/AttachOrderCouponRequest.js +0 -51
- package/dist/models/AttachOrderLineItemRequest.d.ts +0 -44
- package/dist/models/AttachOrderLineItemRequest.js +0 -57
- package/dist/models/CartCouponLiteResource.d.ts +0 -56
- package/dist/models/CartCouponLiteResource.js +0 -67
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponLiteResourceArrayResponse.js +0 -50
- package/dist/models/CartCouponResource.d.ts +0 -50
- package/dist/models/CartCouponResource.js +0 -63
- package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponResourceArrayResponse.js +0 -50
- package/dist/models/CartListResource.d.ts +0 -137
- package/dist/models/CartListResource.js +0 -108
- package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartListResourceArrayResponse.js +0 -50
- package/dist/models/CartOrderSource.d.ts +0 -25
- package/dist/models/CartOrderSource.js +0 -51
- package/dist/models/CartResource.d.ts +0 -235
- package/dist/models/CartResource.js +0 -170
- package/dist/models/CartResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartResourceArrayResponse.js +0 -50
- package/dist/models/CartStatus.d.ts +0 -26
- package/dist/models/CartStatus.js +0 -52
- package/dist/models/CreateCartRequest.d.ts +0 -167
- package/dist/models/CreateCartRequest.js +0 -113
- package/dist/models/CreateCartRequestItemsInner.d.ts +0 -44
- package/dist/models/CreateCartRequestItemsInner.js +0 -57
- package/dist/models/CreateCartRequestShippingAddress.d.ts +0 -74
- package/dist/models/CreateCartRequestShippingAddress.js +0 -63
- package/dist/models/CreateCustomerRequest.d.ts +0 -56
- package/dist/models/CreateCustomerRequest.js +0 -65
- package/dist/models/CreateTransactionRequest.d.ts +0 -81
- package/dist/models/CreateTransactionRequest.js +0 -78
- package/dist/models/CustomerListResource.d.ts +0 -70
- package/dist/models/CustomerListResource.js +0 -75
- package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
- package/dist/models/CustomerListResourceArrayResponse.js +0 -50
- package/dist/models/CustomerResource.d.ts +0 -70
- package/dist/models/CustomerResource.js +0 -75
- package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/CustomerResourceArrayResponse.js +0 -50
- package/dist/models/DetachCartCouponRequest.d.ts +0 -32
- package/dist/models/DetachCartCouponRequest.js +0 -51
- package/dist/models/DetachOrderCouponRequest.d.ts +0 -32
- package/dist/models/DetachOrderCouponRequest.js +0 -51
- package/dist/models/DiscountResource.d.ts +0 -68
- package/dist/models/DiscountResource.js +0 -73
- package/dist/models/DiscountResourceArrayResponse.d.ts +0 -33
- package/dist/models/DiscountResourceArrayResponse.js +0 -50
- package/dist/models/DiscountType.d.ts +0 -26
- package/dist/models/DiscountType.js +0 -52
- package/dist/models/DiscountValueType.d.ts +0 -25
- package/dist/models/DiscountValueType.js +0 -51
- package/dist/models/FrontendCartResource.d.ts +0 -144
- package/dist/models/FrontendCartResource.js +0 -121
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
- package/dist/models/FrontendCartResourceCouponsInner.d.ts +0 -56
- package/dist/models/FrontendCartResourceCouponsInner.js +0 -57
- package/dist/models/FrontendLineItemResource.d.ts +0 -81
- package/dist/models/FrontendLineItemResource.js +0 -82
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendLineItemResourceArrayResponse.js +0 -50
- package/dist/models/FrontendOrderResource.d.ts +0 -168
- package/dist/models/FrontendOrderResource.js +0 -137
- package/dist/models/FrontendOrderResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendOrderResourceArrayResponse.js +0 -50
- package/dist/models/LiAddressResource.d.ts +0 -86
- package/dist/models/LiAddressResource.js +0 -83
- package/dist/models/LiAddressResourceArrayResponse.d.ts +0 -33
- package/dist/models/LiAddressResourceArrayResponse.js +0 -50
- package/dist/models/LiAdminUserLiteResource.d.ts +0 -50
- package/dist/models/LiAdminUserLiteResource.js +0 -61
- package/dist/models/LiAdminUserLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/LiAdminUserLiteResourceArrayResponse.js +0 -50
- package/dist/models/LineItemDiscountResource.d.ts +0 -50
- package/dist/models/LineItemDiscountResource.js +0 -63
- package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +0 -33
- package/dist/models/LineItemDiscountResourceArrayResponse.js +0 -50
- package/dist/models/LineItemListResource.d.ts +0 -89
- package/dist/models/LineItemListResource.js +0 -90
- package/dist/models/LineItemListResourceArrayResponse.d.ts +0 -33
- package/dist/models/LineItemListResourceArrayResponse.js +0 -50
- package/dist/models/OmnisendSyncLiteResource.d.ts +0 -44
- package/dist/models/OmnisendSyncLiteResource.js +0 -59
- package/dist/models/OmnisendSyncLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/OmnisendSyncLiteResourceArrayResponse.js +0 -50
- package/dist/models/OrderListResource.d.ts +0 -103
- package/dist/models/OrderListResource.js +0 -94
- package/dist/models/OrderListResourceArrayResponse.d.ts +0 -33
- package/dist/models/OrderListResourceArrayResponse.js +0 -50
- package/dist/models/OrderLiteResource.d.ts +0 -62
- package/dist/models/OrderLiteResource.js +0 -67
- package/dist/models/OrderLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/OrderLiteResourceArrayResponse.js +0 -50
- package/dist/models/OrderStatusLiteResource.d.ts +0 -44
- package/dist/models/OrderStatusLiteResource.js +0 -59
- package/dist/models/OrderStatusLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/OrderStatusLiteResourceArrayResponse.js +0 -50
- package/dist/models/OrderStatusWithCountResource.d.ts +0 -50
- package/dist/models/OrderStatusWithCountResource.js +0 -63
- package/dist/models/OrderStatusWithCountResourceArrayResponse.d.ts +0 -33
- package/dist/models/OrderStatusWithCountResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedAdminNoteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedAdminNoteResourceResponse.js +0 -57
- package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCartListResourceResponse.js +0 -57
- package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
- package/dist/models/PaginatedOrderListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedOrderListResourceResponse.js +0 -57
- package/dist/models/PaginatedTransactionResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionResourceResponse.js +0 -57
- package/dist/models/PaymentMethod.d.ts +0 -30
- package/dist/models/PaymentMethod.js +0 -56
- package/dist/models/PaymentSource.d.ts +0 -27
- package/dist/models/PaymentSource.js +0 -53
- package/dist/models/PaymentStatus.d.ts +0 -25
- package/dist/models/PaymentStatus.js +0 -51
- package/dist/models/ProductChildLineItemLiteResource.d.ts +0 -106
- package/dist/models/ProductChildLineItemLiteResource.js +0 -101
- package/dist/models/ProductChildLineItemLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildLineItemLiteResourceArrayResponse.js +0 -50
- package/dist/models/RefundTransactionRequest.d.ts +0 -38
- package/dist/models/RefundTransactionRequest.js +0 -53
- package/dist/models/SearchAdminNotesRequest.d.ts +0 -102
- package/dist/models/SearchAdminNotesRequest.js +0 -82
- package/dist/models/SearchAllOrdersRequest.d.ts +0 -105
- package/dist/models/SearchAllOrdersRequest.js +0 -85
- package/dist/models/SearchCartsRequest.d.ts +0 -145
- package/dist/models/SearchCartsRequest.js +0 -97
- package/dist/models/SearchCustomersRequest.d.ts +0 -99
- package/dist/models/SearchCustomersRequest.js +0 -83
- package/dist/models/SearchOrdersRequest.d.ts +0 -153
- package/dist/models/SearchOrdersRequest.js +0 -101
- package/dist/models/SearchTransactionsRequest.d.ts +0 -135
- package/dist/models/SearchTransactionsRequest.js +0 -98
- package/dist/models/ShippingType.d.ts +0 -28
- package/dist/models/ShippingType.js +0 -54
- package/dist/models/StoreTransactionResource.d.ts +0 -39
- package/dist/models/StoreTransactionResource.js +0 -56
- package/dist/models/StoreTransactionResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreTransactionResourceArrayResponse.js +0 -50
- package/dist/models/TransactionLiteResource.d.ts +0 -86
- package/dist/models/TransactionLiteResource.js +0 -85
- package/dist/models/TransactionLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionLiteResourceArrayResponse.js +0 -50
- package/dist/models/TransactionResource.d.ts +0 -128
- package/dist/models/TransactionResource.js +0 -101
- package/dist/models/TransactionResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionResourceArrayResponse.js +0 -50
- package/dist/models/TransactionType.d.ts +0 -25
- package/dist/models/TransactionType.js +0 -51
- package/dist/models/UpdateCartItemRequest.d.ts +0 -38
- package/dist/models/UpdateCartItemRequest.js +0 -53
- package/dist/models/UpdateCartRequest.d.ts +0 -148
- package/dist/models/UpdateCartRequest.js +0 -100
- package/dist/models/UpdateCustomerRequest.d.ts +0 -56
- package/dist/models/UpdateCustomerRequest.js +0 -63
- package/dist/models/UpdateOrderLineItemRequest.d.ts +0 -38
- package/dist/models/UpdateOrderLineItemRequest.js +0 -53
- package/dist/models/UpdateOrderRequest.d.ts +0 -124
- package/dist/models/UpdateOrderRequest.js +0 -102
- package/docs/AddressType.md +0 -32
- package/docs/AdminNoteResource.md +0 -46
- package/docs/AdminNoteResourceArrayResponse.md +0 -34
- package/docs/AdminOrderResource.md +0 -120
- package/docs/AdminOrderResourceArrayResponse.md +0 -34
- package/docs/AttachCartCouponRequest.md +0 -34
- package/docs/AttachCartItemRequest.md +0 -38
- package/docs/AttachOrderCouponRequest.md +0 -34
- package/docs/AttachOrderLineItemRequest.md +0 -38
- package/docs/CartCouponLiteResource.md +0 -42
- package/docs/CartCouponLiteResourceArrayResponse.md +0 -34
- package/docs/CartCouponResource.md +0 -40
- package/docs/CartCouponResourceArrayResponse.md +0 -34
- package/docs/CartListResource.md +0 -68
- package/docs/CartListResourceArrayResponse.md +0 -34
- package/docs/CartOrderSource.md +0 -32
- package/docs/CartResource.md +0 -100
- package/docs/CartResourceArrayResponse.md +0 -34
- package/docs/CartStatus.md +0 -32
- package/docs/CartsApi.md +0 -821
- package/docs/CreateCartRequest.md +0 -72
- package/docs/CreateCartRequestItemsInner.md +0 -38
- package/docs/CreateCartRequestShippingAddress.md +0 -48
- package/docs/CreateCustomerRequest.md +0 -42
- package/docs/CreateTransactionRequest.md +0 -46
- package/docs/CustomerListResource.md +0 -46
- package/docs/CustomerListResourceArrayResponse.md +0 -34
- package/docs/CustomerResource.md +0 -46
- package/docs/CustomerResourceArrayResponse.md +0 -34
- package/docs/CustomersApi.md +0 -275
- package/docs/DetachCartCouponRequest.md +0 -34
- package/docs/DetachOrderCouponRequest.md +0 -34
- package/docs/DiscountResource.md +0 -46
- package/docs/DiscountResourceArrayResponse.md +0 -34
- package/docs/DiscountType.md +0 -32
- package/docs/DiscountValueType.md +0 -32
- package/docs/FrontendCartResource.md +0 -70
- package/docs/FrontendCartResourceArrayResponse.md +0 -34
- package/docs/FrontendCartResourceCouponsInner.md +0 -42
- package/docs/FrontendLineItemResource.md +0 -50
- package/docs/FrontendLineItemResourceArrayResponse.md +0 -34
- package/docs/FrontendOrderResource.md +0 -78
- package/docs/FrontendOrderResourceArrayResponse.md +0 -34
- package/docs/LiAddressResource.md +0 -52
- package/docs/LiAddressResourceArrayResponse.md +0 -34
- package/docs/LiAdminUserLiteResource.md +0 -40
- package/docs/LiAdminUserLiteResourceArrayResponse.md +0 -34
- package/docs/LineItemDiscountResource.md +0 -40
- package/docs/LineItemDiscountResourceArrayResponse.md +0 -34
- package/docs/LineItemListResource.md +0 -52
- package/docs/LineItemListResourceArrayResponse.md +0 -34
- package/docs/OmnisendSyncLiteResource.md +0 -38
- package/docs/OmnisendSyncLiteResourceArrayResponse.md +0 -34
- package/docs/OrderListResource.md +0 -56
- package/docs/OrderListResourceArrayResponse.md +0 -34
- package/docs/OrderLiteResource.md +0 -44
- package/docs/OrderLiteResourceArrayResponse.md +0 -34
- package/docs/OrderStatusLiteResource.md +0 -38
- package/docs/OrderStatusLiteResourceArrayResponse.md +0 -34
- package/docs/OrderStatusWithCountResource.md +0 -40
- package/docs/OrderStatusWithCountResourceArrayResponse.md +0 -34
- package/docs/OrdersApi.md +0 -879
- package/docs/PaginatedAdminNoteResourceResponse.md +0 -36
- package/docs/PaginatedCartListResourceResponse.md +0 -36
- package/docs/PaginatedCustomerListResourceResponse.md +0 -36
- package/docs/PaginatedOrderListResourceResponse.md +0 -36
- package/docs/PaginatedTransactionResourceResponse.md +0 -36
- package/docs/PaymentMethod.md +0 -32
- package/docs/PaymentSource.md +0 -32
- package/docs/PaymentStatus.md +0 -32
- package/docs/ProductChildLineItemLiteResource.md +0 -58
- package/docs/ProductChildLineItemLiteResourceArrayResponse.md +0 -34
- package/docs/RefundTransactionRequest.md +0 -36
- package/docs/SearchAdminNotesRequest.md +0 -52
- package/docs/SearchAllOrdersRequest.md +0 -52
- package/docs/SearchCartsRequest.md +0 -66
- package/docs/SearchCustomersRequest.md +0 -50
- package/docs/SearchOrdersRequest.md +0 -68
- package/docs/SearchTransactionsRequest.md +0 -60
- package/docs/ShippingType.md +0 -32
- package/docs/StoreTransactionResource.md +0 -36
- package/docs/StoreTransactionResourceArrayResponse.md +0 -34
- package/docs/TransactionLiteResource.md +0 -52
- package/docs/TransactionLiteResourceArrayResponse.md +0 -34
- package/docs/TransactionResource.md +0 -66
- package/docs/TransactionResourceArrayResponse.md +0 -34
- package/docs/TransactionType.md +0 -32
- package/docs/TransactionsApi.md +0 -209
- package/docs/UpdateCartItemRequest.md +0 -36
- package/docs/UpdateCartRequest.md +0 -66
- package/docs/UpdateCustomerRequest.md +0 -42
- package/docs/UpdateOrderLineItemRequest.md +0 -36
- package/docs/UpdateOrderRequest.md +0 -58
- package/src/apis/CartsApi.ts +0 -693
- package/src/apis/CustomersApi.ts +0 -237
- package/src/apis/OrdersApi.ts +0 -735
- package/src/apis/TransactionsApi.ts +0 -193
- package/src/models/AddressType.ts +0 -53
- package/src/models/AdminNoteResource.ts +0 -126
- package/src/models/AdminNoteResourceArrayResponse.ts +0 -73
- package/src/models/AdminOrderResource.ts +0 -519
- package/src/models/AdminOrderResourceArrayResponse.ts +0 -73
- package/src/models/AttachCartCouponRequest.ts +0 -66
- package/src/models/AttachCartItemRequest.ts +0 -83
- package/src/models/AttachOrderCouponRequest.ts +0 -66
- package/src/models/AttachOrderLineItemRequest.ts +0 -83
- package/src/models/CartCouponLiteResource.ts +0 -102
- package/src/models/CartCouponLiteResourceArrayResponse.ts +0 -73
- package/src/models/CartCouponResource.ts +0 -93
- package/src/models/CartCouponResourceArrayResponse.ts +0 -73
- package/src/models/CartListResource.ts +0 -234
- package/src/models/CartListResourceArrayResponse.ts +0 -73
- package/src/models/CartOrderSource.ts +0 -53
- package/src/models/CartResource.ts +0 -390
- package/src/models/CartResourceArrayResponse.ts +0 -73
- package/src/models/CartStatus.ts +0 -54
- package/src/models/CreateCartRequest.ts +0 -258
- package/src/models/CreateCartRequestItemsInner.ts +0 -83
- package/src/models/CreateCartRequestShippingAddress.ts +0 -121
- package/src/models/CreateCustomerRequest.ts +0 -101
- package/src/models/CreateTransactionRequest.ts +0 -131
- package/src/models/CustomerListResource.ts +0 -134
- package/src/models/CustomerListResourceArrayResponse.ts +0 -73
- package/src/models/CustomerResource.ts +0 -134
- package/src/models/CustomerResourceArrayResponse.ts +0 -73
- package/src/models/DetachCartCouponRequest.ts +0 -66
- package/src/models/DetachOrderCouponRequest.ts +0 -66
- package/src/models/DiscountResource.ts +0 -119
- package/src/models/DiscountResourceArrayResponse.ts +0 -73
- package/src/models/DiscountType.ts +0 -54
- package/src/models/DiscountValueType.ts +0 -53
- package/src/models/FrontendCartResource.ts +0 -254
- package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
- package/src/models/FrontendCartResourceCouponsInner.ts +0 -97
- package/src/models/FrontendLineItemResource.ts +0 -145
- package/src/models/FrontendLineItemResourceArrayResponse.ts +0 -73
- package/src/models/FrontendOrderResource.ts +0 -290
- package/src/models/FrontendOrderResourceArrayResponse.ts +0 -73
- package/src/models/LiAddressResource.ts +0 -145
- package/src/models/LiAddressResourceArrayResponse.ts +0 -73
- package/src/models/LiAdminUserLiteResource.ts +0 -92
- package/src/models/LiAdminUserLiteResourceArrayResponse.ts +0 -73
- package/src/models/LineItemDiscountResource.ts +0 -93
- package/src/models/LineItemDiscountResourceArrayResponse.ts +0 -73
- package/src/models/LineItemListResource.ts +0 -169
- package/src/models/LineItemListResourceArrayResponse.ts +0 -73
- package/src/models/OmnisendSyncLiteResource.ts +0 -84
- package/src/models/OmnisendSyncLiteResourceArrayResponse.ts +0 -73
- package/src/models/OrderListResource.ts +0 -198
- package/src/models/OrderListResourceArrayResponse.ts +0 -73
- package/src/models/OrderLiteResource.ts +0 -109
- package/src/models/OrderLiteResourceArrayResponse.ts +0 -73
- package/src/models/OrderStatusLiteResource.ts +0 -84
- package/src/models/OrderStatusLiteResourceArrayResponse.ts +0 -73
- package/src/models/OrderStatusWithCountResource.ts +0 -93
- package/src/models/OrderStatusWithCountResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedAdminNoteResourceResponse.ts +0 -90
- package/src/models/PaginatedCartListResourceResponse.ts +0 -90
- package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
- package/src/models/PaginatedOrderListResourceResponse.ts +0 -90
- package/src/models/PaginatedTransactionResourceResponse.ts +0 -90
- package/src/models/PaymentMethod.ts +0 -58
- package/src/models/PaymentSource.ts +0 -55
- package/src/models/PaymentStatus.ts +0 -53
- package/src/models/ProductChildLineItemLiteResource.ts +0 -189
- package/src/models/ProductChildLineItemLiteResourceArrayResponse.ts +0 -73
- package/src/models/RefundTransactionRequest.ts +0 -74
- package/src/models/SearchAdminNotesRequest.ts +0 -157
- package/src/models/SearchAllOrdersRequest.ts +0 -160
- package/src/models/SearchCartsRequest.ts +0 -214
- package/src/models/SearchCustomersRequest.ts +0 -152
- package/src/models/SearchOrdersRequest.ts +0 -224
- package/src/models/SearchTransactionsRequest.ts +0 -199
- package/src/models/ShippingType.ts +0 -56
- package/src/models/StoreTransactionResource.ts +0 -83
- package/src/models/StoreTransactionResourceArrayResponse.ts +0 -73
- package/src/models/TransactionLiteResource.ts +0 -146
- package/src/models/TransactionLiteResourceArrayResponse.ts +0 -73
- package/src/models/TransactionResource.ts +0 -203
- package/src/models/TransactionResourceArrayResponse.ts +0 -73
- package/src/models/TransactionType.ts +0 -53
- package/src/models/UpdateCartItemRequest.ts +0 -74
- package/src/models/UpdateCartRequest.ts +0 -224
- package/src/models/UpdateCustomerRequest.ts +0 -100
- package/src/models/UpdateOrderLineItemRequest.ts +0 -74
- package/src/models/UpdateOrderRequest.ts +0 -197
package/docs/CartsApi.md
DELETED
|
@@ -1,821 +0,0 @@
|
|
|
1
|
-
# CartsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost/api*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
| [**attachCouponCart**](CartsApi.md#attachcouponcart) | **POST** /admin-api/carts/{cart}/coupons/attach | Auto-generated: attachCouponCart |
|
|
8
|
-
| [**attachItemCart**](CartsApi.md#attachitemcart) | **POST** /admin-api/carts/{cart}/items/attach | Auto-generated: attachItemCart |
|
|
9
|
-
| [**destroyCart**](CartsApi.md#destroycart) | **DELETE** /admin-api/carts/{cart}/delete | Auto-generated: destroyCart |
|
|
10
|
-
| [**detachCouponCart**](CartsApi.md#detachcouponcart) | **DELETE** /admin-api/carts/{cart}/coupons/detach | Auto-generated: detachCouponCart |
|
|
11
|
-
| [**detachItemCart**](CartsApi.md#detachitemcart) | **DELETE** /admin-api/carts/{cart}/items/{lineItem}/detach | Auto-generated: detachItemCart |
|
|
12
|
-
| [**indexCart**](CartsApi.md#indexcart) | **POST** /admin-api/carts/list | Auto-generated: indexCart |
|
|
13
|
-
| [**sendPaymentLinkCart**](CartsApi.md#sendpaymentlinkcart) | **POST** /admin-api/carts/{cart}/send-payment-link | Auto-generated: sendPaymentLinkCart |
|
|
14
|
-
| [**showCart**](CartsApi.md#showcart) | **GET** /admin-api/carts/{cart} | Auto-generated: showCart |
|
|
15
|
-
| [**storeCart**](CartsApi.md#storecart) | **POST** /admin-api/carts/create | Auto-generated: storeCart |
|
|
16
|
-
| [**storeFromCartOrder**](CartsApi.md#storefromcartorder) | **POST** /admin-api/carts/{cart}/place-order | Auto-generated: storeFromCartOrder |
|
|
17
|
-
| [**updateCart**](CartsApi.md#updatecartoperation) | **PUT** /admin-api/carts/{cart}/update | Auto-generated: updateCart |
|
|
18
|
-
| [**updateItemCart**](CartsApi.md#updateitemcart) | **PUT** /admin-api/carts/{cart}/items/{lineItem}/update | Auto-generated: updateItemCart |
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## attachCouponCart
|
|
23
|
-
|
|
24
|
-
> CartResource attachCouponCart(cart, attachCartCouponRequest)
|
|
25
|
-
|
|
26
|
-
Auto-generated: attachCouponCart
|
|
27
|
-
|
|
28
|
-
### Example
|
|
29
|
-
|
|
30
|
-
```ts
|
|
31
|
-
import {
|
|
32
|
-
Configuration,
|
|
33
|
-
CartsApi,
|
|
34
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
35
|
-
import type { AttachCouponCartRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
36
|
-
|
|
37
|
-
async function example() {
|
|
38
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
39
|
-
const api = new CartsApi();
|
|
40
|
-
|
|
41
|
-
const body = {
|
|
42
|
-
// number | The id of the cart
|
|
43
|
-
cart: 56,
|
|
44
|
-
// AttachCartCouponRequest (optional)
|
|
45
|
-
attachCartCouponRequest: ...,
|
|
46
|
-
} satisfies AttachCouponCartRequest;
|
|
47
|
-
|
|
48
|
-
try {
|
|
49
|
-
const data = await api.attachCouponCart(body);
|
|
50
|
-
console.log(data);
|
|
51
|
-
} catch (error) {
|
|
52
|
-
console.error(error);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// Run the test
|
|
57
|
-
example().catch(console.error);
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### Parameters
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
| Name | Type | Description | Notes |
|
|
64
|
-
|------------- | ------------- | ------------- | -------------|
|
|
65
|
-
| **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
|
|
66
|
-
| **attachCartCouponRequest** | [AttachCartCouponRequest](AttachCartCouponRequest.md) | | [Optional] |
|
|
67
|
-
|
|
68
|
-
### Return type
|
|
69
|
-
|
|
70
|
-
[**CartResource**](CartResource.md)
|
|
71
|
-
|
|
72
|
-
### Authorization
|
|
73
|
-
|
|
74
|
-
No authorization required
|
|
75
|
-
|
|
76
|
-
### HTTP request headers
|
|
77
|
-
|
|
78
|
-
- **Content-Type**: `application/json`
|
|
79
|
-
- **Accept**: `application/json`
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
### HTTP response details
|
|
83
|
-
| Status code | Description | Response headers |
|
|
84
|
-
|-------------|-------------|------------------|
|
|
85
|
-
| **200** | Successful resource response | - |
|
|
86
|
-
|
|
87
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
## attachItemCart
|
|
91
|
-
|
|
92
|
-
> CartResource attachItemCart(cart, attachCartItemRequest)
|
|
93
|
-
|
|
94
|
-
Auto-generated: attachItemCart
|
|
95
|
-
|
|
96
|
-
### Example
|
|
97
|
-
|
|
98
|
-
```ts
|
|
99
|
-
import {
|
|
100
|
-
Configuration,
|
|
101
|
-
CartsApi,
|
|
102
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
103
|
-
import type { AttachItemCartRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
104
|
-
|
|
105
|
-
async function example() {
|
|
106
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
107
|
-
const api = new CartsApi();
|
|
108
|
-
|
|
109
|
-
const body = {
|
|
110
|
-
// number | The id of the cart
|
|
111
|
-
cart: 56,
|
|
112
|
-
// AttachCartItemRequest (optional)
|
|
113
|
-
attachCartItemRequest: ...,
|
|
114
|
-
} satisfies AttachItemCartRequest;
|
|
115
|
-
|
|
116
|
-
try {
|
|
117
|
-
const data = await api.attachItemCart(body);
|
|
118
|
-
console.log(data);
|
|
119
|
-
} catch (error) {
|
|
120
|
-
console.error(error);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// Run the test
|
|
125
|
-
example().catch(console.error);
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### Parameters
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
| Name | Type | Description | Notes |
|
|
132
|
-
|------------- | ------------- | ------------- | -------------|
|
|
133
|
-
| **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
|
|
134
|
-
| **attachCartItemRequest** | [AttachCartItemRequest](AttachCartItemRequest.md) | | [Optional] |
|
|
135
|
-
|
|
136
|
-
### Return type
|
|
137
|
-
|
|
138
|
-
[**CartResource**](CartResource.md)
|
|
139
|
-
|
|
140
|
-
### Authorization
|
|
141
|
-
|
|
142
|
-
No authorization required
|
|
143
|
-
|
|
144
|
-
### HTTP request headers
|
|
145
|
-
|
|
146
|
-
- **Content-Type**: `application/json`
|
|
147
|
-
- **Accept**: `application/json`
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
### HTTP response details
|
|
151
|
-
| Status code | Description | Response headers |
|
|
152
|
-
|-------------|-------------|------------------|
|
|
153
|
-
| **200** | Successful resource response | - |
|
|
154
|
-
|
|
155
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
## destroyCart
|
|
159
|
-
|
|
160
|
-
> GenericResponse destroyCart(cart)
|
|
161
|
-
|
|
162
|
-
Auto-generated: destroyCart
|
|
163
|
-
|
|
164
|
-
### Example
|
|
165
|
-
|
|
166
|
-
```ts
|
|
167
|
-
import {
|
|
168
|
-
Configuration,
|
|
169
|
-
CartsApi,
|
|
170
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
171
|
-
import type { DestroyCartRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
172
|
-
|
|
173
|
-
async function example() {
|
|
174
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
175
|
-
const api = new CartsApi();
|
|
176
|
-
|
|
177
|
-
const body = {
|
|
178
|
-
// number | The id of the cart
|
|
179
|
-
cart: 56,
|
|
180
|
-
} satisfies DestroyCartRequest;
|
|
181
|
-
|
|
182
|
-
try {
|
|
183
|
-
const data = await api.destroyCart(body);
|
|
184
|
-
console.log(data);
|
|
185
|
-
} catch (error) {
|
|
186
|
-
console.error(error);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
// Run the test
|
|
191
|
-
example().catch(console.error);
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
### Parameters
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
| Name | Type | Description | Notes |
|
|
198
|
-
|------------- | ------------- | ------------- | -------------|
|
|
199
|
-
| **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
|
|
200
|
-
|
|
201
|
-
### Return type
|
|
202
|
-
|
|
203
|
-
[**GenericResponse**](GenericResponse.md)
|
|
204
|
-
|
|
205
|
-
### Authorization
|
|
206
|
-
|
|
207
|
-
No authorization required
|
|
208
|
-
|
|
209
|
-
### HTTP request headers
|
|
210
|
-
|
|
211
|
-
- **Content-Type**: Not defined
|
|
212
|
-
- **Accept**: `application/json`
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
### HTTP response details
|
|
216
|
-
| Status code | Description | Response headers |
|
|
217
|
-
|-------------|-------------|------------------|
|
|
218
|
-
| **200** | \\JsonResponse | - |
|
|
219
|
-
|
|
220
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
## detachCouponCart
|
|
224
|
-
|
|
225
|
-
> CartResource detachCouponCart(cart, detachCartCouponRequest)
|
|
226
|
-
|
|
227
|
-
Auto-generated: detachCouponCart
|
|
228
|
-
|
|
229
|
-
### Example
|
|
230
|
-
|
|
231
|
-
```ts
|
|
232
|
-
import {
|
|
233
|
-
Configuration,
|
|
234
|
-
CartsApi,
|
|
235
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
236
|
-
import type { DetachCouponCartRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
237
|
-
|
|
238
|
-
async function example() {
|
|
239
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
240
|
-
const api = new CartsApi();
|
|
241
|
-
|
|
242
|
-
const body = {
|
|
243
|
-
// number | The id of the cart
|
|
244
|
-
cart: 56,
|
|
245
|
-
// DetachCartCouponRequest (optional)
|
|
246
|
-
detachCartCouponRequest: ...,
|
|
247
|
-
} satisfies DetachCouponCartRequest;
|
|
248
|
-
|
|
249
|
-
try {
|
|
250
|
-
const data = await api.detachCouponCart(body);
|
|
251
|
-
console.log(data);
|
|
252
|
-
} catch (error) {
|
|
253
|
-
console.error(error);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
// Run the test
|
|
258
|
-
example().catch(console.error);
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
### Parameters
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
| Name | Type | Description | Notes |
|
|
265
|
-
|------------- | ------------- | ------------- | -------------|
|
|
266
|
-
| **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
|
|
267
|
-
| **detachCartCouponRequest** | [DetachCartCouponRequest](DetachCartCouponRequest.md) | | [Optional] |
|
|
268
|
-
|
|
269
|
-
### Return type
|
|
270
|
-
|
|
271
|
-
[**CartResource**](CartResource.md)
|
|
272
|
-
|
|
273
|
-
### Authorization
|
|
274
|
-
|
|
275
|
-
No authorization required
|
|
276
|
-
|
|
277
|
-
### HTTP request headers
|
|
278
|
-
|
|
279
|
-
- **Content-Type**: `application/json`
|
|
280
|
-
- **Accept**: `application/json`
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
### HTTP response details
|
|
284
|
-
| Status code | Description | Response headers |
|
|
285
|
-
|-------------|-------------|------------------|
|
|
286
|
-
| **200** | Successful resource response | - |
|
|
287
|
-
|
|
288
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
## detachItemCart
|
|
292
|
-
|
|
293
|
-
> CartResource detachItemCart(cart, lineItem)
|
|
294
|
-
|
|
295
|
-
Auto-generated: detachItemCart
|
|
296
|
-
|
|
297
|
-
### Example
|
|
298
|
-
|
|
299
|
-
```ts
|
|
300
|
-
import {
|
|
301
|
-
Configuration,
|
|
302
|
-
CartsApi,
|
|
303
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
304
|
-
import type { DetachItemCartRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
305
|
-
|
|
306
|
-
async function example() {
|
|
307
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
308
|
-
const api = new CartsApi();
|
|
309
|
-
|
|
310
|
-
const body = {
|
|
311
|
-
// number | The id of the cart
|
|
312
|
-
cart: 56,
|
|
313
|
-
// number | The id of the lineItem
|
|
314
|
-
lineItem: 56,
|
|
315
|
-
} satisfies DetachItemCartRequest;
|
|
316
|
-
|
|
317
|
-
try {
|
|
318
|
-
const data = await api.detachItemCart(body);
|
|
319
|
-
console.log(data);
|
|
320
|
-
} catch (error) {
|
|
321
|
-
console.error(error);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
// Run the test
|
|
326
|
-
example().catch(console.error);
|
|
327
|
-
```
|
|
328
|
-
|
|
329
|
-
### Parameters
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
| Name | Type | Description | Notes |
|
|
333
|
-
|------------- | ------------- | ------------- | -------------|
|
|
334
|
-
| **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
|
|
335
|
-
| **lineItem** | `number` | The id of the lineItem | [Defaults to `undefined`] |
|
|
336
|
-
|
|
337
|
-
### Return type
|
|
338
|
-
|
|
339
|
-
[**CartResource**](CartResource.md)
|
|
340
|
-
|
|
341
|
-
### Authorization
|
|
342
|
-
|
|
343
|
-
No authorization required
|
|
344
|
-
|
|
345
|
-
### HTTP request headers
|
|
346
|
-
|
|
347
|
-
- **Content-Type**: Not defined
|
|
348
|
-
- **Accept**: `application/json`
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
### HTTP response details
|
|
352
|
-
| Status code | Description | Response headers |
|
|
353
|
-
|-------------|-------------|------------------|
|
|
354
|
-
| **200** | Successful resource response | - |
|
|
355
|
-
|
|
356
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
## indexCart
|
|
360
|
-
|
|
361
|
-
> PaginatedCartListResourceResponse indexCart(searchCartsRequest)
|
|
362
|
-
|
|
363
|
-
Auto-generated: indexCart
|
|
364
|
-
|
|
365
|
-
### Example
|
|
366
|
-
|
|
367
|
-
```ts
|
|
368
|
-
import {
|
|
369
|
-
Configuration,
|
|
370
|
-
CartsApi,
|
|
371
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
372
|
-
import type { IndexCartRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
373
|
-
|
|
374
|
-
async function example() {
|
|
375
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
376
|
-
const api = new CartsApi();
|
|
377
|
-
|
|
378
|
-
const body = {
|
|
379
|
-
// SearchCartsRequest (optional)
|
|
380
|
-
searchCartsRequest: ...,
|
|
381
|
-
} satisfies IndexCartRequest;
|
|
382
|
-
|
|
383
|
-
try {
|
|
384
|
-
const data = await api.indexCart(body);
|
|
385
|
-
console.log(data);
|
|
386
|
-
} catch (error) {
|
|
387
|
-
console.error(error);
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
// Run the test
|
|
392
|
-
example().catch(console.error);
|
|
393
|
-
```
|
|
394
|
-
|
|
395
|
-
### Parameters
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
| Name | Type | Description | Notes |
|
|
399
|
-
|------------- | ------------- | ------------- | -------------|
|
|
400
|
-
| **searchCartsRequest** | [SearchCartsRequest](SearchCartsRequest.md) | | [Optional] |
|
|
401
|
-
|
|
402
|
-
### Return type
|
|
403
|
-
|
|
404
|
-
[**PaginatedCartListResourceResponse**](PaginatedCartListResourceResponse.md)
|
|
405
|
-
|
|
406
|
-
### Authorization
|
|
407
|
-
|
|
408
|
-
No authorization required
|
|
409
|
-
|
|
410
|
-
### HTTP request headers
|
|
411
|
-
|
|
412
|
-
- **Content-Type**: `application/json`
|
|
413
|
-
- **Accept**: `application/json`
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
### HTTP response details
|
|
417
|
-
| Status code | Description | Response headers |
|
|
418
|
-
|-------------|-------------|------------------|
|
|
419
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\CartListResource[]>> | - |
|
|
420
|
-
|
|
421
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
## sendPaymentLinkCart
|
|
425
|
-
|
|
426
|
-
> CartResource sendPaymentLinkCart(cart)
|
|
427
|
-
|
|
428
|
-
Auto-generated: sendPaymentLinkCart
|
|
429
|
-
|
|
430
|
-
### Example
|
|
431
|
-
|
|
432
|
-
```ts
|
|
433
|
-
import {
|
|
434
|
-
Configuration,
|
|
435
|
-
CartsApi,
|
|
436
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
437
|
-
import type { SendPaymentLinkCartRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
438
|
-
|
|
439
|
-
async function example() {
|
|
440
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
441
|
-
const api = new CartsApi();
|
|
442
|
-
|
|
443
|
-
const body = {
|
|
444
|
-
// number | The id of the cart
|
|
445
|
-
cart: 56,
|
|
446
|
-
} satisfies SendPaymentLinkCartRequest;
|
|
447
|
-
|
|
448
|
-
try {
|
|
449
|
-
const data = await api.sendPaymentLinkCart(body);
|
|
450
|
-
console.log(data);
|
|
451
|
-
} catch (error) {
|
|
452
|
-
console.error(error);
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
// Run the test
|
|
457
|
-
example().catch(console.error);
|
|
458
|
-
```
|
|
459
|
-
|
|
460
|
-
### Parameters
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
| Name | Type | Description | Notes |
|
|
464
|
-
|------------- | ------------- | ------------- | -------------|
|
|
465
|
-
| **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
|
|
466
|
-
|
|
467
|
-
### Return type
|
|
468
|
-
|
|
469
|
-
[**CartResource**](CartResource.md)
|
|
470
|
-
|
|
471
|
-
### Authorization
|
|
472
|
-
|
|
473
|
-
No authorization required
|
|
474
|
-
|
|
475
|
-
### HTTP request headers
|
|
476
|
-
|
|
477
|
-
- **Content-Type**: Not defined
|
|
478
|
-
- **Accept**: `application/json`
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
### HTTP response details
|
|
482
|
-
| Status code | Description | Response headers |
|
|
483
|
-
|-------------|-------------|------------------|
|
|
484
|
-
| **200** | Successful resource response | - |
|
|
485
|
-
|
|
486
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
## showCart
|
|
490
|
-
|
|
491
|
-
> CartResource showCart(cart)
|
|
492
|
-
|
|
493
|
-
Auto-generated: showCart
|
|
494
|
-
|
|
495
|
-
### Example
|
|
496
|
-
|
|
497
|
-
```ts
|
|
498
|
-
import {
|
|
499
|
-
Configuration,
|
|
500
|
-
CartsApi,
|
|
501
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
502
|
-
import type { ShowCartRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
503
|
-
|
|
504
|
-
async function example() {
|
|
505
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
506
|
-
const api = new CartsApi();
|
|
507
|
-
|
|
508
|
-
const body = {
|
|
509
|
-
// number | The id of the cart
|
|
510
|
-
cart: 56,
|
|
511
|
-
} satisfies ShowCartRequest;
|
|
512
|
-
|
|
513
|
-
try {
|
|
514
|
-
const data = await api.showCart(body);
|
|
515
|
-
console.log(data);
|
|
516
|
-
} catch (error) {
|
|
517
|
-
console.error(error);
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
// Run the test
|
|
522
|
-
example().catch(console.error);
|
|
523
|
-
```
|
|
524
|
-
|
|
525
|
-
### Parameters
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
| Name | Type | Description | Notes |
|
|
529
|
-
|------------- | ------------- | ------------- | -------------|
|
|
530
|
-
| **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
|
|
531
|
-
|
|
532
|
-
### Return type
|
|
533
|
-
|
|
534
|
-
[**CartResource**](CartResource.md)
|
|
535
|
-
|
|
536
|
-
### Authorization
|
|
537
|
-
|
|
538
|
-
No authorization required
|
|
539
|
-
|
|
540
|
-
### HTTP request headers
|
|
541
|
-
|
|
542
|
-
- **Content-Type**: Not defined
|
|
543
|
-
- **Accept**: `application/json`
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
### HTTP response details
|
|
547
|
-
| Status code | Description | Response headers |
|
|
548
|
-
|-------------|-------------|------------------|
|
|
549
|
-
| **200** | Successful resource response | - |
|
|
550
|
-
|
|
551
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
## storeCart
|
|
555
|
-
|
|
556
|
-
> CartResource storeCart(createCartRequest)
|
|
557
|
-
|
|
558
|
-
Auto-generated: storeCart
|
|
559
|
-
|
|
560
|
-
### Example
|
|
561
|
-
|
|
562
|
-
```ts
|
|
563
|
-
import {
|
|
564
|
-
Configuration,
|
|
565
|
-
CartsApi,
|
|
566
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
567
|
-
import type { StoreCartRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
568
|
-
|
|
569
|
-
async function example() {
|
|
570
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
571
|
-
const api = new CartsApi();
|
|
572
|
-
|
|
573
|
-
const body = {
|
|
574
|
-
// CreateCartRequest (optional)
|
|
575
|
-
createCartRequest: ...,
|
|
576
|
-
} satisfies StoreCartRequest;
|
|
577
|
-
|
|
578
|
-
try {
|
|
579
|
-
const data = await api.storeCart(body);
|
|
580
|
-
console.log(data);
|
|
581
|
-
} catch (error) {
|
|
582
|
-
console.error(error);
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
// Run the test
|
|
587
|
-
example().catch(console.error);
|
|
588
|
-
```
|
|
589
|
-
|
|
590
|
-
### Parameters
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
| Name | Type | Description | Notes |
|
|
594
|
-
|------------- | ------------- | ------------- | -------------|
|
|
595
|
-
| **createCartRequest** | [CreateCartRequest](CreateCartRequest.md) | | [Optional] |
|
|
596
|
-
|
|
597
|
-
### Return type
|
|
598
|
-
|
|
599
|
-
[**CartResource**](CartResource.md)
|
|
600
|
-
|
|
601
|
-
### Authorization
|
|
602
|
-
|
|
603
|
-
No authorization required
|
|
604
|
-
|
|
605
|
-
### HTTP request headers
|
|
606
|
-
|
|
607
|
-
- **Content-Type**: `application/json`
|
|
608
|
-
- **Accept**: `application/json`
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
### HTTP response details
|
|
612
|
-
| Status code | Description | Response headers |
|
|
613
|
-
|-------------|-------------|------------------|
|
|
614
|
-
| **200** | Successful resource response | - |
|
|
615
|
-
|
|
616
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
## storeFromCartOrder
|
|
620
|
-
|
|
621
|
-
> AdminOrderResource storeFromCartOrder(cart)
|
|
622
|
-
|
|
623
|
-
Auto-generated: storeFromCartOrder
|
|
624
|
-
|
|
625
|
-
### Example
|
|
626
|
-
|
|
627
|
-
```ts
|
|
628
|
-
import {
|
|
629
|
-
Configuration,
|
|
630
|
-
CartsApi,
|
|
631
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
632
|
-
import type { StoreFromCartOrderRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
633
|
-
|
|
634
|
-
async function example() {
|
|
635
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
636
|
-
const api = new CartsApi();
|
|
637
|
-
|
|
638
|
-
const body = {
|
|
639
|
-
// number | The id of the cart
|
|
640
|
-
cart: 56,
|
|
641
|
-
} satisfies StoreFromCartOrderRequest;
|
|
642
|
-
|
|
643
|
-
try {
|
|
644
|
-
const data = await api.storeFromCartOrder(body);
|
|
645
|
-
console.log(data);
|
|
646
|
-
} catch (error) {
|
|
647
|
-
console.error(error);
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
// Run the test
|
|
652
|
-
example().catch(console.error);
|
|
653
|
-
```
|
|
654
|
-
|
|
655
|
-
### Parameters
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
| Name | Type | Description | Notes |
|
|
659
|
-
|------------- | ------------- | ------------- | -------------|
|
|
660
|
-
| **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
|
|
661
|
-
|
|
662
|
-
### Return type
|
|
663
|
-
|
|
664
|
-
[**AdminOrderResource**](AdminOrderResource.md)
|
|
665
|
-
|
|
666
|
-
### Authorization
|
|
667
|
-
|
|
668
|
-
No authorization required
|
|
669
|
-
|
|
670
|
-
### HTTP request headers
|
|
671
|
-
|
|
672
|
-
- **Content-Type**: Not defined
|
|
673
|
-
- **Accept**: `application/json`
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
### HTTP response details
|
|
677
|
-
| Status code | Description | Response headers |
|
|
678
|
-
|-------------|-------------|------------------|
|
|
679
|
-
| **200** | Successful resource response | - |
|
|
680
|
-
|
|
681
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
## updateCart
|
|
685
|
-
|
|
686
|
-
> CartResource updateCart(cart, updateCartRequest)
|
|
687
|
-
|
|
688
|
-
Auto-generated: updateCart
|
|
689
|
-
|
|
690
|
-
### Example
|
|
691
|
-
|
|
692
|
-
```ts
|
|
693
|
-
import {
|
|
694
|
-
Configuration,
|
|
695
|
-
CartsApi,
|
|
696
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
697
|
-
import type { UpdateCartOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
698
|
-
|
|
699
|
-
async function example() {
|
|
700
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
701
|
-
const api = new CartsApi();
|
|
702
|
-
|
|
703
|
-
const body = {
|
|
704
|
-
// number | The id of the cart
|
|
705
|
-
cart: 56,
|
|
706
|
-
// UpdateCartRequest (optional)
|
|
707
|
-
updateCartRequest: ...,
|
|
708
|
-
} satisfies UpdateCartOperationRequest;
|
|
709
|
-
|
|
710
|
-
try {
|
|
711
|
-
const data = await api.updateCart(body);
|
|
712
|
-
console.log(data);
|
|
713
|
-
} catch (error) {
|
|
714
|
-
console.error(error);
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
// Run the test
|
|
719
|
-
example().catch(console.error);
|
|
720
|
-
```
|
|
721
|
-
|
|
722
|
-
### Parameters
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
| Name | Type | Description | Notes |
|
|
726
|
-
|------------- | ------------- | ------------- | -------------|
|
|
727
|
-
| **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
|
|
728
|
-
| **updateCartRequest** | [UpdateCartRequest](UpdateCartRequest.md) | | [Optional] |
|
|
729
|
-
|
|
730
|
-
### Return type
|
|
731
|
-
|
|
732
|
-
[**CartResource**](CartResource.md)
|
|
733
|
-
|
|
734
|
-
### Authorization
|
|
735
|
-
|
|
736
|
-
No authorization required
|
|
737
|
-
|
|
738
|
-
### HTTP request headers
|
|
739
|
-
|
|
740
|
-
- **Content-Type**: `application/json`
|
|
741
|
-
- **Accept**: `application/json`
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
### HTTP response details
|
|
745
|
-
| Status code | Description | Response headers |
|
|
746
|
-
|-------------|-------------|------------------|
|
|
747
|
-
| **200** | Successful resource response | - |
|
|
748
|
-
|
|
749
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
## updateItemCart
|
|
753
|
-
|
|
754
|
-
> CartResource updateItemCart(cart, lineItem, updateCartItemRequest)
|
|
755
|
-
|
|
756
|
-
Auto-generated: updateItemCart
|
|
757
|
-
|
|
758
|
-
### Example
|
|
759
|
-
|
|
760
|
-
```ts
|
|
761
|
-
import {
|
|
762
|
-
Configuration,
|
|
763
|
-
CartsApi,
|
|
764
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
765
|
-
import type { UpdateItemCartRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
766
|
-
|
|
767
|
-
async function example() {
|
|
768
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
769
|
-
const api = new CartsApi();
|
|
770
|
-
|
|
771
|
-
const body = {
|
|
772
|
-
// number | The id of the cart
|
|
773
|
-
cart: 56,
|
|
774
|
-
// number | The id of the lineItem
|
|
775
|
-
lineItem: 56,
|
|
776
|
-
// UpdateCartItemRequest (optional)
|
|
777
|
-
updateCartItemRequest: ...,
|
|
778
|
-
} satisfies UpdateItemCartRequest;
|
|
779
|
-
|
|
780
|
-
try {
|
|
781
|
-
const data = await api.updateItemCart(body);
|
|
782
|
-
console.log(data);
|
|
783
|
-
} catch (error) {
|
|
784
|
-
console.error(error);
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
// Run the test
|
|
789
|
-
example().catch(console.error);
|
|
790
|
-
```
|
|
791
|
-
|
|
792
|
-
### Parameters
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
| Name | Type | Description | Notes |
|
|
796
|
-
|------------- | ------------- | ------------- | -------------|
|
|
797
|
-
| **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
|
|
798
|
-
| **lineItem** | `number` | The id of the lineItem | [Defaults to `undefined`] |
|
|
799
|
-
| **updateCartItemRequest** | [UpdateCartItemRequest](UpdateCartItemRequest.md) | | [Optional] |
|
|
800
|
-
|
|
801
|
-
### Return type
|
|
802
|
-
|
|
803
|
-
[**CartResource**](CartResource.md)
|
|
804
|
-
|
|
805
|
-
### Authorization
|
|
806
|
-
|
|
807
|
-
No authorization required
|
|
808
|
-
|
|
809
|
-
### HTTP request headers
|
|
810
|
-
|
|
811
|
-
- **Content-Type**: `application/json`
|
|
812
|
-
- **Accept**: `application/json`
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
### HTTP response details
|
|
816
|
-
| Status code | Description | Response headers |
|
|
817
|
-
|-------------|-------------|------------------|
|
|
818
|
-
| **200** | Successful resource response | - |
|
|
819
|
-
|
|
820
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
821
|
-
|