@commercelayer/sdk 6.39.0 → 6.40.0

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/lib/index.d.mts CHANGED
@@ -1546,20 +1546,20 @@ interface CheckoutComPayment extends Resource {
1546
1546
  */
1547
1547
  token: string;
1548
1548
  /**
1549
- * A payment session ID used to obtain the details.
1550
- * @example ```"sid_y3oqhf46pyzuxjbcn2giaqnb44"```
1549
+ * The session object which initializes payment.
1550
+ * @example ```{"id":"ps_xxxx_yyyy_zzzz","payment_session_secret":"pss_xxxx_yyy_zzzz","payment_session_token":"xxxxx_yyyyy_zzzzz","_links":{"self":{"href":"https://api.sandbox.checkout.com/payment-sessions/ps_xxxx_yyyy_zzzz"}}}```
1551
1551
  */
1552
- session_id?: string | null;
1552
+ payment_session: Record<string, any>;
1553
1553
  /**
1554
1554
  * The URL to redirect your customer upon 3DS succeeded authentication.
1555
1555
  * @example ```"http://commercelayer.dev/checkout_com/success"```
1556
1556
  */
1557
- success_url?: string | null;
1557
+ success_url: string;
1558
1558
  /**
1559
1559
  * The URL to redirect your customer upon 3DS failed authentication.
1560
1560
  * @example ```"http://commercelayer.dev/checkout_com/failure"```
1561
1561
  */
1562
- failure_url?: string | null;
1562
+ failure_url: string;
1563
1563
  /**
1564
1564
  * The payment source identifier that can be used for subsequent payments.
1565
1565
  * @example ```"src_nwd3m4in3hkuddfpjsaevunhdy"```
@@ -1604,21 +1604,16 @@ interface CheckoutComPaymentCreate extends ResourceCreate {
1604
1604
  * @example ```"tok_4gzeau5o2uqubbk6fufs3m7p54"```
1605
1605
  */
1606
1606
  token: string;
1607
- /**
1608
- * A payment session ID used to obtain the details.
1609
- * @example ```"sid_y3oqhf46pyzuxjbcn2giaqnb44"```
1610
- */
1611
- session_id?: string | null;
1612
1607
  /**
1613
1608
  * The URL to redirect your customer upon 3DS succeeded authentication.
1614
1609
  * @example ```"http://commercelayer.dev/checkout_com/success"```
1615
1610
  */
1616
- success_url?: string | null;
1611
+ success_url: string;
1617
1612
  /**
1618
1613
  * The URL to redirect your customer upon 3DS failed authentication.
1619
1614
  * @example ```"http://commercelayer.dev/checkout_com/failure"```
1620
1615
  */
1621
- failure_url?: string | null;
1616
+ failure_url: string;
1622
1617
  order: OrderRel$h;
1623
1618
  }
