ce-storefront 0.3.3 → 0.3.5
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 +26 -37
- package/docs/sdks/{cestorefrontpayments → cestorefrontorderspayments}/README.md +1 -1
- package/docs/sdks/customers/README.md +236 -0
- package/docs/sdks/{paymentsapijuspay → juspay}/README.md +12 -12
- package/docs/sdks/orders/README.md +80 -1
- package/docs/sdks/payments/README.md +242 -2
- package/docs/sdks/products/README.md +1 -1
- package/esm/funcs/catalogProductsGet.d.ts +1 -1
- package/esm/funcs/catalogProductsGet.js +1 -1
- package/esm/funcs/{customersAPIGetCustomersId.d.ts → customersGetCustomersId.d.ts} +2 -2
- package/esm/funcs/customersGetCustomersId.d.ts.map +1 -0
- package/esm/funcs/{customersAPIGetCustomersId.js → customersGetCustomersId.js} +2 -2
- package/esm/funcs/customersGetCustomersId.js.map +1 -0
- package/esm/funcs/{customersAPIPostCustomers.d.ts → customersPostCustomers.d.ts} +2 -2
- package/esm/funcs/customersPostCustomers.d.ts.map +1 -0
- package/esm/funcs/{customersAPIPostCustomers.js → customersPostCustomers.js} +2 -2
- package/esm/funcs/customersPostCustomers.js.map +1 -0
- package/esm/funcs/{customersAPIPutCustomersId.d.ts → customersPutCustomersId.d.ts} +2 -2
- package/esm/funcs/customersPutCustomersId.d.ts.map +1 -0
- package/esm/funcs/{customersAPIPutCustomersId.js → customersPutCustomersId.js} +2 -2
- package/esm/funcs/{customersAPIPostCustomers.js.map → customersPutCustomersId.js.map} +1 -1
- package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts → juspayGetPaymentsJuspayCustomer.d.ts} +2 -2
- package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.js → juspayGetPaymentsJuspayCustomer.js} +2 -2
- package/esm/funcs/juspayGetPaymentsJuspayCustomer.js.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts → juspayPostPaymentsJuspayCreateCustomer.d.ts} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js → juspayPostPaymentsJuspayCreateCustomer.js} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts → juspayPostPaymentsJuspayCreateOrder.d.ts} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js → juspayPostPaymentsJuspayCreateOrder.js} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.js.map +1 -0
- package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.d.ts → ordersGetOrdersIdPaymentStatus.d.ts} +2 -2
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +1 -0
- package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.js → ordersGetOrdersIdPaymentStatus.js} +2 -2
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +1 -0
- package/esm/funcs/paymentsGetMethods.d.ts +1 -1
- package/esm/funcs/paymentsGetMethods.d.ts.map +1 -1
- package/esm/funcs/paymentsGetMethods.js +3 -3
- package/esm/funcs/paymentsGetMethods.js.map +1 -1
- package/esm/funcs/{paymentsAPIGetPaymentsCards.d.ts → paymentsGetPaymentsCards.d.ts} +2 -2
- package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsCards.js → paymentsGetPaymentsCards.js} +2 -2
- package/esm/funcs/paymentsGetPaymentsCards.js.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.d.ts → paymentsGetPaymentsVerifyVpa.d.ts} +2 -2
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.js → paymentsGetPaymentsVerifyVpa.js} +2 -2
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +1 -0
- package/esm/funcs/{paymentsAPIPostPaymentsCards.d.ts → paymentsPostPaymentsCards.d.ts} +2 -2
- package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIPostPaymentsCards.js → paymentsPostPaymentsCards.js} +2 -2
- package/esm/funcs/paymentsPostPaymentsCards.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/models/components/anonymoususer.d.ts +87 -0
- package/esm/models/components/anonymoususer.d.ts.map +1 -0
- package/esm/models/components/anonymoususer.js +78 -0
- package/esm/models/components/anonymoususer.js.map +1 -0
- package/esm/models/components/cart.d.ts +1 -1
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +1 -1
- package/esm/models/components/cart.js.map +1 -1
- package/esm/models/components/createcustomer.d.ts +1 -1
- package/esm/models/components/createcustomer.d.ts.map +1 -1
- package/esm/models/components/createcustomer.js +1 -1
- package/esm/models/components/createcustomer.js.map +1 -1
- package/esm/models/components/{customeraddressinput.d.ts → customeraddress.d.ts} +33 -33
- package/esm/models/components/customeraddress.d.ts.map +1 -0
- package/esm/models/components/{customeraddressinput.js → customeraddress.js} +37 -37
- package/esm/models/components/customeraddress.js.map +1 -0
- package/esm/models/components/freegoodspromotion.d.ts +2 -2
- package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
- package/esm/models/components/freegoodspromotion.js +2 -2
- package/esm/models/components/freegoodspromotion.js.map +1 -1
- package/esm/models/components/index.d.ts +3 -3
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +3 -3
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/orderdetail.d.ts +1 -1
- package/esm/models/components/orderdetail.d.ts.map +1 -1
- package/esm/models/components/orderdetail.js +1 -1
- package/esm/models/components/orderdetail.js.map +1 -1
- package/esm/models/components/{productlist.d.ts → product.d.ts} +14 -16
- package/esm/models/components/product.d.ts.map +1 -0
- package/esm/models/components/{productlist.js → product.js} +16 -20
- package/esm/models/components/product.js.map +1 -0
- package/esm/models/components/productdetail.d.ts +4 -4
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +4 -4
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productlistresponse.d.ts +3 -3
- package/esm/models/components/productlistresponse.d.ts.map +1 -1
- package/esm/models/components/productlistresponse.js +3 -3
- package/esm/models/components/productlistresponse.js.map +1 -1
- package/esm/models/components/productpromotion.d.ts +11 -5
- package/esm/models/components/productpromotion.d.ts.map +1 -1
- package/esm/models/operations/getpaymentmethods.d.ts +143 -0
- package/esm/models/operations/getpaymentmethods.d.ts.map +1 -0
- package/esm/models/operations/{getpaymentspaymentmethods.js → getpaymentmethods.js} +42 -44
- package/esm/models/operations/getpaymentmethods.js.map +1 -0
- package/esm/models/operations/getsimilar.d.ts +2 -27
- package/esm/models/operations/getsimilar.d.ts.map +1 -1
- package/esm/models/operations/getsimilar.js +2 -27
- package/esm/models/operations/getsimilar.js.map +1 -1
- package/esm/models/operations/index.d.ts +1 -2
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +1 -2
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/postauthanonymous.d.ts +2 -2
- package/esm/models/operations/postauthanonymous.d.ts.map +1 -1
- package/esm/models/operations/postauthanonymous.js +2 -2
- package/esm/models/operations/postauthanonymous.js.map +1 -1
- package/esm/models/operations/postcartitemid.d.ts +15 -15
- package/esm/models/operations/postcartitemid.d.ts.map +1 -1
- package/esm/models/operations/postcartitemid.js +15 -15
- package/esm/models/operations/postcartitemid.js.map +1 -1
- package/esm/sdk/{cestorefrontpayments.d.ts → cestorefrontorderspayments.d.ts} +2 -2
- package/esm/sdk/cestorefrontorderspayments.d.ts.map +1 -0
- package/esm/sdk/{cestorefrontpayments.js → cestorefrontorderspayments.js} +2 -2
- package/esm/sdk/cestorefrontorderspayments.js.map +1 -0
- package/esm/sdk/customers.d.ts +24 -1
- package/esm/sdk/customers.d.ts.map +1 -1
- package/esm/sdk/customers.js +31 -0
- package/esm/sdk/customers.js.map +1 -1
- package/esm/sdk/{paymentsapijuspay.d.ts → juspay.d.ts} +2 -2
- package/esm/sdk/juspay.d.ts.map +1 -0
- package/esm/sdk/{paymentsapijuspay.js → juspay.js} +8 -8
- package/esm/sdk/juspay.js.map +1 -0
- package/esm/sdk/orders.d.ts +9 -2
- package/esm/sdk/orders.d.ts.map +1 -1
- package/esm/sdk/orders.js +12 -2
- package/esm/sdk/orders.js.map +1 -1
- package/esm/sdk/payments.d.ts +23 -1
- package/esm/sdk/payments.d.ts.map +1 -1
- package/esm/sdk/payments.js +31 -0
- package/esm/sdk/payments.js.map +1 -1
- package/esm/sdk/products.d.ts +1 -1
- package/esm/sdk/products.js +1 -1
- package/esm/sdk/sdk.d.ts +3 -12
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +3 -15
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/catalogProductsGet.ts +1 -1
- package/src/funcs/{customersAPIGetCustomersId.ts → customersGetCustomersId.ts} +1 -1
- package/src/funcs/{customersAPIPostCustomers.ts → customersPostCustomers.ts} +1 -1
- package/src/funcs/{customersAPIPutCustomersId.ts → customersPutCustomersId.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.ts → juspayGetPaymentsJuspayCustomer.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.ts → juspayPostPaymentsJuspayCreateCustomer.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.ts → juspayPostPaymentsJuspayCreateOrder.ts} +1 -1
- package/src/funcs/{ordersAPIGetOrdersIdPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts} +1 -1
- package/src/funcs/paymentsGetMethods.ts +6 -7
- package/src/funcs/{paymentsAPIGetPaymentsCards.ts → paymentsGetPaymentsCards.ts} +1 -1
- package/src/funcs/{paymentsAPIGetPaymentsVerifyVpa.ts → paymentsGetPaymentsVerifyVpa.ts} +1 -1
- package/src/funcs/{paymentsAPIPostPaymentsCards.ts → paymentsPostPaymentsCards.ts} +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/anonymoususer.ts +167 -0
- package/src/models/components/cart.ts +1 -1
- package/src/models/components/createcustomer.ts +1 -1
- package/src/models/components/freegoodspromotion.ts +4 -4
- package/src/models/components/index.ts +3 -3
- package/src/models/components/orderdetail.ts +1 -1
- package/src/models/components/{productlist.ts → product.ts} +73 -78
- package/src/models/components/productdetail.ts +8 -8
- package/src/models/components/productlistresponse.ts +9 -9
- package/src/models/operations/{getpaymentspaymentmethods.ts → getpaymentmethods.ts} +68 -77
- package/src/models/operations/getsimilar.ts +4 -62
- package/src/models/operations/index.ts +1 -2
- package/src/models/operations/postauthanonymous.ts +4 -4
- package/src/models/operations/postcartitemid.ts +27 -25
- package/src/sdk/{cestorefrontpayments.ts → cestorefrontorderspayments.ts} +1 -1
- package/src/sdk/customers.ts +58 -1
- package/src/sdk/{paymentsapijuspay.ts → juspay.ts} +7 -7
- package/src/sdk/orders.ts +22 -4
- package/src/sdk/payments.ts +57 -2
- package/src/sdk/products.ts +1 -1
- package/src/sdk/sdk.ts +4 -22
- package/docs/sdks/customersapi/README.md +0 -321
- package/docs/sdks/ordersapi/README.md +0 -86
- package/docs/sdks/paymentsapi/README.md +0 -247
- package/esm/funcs/customersAPIGetCustomersId.d.ts.map +0 -1
- package/esm/funcs/customersAPIGetCustomersId.js.map +0 -1
- package/esm/funcs/customersAPIGetRecommendedProducts.d.ts +0 -16
- package/esm/funcs/customersAPIGetRecommendedProducts.d.ts.map +0 -1
- package/esm/funcs/customersAPIGetRecommendedProducts.js +0 -80
- package/esm/funcs/customersAPIGetRecommendedProducts.js.map +0 -1
- package/esm/funcs/customersAPIPostCustomers.d.ts.map +0 -1
- package/esm/funcs/customersAPIPutCustomersId.d.ts.map +0 -1
- package/esm/funcs/customersAPIPutCustomersId.js.map +0 -1
- package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.d.ts.map +0 -1
- package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.js.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsCards.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsCards.js.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js.map +0 -1
- package/esm/funcs/paymentsAPIPostPaymentsCards.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIPostPaymentsCards.js.map +0 -1
- package/esm/models/components/customeraddressinput.d.ts.map +0 -1
- package/esm/models/components/customeraddressinput.js.map +0 -1
- package/esm/models/components/productlist.d.ts.map +0 -1
- package/esm/models/components/productlist.js.map +0 -1
- package/esm/models/components/recommendedproduct.d.ts +0 -155
- package/esm/models/components/recommendedproduct.d.ts.map +0 -1
- package/esm/models/components/recommendedproduct.js +0 -193
- package/esm/models/components/recommendedproduct.js.map +0 -1
- package/esm/models/operations/getpaymentspaymentmethods.d.ts +0 -143
- package/esm/models/operations/getpaymentspaymentmethods.d.ts.map +0 -1
- package/esm/models/operations/getpaymentspaymentmethods.js.map +0 -1
- package/esm/models/operations/getrecommendedproducts.d.ts +0 -90
- package/esm/models/operations/getrecommendedproducts.d.ts.map +0 -1
- package/esm/models/operations/getrecommendedproducts.js +0 -87
- package/esm/models/operations/getrecommendedproducts.js.map +0 -1
- package/esm/sdk/cestorefrontpayments.d.ts.map +0 -1
- package/esm/sdk/cestorefrontpayments.js.map +0 -1
- package/esm/sdk/customersapi.d.ts +0 -34
- package/esm/sdk/customersapi.d.ts.map +0 -1
- package/esm/sdk/customersapi.js +0 -48
- package/esm/sdk/customersapi.js.map +0 -1
- package/esm/sdk/ordersapi.d.ts +0 -12
- package/esm/sdk/ordersapi.d.ts.map +0 -1
- package/esm/sdk/ordersapi.js +0 -18
- package/esm/sdk/ordersapi.js.map +0 -1
- package/esm/sdk/paymentsapi.d.ts +0 -27
- package/esm/sdk/paymentsapi.d.ts.map +0 -1
- package/esm/sdk/paymentsapi.js +0 -39
- package/esm/sdk/paymentsapi.js.map +0 -1
- package/esm/sdk/paymentsapijuspay.d.ts.map +0 -1
- package/esm/sdk/paymentsapijuspay.js.map +0 -1
- package/src/funcs/customersAPIGetRecommendedProducts.ts +0 -144
- package/src/models/components/recommendedproduct.ts +0 -385
- package/src/models/operations/getrecommendedproducts.ts +0 -206
- package/src/sdk/customersapi.ts +0 -82
- package/src/sdk/ordersapi.ts +0 -27
- package/src/sdk/paymentsapi.ts +0 -64
- package/src/models/components/{customeraddressinput.ts → customeraddress.ts} +60 -60
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class CeStorefrontOrdersPayments extends ClientSDK {
|
|
4
4
|
/**
|
|
5
5
|
* Retrieve order payments
|
|
6
6
|
*
|
|
@@ -9,4 +9,4 @@ export declare class CeStorefrontPayments extends ClientSDK {
|
|
|
9
9
|
*/
|
|
10
10
|
list(request: operations.GetOrdersIdPaymentsRequest, options?: RequestOptions): Promise<operations.GetOrdersIdPaymentsResponseBody>;
|
|
11
11
|
}
|
|
12
|
-
//# sourceMappingURL=
|
|
12
|
+
//# sourceMappingURL=cestorefrontorderspayments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cestorefrontorderspayments.d.ts","sourceRoot":"","sources":["../../src/sdk/cestorefrontorderspayments.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,0BAA2B,SAAQ,SAAS;IACvD;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAOvD"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { ordersPaymentsList } from "../funcs/ordersPaymentsList.js";
|
|
5
5
|
import { ClientSDK } from "../lib/sdks.js";
|
|
6
6
|
import { unwrapAsync } from "../types/fp.js";
|
|
7
|
-
export class
|
|
7
|
+
export class CeStorefrontOrdersPayments extends ClientSDK {
|
|
8
8
|
/**
|
|
9
9
|
* Retrieve order payments
|
|
10
10
|
*
|
|
@@ -15,4 +15,4 @@ export class CeStorefrontPayments extends ClientSDK {
|
|
|
15
15
|
return unwrapAsync(ordersPaymentsList(this, request, options));
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
//# sourceMappingURL=
|
|
18
|
+
//# sourceMappingURL=cestorefrontorderspayments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cestorefrontorderspayments.js","sourceRoot":"","sources":["../../src/sdk/cestorefrontorderspayments.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,0BAA2B,SAAQ,SAAS;IACvD;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAA8C,EAC9C,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/esm/sdk/customers.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { ClientSDK } from "../lib/sdks.js";
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as components from "../models/components/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
2
4
|
import { Addresses } from "./addresses.js";
|
|
3
5
|
import { Loyalty } from "./loyalty.js";
|
|
4
6
|
import { Reviews } from "./reviews.js";
|
|
@@ -9,5 +11,26 @@ export declare class Customers extends ClientSDK {
|
|
|
9
11
|
get loyalty(): Loyalty;
|
|
10
12
|
private _reviews?;
|
|
11
13
|
get reviews(): Reviews;
|
|
14
|
+
/**
|
|
15
|
+
* Create customer
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Create customer
|
|
19
|
+
*/
|
|
20
|
+
postCustomers(request: components.CreateCustomer, options?: RequestOptions): Promise<operations.PostCustomersResponseBody>;
|
|
21
|
+
/**
|
|
22
|
+
* Retrieve customer detail
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Retrieve customer detail.
|
|
26
|
+
*/
|
|
27
|
+
getCustomersId(request: operations.GetCustomersIdRequest, options?: RequestOptions): Promise<operations.GetCustomersIdResponseBody>;
|
|
28
|
+
/**
|
|
29
|
+
* Update customer detail
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Update customer detail
|
|
33
|
+
*/
|
|
34
|
+
putCustomersId(request: operations.PutCustomersIdRequest, options?: RequestOptions): Promise<operations.PutCustomersIdResponseBody>;
|
|
12
35
|
}
|
|
13
36
|
//# sourceMappingURL=customers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../src/sdk/customers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../src/sdk/customers.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,qBAAa,SAAU,SAAQ,SAAS;IACtC,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;;;;OAKG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,cAAc,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQhD;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQjD;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAOlD"}
|
package/esm/sdk/customers.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
+
import { customersGetCustomersId } from "../funcs/customersGetCustomersId.js";
|
|
5
|
+
import { customersPostCustomers } from "../funcs/customersPostCustomers.js";
|
|
6
|
+
import { customersPutCustomersId } from "../funcs/customersPutCustomersId.js";
|
|
4
7
|
import { ClientSDK } from "../lib/sdks.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
5
9
|
import { Addresses } from "./addresses.js";
|
|
6
10
|
import { Loyalty } from "./loyalty.js";
|
|
7
11
|
import { Reviews } from "./reviews.js";
|
|
@@ -15,5 +19,32 @@ export class Customers extends ClientSDK {
|
|
|
15
19
|
get reviews() {
|
|
16
20
|
return (this._reviews ?? (this._reviews = new Reviews(this._options)));
|
|
17
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Create customer
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Create customer
|
|
27
|
+
*/
|
|
28
|
+
async postCustomers(request, options) {
|
|
29
|
+
return unwrapAsync(customersPostCustomers(this, request, options));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve customer detail
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Retrieve customer detail.
|
|
36
|
+
*/
|
|
37
|
+
async getCustomersId(request, options) {
|
|
38
|
+
return unwrapAsync(customersGetCustomersId(this, request, options));
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Update customer detail
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* Update customer detail
|
|
45
|
+
*/
|
|
46
|
+
async putCustomersId(request, options) {
|
|
47
|
+
return unwrapAsync(customersPutCustomersId(this, request, options));
|
|
48
|
+
}
|
|
18
49
|
}
|
|
19
50
|
//# sourceMappingURL=customers.js.map
|
package/esm/sdk/customers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../src/sdk/customers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../src/sdk/customers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,OAAO,SAAU,SAAQ,SAAS;IAEtC,IAAI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,KAAf,IAAI,CAAC,UAAU,GAAK,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC5D,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAAkC,EAClC,OAAwB;QAExB,OAAO,WAAW,CAAC,sBAAsB,CACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,uBAAuB,CACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,uBAAuB,CACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as components from "../models/components/index.js";
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class Juspay extends ClientSDK {
|
|
5
5
|
/**
|
|
6
6
|
* Create order in juspay
|
|
7
7
|
*
|
|
@@ -25,4 +25,4 @@ export declare class PaymentsAPIJuspay extends ClientSDK {
|
|
|
25
25
|
*/
|
|
26
26
|
getPaymentsJuspayCustomer(request: operations.GetPaymentsJuspayCustomerRequest, options?: RequestOptions): Promise<operations.GetPaymentsJuspayCustomerResponseBody>;
|
|
27
27
|
}
|
|
28
|
-
//# sourceMappingURL=
|
|
28
|
+
//# sourceMappingURL=juspay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"juspay.d.ts","sourceRoot":"","sources":["../../src/sdk/juspay.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,MAAO,SAAQ,SAAS;IACnC;;;;;;OAMG;IACG,6BAA6B,CACjC,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yCAAyC,CAAC;IAQhE;;;;;OAKG;IACG,gCAAgC,CACpC,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4CAA4C,CAAC;IAQnE;;;;;OAKG;IACG,yBAAyB,CAC7B,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;CAO7D"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { juspayGetPaymentsJuspayCustomer } from "../funcs/juspayGetPaymentsJuspayCustomer.js";
|
|
5
|
+
import { juspayPostPaymentsJuspayCreateCustomer } from "../funcs/juspayPostPaymentsJuspayCreateCustomer.js";
|
|
6
|
+
import { juspayPostPaymentsJuspayCreateOrder } from "../funcs/juspayPostPaymentsJuspayCreateOrder.js";
|
|
7
7
|
import { ClientSDK } from "../lib/sdks.js";
|
|
8
8
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
-
export class
|
|
9
|
+
export class Juspay extends ClientSDK {
|
|
10
10
|
/**
|
|
11
11
|
* Create order in juspay
|
|
12
12
|
*
|
|
@@ -15,7 +15,7 @@ export class PaymentsAPIJuspay extends ClientSDK {
|
|
|
15
15
|
* To be used for Express Checkout integration.
|
|
16
16
|
*/
|
|
17
17
|
async postPaymentsJuspayCreateOrder(request, options) {
|
|
18
|
-
return unwrapAsync(
|
|
18
|
+
return unwrapAsync(juspayPostPaymentsJuspayCreateOrder(this, request, options));
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Create customer in juspay
|
|
@@ -24,7 +24,7 @@ export class PaymentsAPIJuspay extends ClientSDK {
|
|
|
24
24
|
* Create customer in juspay.
|
|
25
25
|
*/
|
|
26
26
|
async postPaymentsJuspayCreateCustomer(request, options) {
|
|
27
|
-
return unwrapAsync(
|
|
27
|
+
return unwrapAsync(juspayPostPaymentsJuspayCreateCustomer(this, request, options));
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Retrieve customer from juspay
|
|
@@ -33,7 +33,7 @@ export class PaymentsAPIJuspay extends ClientSDK {
|
|
|
33
33
|
* Retrieve customer from juspay.
|
|
34
34
|
*/
|
|
35
35
|
async getPaymentsJuspayCustomer(request, options) {
|
|
36
|
-
return unwrapAsync(
|
|
36
|
+
return unwrapAsync(juspayGetPaymentsJuspayCustomer(this, request, options));
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
//# sourceMappingURL=
|
|
39
|
+
//# sourceMappingURL=juspay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"juspay.js","sourceRoot":"","sources":["../../src/sdk/juspay.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,sCAAsC,EAAE,MAAM,oDAAoD,CAAC;AAC5G,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,MAAO,SAAQ,SAAS;IACnC;;;;;;OAMG;IACH,KAAK,CAAC,6BAA6B,CACjC,OAA4C,EAC5C,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gCAAgC,CACpC,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,sCAAsC,CACvD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAoD,EACpD,OAAwB;QAExB,OAAO,WAAW,CAAC,+BAA+B,CAChD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/esm/sdk/orders.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as operations from "../models/operations/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { CeStorefrontOrdersPayments } from "./cestorefrontorderspayments.js";
|
|
4
4
|
import { Refunds } from "./refunds.js";
|
|
5
5
|
import { Shipments } from "./shipments.js";
|
|
6
6
|
export declare class Orders extends ClientSDK {
|
|
@@ -9,7 +9,7 @@ export declare class Orders extends ClientSDK {
|
|
|
9
9
|
private _refunds?;
|
|
10
10
|
get refunds(): Refunds;
|
|
11
11
|
private _payments?;
|
|
12
|
-
get payments():
|
|
12
|
+
get payments(): CeStorefrontOrdersPayments;
|
|
13
13
|
/**
|
|
14
14
|
* Create order
|
|
15
15
|
*
|
|
@@ -45,5 +45,12 @@ export declare class Orders extends ClientSDK {
|
|
|
45
45
|
* To generate new payment request if first payment request is failed or expired. Retry payment request can be made after 15 mins of last request or immediately after last payment request is marked as failed.
|
|
46
46
|
*/
|
|
47
47
|
retryPayment(request: operations.PostRetryPaymentOrderIdRequest, options?: RequestOptions): Promise<operations.PostRetryPaymentOrderIdResponseBody>;
|
|
48
|
+
/**
|
|
49
|
+
* Retrieve payment status
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* Retrieve payment status of a paricular order.
|
|
53
|
+
*/
|
|
54
|
+
getOrdersIdPaymentStatus(request: operations.GetOrdersIdPaymentStatusRequest, options?: RequestOptions): Promise<operations.GetOrdersIdPaymentStatusResponseBody>;
|
|
48
55
|
}
|
|
49
56
|
//# sourceMappingURL=orders.d.ts.map
|
package/esm/sdk/orders.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orders.d.ts","sourceRoot":"","sources":["../../src/sdk/orders.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orders.d.ts","sourceRoot":"","sources":["../../src/sdk/orders.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,qBAAa,MAAO,SAAQ,SAAS;IACnC,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,SAAS,CAAC,CAA6B;IAC/C,IAAI,QAAQ,IAAI,0BAA0B,CAEzC;IAED;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAQ5C;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAQ5C;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iCAAiC,CAAC;IAQxD;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mCAAmC,CAAC;IAQ1D;;;;;OAKG;IACG,wBAAwB,CAC5B,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oCAAoC,CAAC;CAO5D"}
|
package/esm/sdk/orders.js
CHANGED
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
import { ordersCancel } from "../funcs/ordersCancel.js";
|
|
5
5
|
import { ordersCreate } from "../funcs/ordersCreate.js";
|
|
6
6
|
import { ordersGet } from "../funcs/ordersGet.js";
|
|
7
|
+
import { ordersGetOrdersIdPaymentStatus } from "../funcs/ordersGetOrdersIdPaymentStatus.js";
|
|
7
8
|
import { ordersList } from "../funcs/ordersList.js";
|
|
8
9
|
import { ordersRetryPayment } from "../funcs/ordersRetryPayment.js";
|
|
9
10
|
import { ClientSDK } from "../lib/sdks.js";
|
|
10
11
|
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
-
import {
|
|
12
|
+
import { CeStorefrontOrdersPayments } from "./cestorefrontorderspayments.js";
|
|
12
13
|
import { Refunds } from "./refunds.js";
|
|
13
14
|
import { Shipments } from "./shipments.js";
|
|
14
15
|
export class Orders extends ClientSDK {
|
|
@@ -19,7 +20,7 @@ export class Orders extends ClientSDK {
|
|
|
19
20
|
return (this._refunds ?? (this._refunds = new Refunds(this._options)));
|
|
20
21
|
}
|
|
21
22
|
get payments() {
|
|
22
|
-
return (this._payments ?? (this._payments = new
|
|
23
|
+
return (this._payments ?? (this._payments = new CeStorefrontOrdersPayments(this._options)));
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* Create order
|
|
@@ -66,5 +67,14 @@ export class Orders extends ClientSDK {
|
|
|
66
67
|
async retryPayment(request, options) {
|
|
67
68
|
return unwrapAsync(ordersRetryPayment(this, request, options));
|
|
68
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Retrieve payment status
|
|
72
|
+
*
|
|
73
|
+
* @remarks
|
|
74
|
+
* Retrieve payment status of a paricular order.
|
|
75
|
+
*/
|
|
76
|
+
async getOrdersIdPaymentStatus(request, options) {
|
|
77
|
+
return unwrapAsync(ordersGetOrdersIdPaymentStatus(this, request, options));
|
|
78
|
+
}
|
|
69
79
|
}
|
|
70
80
|
//# sourceMappingURL=orders.js.map
|
package/esm/sdk/orders.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orders.js","sourceRoot":"","sources":["../../src/sdk/orders.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,
|
|
1
|
+
{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AAY,CAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAAoC,EACpC,OAAwB;QAExB,OAAO,WAAW,CAAC,UAAU,CAC3B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAAsC,EACtC,OAAwB;QAExB,OAAO,WAAW,CAAC,SAAS,CAC1B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAgD,EAChD,OAAwB;QAExB,OAAO,WAAW,CAAC,YAAY,CAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAAkD,EAClD,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAAmD,EACnD,OAAwB;QAExB,OAAO,WAAW,CAAC,8BAA8B,CAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/esm/sdk/payments.d.ts
CHANGED
|
@@ -14,6 +14,28 @@ export declare class Payments extends ClientSDK {
|
|
|
14
14
|
* @remarks
|
|
15
15
|
* List all payment methods
|
|
16
16
|
*/
|
|
17
|
-
getMethods(request: operations.
|
|
17
|
+
getMethods(request: operations.GetPaymentMethodsRequest, options?: RequestOptions): Promise<operations.GetPaymentMethodsResponseBody>;
|
|
18
|
+
/**
|
|
19
|
+
* List all saved cards
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* List all saved cards.
|
|
23
|
+
*/
|
|
24
|
+
getPaymentsCards(request: operations.GetPaymentsCardsRequest, options?: RequestOptions): Promise<operations.GetPaymentsCardsResponseBody>;
|
|
25
|
+
/**
|
|
26
|
+
* Add card
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* Add a new card
|
|
30
|
+
*/
|
|
31
|
+
postPaymentsCards(request: operations.PostPaymentsCardsRequestBody, options?: RequestOptions): Promise<operations.PostPaymentsCardsResponseBody>;
|
|
32
|
+
/**
|
|
33
|
+
* Verify VPA
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* The Virtual Payment Address or VPA is a unique ID given to an individual using the Unified Payment Interface (UPI) service to send or receive money. In the case of UPI collect VPA is the mandatory param and merchants are always advised to check if the VPA is valid or not.
|
|
37
|
+
* Validating the VPA will help in reducing the failure rate due to incorrect vpa.
|
|
38
|
+
*/
|
|
39
|
+
getPaymentsVerifyVpa(request: operations.GetPaymentsVerifyVpaRequest, options?: RequestOptions): Promise<operations.GetPaymentsVerifyVpaResponseBody>;
|
|
18
40
|
}
|
|
19
41
|
//# sourceMappingURL=payments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../src/sdk/payments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../src/sdk/payments.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mCAAmC,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oCAAoC,CAAC;IAQ3D;;;;;OAKG;IACG,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAQnD;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;;OAMG;IACG,oBAAoB,CACxB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;CAOxD"}
|
package/esm/sdk/payments.js
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { paymentsGenerateHash } from "../funcs/paymentsGenerateHash.js";
|
|
5
5
|
import { paymentsGetMethods } from "../funcs/paymentsGetMethods.js";
|
|
6
|
+
import { paymentsGetPaymentsCards } from "../funcs/paymentsGetPaymentsCards.js";
|
|
7
|
+
import { paymentsGetPaymentsVerifyVpa } from "../funcs/paymentsGetPaymentsVerifyVpa.js";
|
|
8
|
+
import { paymentsPostPaymentsCards } from "../funcs/paymentsPostPaymentsCards.js";
|
|
6
9
|
import { ClientSDK } from "../lib/sdks.js";
|
|
7
10
|
import { unwrapAsync } from "../types/fp.js";
|
|
8
11
|
export class Payments extends ClientSDK {
|
|
@@ -24,5 +27,33 @@ export class Payments extends ClientSDK {
|
|
|
24
27
|
async getMethods(request, options) {
|
|
25
28
|
return unwrapAsync(paymentsGetMethods(this, request, options));
|
|
26
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* List all saved cards
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* List all saved cards.
|
|
35
|
+
*/
|
|
36
|
+
async getPaymentsCards(request, options) {
|
|
37
|
+
return unwrapAsync(paymentsGetPaymentsCards(this, request, options));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Add card
|
|
41
|
+
*
|
|
42
|
+
* @remarks
|
|
43
|
+
* Add a new card
|
|
44
|
+
*/
|
|
45
|
+
async postPaymentsCards(request, options) {
|
|
46
|
+
return unwrapAsync(paymentsPostPaymentsCards(this, request, options));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Verify VPA
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* The Virtual Payment Address or VPA is a unique ID given to an individual using the Unified Payment Interface (UPI) service to send or receive money. In the case of UPI collect VPA is the mandatory param and merchants are always advised to check if the VPA is valid or not.
|
|
53
|
+
* Validating the VPA will help in reducing the failure rate due to incorrect vpa.
|
|
54
|
+
*/
|
|
55
|
+
async getPaymentsVerifyVpa(request, options) {
|
|
56
|
+
return unwrapAsync(paymentsGetPaymentsVerifyVpa(this, request, options));
|
|
57
|
+
}
|
|
27
58
|
}
|
|
28
59
|
//# sourceMappingURL=payments.js.map
|
package/esm/sdk/payments.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.js","sourceRoot":"","sources":["../../src/sdk/payments.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuD,EACvD,OAAwB;QAExB,OAAO,WAAW,CAAC,oBAAoB,CACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IA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xB,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,4BAA4B,CAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/esm/sdk/products.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare class Products extends ClientSDK {
|
|
|
15
15
|
*/
|
|
16
16
|
list(request: operations.GetProductsRequest, options?: RequestOptions): Promise<operations.GetProductsResponseBody>;
|
|
17
17
|
/**
|
|
18
|
-
* Retrieve a product
|
|
18
|
+
* Retrieve a product detail
|
|
19
19
|
*
|
|
20
20
|
* @remarks
|
|
21
21
|
* Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Commerce Engine will return the corresponding product information.
|
package/esm/sdk/products.js
CHANGED
|
@@ -27,7 +27,7 @@ export class Products extends ClientSDK {
|
|
|
27
27
|
return unwrapAsync(catalogProductsList(this, request, options));
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* Retrieve a product
|
|
30
|
+
* Retrieve a product detail
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Commerce Engine will return the corresponding product information.
|
package/esm/sdk/sdk.d.ts
CHANGED
|
@@ -6,13 +6,10 @@ import { Carts } from "./carts.js";
|
|
|
6
6
|
import { Catalog } from "./catalog.js";
|
|
7
7
|
import { Checkout } from "./checkout.js";
|
|
8
8
|
import { Customers } from "./customers.js";
|
|
9
|
-
import {
|
|
9
|
+
import { Juspay } from "./juspay.js";
|
|
10
10
|
import { Offers } from "./offers.js";
|
|
11
11
|
import { Orders } from "./orders.js";
|
|
12
|
-
import { OrdersAPI } from "./ordersapi.js";
|
|
13
12
|
import { Payments } from "./payments.js";
|
|
14
|
-
import { PaymentsAPI } from "./paymentsapi.js";
|
|
15
|
-
import { PaymentsAPIJuspay } from "./paymentsapijuspay.js";
|
|
16
13
|
import { Shipping } from "./shipping.js";
|
|
17
14
|
import { User } from "./user.js";
|
|
18
15
|
import { Utils } from "./utils.js";
|
|
@@ -20,8 +17,6 @@ import { Wishlist } from "./wishlist.js";
|
|
|
20
17
|
export declare class CeStorefront extends ClientSDK {
|
|
21
18
|
private _catalog?;
|
|
22
19
|
get catalog(): Catalog;
|
|
23
|
-
private _customersAPI?;
|
|
24
|
-
get customersAPI(): CustomersAPI;
|
|
25
20
|
private _carts?;
|
|
26
21
|
get carts(): Carts;
|
|
27
22
|
private _checkout?;
|
|
@@ -34,8 +29,6 @@ export declare class CeStorefront extends ClientSDK {
|
|
|
34
29
|
get customers(): Customers;
|
|
35
30
|
private _orders?;
|
|
36
31
|
get orders(): Orders;
|
|
37
|
-
private _ordersAPI?;
|
|
38
|
-
get ordersAPI(): OrdersAPI;
|
|
39
32
|
private _shipping?;
|
|
40
33
|
get shipping(): Shipping;
|
|
41
34
|
private _auth?;
|
|
@@ -44,10 +37,8 @@ export declare class CeStorefront extends ClientSDK {
|
|
|
44
37
|
get user(): User;
|
|
45
38
|
private _payments?;
|
|
46
39
|
get payments(): Payments;
|
|
47
|
-
private
|
|
48
|
-
get
|
|
49
|
-
private _paymentsAPIJuspay?;
|
|
50
|
-
get paymentsAPIJuspay(): PaymentsAPIJuspay;
|
|
40
|
+
private _juspay?;
|
|
41
|
+
get juspay(): Juspay;
|
|
51
42
|
private _utils?;
|
|
52
43
|
get utils(): Utils;
|
|
53
44
|
private _analytics?;
|
package/esm/sdk/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk/sdk.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,O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IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,KAAK,CAAC,CAAO;IACrB,IAAI,IAAI,IAAI,IAAI,CAEf;IAED,OAAO,CAAC,KAAK,CAAC,CAAO;IACrB,IAAI,IAAI,IAAI,IAAI,CAEf;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;CACF"}
|
package/esm/sdk/sdk.js
CHANGED
|
@@ -9,13 +9,10 @@ import { Carts } from "./carts.js";
|
|
|
9
9
|
import { Catalog } from "./catalog.js";
|
|
10
10
|
import { Checkout } from "./checkout.js";
|
|
11
11
|
import { Customers } from "./customers.js";
|
|
12
|
-
import {
|
|
12
|
+
import { Juspay } from "./juspay.js";
|
|
13
13
|
import { Offers } from "./offers.js";
|
|
14
14
|
import { Orders } from "./orders.js";
|
|
15
|
-
import { OrdersAPI } from "./ordersapi.js";
|
|
16
15
|
import { Payments } from "./payments.js";
|
|
17
|
-
import { PaymentsAPI } from "./paymentsapi.js";
|
|
18
|
-
import { PaymentsAPIJuspay } from "./paymentsapijuspay.js";
|
|
19
16
|
import { Shipping } from "./shipping.js";
|
|
20
17
|
import { User } from "./user.js";
|
|
21
18
|
import { Utils } from "./utils.js";
|
|
@@ -24,9 +21,6 @@ export class CeStorefront extends ClientSDK {
|
|
|
24
21
|
get catalog() {
|
|
25
22
|
return (this._catalog ?? (this._catalog = new Catalog(this._options)));
|
|
26
23
|
}
|
|
27
|
-
get customersAPI() {
|
|
28
|
-
return (this._customersAPI ?? (this._customersAPI = new CustomersAPI(this._options)));
|
|
29
|
-
}
|
|
30
24
|
get carts() {
|
|
31
25
|
return (this._carts ?? (this._carts = new Carts(this._options)));
|
|
32
26
|
}
|
|
@@ -45,9 +39,6 @@ export class CeStorefront extends ClientSDK {
|
|
|
45
39
|
get orders() {
|
|
46
40
|
return (this._orders ?? (this._orders = new Orders(this._options)));
|
|
47
41
|
}
|
|
48
|
-
get ordersAPI() {
|
|
49
|
-
return (this._ordersAPI ?? (this._ordersAPI = new OrdersAPI(this._options)));
|
|
50
|
-
}
|
|
51
42
|
get shipping() {
|
|
52
43
|
return (this._shipping ?? (this._shipping = new Shipping(this._options)));
|
|
53
44
|
}
|
|
@@ -60,11 +51,8 @@ export class CeStorefront extends ClientSDK {
|
|
|
60
51
|
get payments() {
|
|
61
52
|
return (this._payments ?? (this._payments = new Payments(this._options)));
|
|
62
53
|
}
|
|
63
|
-
get
|
|
64
|
-
return (this.
|
|
65
|
-
}
|
|
66
|
-
get paymentsAPIJuspay() {
|
|
67
|
-
return (this._paymentsAPIJuspay ?? (this._paymentsAPIJuspay = new PaymentsAPIJuspay(this._options)));
|
|
54
|
+
get juspay() {
|
|
55
|
+
return (this._juspay ?? (this._juspay = new Juspay(this._options)));
|
|
68
56
|
}
|
|
69
57
|
get utils() {
|
|
70
58
|
return (this._utils ?? (this._utils = new Utils(this._options)));
|
package/esm/sdk/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../src/sdk/sdk.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../src/sdk/sdk.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC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AI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,KAAf,IAAI,CAAC,UAAU,GAAK,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC5D,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
24
24
|
import { Result } from "../types/fp.js";
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Retrieve a product
|
|
27
|
+
* Retrieve a product detail
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
30
|
* Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Commerce Engine will return the corresponding product information.
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* @remarks
|
|
29
29
|
* Retrieve customer detail.
|
|
30
30
|
*/
|
|
31
|
-
export async function
|
|
31
|
+
export async function customersGetCustomersId(
|
|
32
32
|
client: CeStorefrontCore,
|
|
33
33
|
request: operations.GetCustomersIdRequest,
|
|
34
34
|
options?: RequestOptions,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* Create customer
|
|
32
32
|
*/
|
|
33
|
-
export async function
|
|
33
|
+
export async function customersPostCustomers(
|
|
34
34
|
client: CeStorefrontCore,
|
|
35
35
|
request: components.CreateCustomer,
|
|
36
36
|
options?: RequestOptions,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* @remarks
|
|
30
30
|
* Update customer detail
|
|
31
31
|
*/
|
|
32
|
-
export async function
|
|
32
|
+
export async function customersPutCustomersId(
|
|
33
33
|
client: CeStorefrontCore,
|
|
34
34
|
request: operations.PutCustomersIdRequest,
|
|
35
35
|
options?: RequestOptions,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* @remarks
|
|
30
30
|
* Retrieve customer from juspay.
|
|
31
31
|
*/
|
|
32
|
-
export async function
|
|
32
|
+
export async function juspayGetPaymentsJuspayCustomer(
|
|
33
33
|
client: CeStorefrontCore,
|
|
34
34
|
request: operations.GetPaymentsJuspayCustomerRequest,
|
|
35
35
|
options?: RequestOptions,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* Create customer in juspay.
|
|
32
32
|
*/
|
|
33
|
-
export async function
|
|
33
|
+
export async function juspayPostPaymentsJuspayCreateCustomer(
|
|
34
34
|
client: CeStorefrontCore,
|
|
35
35
|
request: components.JuspayCreateCustomerPayload,
|
|
36
36
|
options?: RequestOptions,
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Creates an order in the Juspay system and fetches the corresponding client_auth_token.
|
|
32
32
|
* To be used for Express Checkout integration.
|
|
33
33
|
*/
|
|
34
|
-
export async function
|
|
34
|
+
export async function juspayPostPaymentsJuspayCreateOrder(
|
|
35
35
|
client: CeStorefrontCore,
|
|
36
36
|
request: components.JuspayCreateOrderPayload,
|
|
37
37
|
options?: RequestOptions,
|
package/src/funcs/{ordersAPIGetOrdersIdPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts}
RENAMED
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* @remarks
|
|
29
29
|
* Retrieve payment status of a paricular order.
|
|
30
30
|
*/
|
|
31
|
-
export async function
|
|
31
|
+
export async function ordersGetOrdersIdPaymentStatus(
|
|
32
32
|
client: CeStorefrontCore,
|
|
33
33
|
request: operations.GetOrdersIdPaymentStatusRequest,
|
|
34
34
|
options?: RequestOptions,
|