@commercengine/storefront-sdk 0.12.1 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.mts +35 -13
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -4385,19 +4385,24 @@ interface components {
4385
4385
  JusPayExpressCheckout: components["schemas"]["JusPayNewCard"] | components["schemas"]["JusPaySavedCardToken"] | components["schemas"]["JuspayNetBanking"] | components["schemas"]["JuspayUpiCollect"] | components["schemas"]["JuspayUpiIntent"];
4386
4386
  /** JusPayExpressCheckoutCommonField */
4387
4387
  JusPayExpressCheckoutCommonField: {
4388
+ /** @description The slug of the payment provider in Commerce Engine. */
4388
4389
  payment_provider_slug: string;
4389
4390
  /** @constant */
4390
4391
  integration_type: "express-checkout";
4392
+ /** @description The reference ID of the payment gateway. When provided, payments will always be routed through this gateway. */
4391
4393
  gateway_reference_id: string;
4394
+ /** @description The URL to which the customer will be redirected after the payment is complete. */
4392
4395
  return_url: string;
4393
- redirect_after_payment?: boolean;
4394
- get_client_auth_token?: boolean;
4395
4396
  };
4396
4397
  /** JusPayExpressCheckoutResponse */
4397
4398
  JusPayExpressCheckoutResponse: {
4399
+ /** @description The transaction ID of the payment. */
4398
4400
  txn_id: string;
4401
+ /** @description The transaction UUID of the payment. */
4399
4402
  txn_uuid: string;
4403
+ /** @description The status of the payment. */
4400
4404
  status: string;
4405
+ /** @description The order ID of the payment. */
4401
4406
  order_id: string;
4402
4407
  juspay: {
4403
4408
  client_auth_token?: string;
@@ -4407,6 +4412,17 @@ interface components {
4407
4412
  offers: Record<string, never>[];
4408
4413
  };
4409
4414
  payment: {
4415
+ sdk_params?: {
4416
+ tr?: string;
4417
+ merchant_vpa?: string;
4418
+ customer_last_name?: string;
4419
+ merchant_name?: string;
4420
+ /** @description The UPI intent URL of the payment. This URL is used to redirect the customer to the UPI app for payment. */
4421
+ pg_intent_url?: string;
4422
+ amount?: string;
4423
+ tid?: string;
4424
+ customer_first_name?: string;
4425
+ };
4410
4426
  authentication?: {
4411
4427
  /** @constant */
4412
4428
  method: "GET";
@@ -4432,12 +4448,18 @@ interface components {
4432
4448
  };
4433
4449
  /** JusPayHyperCheckout */
4434
4450
  JusPayHyperCheckout: {
4451
+ /** @description The slug of the payment provider in Commerce Engine. */
4435
4452
  payment_provider_slug: string;
4436
4453
  /** @constant */
4437
4454
  integration_type: "hyper-checkout";
4455
+ /** @description The reference ID of the payment gateway. When provided, payments will always be routed through this gateway. */
4438
4456
  gateway_reference_id: string;
4457
+ /** @description The URL to which the customer will be redirected after the payment is complete. */
4439
4458
  return_url: string;
4440
- /** @enum {unknown} */
4459
+ /**
4460
+ * @description The action to be performed. `paymentPage` is the default option that you should select when using hyper-checkout.
4461
+ * @enum {string}
4462
+ */
4441
4463
  action: "paymentPage";
4442
4464
  };
4443
4465
  /** JusPayHyperCheckoutResponse */
@@ -4523,13 +4545,9 @@ interface components {
4523
4545
  };
4524
4546
  /** JusPayNewCard */
4525
4547
  JusPayNewCard: components["schemas"]["JusPayExpressCheckoutCommonField"] & {
4526
- /** @constant */
4527
- auth_type: "OTP";
4528
4548
  save_to_locker: boolean;
4529
4549
  /** @constant */
4530
4550
  payment_method_type: "CARD";
4531
- /** @enum {unknown} */
4532
- payment_method: "VISA" | "MASTER";
4533
4551
  card_number: string;
4534
4552
  card_exp_month: string;
4535
4553
  card_exp_year: string;
@@ -4582,6 +4600,7 @@ interface components {
4582
4600
  name: string;
4583
4601
  payment_instructions?: string | null;
4584
4602
  type: string;
4603
+ /** @description The slug of the payment provider in Commerce Engine. */
4585
4604
  payment_provider_slug: string;
4586
4605
  details: components["schemas"]["JuspayPaymentMethodDetail"][];
4587
4606
  order_params?: Record<string, never>;
@@ -4590,14 +4609,18 @@ interface components {
4590
4609
  JuspayPaymentMethodDetail: components["schemas"]["JuspayUpiPaymentMethod"] | components["schemas"]["JuspayCardPaymentMethod"] | components["schemas"]["JuspayNetbankingPaymentMethod"] | components["schemas"]["JuspayWalletPaymentMethod"];
4591
4610
  /** JusPaySavedCardToken */
4592
4611
  JusPaySavedCardToken: components["schemas"]["JusPayExpressCheckoutCommonField"] & {
4593
- /** @constant */
4594
- auth_type: "OTP";
4612
+ /** @description Whether to save the card to the locker. If true, the card will be saved to the locker and can be used for future payments as per RBI regulations. */
4595
4613
  save_to_locker: boolean;
4596
4614
  /** @constant */
4597
4615
  payment_method_type: "CARD";
4598
- /** @enum {unknown} */
4599
- payment_method: "VISA" | "MASTER";
4616
+ /**
4617
+ * @description Payment method of the card. Please check which payment method is supported by the gateway.
4618
+ * @enum {string}
4619
+ */
4620
+ payment_method: "VISA" | "MASTER" | "RUPAY" | "AMEX" | "DINERS" | "DISCOVER" | "JCB" | "MAESTRO";
4621
+ /** @description Token of the card. This is the token that is used to identify the card in the gateway. */
4600
4622
  card_token: string;
4623
+ /** @description Security code of the card. This is the security code that is used to identify the card in the gateway. */
4601
4624
  card_security_code: string;
4602
4625
  };
4603
4626
  /** JuspayUpiCollect */
@@ -4614,7 +4637,6 @@ interface components {
4614
4637
  payment_method_type: "UPI";
4615
4638
  /** @constant */
4616
4639
  payment_method: "UPI_PAY";
4617
- sdk_params: boolean;
4618
4640
  upi_app: string;
4619
4641
  };
4620
4642
  /** JuspayUpiPaymentMethod */
@@ -9465,7 +9487,7 @@ interface operations {
9465
9487
  parameters: {
9466
9488
  query?: {
9467
9489
  /** @description Filter payment methods by type. Accepts multiple payment method types separated by commas. Example: payment_method=upi_collect,card,wallet. Available payment method types include: upi_collect, card, wallet. */
9468
- payment_method?: string;
9490
+ payment_methods?: string;
9469
9491
  };
9470
9492
  header?: never;
9471
9493
  path: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercengine/storefront-sdk",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "TypeScript SDK for the Storefront API",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",