@questwork/q-store-model 0.1.45 → 0.2.2
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/v2/commercialVocabulary.d.ts +31 -0
- package/dist/v2/evaluation/acquisition.d.ts +49 -0
- package/dist/v2/evaluation/effectiveRules.d.ts +7 -0
- package/dist/v2/evaluation/index.d.ts +4 -0
- package/dist/v2/evaluation/ruleEvaluators.d.ts +49 -0
- package/dist/v2/evaluation/shared.d.ts +28 -0
- package/dist/v2/index.d.ts +14 -0
- package/dist/v2/internal/StoreContract.d.ts +10 -0
- package/dist/v2/internal/StoreContractValidationError.d.ts +9 -0
- package/dist/v2/internal/StoreEntity.d.ts +12 -0
- package/dist/v2/internal/validation.d.ts +17 -0
- package/dist/v2/models/Acquisition.d.ts +5 -0
- package/dist/v2/models/AcquisitionSnapshot.d.ts +5 -0
- package/dist/v2/models/Category.d.ts +5 -0
- package/dist/v2/models/CommercialLifecycle.d.ts +5 -0
- package/dist/v2/models/Currency.d.ts +5 -0
- package/dist/v2/models/EligibilityFact.d.ts +4 -0
- package/dist/v2/models/InventoryBalance.d.ts +5 -0
- package/dist/v2/models/InventoryLedgerEntry.d.ts +10 -0
- package/dist/v2/models/Invoice.d.ts +5 -0
- package/dist/v2/models/InvoiceRevision.d.ts +5 -0
- package/dist/v2/models/Merchandise.d.ts +5 -0
- package/dist/v2/models/MerchandiseComponent.d.ts +4 -0
- package/dist/v2/models/Order.d.ts +5 -0
- package/dist/v2/models/OrderLine.d.ts +4 -0
- package/dist/v2/models/PaymentAttempt.d.ts +7 -0
- package/dist/v2/models/PaymentMethodConfigurationSnapshot.d.ts +4 -0
- package/dist/v2/models/PriceEvaluationContext.d.ts +4 -0
- package/dist/v2/models/PriceMatchCriteria.d.ts +4 -0
- package/dist/v2/models/PriceRow.d.ts +4 -0
- package/dist/v2/models/PriceSchedule.d.ts +5 -0
- package/dist/v2/models/PriceScheduleRef.d.ts +4 -0
- package/dist/v2/models/Product.d.ts +5 -0
- package/dist/v2/models/PublishedRule.d.ts +5 -0
- package/dist/v2/models/PublishedRuleRef.d.ts +4 -0
- package/dist/v2/models/Receipt.d.ts +5 -0
- package/dist/v2/models/RefundPolicy.d.ts +5 -0
- package/dist/v2/models/RefundPolicyRef.d.ts +4 -0
- package/dist/v2/models/RequirementPlan.d.ts +4 -0
- package/dist/v2/models/Reservation.d.ts +4 -0
- package/dist/v2/models/SalesPeriod.d.ts +5 -0
- package/dist/v2/models/SalesPeriodRef.d.ts +4 -0
- package/dist/v2/models/Settlement.d.ts +5 -0
- package/dist/v2/models/Variant.d.ts +5 -0
- package/dist/v2/models/VariantRef.d.ts +4 -0
- package/dist/v2/models/WalletItem.d.ts +5 -0
- package/dist/v2/models/index.d.ts +37 -0
- package/dist/v2/models/ruleDetails/EligibilityRuleDetails.d.ts +4 -0
- package/dist/v2/models/ruleDetails/InventoryRuleDetails.d.ts +4 -0
- package/dist/v2/models/ruleDetails/PrerequisiteRuleDetails.d.ts +4 -0
- package/dist/v2/models/ruleDetails/QuantityRuleDetails.d.ts +4 -0
- package/dist/v2/models/ruleDetails/RefundRuleDetails.d.ts +4 -0
- package/dist/v2/models/ruleDetails/RequirementDefinition.d.ts +4 -0
- package/dist/v2/models/ruleDetails/RequirementFieldDefinition.d.ts +4 -0
- package/dist/v2/models/ruleDetails/RequirementRuleDetails.d.ts +4 -0
- package/dist/v2/models/ruleDetails/index.d.ts +1 -0
- package/dist/v2/models/ruleDetails/shared.d.ts +8 -0
- package/dist/v2/paymentTime.d.ts +8 -0
- package/dist/v2/q-store-model-v2.cjs +2 -0
- package/dist/v2/q-store-model-v2.esm.js +2409 -0
- package/dist/v2/ruleVocabulary.d.ts +76 -0
- package/dist/v2/walletItemUpdates.d.ts +11 -0
- package/package.json +14 -6
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export const ACQUISITION_SOURCES: Readonly<{
|
|
2
|
+
PURCHASE: "PURCHASE";
|
|
3
|
+
ADMIN_ASSIGNMENT: "ADMIN_ASSIGNMENT";
|
|
4
|
+
ROLE_BENEFIT: "ROLE_BENEFIT";
|
|
5
|
+
PROMOTION_REDEMPTION: "PROMOTION_REDEMPTION";
|
|
6
|
+
}>;
|
|
7
|
+
export const ORDER_STATES: Readonly<{
|
|
8
|
+
CREATED: "CREATED";
|
|
9
|
+
PAYMENT_REQUIRED: "PAYMENT_REQUIRED";
|
|
10
|
+
PAYMENT_IN_PROGRESS: "PAYMENT_IN_PROGRESS";
|
|
11
|
+
PAID: "PAID";
|
|
12
|
+
COMPLETED: "COMPLETED";
|
|
13
|
+
CANCELLED: "CANCELLED";
|
|
14
|
+
EXPIRED: "EXPIRED";
|
|
15
|
+
}>;
|
|
16
|
+
export const PAYMENT_ATTEMPT_STATES: Readonly<{
|
|
17
|
+
CREATED: "CREATED";
|
|
18
|
+
PAYMENT_IN_PROGRESS: "PAYMENT_IN_PROGRESS";
|
|
19
|
+
SUCCEEDED: "SUCCEEDED";
|
|
20
|
+
FAILED: "FAILED";
|
|
21
|
+
CANCELLED: "CANCELLED";
|
|
22
|
+
EXPIRED: "EXPIRED";
|
|
23
|
+
}>;
|
|
24
|
+
export const RESERVATION_STATES: Readonly<{
|
|
25
|
+
HELD_FOR_CHECKOUT: "HELD_FOR_CHECKOUT";
|
|
26
|
+
HELD_FOR_PROVIDER: "HELD_FOR_PROVIDER";
|
|
27
|
+
HELD_FOR_REVIEW: "HELD_FOR_REVIEW";
|
|
28
|
+
CONSUMED: "CONSUMED";
|
|
29
|
+
RELEASED: "RELEASED";
|
|
30
|
+
EXPIRED: "EXPIRED";
|
|
31
|
+
}>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AcquisitionSnapshot } from '../models/index.js';
|
|
2
|
+
export function createAcquisitionSnapshot({ id, evaluated, preview, context }: {
|
|
3
|
+
id: any;
|
|
4
|
+
evaluated: any;
|
|
5
|
+
preview: any;
|
|
6
|
+
context: any;
|
|
7
|
+
}): AcquisitionSnapshot;
|
|
8
|
+
export function evaluateAcquisitionPreview({ acquisitionSource, categories, countryCode, countryRank, currency, eligibilityFacts, eventRegistrationCode, existingItems, instant, inventoryFacts, merchandise, priceSchedule, products, publishedRules, quantity, requirementInputs, requirementValues, salesPeriods, variants, variantSelections, recipientFacts, }: {
|
|
9
|
+
acquisitionSource: any;
|
|
10
|
+
categories: any;
|
|
11
|
+
countryCode: any;
|
|
12
|
+
countryRank: any;
|
|
13
|
+
currency: any;
|
|
14
|
+
eligibilityFacts?: any[];
|
|
15
|
+
eventRegistrationCode: any;
|
|
16
|
+
existingItems?: any[];
|
|
17
|
+
instant: any;
|
|
18
|
+
inventoryFacts?: any[];
|
|
19
|
+
merchandise: any;
|
|
20
|
+
priceSchedule: any;
|
|
21
|
+
products: any;
|
|
22
|
+
publishedRules: any;
|
|
23
|
+
quantity?: number;
|
|
24
|
+
requirementInputs?: any[];
|
|
25
|
+
requirementValues?: {};
|
|
26
|
+
salesPeriods?: any[];
|
|
27
|
+
variants?: any[];
|
|
28
|
+
variantSelections?: any[];
|
|
29
|
+
recipientFacts: any;
|
|
30
|
+
}): any;
|
|
31
|
+
export function expandCandidateItems({ merchandise, products, quantity }: {
|
|
32
|
+
merchandise: any;
|
|
33
|
+
products: any;
|
|
34
|
+
quantity: any;
|
|
35
|
+
}): any;
|
|
36
|
+
export function projectWalletItems({ acquisitionSnapshot, walletItemIdFactory }: {
|
|
37
|
+
acquisitionSnapshot: any;
|
|
38
|
+
walletItemIdFactory: any;
|
|
39
|
+
}): any;
|
|
40
|
+
export function validateAcquisitionDefinitions({ categories, merchandise, priceSchedule, products, quantity, requirementInputs, variants, variantSelections, }: {
|
|
41
|
+
categories?: any[];
|
|
42
|
+
merchandise: any;
|
|
43
|
+
priceSchedule: any;
|
|
44
|
+
products?: any[];
|
|
45
|
+
quantity: any;
|
|
46
|
+
requirementInputs?: any[];
|
|
47
|
+
variants?: any[];
|
|
48
|
+
variantSelections?: any[];
|
|
49
|
+
}): any;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { collectEffectiveRules } from './effectiveRules.js';
|
|
2
|
+
export { createAcquisitionSnapshot, evaluateAcquisitionPreview, expandCandidateItems, projectWalletItems, validateAcquisitionDefinitions } from './acquisition.js';
|
|
3
|
+
export { evaluateEligibilityRules, evaluateInventoryRules, evaluatePrerequisiteRules, evaluatePriceMatchCriteria, evaluateQuantityRules, evaluateRequirementConfigurationState, planItemRequirements, resolvePrice } from './ruleEvaluators.js';
|
|
4
|
+
export { DECISION_CODES, DEFAULT_ACTIVE_ITEM_STATES, TERMINAL_ITEM_STATES } from './shared.js';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export function evaluateEligibilityRules({ rules, eligibilityFacts, eventRegistrationCode, candidateItems }: {
|
|
2
|
+
rules?: any[];
|
|
3
|
+
eligibilityFacts?: any[];
|
|
4
|
+
eventRegistrationCode: any;
|
|
5
|
+
candidateItems?: any[];
|
|
6
|
+
}): any;
|
|
7
|
+
export function evaluateInventoryRules({ rules, candidateItems, inventoryFacts, variantSelections }: {
|
|
8
|
+
rules?: any[];
|
|
9
|
+
candidateItems?: any[];
|
|
10
|
+
inventoryFacts?: any[];
|
|
11
|
+
variantSelections?: any[];
|
|
12
|
+
}): any;
|
|
13
|
+
export function evaluatePrerequisiteRules({ rules, existingItems, candidateItems }: {
|
|
14
|
+
rules?: any[];
|
|
15
|
+
existingItems?: any[];
|
|
16
|
+
candidateItems?: any[];
|
|
17
|
+
}): any;
|
|
18
|
+
export function evaluatePriceMatchCriteria({ match, countryCode, countryRank }: {
|
|
19
|
+
match?: {};
|
|
20
|
+
countryCode: any;
|
|
21
|
+
countryRank: any;
|
|
22
|
+
}): any;
|
|
23
|
+
export function evaluateQuantityRules({ rules, existingItems, candidateItems, activeItemStates }: {
|
|
24
|
+
rules?: any[];
|
|
25
|
+
existingItems?: any[];
|
|
26
|
+
candidateItems?: any[];
|
|
27
|
+
activeItemStates?: readonly ("VALID" | "PENDING_REQUIREMENT" | "RESERVED")[];
|
|
28
|
+
}): any;
|
|
29
|
+
export function evaluateRequirementConfigurationState({ requirementPlan, rule, instant }: {
|
|
30
|
+
requirementPlan?: {};
|
|
31
|
+
rule: any;
|
|
32
|
+
instant: any;
|
|
33
|
+
}): any;
|
|
34
|
+
export function planItemRequirements({ rules, candidateItems, requirementInputs, requirementValues, variantSelections, }: {
|
|
35
|
+
rules?: any[];
|
|
36
|
+
candidateItems?: any[];
|
|
37
|
+
requirementInputs?: any[];
|
|
38
|
+
requirementValues?: {};
|
|
39
|
+
variantSelections?: any[];
|
|
40
|
+
}): any;
|
|
41
|
+
export function resolvePrice({ priceSchedule, salesPeriods, currency, countryCode, countryRank, acquisitionSource, instant }: {
|
|
42
|
+
priceSchedule: any;
|
|
43
|
+
salesPeriods?: any[];
|
|
44
|
+
currency: any;
|
|
45
|
+
countryCode: any;
|
|
46
|
+
countryRank: any;
|
|
47
|
+
acquisitionSource: any;
|
|
48
|
+
instant: any;
|
|
49
|
+
}): any;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export function decision({ passed, code, message, details }: {
|
|
2
|
+
passed: any;
|
|
3
|
+
code?: any;
|
|
4
|
+
message: any;
|
|
5
|
+
details?: {};
|
|
6
|
+
}): any;
|
|
7
|
+
export const DECISION_CODES: Readonly<{
|
|
8
|
+
DEFINITION_INVALID: "DEFINITION_INVALID";
|
|
9
|
+
ELIGIBILITY_REJECTED: "ELIGIBILITY_REJECTED";
|
|
10
|
+
ELIGIBILITY_REQUIRED: "ELIGIBILITY_REQUIRED";
|
|
11
|
+
ELIGIBILITY_REVOKED: "ELIGIBILITY_REVOKED";
|
|
12
|
+
ELIGIBILITY_UNDER_REVIEW: "ELIGIBILITY_UNDER_REVIEW";
|
|
13
|
+
INVENTORY_UNAVAILABLE: "INVENTORY_UNAVAILABLE";
|
|
14
|
+
PREREQUISITE_NOT_MET: "PREREQUISITE_NOT_MET";
|
|
15
|
+
PRICE_COUNTRY_UNRESOLVED: "PRICE_COUNTRY_UNRESOLVED";
|
|
16
|
+
PRICE_MATCH_CRITERIA_NOT_MET: "PRICE_MATCH_CRITERIA_NOT_MET";
|
|
17
|
+
PRICE_ROW_AMBIGUOUS: "PRICE_ROW_AMBIGUOUS";
|
|
18
|
+
PRICE_ROW_NOT_FOUND: "PRICE_ROW_NOT_FOUND";
|
|
19
|
+
QUANTITY_LIMIT_EXCEEDED: "QUANTITY_LIMIT_EXCEEDED";
|
|
20
|
+
REQUIREMENT_INCOMPLETE: "REQUIREMENT_INCOMPLETE";
|
|
21
|
+
REVISION_CONFLICT: "REVISION_CONFLICT";
|
|
22
|
+
VARIANT_SELECTION_REQUIRED: "VARIANT_SELECTION_REQUIRED";
|
|
23
|
+
}>;
|
|
24
|
+
export const DEFAULT_ACTIVE_ITEM_STATES: readonly ("VALID" | "PENDING_REQUIREMENT" | "RESERVED")[];
|
|
25
|
+
export function isUsableItem(item: any): boolean;
|
|
26
|
+
export function sumMatchingItems(items: any, target: any, states: any): any;
|
|
27
|
+
export function targetMatchesItem(target: any, item: any): any;
|
|
28
|
+
export const TERMINAL_ITEM_STATES: readonly ("CANCELLED" | "EXPIRED" | "REVOKED" | "REFUNDED")[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serialization and public-contract generation for the v2 Store model boundary.
|
|
3
|
+
*
|
|
4
|
+
* @type {2}
|
|
5
|
+
*/
|
|
6
|
+
export const STORE_MODEL_V2_CONTRACT_VERSION: 2;
|
|
7
|
+
export { StoreContractValidationError } from './internal/StoreContractValidationError.js';
|
|
8
|
+
export { StoreEntity } from './internal/StoreEntity.js';
|
|
9
|
+
export { ACQUISITION_SOURCES, ORDER_STATES, PAYMENT_ATTEMPT_STATES, RESERVATION_STATES } from './commercialVocabulary.js';
|
|
10
|
+
export { collectEffectiveRules, createAcquisitionSnapshot, DECISION_CODES, DEFAULT_ACTIVE_ITEM_STATES, evaluateAcquisitionPreview, evaluateEligibilityRules, evaluateInventoryRules, evaluatePrerequisiteRules, evaluatePriceMatchCriteria, evaluateQuantityRules, evaluateRequirementConfigurationState, expandCandidateItems, planItemRequirements, projectWalletItems, resolvePrice, TERMINAL_ITEM_STATES, validateAcquisitionDefinitions } from './evaluation/index.js';
|
|
11
|
+
export { Acquisition, AcquisitionSnapshot, Category, CommercialLifecycle, Currency, EligibilityFact, INVENTORY_LEDGER_ACTIONS, InventoryBalance, InventoryLedgerEntry, Invoice, InvoiceRevision, Merchandise, MerchandiseComponent, Order, OrderLine, PaymentAttempt, PaymentMethodConfigurationSnapshot, PriceEvaluationContext, PriceMatchCriteria, PriceRow, PriceSchedule, PriceScheduleRef, Product, PublishedRule, PublishedRuleRef, Receipt, RefundPolicy, RefundPolicyRef, RequirementDefinition, RequirementFieldDefinition, RequirementPlan, Reservation, SalesPeriod, SalesPeriodRef, Settlement, Variant, VariantRef, WalletItem } from './models/index.js';
|
|
12
|
+
export { calculatePaymentDeadline, canStartPaymentAttempt } from './paymentTime.js';
|
|
13
|
+
export { ELIGIBILITY_STATES, INVENTORY_MODES, MATCH_MODES, PREREQUISITE_EVIDENCE_SOURCES, QUANTITY_LIMIT_TYPES, REQUIREMENT_COMPLETION_STATES, REQUIREMENT_COMPLETION_TIMINGS, REQUIREMENT_INPUT_TYPES, REQUIREMENT_MODIFICATION_MODES, REQUIREMENT_MODIFICATION_STATES, RULE_SOURCES, RULE_TYPES, TARGET_TYPES, WALLET_ITEM_STATES } from './ruleVocabulary.js';
|
|
14
|
+
export { applyWalletItemRequirementValues, applyWalletItemVariantSelection } from './walletItemUpdates.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function assertKnownFields({ contractName, object, fields }: {
|
|
2
|
+
contractName: any;
|
|
3
|
+
object: any;
|
|
4
|
+
fields: any;
|
|
5
|
+
}): void;
|
|
6
|
+
export function cloneJsonValue(value: any, path?: string): any;
|
|
7
|
+
export function deepFreeze(value: any): any;
|
|
8
|
+
export function jsonArray(value: any, path: any, issues: any): any;
|
|
9
|
+
export function nonNegativeInteger(value: any, path: any, issues: any, fallback?: number): any;
|
|
10
|
+
export function nonNegativeNumber(value: any, path: any, issues: any, fallback?: number): number;
|
|
11
|
+
export function optionalString(value: any, path: any, issues: any): string;
|
|
12
|
+
export function optionalTimestampString(value: any, path: any, issues: any): string;
|
|
13
|
+
export function plainObject(value: any, path: any, issues: any): any;
|
|
14
|
+
export function positiveInteger(value: any, path: any, issues: any, fallback?: number): any;
|
|
15
|
+
export function requiredString(value: any, path: any, issues: any): string;
|
|
16
|
+
export function stringArray(value: any, path: any, issues: any): string[];
|
|
17
|
+
export function timestampString(value: any, path: any, issues: any): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StoreEntity } from '../internal/StoreEntity.js';
|
|
2
|
+
export const INVENTORY_LEDGER_ACTIONS: Readonly<{
|
|
3
|
+
HELD: "HELD";
|
|
4
|
+
CONSUMED: "CONSUMED";
|
|
5
|
+
RELEASED: "RELEASED";
|
|
6
|
+
}>;
|
|
7
|
+
export class InventoryLedgerEntry extends StoreEntity {
|
|
8
|
+
constructor(object?: {});
|
|
9
|
+
getCode(): any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export { Acquisition } from './Acquisition.js';
|
|
2
|
+
export { AcquisitionSnapshot } from './AcquisitionSnapshot.js';
|
|
3
|
+
export { Category } from './Category.js';
|
|
4
|
+
export { CommercialLifecycle } from './CommercialLifecycle.js';
|
|
5
|
+
export { Currency } from './Currency.js';
|
|
6
|
+
export { EligibilityFact } from './EligibilityFact.js';
|
|
7
|
+
export { InventoryBalance } from './InventoryBalance.js';
|
|
8
|
+
export { Invoice } from './Invoice.js';
|
|
9
|
+
export { InvoiceRevision } from './InvoiceRevision.js';
|
|
10
|
+
export { Merchandise } from './Merchandise.js';
|
|
11
|
+
export { MerchandiseComponent } from './MerchandiseComponent.js';
|
|
12
|
+
export { Order } from './Order.js';
|
|
13
|
+
export { OrderLine } from './OrderLine.js';
|
|
14
|
+
export { PaymentAttempt } from './PaymentAttempt.js';
|
|
15
|
+
export { PaymentMethodConfigurationSnapshot } from './PaymentMethodConfigurationSnapshot.js';
|
|
16
|
+
export { PriceEvaluationContext } from './PriceEvaluationContext.js';
|
|
17
|
+
export { PriceMatchCriteria } from './PriceMatchCriteria.js';
|
|
18
|
+
export { PriceRow } from './PriceRow.js';
|
|
19
|
+
export { PriceSchedule } from './PriceSchedule.js';
|
|
20
|
+
export { PriceScheduleRef } from './PriceScheduleRef.js';
|
|
21
|
+
export { Product } from './Product.js';
|
|
22
|
+
export { PublishedRule } from './PublishedRule.js';
|
|
23
|
+
export { PublishedRuleRef } from './PublishedRuleRef.js';
|
|
24
|
+
export { Receipt } from './Receipt.js';
|
|
25
|
+
export { RefundPolicy } from './RefundPolicy.js';
|
|
26
|
+
export { RefundPolicyRef } from './RefundPolicyRef.js';
|
|
27
|
+
export { RequirementPlan } from './RequirementPlan.js';
|
|
28
|
+
export { Reservation } from './Reservation.js';
|
|
29
|
+
export { RequirementDefinition } from './ruleDetails/RequirementDefinition.js';
|
|
30
|
+
export { RequirementFieldDefinition } from './ruleDetails/RequirementFieldDefinition.js';
|
|
31
|
+
export { SalesPeriod } from './SalesPeriod.js';
|
|
32
|
+
export { SalesPeriodRef } from './SalesPeriodRef.js';
|
|
33
|
+
export { Settlement } from './Settlement.js';
|
|
34
|
+
export { Variant } from './Variant.js';
|
|
35
|
+
export { VariantRef } from './VariantRef.js';
|
|
36
|
+
export { WalletItem } from './WalletItem.js';
|
|
37
|
+
export { INVENTORY_LEDGER_ACTIONS, InventoryLedgerEntry } from './InventoryLedgerEntry.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function createRuleDetails(ruleType: any, object: any): any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function normalizedTarget(target: any, path: any, issues: any, targetTypes: any): any;
|
|
2
|
+
export function optionalTimestamp(value: any, path: any, issues: any): string;
|
|
3
|
+
export function validateAllowedValues({ values, allowedValues, path, issues }: {
|
|
4
|
+
values: any;
|
|
5
|
+
allowedValues: any;
|
|
6
|
+
path: any;
|
|
7
|
+
issues: any;
|
|
8
|
+
}): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function calculatePaymentDeadline({ paymentAttemptMeta, defaultPaymentDuration }: {
|
|
2
|
+
paymentAttemptMeta: any;
|
|
3
|
+
defaultPaymentDuration: any;
|
|
4
|
+
}): string;
|
|
5
|
+
export function canStartPaymentAttempt({ paymentAttemptMeta, salesPeriodEnd }: {
|
|
6
|
+
paymentAttemptMeta: any;
|
|
7
|
+
salesPeriodEnd: any;
|
|
8
|
+
}): boolean;
|