@plyaz/types 1.21.2 → 1.21.4
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/errors/store.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ export interface ErrorStoreState {
|
|
|
59
59
|
export interface ErrorStoreActions {
|
|
60
60
|
/** Add an error to the store */
|
|
61
61
|
addError: (error: SerializedError) => void;
|
|
62
|
+
/** Add multiple errors to the store (batch operation) */
|
|
63
|
+
addErrors: (errors: SerializedError[]) => void;
|
|
62
64
|
/** Remove an error by ID */
|
|
63
65
|
removeError: (id: string) => void;
|
|
64
66
|
/** Clear all errors */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CurrencyCode } from '../../../locale/types';
|
|
2
2
|
import type { ProviderHealthStatus } from '../../../features';
|
|
3
|
-
import type { BaseProviderConfig, CreatePricingParams, CreatePricingResult, CreateProductParams, CreateProductResult, UpdateProductStatusParams, FetchProductParams, FetchProductResult, UpdatePricingParams, UpdatePricingResult, UpdateProductParams, UpdateProductResult } from '../../gateways';
|
|
3
|
+
import type { BaseProviderConfig, CreatePricingParams, CreatePricingResult, CreateProductParams, CreateProductResult, UpdateProductStatusParams, UpdateProductStatusResult, FetchProductParams, FetchProductResult, UpdatePricingParams, UpdatePricingResult, UpdateProductParams, UpdateProductResult } from '../../gateways';
|
|
4
4
|
import type { PaymentResult, ProcessPaymentRequest } from '../../request';
|
|
5
5
|
import type { FeeBreakdown, Money } from '../../transaction';
|
|
6
6
|
import type { AdapterConfiguration, CreateCustomerParams, CreateSubscriptionParams, CustomerResult, FeeCalculationOptions, FeeStructure, PaymentStatusResult, PayoutParams, PayoutResult, RefundParams, RefundResult, SavedPaymentMethod, SavedPaymentMethodResult, SavePaymentMethodParams, SubscriptionResult, TransactionDetails, TransactionHistory, TransactionHistoryParams, WebhookPayload, WebhookResult, WithdrawalParams, WithdrawalResult } from '../core';
|
|
@@ -221,7 +221,7 @@ export interface PaymentAdapter {
|
|
|
221
221
|
/** Fetch provider product details */
|
|
222
222
|
fetchProduct?(params: FetchProductParams): Promise<FetchProductResult>;
|
|
223
223
|
/** Deactivate or archive provider product */
|
|
224
|
-
updateProductStatus?(params: UpdateProductStatusParams): Promise<
|
|
224
|
+
updateProductStatus?(params: UpdateProductStatusParams): Promise<UpdateProductStatusResult>;
|
|
225
225
|
createPricing?(params: CreatePricingParams): Promise<CreatePricingResult>;
|
|
226
226
|
updatePricing?(params: UpdatePricingParams): Promise<UpdatePricingResult>;
|
|
227
227
|
}
|
package/package.json
CHANGED