@delopay/sdk 0.11.0 → 0.12.1
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/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -662,6 +662,13 @@ interface ShopUpdateRequest {
|
|
|
662
662
|
webhook_url?: string | null;
|
|
663
663
|
is_active?: boolean | null;
|
|
664
664
|
payment_link_config?: BusinessPaymentLinkConfig | null;
|
|
665
|
+
/**
|
|
666
|
+
* Origins permitted to embed this shop's hosted checkout in an iframe.
|
|
667
|
+
* Each entry must be a full origin (`scheme://host[:port]`, no path,
|
|
668
|
+
* no wildcards). Empty/null defaults to same-origin only — strict
|
|
669
|
+
* clickjacking defense. Example: `["https://shop.acme.com"]`.
|
|
670
|
+
*/
|
|
671
|
+
iframe_allowed_origins?: string[] | null;
|
|
665
672
|
}
|
|
666
673
|
interface ShopResponse {
|
|
667
674
|
shop_id: string;
|
|
@@ -673,6 +680,11 @@ interface ShopResponse {
|
|
|
673
680
|
webhook_url?: string | null;
|
|
674
681
|
project_id?: string | null;
|
|
675
682
|
payment_link_config?: BusinessPaymentLinkConfig | null;
|
|
683
|
+
/**
|
|
684
|
+
* Origins permitted to embed this shop's hosted checkout in an iframe.
|
|
685
|
+
* See {@link ShopUpdateRequest.iframe_allowed_origins}.
|
|
686
|
+
*/
|
|
687
|
+
iframe_allowed_origins?: string[] | null;
|
|
676
688
|
}
|
|
677
689
|
/** Branding and behavior overrides for a shop's hosted checkout. */
|
|
678
690
|
interface BusinessPaymentLinkConfig {
|
|
@@ -1366,6 +1378,13 @@ interface ProfileCreateRequest {
|
|
|
1366
1378
|
redirect_to_merchant_with_http_post?: boolean | null;
|
|
1367
1379
|
webhook_details?: Record<string, unknown> | null;
|
|
1368
1380
|
metadata?: Record<string, unknown> | null;
|
|
1381
|
+
/**
|
|
1382
|
+
* Origins permitted to embed this profile's hosted checkout in an
|
|
1383
|
+
* iframe. Each entry is a full origin (`scheme://host[:port]`, no
|
|
1384
|
+
* path). Empty/null defaults to same-origin only — strict
|
|
1385
|
+
* clickjacking defense.
|
|
1386
|
+
*/
|
|
1387
|
+
iframe_allowed_origins?: string[] | null;
|
|
1369
1388
|
}
|
|
1370
1389
|
interface ProfileUpdateRequest {
|
|
1371
1390
|
profile_name?: string | null;
|
|
@@ -1376,6 +1395,11 @@ interface ProfileUpdateRequest {
|
|
|
1376
1395
|
webhook_details?: Record<string, unknown> | null;
|
|
1377
1396
|
metadata?: Record<string, unknown> | null;
|
|
1378
1397
|
payment_link_config?: BusinessPaymentLinkConfig | null;
|
|
1398
|
+
/**
|
|
1399
|
+
* Origins permitted to embed this profile's hosted checkout in an
|
|
1400
|
+
* iframe. See {@link ProfileCreateRequest.iframe_allowed_origins}.
|
|
1401
|
+
*/
|
|
1402
|
+
iframe_allowed_origins?: string[] | null;
|
|
1379
1403
|
}
|
|
1380
1404
|
interface ProfileResponse {
|
|
1381
1405
|
merchant_id: string;
|
|
@@ -1394,6 +1418,11 @@ interface ProfileResponse {
|
|
|
1394
1418
|
payment_response_hash_key?: string | null;
|
|
1395
1419
|
webhook_details?: Record<string, unknown> | null;
|
|
1396
1420
|
metadata?: Record<string, unknown> | null;
|
|
1421
|
+
/**
|
|
1422
|
+
* Origins permitted to embed this profile's hosted checkout in an
|
|
1423
|
+
* iframe. See {@link ProfileCreateRequest.iframe_allowed_origins}.
|
|
1424
|
+
*/
|
|
1425
|
+
iframe_allowed_origins?: string[] | null;
|
|
1397
1426
|
[key: string]: unknown;
|
|
1398
1427
|
}
|
|
1399
1428
|
type BlocklistAddRequest = {
|
package/dist/index.d.ts
CHANGED
|
@@ -662,6 +662,13 @@ interface ShopUpdateRequest {
|
|
|
662
662
|
webhook_url?: string | null;
|
|
663
663
|
is_active?: boolean | null;
|
|
664
664
|
payment_link_config?: BusinessPaymentLinkConfig | null;
|
|
665
|
+
/**
|
|
666
|
+
* Origins permitted to embed this shop's hosted checkout in an iframe.
|
|
667
|
+
* Each entry must be a full origin (`scheme://host[:port]`, no path,
|
|
668
|
+
* no wildcards). Empty/null defaults to same-origin only — strict
|
|
669
|
+
* clickjacking defense. Example: `["https://shop.acme.com"]`.
|
|
670
|
+
*/
|
|
671
|
+
iframe_allowed_origins?: string[] | null;
|
|
665
672
|
}
|
|
666
673
|
interface ShopResponse {
|
|
667
674
|
shop_id: string;
|
|
@@ -673,6 +680,11 @@ interface ShopResponse {
|
|
|
673
680
|
webhook_url?: string | null;
|
|
674
681
|
project_id?: string | null;
|
|
675
682
|
payment_link_config?: BusinessPaymentLinkConfig | null;
|
|
683
|
+
/**
|
|
684
|
+
* Origins permitted to embed this shop's hosted checkout in an iframe.
|
|
685
|
+
* See {@link ShopUpdateRequest.iframe_allowed_origins}.
|
|
686
|
+
*/
|
|
687
|
+
iframe_allowed_origins?: string[] | null;
|
|
676
688
|
}
|
|
677
689
|
/** Branding and behavior overrides for a shop's hosted checkout. */
|
|
678
690
|
interface BusinessPaymentLinkConfig {
|
|
@@ -1366,6 +1378,13 @@ interface ProfileCreateRequest {
|
|
|
1366
1378
|
redirect_to_merchant_with_http_post?: boolean | null;
|
|
1367
1379
|
webhook_details?: Record<string, unknown> | null;
|
|
1368
1380
|
metadata?: Record<string, unknown> | null;
|
|
1381
|
+
/**
|
|
1382
|
+
* Origins permitted to embed this profile's hosted checkout in an
|
|
1383
|
+
* iframe. Each entry is a full origin (`scheme://host[:port]`, no
|
|
1384
|
+
* path). Empty/null defaults to same-origin only — strict
|
|
1385
|
+
* clickjacking defense.
|
|
1386
|
+
*/
|
|
1387
|
+
iframe_allowed_origins?: string[] | null;
|
|
1369
1388
|
}
|
|
1370
1389
|
interface ProfileUpdateRequest {
|
|
1371
1390
|
profile_name?: string | null;
|
|
@@ -1376,6 +1395,11 @@ interface ProfileUpdateRequest {
|
|
|
1376
1395
|
webhook_details?: Record<string, unknown> | null;
|
|
1377
1396
|
metadata?: Record<string, unknown> | null;
|
|
1378
1397
|
payment_link_config?: BusinessPaymentLinkConfig | null;
|
|
1398
|
+
/**
|
|
1399
|
+
* Origins permitted to embed this profile's hosted checkout in an
|
|
1400
|
+
* iframe. See {@link ProfileCreateRequest.iframe_allowed_origins}.
|
|
1401
|
+
*/
|
|
1402
|
+
iframe_allowed_origins?: string[] | null;
|
|
1379
1403
|
}
|
|
1380
1404
|
interface ProfileResponse {
|
|
1381
1405
|
merchant_id: string;
|
|
@@ -1394,6 +1418,11 @@ interface ProfileResponse {
|
|
|
1394
1418
|
payment_response_hash_key?: string | null;
|
|
1395
1419
|
webhook_details?: Record<string, unknown> | null;
|
|
1396
1420
|
metadata?: Record<string, unknown> | null;
|
|
1421
|
+
/**
|
|
1422
|
+
* Origins permitted to embed this profile's hosted checkout in an
|
|
1423
|
+
* iframe. See {@link ProfileCreateRequest.iframe_allowed_origins}.
|
|
1424
|
+
*/
|
|
1425
|
+
iframe_allowed_origins?: string[] | null;
|
|
1397
1426
|
[key: string]: unknown;
|
|
1398
1427
|
}
|
|
1399
1428
|
type BlocklistAddRequest = {
|