@delopay/sdk 0.44.0 → 0.45.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/dist/{chunk-235UFV7Z.js → chunk-25GERHCM.js} +67 -20
- package/dist/chunk-25GERHCM.js.map +1 -0
- package/dist/index.cjs +67 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +103 -15
- package/dist/index.d.ts +103 -15
- package/dist/index.js +3 -1
- package/dist/internal.cjs +67 -19
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +3 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-235UFV7Z.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -2342,16 +2342,76 @@ interface SubscriptionEstimateResponse {
|
|
|
2342
2342
|
}
|
|
2343
2343
|
interface RegionCreateRequest {
|
|
2344
2344
|
region_name: string;
|
|
2345
|
-
|
|
2345
|
+
/** Short, unique code for the region (e.g. `"NORDICS"`). */
|
|
2346
|
+
region_code: string;
|
|
2347
|
+
description?: string;
|
|
2346
2348
|
}
|
|
2347
2349
|
interface RegionUpdateRequest {
|
|
2348
2350
|
region_name?: string;
|
|
2349
|
-
|
|
2351
|
+
description?: string;
|
|
2352
|
+
is_active?: boolean;
|
|
2350
2353
|
}
|
|
2351
2354
|
interface RegionResponse {
|
|
2352
|
-
region_id
|
|
2355
|
+
/** Region id (the API field is `id`, not `region_id`). */
|
|
2356
|
+
id: string;
|
|
2357
|
+
profile_id: string;
|
|
2353
2358
|
region_name: string;
|
|
2354
|
-
|
|
2359
|
+
region_code: string;
|
|
2360
|
+
description?: string | null;
|
|
2361
|
+
is_active: boolean;
|
|
2362
|
+
created_at: string;
|
|
2363
|
+
modified_at: string;
|
|
2364
|
+
}
|
|
2365
|
+
/** Replace the full country membership of a custom region. */
|
|
2366
|
+
interface RegionSetCountriesRequest {
|
|
2367
|
+
/** ISO 3166-1 alpha-2 country codes (e.g. `["SE", "NO", "DK"]`). */
|
|
2368
|
+
countries: string[];
|
|
2369
|
+
}
|
|
2370
|
+
interface RegionCountriesResponse {
|
|
2371
|
+
region_id: string;
|
|
2372
|
+
countries: string[];
|
|
2373
|
+
}
|
|
2374
|
+
/** A built-in (global) region group such as EU / EEA / SEPA / LATAM / APAC. */
|
|
2375
|
+
interface BuiltInRegionGroupResponse {
|
|
2376
|
+
/** Group code, e.g. `"EU"`. */
|
|
2377
|
+
code: string;
|
|
2378
|
+
/** Human-readable group name. */
|
|
2379
|
+
name: string;
|
|
2380
|
+
countries: string[];
|
|
2381
|
+
}
|
|
2382
|
+
/** Scope at which an availability override applies. More specific wins: shop > project > global. */
|
|
2383
|
+
type OverrideScope = 'global' | 'project' | 'shop';
|
|
2384
|
+
/** Whether an override force-shows or force-hides the targeted method. */
|
|
2385
|
+
type OverrideAction = 'force_show' | 'force_hide';
|
|
2386
|
+
/**
|
|
2387
|
+
* Create a merchant payment-method availability override. Exactly one of
|
|
2388
|
+
* `country` / `region_code` must be set; `scope_id` is required for `project`
|
|
2389
|
+
* and `shop` scope.
|
|
2390
|
+
*/
|
|
2391
|
+
interface AvailabilityOverrideCreateRequest {
|
|
2392
|
+
merchant_id: string;
|
|
2393
|
+
scope: OverrideScope;
|
|
2394
|
+
/** Project id (for `project` scope) or profile id (for `shop` scope); omit for `global`. */
|
|
2395
|
+
scope_id?: string;
|
|
2396
|
+
payment_method: PaymentMethod;
|
|
2397
|
+
/** Omit to target every type of the payment method. */
|
|
2398
|
+
payment_method_type?: PaymentMethodType;
|
|
2399
|
+
/** Target a single country (ISO 3166-1 alpha-2). Mutually exclusive with `region_code`. */
|
|
2400
|
+
country?: string;
|
|
2401
|
+
/** Target a built-in group code (e.g. `"EU"`) or a custom region id. Mutually exclusive with `country`. */
|
|
2402
|
+
region_code?: string;
|
|
2403
|
+
action: OverrideAction;
|
|
2404
|
+
}
|
|
2405
|
+
interface AvailabilityOverrideResponse {
|
|
2406
|
+
id: string;
|
|
2407
|
+
merchant_id: string;
|
|
2408
|
+
scope: OverrideScope;
|
|
2409
|
+
scope_id?: string | null;
|
|
2410
|
+
payment_method: PaymentMethod;
|
|
2411
|
+
payment_method_type?: PaymentMethodType | null;
|
|
2412
|
+
country?: string | null;
|
|
2413
|
+
region_code?: string | null;
|
|
2414
|
+
action: OverrideAction;
|
|
2355
2415
|
}
|
|
2356
2416
|
/**
|
|
2357
2417
|
* Top-level permission group recognized by the Delopay API. The
|
|
@@ -4078,19 +4138,46 @@ declare class Forex {
|
|
|
4078
4138
|
convertFromMinor(params: Record<string, string | number | undefined>): Promise<Record<string, unknown>>;
|
|
4079
4139
|
}
|
|
4080
4140
|
|
|
4141
|
+
/**
|
|
4142
|
+
* Custom regions (named country groups) scoped to a shop/profile, used by the
|
|
4143
|
+
* geo-aware payment-method availability overrides. Every endpoint is scoped by
|
|
4144
|
+
* `profileId`. Admin (`sk_*`) access required.
|
|
4145
|
+
*/
|
|
4081
4146
|
declare class Regions {
|
|
4082
4147
|
private readonly request;
|
|
4083
4148
|
constructor(request: RequestFn);
|
|
4084
|
-
/** Create a region. `POST /regions
|
|
4085
|
-
create(params: RegionCreateRequest): Promise<RegionResponse>;
|
|
4086
|
-
/**
|
|
4087
|
-
|
|
4088
|
-
/**
|
|
4089
|
-
|
|
4090
|
-
/**
|
|
4091
|
-
|
|
4092
|
-
/**
|
|
4093
|
-
|
|
4149
|
+
/** Create a region. `POST /regions?profile_id=` */
|
|
4150
|
+
create(profileId: string, params: RegionCreateRequest): Promise<RegionResponse>;
|
|
4151
|
+
/** List all regions for a profile. `GET /regions/list?profile_id=` */
|
|
4152
|
+
list(profileId: string): Promise<RegionResponse[]>;
|
|
4153
|
+
/** List the built-in (global) region groups (EU/EEA/SEPA/LATAM/APAC). `GET /regions/groups` */
|
|
4154
|
+
groups(): Promise<BuiltInRegionGroupResponse[]>;
|
|
4155
|
+
/** Retrieve a region by id. `GET /regions/{regionId}?profile_id=` */
|
|
4156
|
+
retrieve(regionId: string, profileId: string): Promise<RegionResponse>;
|
|
4157
|
+
/** Update a region. `PUT /regions/{regionId}?profile_id=` */
|
|
4158
|
+
update(regionId: string, profileId: string, params: RegionUpdateRequest): Promise<RegionResponse>;
|
|
4159
|
+
/** Delete a region. `DELETE /regions/{regionId}?profile_id=` */
|
|
4160
|
+
delete(regionId: string, profileId: string): Promise<boolean>;
|
|
4161
|
+
/** Get the countries that belong to a region. `GET /regions/{regionId}/countries?profile_id=` */
|
|
4162
|
+
getCountries(regionId: string, profileId: string): Promise<RegionCountriesResponse>;
|
|
4163
|
+
/** Replace the full country membership of a region. `PUT /regions/{regionId}/countries?profile_id=` */
|
|
4164
|
+
setCountries(regionId: string, profileId: string, params: RegionSetCountriesRequest): Promise<RegionCountriesResponse>;
|
|
4165
|
+
}
|
|
4166
|
+
|
|
4167
|
+
/**
|
|
4168
|
+
* Merchant payment-method availability overrides. Force-show or force-hide a
|
|
4169
|
+
* payment method per country/region at global, project, or shop scope, on top
|
|
4170
|
+
* of the curated country defaults. Admin (`sk_*`) access required.
|
|
4171
|
+
*/
|
|
4172
|
+
declare class AvailabilityOverrides {
|
|
4173
|
+
private readonly request;
|
|
4174
|
+
constructor(request: RequestFn);
|
|
4175
|
+
/** Create an availability override. `POST /availability-overrides` */
|
|
4176
|
+
create(params: AvailabilityOverrideCreateRequest): Promise<AvailabilityOverrideResponse>;
|
|
4177
|
+
/** List a merchant's availability overrides. `GET /availability-overrides` */
|
|
4178
|
+
list(merchantId: string): Promise<AvailabilityOverrideResponse[]>;
|
|
4179
|
+
/** Delete an availability override by id. `DELETE /availability-overrides/{id}` */
|
|
4180
|
+
delete(id: string): Promise<boolean>;
|
|
4094
4181
|
}
|
|
4095
4182
|
|
|
4096
4183
|
/**
|
|
@@ -4261,6 +4348,7 @@ declare class Delopay {
|
|
|
4261
4348
|
readonly export: Export;
|
|
4262
4349
|
readonly forex: Forex;
|
|
4263
4350
|
readonly regions: Regions;
|
|
4351
|
+
readonly availabilityOverrides: AvailabilityOverrides;
|
|
4264
4352
|
readonly analytics: Analytics;
|
|
4265
4353
|
readonly analyticsDashboard: AnalyticsDashboard;
|
|
4266
4354
|
readonly featureMatrix: FeatureMatrix;
|
|
@@ -4680,4 +4768,4 @@ declare function parseImportedBranding(raw: unknown): CheckoutBranding;
|
|
|
4680
4768
|
declare function applyBrandingVariables(el: HTMLElement, b: CheckoutBranding): void;
|
|
4681
4769
|
declare function shadowFor(style: SurfaceStyle): string;
|
|
4682
4770
|
|
|
4683
|
-
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, type AnalyticsChild, type AnalyticsConnectorDay, type AnalyticsConnectorSeries, AnalyticsDashboard, type AnalyticsDayBucket, type AnalyticsScopeRequest, type AnalyticsScopeResponse, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlockedAttempt, type BlockedAttemptListParams, type BlockedAttemptListResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BrandingExport, type BrandingSource, type BusinessPaymentLinkConfig, CUSTOM_CSS_MAX_LENGTH, type CancelSubscriptionRequest, type CancelSubscriptionResponse, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type CheckoutBranding, type ConfirmSubscriptionPaymentDetails, type ConfirmSubscriptionRequest, type ConfirmSubscriptionResponse, type Connector, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type ConnectorVolumeSplit, type ConnectorWebhookEntry, type ConnectorWebhookEventType, type ConnectorWebhookListResponse, type ConnectorWebhookRegisterRequest, type ConnectorWebhookRegisterResponse, type CornerRadius, type CreateAndConfirmSubscriptionRequest, type CreateSubscriptionPaymentDetails, type CreateSubscriptionRequest, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, type DeleteAccountRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EncodedBranding, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EuclidComparison, type EuclidComparisonType, type EuclidIfStatement, type EuclidValue, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, FeeProgramBuilder, type FeeRuleConditions, type FeeRuleInput, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeSpecInput, type FeeType, Files, type FontFamily, type FontWeight, Forex, type ForgotPasswordRequest, type FromEmailRequest, type FutureUsage, type GatewayConnectRequest, type GatewayResponse, type GetSubscriptionItemsParams, type GetSubscriptionItemsResponse, type GlobalSearchRequest, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type InvoiceStatus, type LabelStyle, type LayoutStyle, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, type LoginHistoryEntry, type LoginHistoryParams, type LoginHistoryResponse, type LogoShape, type LogoSize, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type MerchantRoutingAlgorithm, type MethodSurcharge, type NonPillRadius, type ParentGroup, type ParentGroupInfo, type PauseSubscriptionRequest, type PauseSubscriptionResponse, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLayout, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentRetrieveOptions, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PerMethodSurchargeItem, type PermissionScope, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PlatformFeeKind, type PlatformFeeOutput, type PlatformFeeProgram, type PlatformFeeRule, type PlatformFeeRuleInput, type PlatformFeeRuleOutput, type PlatformFeeRuleRecord, type PlatformFeeRuleRequest, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileDefaultRoutingConfig, type ProfileDeniedConnectorsResponse, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCreateRequest, type RegionResponse, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestExtras, type RequestFn, type RequestOptions, type ResetPasswordRequest, type ResumeSubscriptionRequest, type ResumeSubscriptionResponse, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingConfigCreateRequest, type RoutingConfigResponse, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StaticRoutingAlgorithm, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionEstimateParams, type SubscriptionEstimateResponse, type SubscriptionInvoice, type SubscriptionItem, type SubscriptionItemPrice, type SubscriptionItemType, type SubscriptionLineItem, type SubscriptionListParams, type SubscriptionPaymentData, type SubscriptionPaymentDetails, type SubscriptionPeriodUnit, type SubscriptionResponse, type SubscriptionStatus, Subscriptions, type SummaryPosition, type SurchargeRuleRequest, type SurchargeRuleResponse, type SurfaceStyle, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type TrustBadge, type UpdateSubscriptionRequest, type UpdateUserDetailsRequest, type UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, decodeBadges, decodeBranding, defaultBranding, encodeBadges, encodeBranding, feeProgram, fontStack, fontWeightValue, inputPadValue, isDarkSurface, isHexColor, logoDimensions, parseImportedBranding, radiusValue, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue };
|
|
4771
|
+
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, type AnalyticsChild, type AnalyticsConnectorDay, type AnalyticsConnectorSeries, AnalyticsDashboard, type AnalyticsDayBucket, type AnalyticsScopeRequest, type AnalyticsScopeResponse, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type AvailabilityOverrideCreateRequest, type AvailabilityOverrideResponse, AvailabilityOverrides, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlockedAttempt, type BlockedAttemptListParams, type BlockedAttemptListResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BrandingExport, type BrandingSource, type BuiltInRegionGroupResponse, type BusinessPaymentLinkConfig, CUSTOM_CSS_MAX_LENGTH, type CancelSubscriptionRequest, type CancelSubscriptionResponse, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type CheckoutBranding, type ConfirmSubscriptionPaymentDetails, type ConfirmSubscriptionRequest, type ConfirmSubscriptionResponse, type Connector, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type ConnectorVolumeSplit, type ConnectorWebhookEntry, type ConnectorWebhookEventType, type ConnectorWebhookListResponse, type ConnectorWebhookRegisterRequest, type ConnectorWebhookRegisterResponse, type CornerRadius, type CreateAndConfirmSubscriptionRequest, type CreateSubscriptionPaymentDetails, type CreateSubscriptionRequest, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, type DeleteAccountRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EncodedBranding, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EuclidComparison, type EuclidComparisonType, type EuclidIfStatement, type EuclidValue, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, FeeProgramBuilder, type FeeRuleConditions, type FeeRuleInput, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeSpecInput, type FeeType, Files, type FontFamily, type FontWeight, Forex, type ForgotPasswordRequest, type FromEmailRequest, type FutureUsage, type GatewayConnectRequest, type GatewayResponse, type GetSubscriptionItemsParams, type GetSubscriptionItemsResponse, type GlobalSearchRequest, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type InvoiceStatus, type LabelStyle, type LayoutStyle, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, type LoginHistoryEntry, type LoginHistoryParams, type LoginHistoryResponse, type LogoShape, type LogoSize, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type MerchantRoutingAlgorithm, type MethodSurcharge, type NonPillRadius, type OverrideAction, type OverrideScope, type ParentGroup, type ParentGroupInfo, type PauseSubscriptionRequest, type PauseSubscriptionResponse, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLayout, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentRetrieveOptions, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PerMethodSurchargeItem, type PermissionScope, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PlatformFeeKind, type PlatformFeeOutput, type PlatformFeeProgram, type PlatformFeeRule, type PlatformFeeRuleInput, type PlatformFeeRuleOutput, type PlatformFeeRuleRecord, type PlatformFeeRuleRequest, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileDefaultRoutingConfig, type ProfileDeniedConnectorsResponse, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCountriesResponse, type RegionCreateRequest, type RegionResponse, type RegionSetCountriesRequest, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestExtras, type RequestFn, type RequestOptions, type ResetPasswordRequest, type ResumeSubscriptionRequest, type ResumeSubscriptionResponse, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingConfigCreateRequest, type RoutingConfigResponse, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StaticRoutingAlgorithm, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionEstimateParams, type SubscriptionEstimateResponse, type SubscriptionInvoice, type SubscriptionItem, type SubscriptionItemPrice, type SubscriptionItemType, type SubscriptionLineItem, type SubscriptionListParams, type SubscriptionPaymentData, type SubscriptionPaymentDetails, type SubscriptionPeriodUnit, type SubscriptionResponse, type SubscriptionStatus, Subscriptions, type SummaryPosition, type SurchargeRuleRequest, type SurchargeRuleResponse, type SurfaceStyle, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type TrustBadge, type UpdateSubscriptionRequest, type UpdateUserDetailsRequest, type UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, decodeBadges, decodeBranding, defaultBranding, encodeBadges, encodeBranding, feeProgram, fontStack, fontWeightValue, inputPadValue, isDarkSurface, isHexColor, logoDimensions, parseImportedBranding, radiusValue, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -2342,16 +2342,76 @@ interface SubscriptionEstimateResponse {
|
|
|
2342
2342
|
}
|
|
2343
2343
|
interface RegionCreateRequest {
|
|
2344
2344
|
region_name: string;
|
|
2345
|
-
|
|
2345
|
+
/** Short, unique code for the region (e.g. `"NORDICS"`). */
|
|
2346
|
+
region_code: string;
|
|
2347
|
+
description?: string;
|
|
2346
2348
|
}
|
|
2347
2349
|
interface RegionUpdateRequest {
|
|
2348
2350
|
region_name?: string;
|
|
2349
|
-
|
|
2351
|
+
description?: string;
|
|
2352
|
+
is_active?: boolean;
|
|
2350
2353
|
}
|
|
2351
2354
|
interface RegionResponse {
|
|
2352
|
-
region_id
|
|
2355
|
+
/** Region id (the API field is `id`, not `region_id`). */
|
|
2356
|
+
id: string;
|
|
2357
|
+
profile_id: string;
|
|
2353
2358
|
region_name: string;
|
|
2354
|
-
|
|
2359
|
+
region_code: string;
|
|
2360
|
+
description?: string | null;
|
|
2361
|
+
is_active: boolean;
|
|
2362
|
+
created_at: string;
|
|
2363
|
+
modified_at: string;
|
|
2364
|
+
}
|
|
2365
|
+
/** Replace the full country membership of a custom region. */
|
|
2366
|
+
interface RegionSetCountriesRequest {
|
|
2367
|
+
/** ISO 3166-1 alpha-2 country codes (e.g. `["SE", "NO", "DK"]`). */
|
|
2368
|
+
countries: string[];
|
|
2369
|
+
}
|
|
2370
|
+
interface RegionCountriesResponse {
|
|
2371
|
+
region_id: string;
|
|
2372
|
+
countries: string[];
|
|
2373
|
+
}
|
|
2374
|
+
/** A built-in (global) region group such as EU / EEA / SEPA / LATAM / APAC. */
|
|
2375
|
+
interface BuiltInRegionGroupResponse {
|
|
2376
|
+
/** Group code, e.g. `"EU"`. */
|
|
2377
|
+
code: string;
|
|
2378
|
+
/** Human-readable group name. */
|
|
2379
|
+
name: string;
|
|
2380
|
+
countries: string[];
|
|
2381
|
+
}
|
|
2382
|
+
/** Scope at which an availability override applies. More specific wins: shop > project > global. */
|
|
2383
|
+
type OverrideScope = 'global' | 'project' | 'shop';
|
|
2384
|
+
/** Whether an override force-shows or force-hides the targeted method. */
|
|
2385
|
+
type OverrideAction = 'force_show' | 'force_hide';
|
|
2386
|
+
/**
|
|
2387
|
+
* Create a merchant payment-method availability override. Exactly one of
|
|
2388
|
+
* `country` / `region_code` must be set; `scope_id` is required for `project`
|
|
2389
|
+
* and `shop` scope.
|
|
2390
|
+
*/
|
|
2391
|
+
interface AvailabilityOverrideCreateRequest {
|
|
2392
|
+
merchant_id: string;
|
|
2393
|
+
scope: OverrideScope;
|
|
2394
|
+
/** Project id (for `project` scope) or profile id (for `shop` scope); omit for `global`. */
|
|
2395
|
+
scope_id?: string;
|
|
2396
|
+
payment_method: PaymentMethod;
|
|
2397
|
+
/** Omit to target every type of the payment method. */
|
|
2398
|
+
payment_method_type?: PaymentMethodType;
|
|
2399
|
+
/** Target a single country (ISO 3166-1 alpha-2). Mutually exclusive with `region_code`. */
|
|
2400
|
+
country?: string;
|
|
2401
|
+
/** Target a built-in group code (e.g. `"EU"`) or a custom region id. Mutually exclusive with `country`. */
|
|
2402
|
+
region_code?: string;
|
|
2403
|
+
action: OverrideAction;
|
|
2404
|
+
}
|
|
2405
|
+
interface AvailabilityOverrideResponse {
|
|
2406
|
+
id: string;
|
|
2407
|
+
merchant_id: string;
|
|
2408
|
+
scope: OverrideScope;
|
|
2409
|
+
scope_id?: string | null;
|
|
2410
|
+
payment_method: PaymentMethod;
|
|
2411
|
+
payment_method_type?: PaymentMethodType | null;
|
|
2412
|
+
country?: string | null;
|
|
2413
|
+
region_code?: string | null;
|
|
2414
|
+
action: OverrideAction;
|
|
2355
2415
|
}
|
|
2356
2416
|
/**
|
|
2357
2417
|
* Top-level permission group recognized by the Delopay API. The
|
|
@@ -4078,19 +4138,46 @@ declare class Forex {
|
|
|
4078
4138
|
convertFromMinor(params: Record<string, string | number | undefined>): Promise<Record<string, unknown>>;
|
|
4079
4139
|
}
|
|
4080
4140
|
|
|
4141
|
+
/**
|
|
4142
|
+
* Custom regions (named country groups) scoped to a shop/profile, used by the
|
|
4143
|
+
* geo-aware payment-method availability overrides. Every endpoint is scoped by
|
|
4144
|
+
* `profileId`. Admin (`sk_*`) access required.
|
|
4145
|
+
*/
|
|
4081
4146
|
declare class Regions {
|
|
4082
4147
|
private readonly request;
|
|
4083
4148
|
constructor(request: RequestFn);
|
|
4084
|
-
/** Create a region. `POST /regions
|
|
4085
|
-
create(params: RegionCreateRequest): Promise<RegionResponse>;
|
|
4086
|
-
/**
|
|
4087
|
-
|
|
4088
|
-
/**
|
|
4089
|
-
|
|
4090
|
-
/**
|
|
4091
|
-
|
|
4092
|
-
/**
|
|
4093
|
-
|
|
4149
|
+
/** Create a region. `POST /regions?profile_id=` */
|
|
4150
|
+
create(profileId: string, params: RegionCreateRequest): Promise<RegionResponse>;
|
|
4151
|
+
/** List all regions for a profile. `GET /regions/list?profile_id=` */
|
|
4152
|
+
list(profileId: string): Promise<RegionResponse[]>;
|
|
4153
|
+
/** List the built-in (global) region groups (EU/EEA/SEPA/LATAM/APAC). `GET /regions/groups` */
|
|
4154
|
+
groups(): Promise<BuiltInRegionGroupResponse[]>;
|
|
4155
|
+
/** Retrieve a region by id. `GET /regions/{regionId}?profile_id=` */
|
|
4156
|
+
retrieve(regionId: string, profileId: string): Promise<RegionResponse>;
|
|
4157
|
+
/** Update a region. `PUT /regions/{regionId}?profile_id=` */
|
|
4158
|
+
update(regionId: string, profileId: string, params: RegionUpdateRequest): Promise<RegionResponse>;
|
|
4159
|
+
/** Delete a region. `DELETE /regions/{regionId}?profile_id=` */
|
|
4160
|
+
delete(regionId: string, profileId: string): Promise<boolean>;
|
|
4161
|
+
/** Get the countries that belong to a region. `GET /regions/{regionId}/countries?profile_id=` */
|
|
4162
|
+
getCountries(regionId: string, profileId: string): Promise<RegionCountriesResponse>;
|
|
4163
|
+
/** Replace the full country membership of a region. `PUT /regions/{regionId}/countries?profile_id=` */
|
|
4164
|
+
setCountries(regionId: string, profileId: string, params: RegionSetCountriesRequest): Promise<RegionCountriesResponse>;
|
|
4165
|
+
}
|
|
4166
|
+
|
|
4167
|
+
/**
|
|
4168
|
+
* Merchant payment-method availability overrides. Force-show or force-hide a
|
|
4169
|
+
* payment method per country/region at global, project, or shop scope, on top
|
|
4170
|
+
* of the curated country defaults. Admin (`sk_*`) access required.
|
|
4171
|
+
*/
|
|
4172
|
+
declare class AvailabilityOverrides {
|
|
4173
|
+
private readonly request;
|
|
4174
|
+
constructor(request: RequestFn);
|
|
4175
|
+
/** Create an availability override. `POST /availability-overrides` */
|
|
4176
|
+
create(params: AvailabilityOverrideCreateRequest): Promise<AvailabilityOverrideResponse>;
|
|
4177
|
+
/** List a merchant's availability overrides. `GET /availability-overrides` */
|
|
4178
|
+
list(merchantId: string): Promise<AvailabilityOverrideResponse[]>;
|
|
4179
|
+
/** Delete an availability override by id. `DELETE /availability-overrides/{id}` */
|
|
4180
|
+
delete(id: string): Promise<boolean>;
|
|
4094
4181
|
}
|
|
4095
4182
|
|
|
4096
4183
|
/**
|
|
@@ -4261,6 +4348,7 @@ declare class Delopay {
|
|
|
4261
4348
|
readonly export: Export;
|
|
4262
4349
|
readonly forex: Forex;
|
|
4263
4350
|
readonly regions: Regions;
|
|
4351
|
+
readonly availabilityOverrides: AvailabilityOverrides;
|
|
4264
4352
|
readonly analytics: Analytics;
|
|
4265
4353
|
readonly analyticsDashboard: AnalyticsDashboard;
|
|
4266
4354
|
readonly featureMatrix: FeatureMatrix;
|
|
@@ -4680,4 +4768,4 @@ declare function parseImportedBranding(raw: unknown): CheckoutBranding;
|
|
|
4680
4768
|
declare function applyBrandingVariables(el: HTMLElement, b: CheckoutBranding): void;
|
|
4681
4769
|
declare function shadowFor(style: SurfaceStyle): string;
|
|
4682
4770
|
|
|
4683
|
-
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, type AnalyticsChild, type AnalyticsConnectorDay, type AnalyticsConnectorSeries, AnalyticsDashboard, type AnalyticsDayBucket, type AnalyticsScopeRequest, type AnalyticsScopeResponse, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlockedAttempt, type BlockedAttemptListParams, type BlockedAttemptListResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BrandingExport, type BrandingSource, type BusinessPaymentLinkConfig, CUSTOM_CSS_MAX_LENGTH, type CancelSubscriptionRequest, type CancelSubscriptionResponse, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type CheckoutBranding, type ConfirmSubscriptionPaymentDetails, type ConfirmSubscriptionRequest, type ConfirmSubscriptionResponse, type Connector, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type ConnectorVolumeSplit, type ConnectorWebhookEntry, type ConnectorWebhookEventType, type ConnectorWebhookListResponse, type ConnectorWebhookRegisterRequest, type ConnectorWebhookRegisterResponse, type CornerRadius, type CreateAndConfirmSubscriptionRequest, type CreateSubscriptionPaymentDetails, type CreateSubscriptionRequest, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, type DeleteAccountRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EncodedBranding, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EuclidComparison, type EuclidComparisonType, type EuclidIfStatement, type EuclidValue, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, FeeProgramBuilder, type FeeRuleConditions, type FeeRuleInput, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeSpecInput, type FeeType, Files, type FontFamily, type FontWeight, Forex, type ForgotPasswordRequest, type FromEmailRequest, type FutureUsage, type GatewayConnectRequest, type GatewayResponse, type GetSubscriptionItemsParams, type GetSubscriptionItemsResponse, type GlobalSearchRequest, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type InvoiceStatus, type LabelStyle, type LayoutStyle, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, type LoginHistoryEntry, type LoginHistoryParams, type LoginHistoryResponse, type LogoShape, type LogoSize, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type MerchantRoutingAlgorithm, type MethodSurcharge, type NonPillRadius, type ParentGroup, type ParentGroupInfo, type PauseSubscriptionRequest, type PauseSubscriptionResponse, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLayout, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentRetrieveOptions, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PerMethodSurchargeItem, type PermissionScope, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PlatformFeeKind, type PlatformFeeOutput, type PlatformFeeProgram, type PlatformFeeRule, type PlatformFeeRuleInput, type PlatformFeeRuleOutput, type PlatformFeeRuleRecord, type PlatformFeeRuleRequest, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileDefaultRoutingConfig, type ProfileDeniedConnectorsResponse, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCreateRequest, type RegionResponse, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestExtras, type RequestFn, type RequestOptions, type ResetPasswordRequest, type ResumeSubscriptionRequest, type ResumeSubscriptionResponse, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingConfigCreateRequest, type RoutingConfigResponse, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StaticRoutingAlgorithm, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionEstimateParams, type SubscriptionEstimateResponse, type SubscriptionInvoice, type SubscriptionItem, type SubscriptionItemPrice, type SubscriptionItemType, type SubscriptionLineItem, type SubscriptionListParams, type SubscriptionPaymentData, type SubscriptionPaymentDetails, type SubscriptionPeriodUnit, type SubscriptionResponse, type SubscriptionStatus, Subscriptions, type SummaryPosition, type SurchargeRuleRequest, type SurchargeRuleResponse, type SurfaceStyle, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type TrustBadge, type UpdateSubscriptionRequest, type UpdateUserDetailsRequest, type UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, decodeBadges, decodeBranding, defaultBranding, encodeBadges, encodeBranding, feeProgram, fontStack, fontWeightValue, inputPadValue, isDarkSurface, isHexColor, logoDimensions, parseImportedBranding, radiusValue, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue };
|
|
4771
|
+
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, type AnalyticsChild, type AnalyticsConnectorDay, type AnalyticsConnectorSeries, AnalyticsDashboard, type AnalyticsDayBucket, type AnalyticsScopeRequest, type AnalyticsScopeResponse, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type AvailabilityOverrideCreateRequest, type AvailabilityOverrideResponse, AvailabilityOverrides, BRANDING_EXPORT_FORMAT, BRANDING_EXPORT_VERSION, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlockedAttempt, type BlockedAttemptListParams, type BlockedAttemptListResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BrandingExport, type BrandingSource, type BuiltInRegionGroupResponse, type BusinessPaymentLinkConfig, CUSTOM_CSS_MAX_LENGTH, type CancelSubscriptionRequest, type CancelSubscriptionResponse, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type CheckoutBranding, type ConfirmSubscriptionPaymentDetails, type ConfirmSubscriptionRequest, type ConfirmSubscriptionResponse, type Connector, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type ConnectorVolumeSplit, type ConnectorWebhookEntry, type ConnectorWebhookEventType, type ConnectorWebhookListResponse, type ConnectorWebhookRegisterRequest, type ConnectorWebhookRegisterResponse, type CornerRadius, type CreateAndConfirmSubscriptionRequest, type CreateSubscriptionPaymentDetails, type CreateSubscriptionRequest, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, DEFAULT_BADGES, DEFAULT_BADGES_DARK, DEFAULT_BRANDING, DEFAULT_BRANDING_DARK, type DeleteAccountRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EncodedBranding, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EuclidComparison, type EuclidComparisonType, type EuclidIfStatement, type EuclidValue, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, FeeProgramBuilder, type FeeRuleConditions, type FeeRuleInput, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeSpecInput, type FeeType, Files, type FontFamily, type FontWeight, Forex, type ForgotPasswordRequest, type FromEmailRequest, type FutureUsage, type GatewayConnectRequest, type GatewayResponse, type GetSubscriptionItemsParams, type GetSubscriptionItemsResponse, type GlobalSearchRequest, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type InvoiceStatus, type LabelStyle, type LayoutStyle, type LedgerEntry, type LedgerListParams, type LedgerResponse, type LinkedRoutingConfigRetrieveResponse, type ListInvitableRolesParams, type LoginHistoryEntry, type LoginHistoryParams, type LoginHistoryResponse, type LogoShape, type LogoSize, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type MerchantRoutingAlgorithm, type MethodSurcharge, type NonPillRadius, type OverrideAction, type OverrideScope, type ParentGroup, type ParentGroupInfo, type PauseSubscriptionRequest, type PauseSubscriptionResponse, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLayout, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentRetrieveOptions, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PerMethodSurchargeItem, type PermissionScope, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PlatformFeeKind, type PlatformFeeOutput, type PlatformFeeProgram, type PlatformFeeRule, type PlatformFeeRuleInput, type PlatformFeeRuleOutput, type PlatformFeeRuleRecord, type PlatformFeeRuleRequest, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileDefaultRoutingConfig, type ProfileDeniedConnectorsResponse, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCountriesResponse, type RegionCreateRequest, type RegionResponse, type RegionSetCountriesRequest, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestExtras, type RequestFn, type RequestOptions, type ResetPasswordRequest, type ResumeSubscriptionRequest, type ResumeSubscriptionResponse, type RoutableConnectorChoice, type RoutingActivatePayload, type RoutingConfigCreateRequest, type RoutingConfigResponse, type RoutingDeactivateRequest, type RoutingDictionary, type RoutingDictionaryRecord, Search, type SearchGroupResponse, type SearchIndex, type SearchStatus, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type SizeScale, type SpacingScale, type StaticRoutingAlgorithm, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionEstimateParams, type SubscriptionEstimateResponse, type SubscriptionInvoice, type SubscriptionItem, type SubscriptionItemPrice, type SubscriptionItemType, type SubscriptionLineItem, type SubscriptionListParams, type SubscriptionPaymentData, type SubscriptionPaymentDetails, type SubscriptionPeriodUnit, type SubscriptionResponse, type SubscriptionStatus, Subscriptions, type SummaryPosition, type SurchargeRuleRequest, type SurchargeRuleResponse, type SurfaceStyle, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type TrustBadge, type UpdateSubscriptionRequest, type UpdateUserDetailsRequest, type UserResponse, type UserSessionEntry, type UserSessionListResponse, type UserSessionRevokeResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks, applyBrandingVariables, buildBrandingExport, buttonPadValue, cloneBranding, decodeBadges, decodeBranding, defaultBranding, encodeBadges, encodeBranding, feeProgram, fontStack, fontWeightValue, inputPadValue, isDarkSurface, isHexColor, logoDimensions, parseImportedBranding, radiusValue, sanitizeCustomCss, shadowFor, surfacePadValue, verticalGapValue };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Analytics,
|
|
3
3
|
AnalyticsDashboard,
|
|
4
|
+
AvailabilityOverrides,
|
|
4
5
|
BRANDING_EXPORT_FORMAT,
|
|
5
6
|
BRANDING_EXPORT_VERSION,
|
|
6
7
|
CUSTOM_CSS_MAX_LENGTH,
|
|
@@ -43,10 +44,11 @@ import {
|
|
|
43
44
|
shadowFor,
|
|
44
45
|
surfacePadValue,
|
|
45
46
|
verticalGapValue
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-25GERHCM.js";
|
|
47
48
|
export {
|
|
48
49
|
Analytics,
|
|
49
50
|
AnalyticsDashboard,
|
|
51
|
+
AvailabilityOverrides,
|
|
50
52
|
BRANDING_EXPORT_FORMAT,
|
|
51
53
|
BRANDING_EXPORT_VERSION,
|
|
52
54
|
CUSTOM_CSS_MAX_LENGTH,
|
package/dist/internal.cjs
CHANGED
|
@@ -25,6 +25,7 @@ __export(internal_exports, {
|
|
|
25
25
|
Analytics: () => Analytics,
|
|
26
26
|
AnalyticsDashboard: () => AnalyticsDashboard,
|
|
27
27
|
AuditLogs: () => AuditLogs,
|
|
28
|
+
AvailabilityOverrides: () => AvailabilityOverrides,
|
|
28
29
|
BRANDING_EXPORT_FORMAT: () => BRANDING_EXPORT_FORMAT,
|
|
29
30
|
BRANDING_EXPORT_VERSION: () => BRANDING_EXPORT_VERSION,
|
|
30
31
|
CUSTOM_CSS_MAX_LENGTH: () => CUSTOM_CSS_MAX_LENGTH,
|
|
@@ -1763,10 +1764,7 @@ var Routing = class {
|
|
|
1763
1764
|
* `GET /routing/connector-restrictions/{profileId}`
|
|
1764
1765
|
*/
|
|
1765
1766
|
async connectorRestrictions(profileId) {
|
|
1766
|
-
return this.request(
|
|
1767
|
-
"GET",
|
|
1768
|
-
`/routing/connector-restrictions/${encodeURIComponent(profileId)}`
|
|
1769
|
-
);
|
|
1767
|
+
return this.request("GET", `/routing/connector-restrictions/${encodeURIComponent(profileId)}`);
|
|
1770
1768
|
}
|
|
1771
1769
|
// --- Advanced operations (Task 3.4) ---
|
|
1772
1770
|
/** Get active routing config. `GET /routing/active` */
|
|
@@ -2675,25 +2673,73 @@ var Regions = class {
|
|
|
2675
2673
|
constructor(request) {
|
|
2676
2674
|
this.request = request;
|
|
2677
2675
|
}
|
|
2678
|
-
/** Create a region. `POST /regions
|
|
2679
|
-
async create(params) {
|
|
2680
|
-
return this.request("POST", "/regions", {
|
|
2676
|
+
/** Create a region. `POST /regions?profile_id=` */
|
|
2677
|
+
async create(profileId, params) {
|
|
2678
|
+
return this.request("POST", "/regions", {
|
|
2679
|
+
body: params,
|
|
2680
|
+
query: { profile_id: profileId }
|
|
2681
|
+
});
|
|
2682
|
+
}
|
|
2683
|
+
/** List all regions for a profile. `GET /regions/list?profile_id=` */
|
|
2684
|
+
async list(profileId) {
|
|
2685
|
+
return this.request("GET", "/regions/list", { query: { profile_id: profileId } });
|
|
2686
|
+
}
|
|
2687
|
+
/** List the built-in (global) region groups (EU/EEA/SEPA/LATAM/APAC). `GET /regions/groups` */
|
|
2688
|
+
async groups() {
|
|
2689
|
+
return this.request("GET", "/regions/groups");
|
|
2681
2690
|
}
|
|
2682
|
-
/** Retrieve a region by
|
|
2683
|
-
async retrieve(regionId) {
|
|
2684
|
-
return this.request("GET", `/regions/${encodeURIComponent(regionId)}
|
|
2691
|
+
/** Retrieve a region by id. `GET /regions/{regionId}?profile_id=` */
|
|
2692
|
+
async retrieve(regionId, profileId) {
|
|
2693
|
+
return this.request("GET", `/regions/${encodeURIComponent(regionId)}`, {
|
|
2694
|
+
query: { profile_id: profileId }
|
|
2695
|
+
});
|
|
2685
2696
|
}
|
|
2686
|
-
/** Update a region. `PUT /regions/{regionId}
|
|
2687
|
-
async update(regionId, params) {
|
|
2688
|
-
return this.request("PUT", `/regions/${encodeURIComponent(regionId)}`, {
|
|
2697
|
+
/** Update a region. `PUT /regions/{regionId}?profile_id=` */
|
|
2698
|
+
async update(regionId, profileId, params) {
|
|
2699
|
+
return this.request("PUT", `/regions/${encodeURIComponent(regionId)}`, {
|
|
2700
|
+
body: params,
|
|
2701
|
+
query: { profile_id: profileId }
|
|
2702
|
+
});
|
|
2689
2703
|
}
|
|
2690
|
-
/** Delete a region. `DELETE /regions/{regionId}
|
|
2691
|
-
async delete(regionId) {
|
|
2692
|
-
return this.request("DELETE", `/regions/${encodeURIComponent(regionId)}
|
|
2704
|
+
/** Delete a region. `DELETE /regions/{regionId}?profile_id=` */
|
|
2705
|
+
async delete(regionId, profileId) {
|
|
2706
|
+
return this.request("DELETE", `/regions/${encodeURIComponent(regionId)}`, {
|
|
2707
|
+
query: { profile_id: profileId }
|
|
2708
|
+
});
|
|
2693
2709
|
}
|
|
2694
|
-
/**
|
|
2695
|
-
async
|
|
2696
|
-
return this.request("GET",
|
|
2710
|
+
/** Get the countries that belong to a region. `GET /regions/{regionId}/countries?profile_id=` */
|
|
2711
|
+
async getCountries(regionId, profileId) {
|
|
2712
|
+
return this.request("GET", `/regions/${encodeURIComponent(regionId)}/countries`, {
|
|
2713
|
+
query: { profile_id: profileId }
|
|
2714
|
+
});
|
|
2715
|
+
}
|
|
2716
|
+
/** Replace the full country membership of a region. `PUT /regions/{regionId}/countries?profile_id=` */
|
|
2717
|
+
async setCountries(regionId, profileId, params) {
|
|
2718
|
+
return this.request("PUT", `/regions/${encodeURIComponent(regionId)}/countries`, {
|
|
2719
|
+
body: params,
|
|
2720
|
+
query: { profile_id: profileId }
|
|
2721
|
+
});
|
|
2722
|
+
}
|
|
2723
|
+
};
|
|
2724
|
+
|
|
2725
|
+
// src/resources/availabilityOverrides.ts
|
|
2726
|
+
var AvailabilityOverrides = class {
|
|
2727
|
+
constructor(request) {
|
|
2728
|
+
this.request = request;
|
|
2729
|
+
}
|
|
2730
|
+
/** Create an availability override. `POST /availability-overrides` */
|
|
2731
|
+
async create(params) {
|
|
2732
|
+
return this.request("POST", "/availability-overrides", { body: params });
|
|
2733
|
+
}
|
|
2734
|
+
/** List a merchant's availability overrides. `GET /availability-overrides` */
|
|
2735
|
+
async list(merchantId) {
|
|
2736
|
+
return this.request("GET", "/availability-overrides", {
|
|
2737
|
+
query: { merchant_id: merchantId }
|
|
2738
|
+
});
|
|
2739
|
+
}
|
|
2740
|
+
/** Delete an availability override by id. `DELETE /availability-overrides/{id}` */
|
|
2741
|
+
async delete(id) {
|
|
2742
|
+
return this.request("DELETE", `/availability-overrides/${encodeURIComponent(id)}`);
|
|
2697
2743
|
}
|
|
2698
2744
|
};
|
|
2699
2745
|
|
|
@@ -2922,6 +2968,7 @@ var Delopay = class {
|
|
|
2922
2968
|
this.export = new Export(request);
|
|
2923
2969
|
this.forex = new Forex(request);
|
|
2924
2970
|
this.regions = new Regions(request);
|
|
2971
|
+
this.availabilityOverrides = new AvailabilityOverrides(request);
|
|
2925
2972
|
this.analytics = new Analytics(request);
|
|
2926
2973
|
this.analyticsDashboard = new AnalyticsDashboard(request);
|
|
2927
2974
|
this.featureMatrix = new FeatureMatrix(request);
|
|
@@ -4364,6 +4411,7 @@ var DelopayInternal = class extends Delopay {
|
|
|
4364
4411
|
Analytics,
|
|
4365
4412
|
AnalyticsDashboard,
|
|
4366
4413
|
AuditLogs,
|
|
4414
|
+
AvailabilityOverrides,
|
|
4367
4415
|
BRANDING_EXPORT_FORMAT,
|
|
4368
4416
|
BRANDING_EXPORT_VERSION,
|
|
4369
4417
|
CUSTOM_CSS_MAX_LENGTH,
|