@commercelayer/sdk 6.39.0 → 6.41.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 +14 -29
- package/lib/index.d.ts +14 -29
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +6 -6
package/lib/index.d.mts
CHANGED
@@ -1546,20 +1546,20 @@ interface CheckoutComPayment extends Resource {
|
|
1546
1546
|
*/
|
1547
1547
|
token: string;
|
1548
1548
|
/**
|
1549
|
-
*
|
1550
|
-
* @example ```"
|
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
|
-
|
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
|
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
|
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
|
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
|
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```
|
@@ -9224,7 +9204,7 @@ type CustomerGroupRel$2 = ResourceRel & {
|
|
9224
9204
|
type TagRel$4 = ResourceRel & {
|
9225
9205
|
type: TagType;
|
9226
9206
|
};
|
9227
|
-
type CustomerSort = Pick<Customer, 'id' | 'email' | 'status' | 'total_orders_count'> & ResourceSort;
|
9207
|
+
type CustomerSort = Pick<Customer, 'id' | 'email' | 'status' | 'total_orders_count' | 'anonymization_status'> & ResourceSort;
|
9228
9208
|
interface Customer extends Resource {
|
9229
9209
|
readonly type: CustomerType;
|
9230
9210
|
/**
|
@@ -9271,6 +9251,11 @@ interface Customer extends Resource {
|
|
9271
9251
|
* @example ```{"status":"requested","requested_at":"2025-03-15 11:39:21 UTC","requester":{"id":"fdgt56hh","first_name":"Travis","last_name":"Muller","email":"test@labadie.test"}}```
|
9272
9252
|
*/
|
9273
9253
|
anonymization_info?: Record<string, any> | null;
|
9254
|
+
/**
|
9255
|
+
* Status of the current anonymization request (if any).
|
9256
|
+
* @example ```"requested"```
|
9257
|
+
*/
|
9258
|
+
anonymization_status?: string | null;
|
9274
9259
|
customer_group?: CustomerGroup | null;
|
9275
9260
|
customer_addresses?: CustomerAddress[] | null;
|
9276
9261
|
customer_payment_sources?: CustomerPaymentSource[] | null;
|
@@ -17181,7 +17166,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
17181
17166
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
17182
17167
|
declare class CommerceLayerClient {
|
17183
17168
|
#private;
|
17184
|
-
readonly openApiSchemaVersion = "7.8.
|
17169
|
+
readonly openApiSchemaVersion = "7.8.7";
|
17185
17170
|
constructor(config: CommerceLayerInitConfig);
|
17186
17171
|
get addresses(): Addresses;
|
17187
17172
|
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
|
-
*
|
1550
|
-
* @example ```"
|
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
|
-
|
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
|
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
|
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
|
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
|
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```
|
@@ -9224,7 +9204,7 @@ type CustomerGroupRel$2 = ResourceRel & {
|
|
9224
9204
|
type TagRel$4 = ResourceRel & {
|
9225
9205
|
type: TagType;
|
9226
9206
|
};
|
9227
|
-
type CustomerSort = Pick<Customer, 'id' | 'email' | 'status' | 'total_orders_count'> & ResourceSort;
|
9207
|
+
type CustomerSort = Pick<Customer, 'id' | 'email' | 'status' | 'total_orders_count' | 'anonymization_status'> & ResourceSort;
|
9228
9208
|
interface Customer extends Resource {
|
9229
9209
|
readonly type: CustomerType;
|
9230
9210
|
/**
|
@@ -9271,6 +9251,11 @@ interface Customer extends Resource {
|
|
9271
9251
|
* @example ```{"status":"requested","requested_at":"2025-03-15 11:39:21 UTC","requester":{"id":"fdgt56hh","first_name":"Travis","last_name":"Muller","email":"test@labadie.test"}}```
|
9272
9252
|
*/
|
9273
9253
|
anonymization_info?: Record<string, any> | null;
|
9254
|
+
/**
|
9255
|
+
* Status of the current anonymization request (if any).
|
9256
|
+
* @example ```"requested"```
|
9257
|
+
*/
|
9258
|
+
anonymization_status?: string | null;
|
9274
9259
|
customer_group?: CustomerGroup | null;
|
9275
9260
|
customer_addresses?: CustomerAddress[] | null;
|
9276
9261
|
customer_payment_sources?: CustomerPaymentSource[] | null;
|
@@ -17181,7 +17166,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
17181
17166
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
17182
17167
|
declare class CommerceLayerClient {
|
17183
17168
|
#private;
|
17184
|
-
readonly openApiSchemaVersion = "7.8.
|
17169
|
+
readonly openApiSchemaVersion = "7.8.7";
|
17185
17170
|
constructor(config: CommerceLayerInitConfig);
|
17186
17171
|
get addresses(): Addresses;
|
17187
17172
|
get adjustments(): Adjustments;
|