@delopay/sdk 0.7.0 → 0.8.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-NKSNI5HS.js → chunk-SPWI4Z6T.js} +1 -25
- package/dist/chunk-SPWI4Z6T.js.map +1 -0
- package/dist/index.cjs +0 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -25
- package/dist/index.d.ts +1 -25
- package/dist/index.js +1 -1
- package/dist/internal.cjs +33 -24
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +38 -2
- package/dist/internal.d.ts +38 -2
- package/dist/internal.js +33 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-NKSNI5HS.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -763,14 +763,6 @@ interface AutoRechargeUpdateRequest {
|
|
|
763
763
|
threshold_amount?: number | null;
|
|
764
764
|
recharge_amount?: number | null;
|
|
765
765
|
}
|
|
766
|
-
interface AdminAdjustmentRequest {
|
|
767
|
-
amount: number;
|
|
768
|
-
description: string;
|
|
769
|
-
}
|
|
770
|
-
interface AdminAdjustmentResponse {
|
|
771
|
-
ledger_entry_id: string;
|
|
772
|
-
new_balance: number;
|
|
773
|
-
}
|
|
774
766
|
interface AllocationTransferRequest {
|
|
775
767
|
profile_id: string;
|
|
776
768
|
amount: number;
|
|
@@ -1668,22 +1660,6 @@ declare class Billing {
|
|
|
1668
1660
|
* @returns The updated billing profile.
|
|
1669
1661
|
*/
|
|
1670
1662
|
updateAutoRecharge(merchantId: string, params: AutoRechargeUpdateRequest): Promise<BillingProfileResponse>;
|
|
1671
|
-
/**
|
|
1672
|
-
* Admin: manually credit a merchant's balance (e.g. promotional credit).
|
|
1673
|
-
*
|
|
1674
|
-
* @param merchantId - The merchant account ID.
|
|
1675
|
-
* @param params - Credit amount and reason.
|
|
1676
|
-
* @returns The adjustment result.
|
|
1677
|
-
*/
|
|
1678
|
-
adminCredit(merchantId: string, params: AdminAdjustmentRequest): Promise<AdminAdjustmentResponse>;
|
|
1679
|
-
/**
|
|
1680
|
-
* Admin: manually debit a merchant's balance.
|
|
1681
|
-
*
|
|
1682
|
-
* @param merchantId - The merchant account ID.
|
|
1683
|
-
* @param params - Debit amount and reason.
|
|
1684
|
-
* @returns The adjustment result.
|
|
1685
|
-
*/
|
|
1686
|
-
adminDebit(merchantId: string, params: AdminAdjustmentRequest): Promise<AdminAdjustmentResponse>;
|
|
1687
1663
|
}
|
|
1688
1664
|
|
|
1689
1665
|
interface BlocklistListParams {
|
|
@@ -3223,4 +3199,4 @@ declare const Webhooks: {
|
|
|
3223
3199
|
verify(rawBody: string, signatureHeader: string, secret: string, options?: VerifyOptions): Promise<WebhookEvent>;
|
|
3224
3200
|
};
|
|
3225
3201
|
|
|
3226
|
-
export { type Address, type AddressDetails, type
|
|
3202
|
+
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, AnalyticsDashboard, 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 BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeType, Files, Forex, type ForgotPasswordRequest, type FromEmailRequest, type GatewayConnectRequest, type GatewayResponse, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type LedgerEntry, type LedgerListParams, type LedgerResponse, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, 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 RequestFn, type RequestOptions, type ResetPasswordRequest, type RoutingConfigCreateRequest, type RoutingConfigResponse, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionCreateRequest, type SubscriptionListParams, type SubscriptionListResponse, type SubscriptionResponse, type SubscriptionUpdateRequest, Subscriptions, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type UpdateUserDetailsRequest, type UserResponse, type VerifyOptions, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks };
|
package/dist/index.d.ts
CHANGED
|
@@ -763,14 +763,6 @@ interface AutoRechargeUpdateRequest {
|
|
|
763
763
|
threshold_amount?: number | null;
|
|
764
764
|
recharge_amount?: number | null;
|
|
765
765
|
}
|
|
766
|
-
interface AdminAdjustmentRequest {
|
|
767
|
-
amount: number;
|
|
768
|
-
description: string;
|
|
769
|
-
}
|
|
770
|
-
interface AdminAdjustmentResponse {
|
|
771
|
-
ledger_entry_id: string;
|
|
772
|
-
new_balance: number;
|
|
773
|
-
}
|
|
774
766
|
interface AllocationTransferRequest {
|
|
775
767
|
profile_id: string;
|
|
776
768
|
amount: number;
|
|
@@ -1668,22 +1660,6 @@ declare class Billing {
|
|
|
1668
1660
|
* @returns The updated billing profile.
|
|
1669
1661
|
*/
|
|
1670
1662
|
updateAutoRecharge(merchantId: string, params: AutoRechargeUpdateRequest): Promise<BillingProfileResponse>;
|
|
1671
|
-
/**
|
|
1672
|
-
* Admin: manually credit a merchant's balance (e.g. promotional credit).
|
|
1673
|
-
*
|
|
1674
|
-
* @param merchantId - The merchant account ID.
|
|
1675
|
-
* @param params - Credit amount and reason.
|
|
1676
|
-
* @returns The adjustment result.
|
|
1677
|
-
*/
|
|
1678
|
-
adminCredit(merchantId: string, params: AdminAdjustmentRequest): Promise<AdminAdjustmentResponse>;
|
|
1679
|
-
/**
|
|
1680
|
-
* Admin: manually debit a merchant's balance.
|
|
1681
|
-
*
|
|
1682
|
-
* @param merchantId - The merchant account ID.
|
|
1683
|
-
* @param params - Debit amount and reason.
|
|
1684
|
-
* @returns The adjustment result.
|
|
1685
|
-
*/
|
|
1686
|
-
adminDebit(merchantId: string, params: AdminAdjustmentRequest): Promise<AdminAdjustmentResponse>;
|
|
1687
1663
|
}
|
|
1688
1664
|
|
|
1689
1665
|
interface BlocklistListParams {
|
|
@@ -3223,4 +3199,4 @@ declare const Webhooks: {
|
|
|
3223
3199
|
verify(rawBody: string, signatureHeader: string, secret: string, options?: VerifyOptions): Promise<WebhookEvent>;
|
|
3224
3200
|
};
|
|
3225
3201
|
|
|
3226
|
-
export { type Address, type AddressDetails, type
|
|
3202
|
+
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, AnalyticsDashboard, 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 BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeType, Files, Forex, type ForgotPasswordRequest, type FromEmailRequest, type GatewayConnectRequest, type GatewayResponse, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type LedgerEntry, type LedgerListParams, type LedgerResponse, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, 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 RequestFn, type RequestOptions, type ResetPasswordRequest, type RoutingConfigCreateRequest, type RoutingConfigResponse, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionCreateRequest, type SubscriptionListParams, type SubscriptionListResponse, type SubscriptionResponse, type SubscriptionUpdateRequest, Subscriptions, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type UpdateUserDetailsRequest, type UserResponse, type VerifyOptions, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks };
|
package/dist/index.js
CHANGED
package/dist/internal.cjs
CHANGED
|
@@ -38,6 +38,7 @@ __export(internal_exports, {
|
|
|
38
38
|
Files: () => Files,
|
|
39
39
|
Forex: () => Forex,
|
|
40
40
|
Gsm: () => Gsm,
|
|
41
|
+
PlatformBilling: () => PlatformBilling,
|
|
41
42
|
PlatformFees: () => PlatformFees,
|
|
42
43
|
Regions: () => Regions,
|
|
43
44
|
Subscriptions: () => Subscriptions,
|
|
@@ -330,30 +331,6 @@ var Billing = class {
|
|
|
330
331
|
body: params
|
|
331
332
|
});
|
|
332
333
|
}
|
|
333
|
-
/**
|
|
334
|
-
* Admin: manually credit a merchant's balance (e.g. promotional credit).
|
|
335
|
-
*
|
|
336
|
-
* @param merchantId - The merchant account ID.
|
|
337
|
-
* @param params - Credit amount and reason.
|
|
338
|
-
* @returns The adjustment result.
|
|
339
|
-
*/
|
|
340
|
-
async adminCredit(merchantId, params) {
|
|
341
|
-
return this.request("POST", `/billing/${encodeURIComponent(merchantId)}/admin/credit`, {
|
|
342
|
-
body: params
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Admin: manually debit a merchant's balance.
|
|
347
|
-
*
|
|
348
|
-
* @param merchantId - The merchant account ID.
|
|
349
|
-
* @param params - Debit amount and reason.
|
|
350
|
-
* @returns The adjustment result.
|
|
351
|
-
*/
|
|
352
|
-
async adminDebit(merchantId, params) {
|
|
353
|
-
return this.request("POST", `/billing/${encodeURIComponent(merchantId)}/admin/debit`, {
|
|
354
|
-
body: params
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
334
|
};
|
|
358
335
|
|
|
359
336
|
// src/resources/blocklist.ts
|
|
@@ -3027,6 +3004,36 @@ var Gsm = class {
|
|
|
3027
3004
|
}
|
|
3028
3005
|
};
|
|
3029
3006
|
|
|
3007
|
+
// src/internal/resources/platformBilling.ts
|
|
3008
|
+
var PlatformBilling = class {
|
|
3009
|
+
constructor(request) {
|
|
3010
|
+
this.request = request;
|
|
3011
|
+
}
|
|
3012
|
+
/**
|
|
3013
|
+
* Manually credit a merchant's balance (e.g. promotional credit,
|
|
3014
|
+
* dispute reversal, manual correction).
|
|
3015
|
+
*
|
|
3016
|
+
* @param merchantId - The merchant account ID.
|
|
3017
|
+
* @param params - Credit amount and reason.
|
|
3018
|
+
*/
|
|
3019
|
+
async credit(merchantId, params) {
|
|
3020
|
+
return this.request("POST", `/billing/${encodeURIComponent(merchantId)}/admin/credit`, {
|
|
3021
|
+
body: params
|
|
3022
|
+
});
|
|
3023
|
+
}
|
|
3024
|
+
/**
|
|
3025
|
+
* Manually debit a merchant's balance.
|
|
3026
|
+
*
|
|
3027
|
+
* @param merchantId - The merchant account ID.
|
|
3028
|
+
* @param params - Debit amount and reason.
|
|
3029
|
+
*/
|
|
3030
|
+
async debit(merchantId, params) {
|
|
3031
|
+
return this.request("POST", `/billing/${encodeURIComponent(merchantId)}/admin/debit`, {
|
|
3032
|
+
body: params
|
|
3033
|
+
});
|
|
3034
|
+
}
|
|
3035
|
+
};
|
|
3036
|
+
|
|
3030
3037
|
// src/internal/resources/platformFees.ts
|
|
3031
3038
|
var PlatformFees = class {
|
|
3032
3039
|
constructor(request) {
|
|
@@ -3071,6 +3078,7 @@ var DelopayInternal = class extends Delopay {
|
|
|
3071
3078
|
this.cardIssuers = new CardIssuers(request);
|
|
3072
3079
|
this.configs = new Configs(request);
|
|
3073
3080
|
this.gsm = new Gsm(request);
|
|
3081
|
+
this.platformBilling = new PlatformBilling(request);
|
|
3074
3082
|
this.platformFees = new PlatformFees(request);
|
|
3075
3083
|
}
|
|
3076
3084
|
};
|
|
@@ -3094,6 +3102,7 @@ var DelopayInternal = class extends Delopay {
|
|
|
3094
3102
|
Files,
|
|
3095
3103
|
Forex,
|
|
3096
3104
|
Gsm,
|
|
3105
|
+
PlatformBilling,
|
|
3097
3106
|
PlatformFees,
|
|
3098
3107
|
Regions,
|
|
3099
3108
|
Subscriptions,
|