1624
1619
  interface CheckoutComPaymentUpdate extends ResourceUpdate {
@@ -1632,21 +1627,6 @@ interface CheckoutComPaymentUpdate extends ResourceUpdate {
1632
1627
  * @example ```"tok_4gzeau5o2uqubbk6fufs3m7p54"```
1633
1628
  */
1634
1629
  token?: string | null;
1635
- /**
1636
- * A payment session ID used to obtain the details.
1637
- * @example ```"sid_y3oqhf46pyzuxjbcn2giaqnb44"```
1638
- */
1639
- session_id?: string | null;
1640
- /**
1641
- * The URL to redirect your customer upon 3DS succeeded authentication.
1642
- * @example ```"http://commercelayer.dev/checkout_com/success"```
1643
- */
1644
- success_url?: string | null;
1645
- /**
1646
- * The URL to redirect your customer upon 3DS failed authentication.
1647
- * @example ```"http://commercelayer.dev/checkout_com/failure"```
1648
- */
1649
- failure_url?: string | null;
1650
1630
  /**
1651
1631
  * Send this attribute if you want to send additional details the payment request (i.e. upon 3DS check).
1652
1632
  * @example ```true```
@@ -17181,7 +17161,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
17181
17161
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
17182
17162
  declare class CommerceLayerClient {
17183
17163
  #private;
17184
- readonly openApiSchemaVersion = "7.8.5";
17164
+ readonly openApiSchemaVersion = "7.8.6";
17185
17165
  constructor(config: CommerceLayerInitConfig);
17186
17166
  get addresses(): Addresses;
17187
17167
  get adjustments(): Adjustments;
package/lib/index.d.ts CHANGED
@@ -1546,20 +1546,20 @@ interface CheckoutComPayment extends Resource {
1546
1546
  */
1547
1547
  token: string;
1548
1548
  /**
1549
- * A payment session ID used to obtain the details.
1550
- * @example ```"sid_y3oqhf46pyzuxjbcn2giaqnb44"```
1549
+ * The session object which initializes payment.
1550
+ * @example ```{"id":"ps_xxxx_yyyy_zzzz","payment_session_secret":"pss_xxxx_yyy_zzzz","payment_session_token":"xxxxx_yyyyy_zzzzz","_links":{"self":{"href":"https://api.sandbox.checkout.com/payment-sessions/ps_xxxx_yyyy_zzzz"}}}```
1551
1551
  */
1552
- session_id?: string | null;
1552
+ payment_session: Record<string, any>;
1553
1553
  /**
1554
1554
  * The URL to redirect your customer upon 3DS succeeded authentication.
1555
1555
  * @example ```"http://commercelayer.dev/checkout_com/success"```
1556
1556
  */
1557
- success_url?: string | null;
1557
+ success_url: string;
1558
1558
  /**
1559
1559
  * The URL to redirect your customer upon 3DS failed authentication.
1560
1560
  * @example ```"http://commercelayer.dev/checkout_com/failure"```
1561
1561
  */
1562
- failure_url?: string | null;
1562
+ failure_url: string;
1563
1563
  /**
1564
1564
  * The payment source identifier that can be used for subsequent payments.
1565
1565
  * @example ```"src_nwd3m4in3hkuddfpjsaevunhdy"```
@@ -1604,21 +1604,16 @@ interface CheckoutComPaymentCreate extends ResourceCreate {
1604
1604
  * @example ```"tok_4gzeau5o2uqubbk6fufs3m7p54"```
1605
1605
  */
1606
1606
  token: string;
1607
- /**
1608
- * A payment session ID used to obtain the details.
1609
- * @example ```"sid_y3oqhf46pyzuxjbcn2giaqnb44"```
1610
- */
1611
- session_id?: string | null;
1612
1607
  /**
1613
1608
  * The URL to redirect your customer upon 3DS succeeded authentication.
1614
1609
  * @example ```"http://commercelayer.dev/checkout_com/success"```
1615
1610
  */
1616
- success_url?: string | null;
1611
+ success_url: string;
1617
1612
  /**
1618
1613
  * The URL to redirect your customer upon 3DS failed authentication.
1619
1614
  * @example ```"http://commercelayer.dev/checkout_com/failure"```
1620
1615
  */
1621
- failure_url?: string | null;
1616
+ failure_url: string;
1622
1617
  order: OrderRel$h;
1623
1618
  }
1624
1619
  interface CheckoutComPaymentUpdate extends ResourceUpdate {
@@ -1632,21 +1627,6 @@ interface CheckoutComPaymentUpdate extends ResourceUpdate {
1632
1627
  * @example ```"tok_4gzeau5o2uqubbk6fufs3m7p54"```
1633
1628
  */
1634
1629
  token?: string | null;
1635
- /**
1636
- * A payment session ID used to obtain the details.
1637
- * @example ```"sid_y3oqhf46pyzuxjbcn2giaqnb44"```
1638
- */
1639
- session_id?: string | null;
1640
- /**
1641
- * The URL to redirect your customer upon 3DS succeeded authentication.
1642
- * @example ```"http://commercelayer.dev/checkout_com/success"```
1643
- */
1644
- success_url?: string | null;
1645
- /**
1646
- * The URL to redirect your customer upon 3DS failed authentication.
1647
- * @example ```"http://commercelayer.dev/checkout_com/failure"```
1648
- */
1649
- failure_url?: string | null;
1650
1630
  /**
1651
1631
  * Send this attribute if you want to send additional details the payment request (i.e. upon 3DS check).
1652
1632
  * @example ```true```
@@ -17181,7 +17161,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
17181
17161
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
17182
17162
  declare class CommerceLayerClient {
17183
17163
  #private;
17184
- readonly openApiSchemaVersion = "7.8.5";
17164
+ readonly openApiSchemaVersion = "7.8.6";
17185
17165
  constructor(config: CommerceLayerInitConfig);
17186
17166
  get addresses(): Addresses;
17187
17167
  get adjustments(): Adjustments;