@xyo-network/payment-payload-plugins 3.6.1 → 4.1.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/{types → neutral}/Amount/Iso4217Currency.d.ts.map +1 -1
- package/dist/neutral/Amount/Payload.d.ts +25 -0
- package/dist/{types → neutral}/Amount/Payload.d.ts.map +1 -1
- package/dist/neutral/Billing/Address/Address.d.ts +42 -0
- package/dist/{types → neutral}/Billing/Address/Address.d.ts.map +1 -1
- package/dist/{types → neutral}/Discount/Params.d.ts +2 -2
- package/dist/{types → neutral}/Discount/Params.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +24 -0
- package/dist/{types → neutral}/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +24 -0
- package/dist/{types → neutral}/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +24 -0
- package/dist/{types → neutral}/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +16 -0
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +1 -0
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +16 -0
- package/dist/{types → neutral}/Discount/Payload/Coupon/types/Condition.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Discount.d.ts +23 -0
- package/dist/{types → neutral}/Discount/Payload/Discount.d.ts.map +1 -1
- package/dist/neutral/Escrow/Outcome.d.ts +29 -0
- package/dist/{types → neutral}/Escrow/Outcome.d.ts.map +1 -1
- package/dist/{types → neutral}/Escrow/Terms/Terms.d.ts +4 -10
- package/dist/{types → neutral}/Escrow/Terms/Terms.d.ts.map +1 -1
- package/dist/{types → neutral}/Escrow/util/secret/createEscrowIntent.d.ts +1 -1
- package/dist/{types → neutral}/Escrow/util/secret/createEscrowIntent.d.ts.map +1 -1
- package/dist/{types → neutral}/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +1 -1
- package/dist/{types → neutral}/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/spec/moduleInstanceValidators.spec.d.ts +2 -0
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/spec/moduleInstanceValidators.spec.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/common/SecretValidators/spec/getPartySecretSignedValidator.spec.d.ts +2 -0
- package/dist/neutral/Escrow/validators/common/SecretValidators/spec/getPartySecretSignedValidator.spec.d.ts.map +1 -0
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +44 -0
- package/dist/{types → neutral}/Payment/Instrument/Card/Payload.d.ts.map +1 -1
- package/dist/neutral/Payment/Payload.d.ts +30 -0
- package/dist/{types → neutral}/Payment/Payload.d.ts.map +1 -1
- package/dist/neutral/Payment/Status/Payload.d.ts +29 -0
- package/dist/{types → neutral}/Payment/Status/Payload.d.ts.map +1 -1
- package/dist/neutral/Purchase/Payload.d.ts +31 -0
- package/dist/{types → neutral}/Purchase/Payload.d.ts.map +1 -1
- package/dist/neutral/Receipt/Payload.d.ts +30 -0
- package/dist/{types → neutral}/Receipt/Payload.d.ts.map +1 -1
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts +23 -0
- package/dist/{types → neutral}/Subtotal/Diviner/Payload.d.ts.map +1 -1
- package/dist/neutral/Total/Diviner/Payload.d.ts +23 -0
- package/dist/{types → neutral}/Total/Diviner/Payload.d.ts.map +1 -1
- package/dist/neutral/index.d.ts +850 -0
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +26 -26
- package/src/Amount/Iso4217Currency.ts +360 -360
- package/src/Discount/Params.ts +3 -3
- package/src/Discount/Payload/Coupon/Payload.ts +4 -4
- package/dist/types/Amount/Payload.d.ts +0 -31
- package/dist/types/Billing/Address/Address.d.ts +0 -48
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +0 -30
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +0 -30
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +0 -30
- package/dist/types/Discount/Payload/Coupon/Payload.d.ts +0 -22
- package/dist/types/Discount/Payload/Coupon/Payload.d.ts.map +0 -1
- package/dist/types/Discount/Payload/Coupon/types/Condition.d.ts +0 -22
- package/dist/types/Discount/Payload/Discount.d.ts +0 -29
- package/dist/types/Escrow/Outcome.d.ts +0 -32
- package/dist/types/Payment/Instrument/Card/Payload.d.ts +0 -50
- package/dist/types/Payment/Payload.d.ts +0 -36
- package/dist/types/Payment/Status/Payload.d.ts +0 -35
- package/dist/types/Purchase/Payload.d.ts +0 -37
- package/dist/types/Receipt/Payload.d.ts +0 -36
- package/dist/types/Subtotal/Diviner/Payload.d.ts +0 -29
- package/dist/types/Total/Diviner/Payload.d.ts +0 -29
- package/dist/types/index.d.ts +0 -12
- /package/dist/{types → neutral}/Amount/Iso4217Currency.d.ts +0 -0
- /package/dist/{types → neutral}/Amount/index.d.ts +0 -0
- /package/dist/{types → neutral}/Amount/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Billing/Address/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Billing/Address/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Billing/Address/index.d.ts +0 -0
- /package/dist/{types → neutral}/Billing/Address/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Billing/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Billing/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Billing/index.d.ts +0 -0
- /package/dist/{types → neutral}/Billing/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Currency.d.ts +0 -0
- /package/dist/{types → neutral}/Currency.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Config.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Config.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/index.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Coupons/index.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Coupons/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/index.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/types/CouponFields.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/types/CouponFields.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/types/index.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/types/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/types/isStackable.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/types/isStackable.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/NoDiscount.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/NoDiscount.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/index.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/index.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/Terms/Party.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/Terms/Party.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/Terms/PartySecret.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/Terms/PartySecret.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/Terms/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/Terms/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/util/appraisal/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/util/appraisal/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/util/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/util/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/util/secret/getEscrowSecret.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/util/secret/getEscrowSecret.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/util/secret/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/util/secret/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/SecretValidators/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/SecretValidators/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/TemporalValidators/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/TemporalValidators/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/agent.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/agent.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/appraisal.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/appraisal.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/appraisalAuthorities.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/assets.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/assets.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/buyer.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/buyer.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/buyerSecret.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/buyerSecret.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/nbfExp.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/nbfExp.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/paymentAuthorities.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/paymentAuthorities.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/seller.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/seller.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/sellerSecret.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/sellerSecret.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Invoice/Invoice.d.ts +0 -0
- /package/dist/{types → neutral}/Invoice/Invoice.d.ts.map +0 -0
- /package/dist/{types → neutral}/Invoice/index.d.ts +0 -0
- /package/dist/{types → neutral}/Invoice/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/Card/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/Card/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/Card/index.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/Card/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/index.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/Status/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/Status/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/Status/index.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/Status/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/index.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Purchase/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Purchase/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Purchase/index.d.ts +0 -0
- /package/dist/{types → neutral}/Purchase/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Receipt/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Receipt/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Receipt/index.d.ts +0 -0
- /package/dist/{types → neutral}/Receipt/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Subtotal/Diviner/Config.d.ts +0 -0
- /package/dist/{types → neutral}/Subtotal/Diviner/Config.d.ts.map +0 -0
- /package/dist/{types → neutral}/Subtotal/Diviner/Params.d.ts +0 -0
- /package/dist/{types → neutral}/Subtotal/Diviner/Params.d.ts.map +0 -0
- /package/dist/{types → neutral}/Subtotal/Diviner/index.d.ts +0 -0
- /package/dist/{types → neutral}/Subtotal/Diviner/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Subtotal/index.d.ts +0 -0
- /package/dist/{types → neutral}/Subtotal/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Total/Diviner/Config.d.ts +0 -0
- /package/dist/{types → neutral}/Total/Diviner/Config.d.ts.map +0 -0
- /package/dist/{types → neutral}/Total/Diviner/Params.d.ts +0 -0
- /package/dist/{types → neutral}/Total/Diviner/Params.d.ts.map +0 -0
- /package/dist/{types → neutral}/Total/Diviner/index.d.ts +0 -0
- /package/dist/{types → neutral}/Total/Diviner/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Total/index.d.ts +0 -0
- /package/dist/{types → neutral}/Total/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/index.d.ts.map +0 -0
package/src/Discount/Params.ts
CHANGED
|
@@ -4,11 +4,11 @@ import type { AnyConfigSchema } from '@xyo-network/module-model'
|
|
|
4
4
|
|
|
5
5
|
import type { PaymentDiscountDivinerConfig } from './Config.ts'
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface PaymentDiscountDivinerParams<
|
|
8
8
|
TConfig extends AnyConfigSchema<PaymentDiscountDivinerConfig> = AnyConfigSchema<PaymentDiscountDivinerConfig>,
|
|
9
|
-
>
|
|
9
|
+
> extends DivinerParams<TConfig> {
|
|
10
10
|
/**
|
|
11
11
|
* The list of coupon authorities that can be used to get a discount
|
|
12
12
|
*/
|
|
13
13
|
couponAuthorities?: Address[]
|
|
14
|
-
}
|
|
14
|
+
}
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
/**
|
|
14
14
|
* The type of coupons
|
|
15
15
|
*/
|
|
16
|
-
export type Coupon
|
|
17
|
-
FixedAmountCoupon
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
export type Coupon
|
|
17
|
+
= FixedAmountCoupon
|
|
18
|
+
| FixedPercentageCoupon
|
|
19
|
+
| FixedPriceCoupon
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Identity function for determining if an object is an Coupon
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import type { Iso4217AlphabeticalCode } from './Iso4217Currency.ts';
|
|
3
|
-
export declare const AmountSchema: "network.xyo.payments.amount";
|
|
4
|
-
export type AmountSchema = typeof AmountSchema;
|
|
5
|
-
export interface AmountFields {
|
|
6
|
-
amount: number;
|
|
7
|
-
currency: Iso4217AlphabeticalCode;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* The result of a amount
|
|
11
|
-
*/
|
|
12
|
-
export type Amount = PayloadWithSources<AmountFields, AmountSchema>;
|
|
13
|
-
/**
|
|
14
|
-
* Identity function for determining if an object is an Amount
|
|
15
|
-
*/
|
|
16
|
-
export declare const isAmount: (x?: unknown | null) => x is Amount;
|
|
17
|
-
export declare const asAmount: {
|
|
18
|
-
<TType extends Amount>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
19
|
-
<TType extends Amount>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<Amount>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
20
|
-
};
|
|
21
|
-
export declare const asOptionalAmount: <TType extends Amount>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Identity function for determining if an object is an Amount with sources
|
|
24
|
-
*/
|
|
25
|
-
export declare const isAmountWithSources: (x?: unknown | null) => x is WithSources<Amount>;
|
|
26
|
-
export declare const asAmountWithSources: {
|
|
27
|
-
<TType extends WithSources<Amount>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
28
|
-
<TType extends WithSources<Amount>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<Amount>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
29
|
-
};
|
|
30
|
-
export declare const asOptionalAmountWithSources: <TType extends WithSources<Amount>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
31
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import { BillingAddressSchema } from './Schema.ts';
|
|
3
|
-
/**
|
|
4
|
-
* The fields describing a billing address.
|
|
5
|
-
*/
|
|
6
|
-
export interface BillingAddressFields {
|
|
7
|
-
/** Street address line 1. */
|
|
8
|
-
address?: string;
|
|
9
|
-
/** Street address line 2. */
|
|
10
|
-
address2?: string | null;
|
|
11
|
-
/** City of the billing address. */
|
|
12
|
-
city?: string;
|
|
13
|
-
/** Country code of the billing address, ISO 3166-1 alpha-2 code. */
|
|
14
|
-
country?: string;
|
|
15
|
-
/** First name */
|
|
16
|
-
firstName: string;
|
|
17
|
-
/** Last name */
|
|
18
|
-
lastName: string;
|
|
19
|
-
/** Organization or company name associated with the billing address. */
|
|
20
|
-
organization?: string | null;
|
|
21
|
-
/** Postal or ZIP code of the billing address. */
|
|
22
|
-
postalCode?: string;
|
|
23
|
-
/** State or region of the billing address. */
|
|
24
|
-
region?: string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* A BillingAddress Payload
|
|
28
|
-
*/
|
|
29
|
-
export type BillingAddress = Payload<BillingAddressFields, BillingAddressSchema>;
|
|
30
|
-
/**
|
|
31
|
-
* Identity function for determine if an object is a BillingAddress
|
|
32
|
-
*/
|
|
33
|
-
export declare const isBillingAddress: (x?: unknown | null) => x is BillingAddress;
|
|
34
|
-
export declare const asBillingAddress: {
|
|
35
|
-
<TType extends BillingAddress>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
36
|
-
<TType extends BillingAddress>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<BillingAddress>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
37
|
-
};
|
|
38
|
-
export declare const asOptionalBillingAddress: <TType extends BillingAddress>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Identity function for determine if an object is a BillingAddress with sources
|
|
41
|
-
*/
|
|
42
|
-
export declare const isBillingAddressWithSources: (x?: unknown | null) => x is WithSources<BillingAddress>;
|
|
43
|
-
export declare const asBillingAddressWithSources: {
|
|
44
|
-
<TType extends WithSources<BillingAddress>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
45
|
-
<TType extends WithSources<BillingAddress>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<BillingAddress>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
46
|
-
};
|
|
47
|
-
export declare const asOptionalBillingAddressWithSources: <TType extends WithSources<BillingAddress>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
48
|
-
//# sourceMappingURL=Address.d.ts.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import type { AmountFields } from '../../../../Amount/index.ts';
|
|
3
|
-
import type { CouponFields } from '../types/index.ts';
|
|
4
|
-
export declare const FixedAmountCouponSchema: "network.xyo.payments.coupon.fixed.amount";
|
|
5
|
-
export type FixedAmountCouponSchema = typeof FixedAmountCouponSchema;
|
|
6
|
-
export interface FixedAmountCouponFields extends CouponFields, AmountFields {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* A coupon that provides a fixed discount amount
|
|
10
|
-
*/
|
|
11
|
-
export type FixedAmountCoupon = Payload<FixedAmountCouponFields, FixedAmountCouponSchema>;
|
|
12
|
-
/**
|
|
13
|
-
* Identity function for determining if an object is an FixedAmountCoupon
|
|
14
|
-
*/
|
|
15
|
-
export declare const isFixedAmountCoupon: (x?: unknown | null) => x is FixedAmountCoupon;
|
|
16
|
-
export declare const asFixedAmountCoupon: {
|
|
17
|
-
<TType extends FixedAmountCoupon>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
18
|
-
<TType extends FixedAmountCoupon>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedAmountCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
19
|
-
};
|
|
20
|
-
export declare const asOptionalFixedAmountCoupon: <TType extends FixedAmountCoupon>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Identity function for determining if an object is an FixedAmountCoupon with sources
|
|
23
|
-
*/
|
|
24
|
-
export declare const isFixedAmountCouponWithSources: (x?: unknown | null) => x is WithSources<WithSources<FixedAmountCoupon>>;
|
|
25
|
-
export declare const asFixedAmountCouponWithSources: {
|
|
26
|
-
<TType extends WithSources<FixedAmountCoupon>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
27
|
-
<TType extends WithSources<FixedAmountCoupon>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<FixedAmountCoupon>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
28
|
-
};
|
|
29
|
-
export declare const asOptionalFixedAmountCouponWithSources: <TType extends WithSources<FixedAmountCoupon>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
30
|
-
//# sourceMappingURL=FixedAmount.d.ts.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import type { CouponFields } from '../types/index.ts';
|
|
3
|
-
export declare const FixedPercentageCouponSchema: "network.xyo.payments.coupon.fixed.percentage";
|
|
4
|
-
export type FixedPercentageCouponSchema = typeof FixedPercentageCouponSchema;
|
|
5
|
-
export interface FixedPercentageCouponFields extends CouponFields {
|
|
6
|
-
percentage: number;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* A coupon that provides a fixed discount amount
|
|
10
|
-
*/
|
|
11
|
-
export type FixedPercentageCoupon = Payload<FixedPercentageCouponFields, FixedPercentageCouponSchema>;
|
|
12
|
-
/**
|
|
13
|
-
* Identity function for determining if an object is an FixedPercentageCoupon
|
|
14
|
-
*/
|
|
15
|
-
export declare const isFixedPercentageCoupon: (x?: unknown | null) => x is FixedPercentageCoupon;
|
|
16
|
-
export declare const asFixedPercentageCoupon: {
|
|
17
|
-
<TType extends FixedPercentageCoupon>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
18
|
-
<TType extends FixedPercentageCoupon>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedPercentageCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
19
|
-
};
|
|
20
|
-
export declare const asOptionalFixedPercentageCoupon: <TType extends FixedPercentageCoupon>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Identity function for determining if an object is an FixedPercentageCoupon with sources
|
|
23
|
-
*/
|
|
24
|
-
export declare const isFixedPercentageCouponWithSources: (x?: unknown | null) => x is WithSources<WithSources<FixedPercentageCoupon>>;
|
|
25
|
-
export declare const asFixedPercentageCouponWithSources: {
|
|
26
|
-
<TType extends WithSources<FixedPercentageCoupon>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
27
|
-
<TType extends WithSources<FixedPercentageCoupon>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<FixedPercentageCoupon>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
28
|
-
};
|
|
29
|
-
export declare const asOptionalFixedPercentageCouponWithSources: <TType extends WithSources<FixedPercentageCoupon>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
30
|
-
//# sourceMappingURL=FixedPercentage.d.ts.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import type { AmountFields } from '../../../../Amount/index.ts';
|
|
3
|
-
import type { CouponFields } from '../types/index.ts';
|
|
4
|
-
export declare const FixedPriceCouponSchema: "network.xyo.payments.coupon.fixed.price";
|
|
5
|
-
export type FixedPriceCouponSchema = typeof FixedPriceCouponSchema;
|
|
6
|
-
export interface FixedPriceCouponFields extends CouponFields, AmountFields {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* A coupon that provides a fixed total price
|
|
10
|
-
*/
|
|
11
|
-
export type FixedPriceCoupon = Payload<FixedPriceCouponFields, FixedPriceCouponSchema>;
|
|
12
|
-
/**
|
|
13
|
-
* Identity function for determining if an object is an FixedPriceCoupon
|
|
14
|
-
*/
|
|
15
|
-
export declare const isFixedPriceCoupon: (x?: unknown | null) => x is FixedPriceCoupon;
|
|
16
|
-
export declare const asFixedPriceCoupon: {
|
|
17
|
-
<TType extends FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
18
|
-
<TType extends FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedPriceCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
19
|
-
};
|
|
20
|
-
export declare const asOptionalFixedPriceCoupon: <TType extends FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Identity function for determining if an object is an FixedPriceCoupon with sources
|
|
23
|
-
*/
|
|
24
|
-
export declare const isFixedPriceCouponWithSources: (x?: unknown | null) => x is WithSources<WithSources<FixedPriceCoupon>>;
|
|
25
|
-
export declare const asFixedPriceCouponWithSources: {
|
|
26
|
-
<TType extends WithSources<FixedPriceCoupon>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
27
|
-
<TType extends WithSources<FixedPriceCoupon>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<FixedPriceCoupon>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
28
|
-
};
|
|
29
|
-
export declare const asOptionalFixedPriceCouponWithSources: <TType extends WithSources<FixedPriceCoupon>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
30
|
-
//# sourceMappingURL=FixedPrice.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { FixedAmountCoupon, FixedPercentageCoupon, FixedPriceCoupon } from './Coupons/index.ts';
|
|
2
|
-
/**
|
|
3
|
-
* The type of coupons
|
|
4
|
-
*/
|
|
5
|
-
export type Coupon = FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon;
|
|
6
|
-
/**
|
|
7
|
-
* Identity function for determining if an object is an Coupon
|
|
8
|
-
*/
|
|
9
|
-
export declare const isCoupon: (x?: unknown | null) => x is FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon;
|
|
10
|
-
export declare const asCoupon: {
|
|
11
|
-
<TType extends FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
12
|
-
<TType extends FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Identity function for determining if an object is an Coupon with sources
|
|
16
|
-
*/
|
|
17
|
-
export declare const isCouponWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedAmountCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPercentageCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPriceCoupon>>;
|
|
18
|
-
export declare const asCouponWithSources: {
|
|
19
|
-
<TType extends import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedAmountCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPercentageCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPriceCoupon>>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
20
|
-
<TType extends import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedAmountCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPercentageCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPriceCoupon>>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedAmountCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPercentageCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPriceCoupon>>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Discount/Payload/Coupon/Payload.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,iBAAiB,EAAE,qBAAqB,EAAE,gBAAgB,EAC3D,MAAM,oBAAoB,CAAA;AAQ3B;;GAEG;AACH,MAAM,MAAM,MAAM,GAChB,iBAAiB,GACf,qBAAqB,GACrB,gBAAgB,CAAA;AAEpB;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,IAAI,OAAO,GAAG,IAAI,sEAGjB,CAAA;AAC1B,eAAO,MAAM,QAAQ;;;CAAmC,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,IAAI,OAAO,GAAG,IAAI,kXAGjB,CAAA;AACrC,eAAO,MAAM,mBAAmB;;;CAA8C,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { SchemaPayload } from '@xyo-network/schema-payload-plugin';
|
|
2
|
-
/**
|
|
3
|
-
* The payloads that can be used as conditions for a coupon
|
|
4
|
-
*/
|
|
5
|
-
export type Condition = SchemaPayload;
|
|
6
|
-
/**
|
|
7
|
-
* Identity function for determining if an object is a Condition payload
|
|
8
|
-
*/
|
|
9
|
-
export declare const isCondition: (x?: unknown | null) => x is SchemaPayload;
|
|
10
|
-
export declare const asCondition: {
|
|
11
|
-
<TType extends SchemaPayload>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
12
|
-
<TType extends SchemaPayload>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<SchemaPayload>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Identity function for determining if an object is a Condition payload with sources
|
|
16
|
-
*/
|
|
17
|
-
export declare const isConditionWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<SchemaPayload>;
|
|
18
|
-
export declare const asConditionWithSources: {
|
|
19
|
-
<TType extends import("@xyo-network/payload-model").WithSources<SchemaPayload>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
20
|
-
<TType extends import("@xyo-network/payload-model").WithSources<SchemaPayload>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xyo-network/payload-model").WithSources<SchemaPayload>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=Condition.d.ts.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import type { AmountFields } from '../../Amount/index.ts';
|
|
3
|
-
export declare const DiscountSchema: "network.xyo.payments.discount";
|
|
4
|
-
export type DiscountSchema = typeof DiscountSchema;
|
|
5
|
-
export interface DiscountFields extends AmountFields {
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The result of a discount
|
|
9
|
-
*/
|
|
10
|
-
export type Discount = Payload<DiscountFields, DiscountSchema>;
|
|
11
|
-
/**
|
|
12
|
-
* Identity function for determining if an object is an Discount
|
|
13
|
-
*/
|
|
14
|
-
export declare const isDiscount: (x?: unknown | null) => x is Discount;
|
|
15
|
-
export declare const asDiscount: {
|
|
16
|
-
<TType extends Discount>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
17
|
-
<TType extends Discount>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<Discount>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
18
|
-
};
|
|
19
|
-
export declare const asOptionalDiscount: <TType extends Discount>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* Identity function for determining if an object is an Discount with sources
|
|
22
|
-
*/
|
|
23
|
-
export declare const isDiscountWithSources: (x?: unknown | null) => x is WithSources<Discount>;
|
|
24
|
-
export declare const asDiscountWithSources: {
|
|
25
|
-
<TType extends WithSources<Discount>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
26
|
-
<TType extends WithSources<Discount>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<Discount>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
27
|
-
};
|
|
28
|
-
export declare const asOptionalDiscountWithSources: <TType extends WithSources<Discount>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
29
|
-
//# sourceMappingURL=Discount.d.ts.map
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
3
|
-
export declare const EscrowOutcomeSchema: "network.xyo.escrow.outcome";
|
|
4
|
-
export type EscrowOutcomeSchema = typeof EscrowOutcomeSchema;
|
|
5
|
-
/**
|
|
6
|
-
* The possible outcomes for an escrow
|
|
7
|
-
*/
|
|
8
|
-
export type EscrowOutcomes = 'fulfilled' | 'expired';
|
|
9
|
-
export interface EscrowOutcomeFields {
|
|
10
|
-
outcome: EscrowOutcomes;
|
|
11
|
-
terms: Hash;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* The terms of an escrow
|
|
15
|
-
*/
|
|
16
|
-
export type EscrowOutcome = PayloadWithSources<EscrowOutcomeFields, EscrowOutcomeSchema>;
|
|
17
|
-
/**
|
|
18
|
-
* Identity function for determining if an object is an EscrowOutcome
|
|
19
|
-
*/
|
|
20
|
-
export declare const isEscrowOutcome: (x?: unknown | null) => x is EscrowOutcome;
|
|
21
|
-
export declare const asEscrowOutcome: {
|
|
22
|
-
<TType extends EscrowOutcome>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
23
|
-
<TType extends EscrowOutcome>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<EscrowOutcome>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
24
|
-
};
|
|
25
|
-
export declare const asOptionalEscrowOutcome: <TType extends EscrowOutcome>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Identity function for determining if an object is an EscrowOutcome with sources
|
|
28
|
-
*/
|
|
29
|
-
export declare const isEscrowOutcomeWithSources: (x?: unknown | null) => x is WithSources<EscrowOutcome>;
|
|
30
|
-
export declare const asEscrowOutcomeWithSources: <TType extends WithSources<EscrowOutcome>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
31
|
-
export declare const asOptionalEscrowOutcomeWithSources: <TType extends WithSources<EscrowOutcome>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
32
|
-
//# sourceMappingURL=Outcome.d.ts.map
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import { PaymentCardSchema } from './Schema.ts';
|
|
3
|
-
/**
|
|
4
|
-
* The fields describing a payment card.
|
|
5
|
-
*/
|
|
6
|
-
export interface PaymentCardFields {
|
|
7
|
-
/**
|
|
8
|
-
* Card Number (PAN) of the payment card. This value is required to perform a payment.
|
|
9
|
-
*/
|
|
10
|
-
cardNumber: string;
|
|
11
|
-
/**
|
|
12
|
-
* The name as it appears on the payment card.
|
|
13
|
-
*/
|
|
14
|
-
cardholderName?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Card Verification Value (CVV/CVC) of the payment card.
|
|
17
|
-
*/
|
|
18
|
-
cvv: string;
|
|
19
|
-
/**
|
|
20
|
-
* Expiration month of the payment card.
|
|
21
|
-
*/
|
|
22
|
-
expMonth: number;
|
|
23
|
-
/**
|
|
24
|
-
* Expiration year of the payment card.
|
|
25
|
-
*/
|
|
26
|
-
expYear: number;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* A PaymentCard Payload
|
|
30
|
-
*/
|
|
31
|
-
export type PaymentCard = Payload<PaymentCardFields, PaymentCardSchema>;
|
|
32
|
-
/**
|
|
33
|
-
* Identity function for determine if an object is a PaymentCard
|
|
34
|
-
*/
|
|
35
|
-
export declare const isPaymentCard: (x?: unknown | null) => x is PaymentCard;
|
|
36
|
-
export declare const asPaymentCard: {
|
|
37
|
-
<TType extends PaymentCard>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
38
|
-
<TType extends PaymentCard>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<PaymentCard>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
39
|
-
};
|
|
40
|
-
export declare const asOptionalPaymentCard: <TType extends PaymentCard>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* Identity function for determine if an object is a PaymentCard with sources
|
|
43
|
-
*/
|
|
44
|
-
export declare const isPaymentCardWithSources: (x?: unknown | null) => x is WithSources<PaymentCard>;
|
|
45
|
-
export declare const asPaymentCardWithSources: {
|
|
46
|
-
<TType extends WithSources<PaymentCard>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
47
|
-
<TType extends WithSources<PaymentCard>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<PaymentCard>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
48
|
-
};
|
|
49
|
-
export declare const asOptionalPaymentCardWithSources: <TType extends WithSources<PaymentCard>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
50
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import type { SupportedCurrency } from '../Currency.ts';
|
|
3
|
-
import { PaymentSchema } from './Schema.ts';
|
|
4
|
-
export interface PaymentFields {
|
|
5
|
-
/**
|
|
6
|
-
* The amount paid
|
|
7
|
-
*/
|
|
8
|
-
amount: number;
|
|
9
|
-
/**
|
|
10
|
-
* The currency of the amount paid
|
|
11
|
-
*/
|
|
12
|
-
currency: SupportedCurrency;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A payment is a record of an amount to be paid
|
|
16
|
-
*/
|
|
17
|
-
export type Payment = PayloadWithSources<PaymentFields, PaymentSchema>;
|
|
18
|
-
/**
|
|
19
|
-
* Identity function for determine if an object is a Payment
|
|
20
|
-
*/
|
|
21
|
-
export declare const isPayment: (x?: unknown | null) => x is Payment;
|
|
22
|
-
export declare const asPayment: {
|
|
23
|
-
<TType extends Payment>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
24
|
-
<TType extends Payment>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<Payment>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
25
|
-
};
|
|
26
|
-
export declare const asOptionalPayment: <TType extends Payment>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Identity function for determine if an object is a Payment with sources
|
|
29
|
-
*/
|
|
30
|
-
export declare const isPaymentWithSources: (x?: unknown | null) => x is WithSources<Payment>;
|
|
31
|
-
export declare const asPaymentWithSources: {
|
|
32
|
-
<TType extends WithSources<Payment>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
33
|
-
<TType extends WithSources<Payment>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<Payment>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
34
|
-
};
|
|
35
|
-
export declare const asOptionalPaymentWithSources: <TType extends WithSources<Payment>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
36
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import { PaymentStatusSchema } from './Schema.ts';
|
|
3
|
-
export interface PaymentStatusFields {
|
|
4
|
-
/**
|
|
5
|
-
* The result of the payment (i.e. declined)
|
|
6
|
-
*/
|
|
7
|
-
result?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The status of the payment (i.e. completed)
|
|
10
|
-
*/
|
|
11
|
-
status: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* A payment status is the outcome of a payment attempt
|
|
15
|
-
*/
|
|
16
|
-
export type PaymentStatus = PayloadWithSources<PaymentStatusFields, PaymentStatusSchema>;
|
|
17
|
-
/**
|
|
18
|
-
* Identity function for determine if an object is a PaymentStatus
|
|
19
|
-
*/
|
|
20
|
-
export declare const isPaymentStatus: (x?: unknown | null) => x is PaymentStatus;
|
|
21
|
-
export declare const asPaymentStatus: {
|
|
22
|
-
<TType extends PaymentStatus>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
23
|
-
<TType extends PaymentStatus>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<PaymentStatus>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
24
|
-
};
|
|
25
|
-
export declare const asOptionalPaymentStatus: <TType extends PaymentStatus>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Identity function for determine if an object is a PaymentStatus with sources
|
|
28
|
-
*/
|
|
29
|
-
export declare const isPaymentStatusWithSources: (x?: unknown | null) => x is WithSources<PaymentStatus>;
|
|
30
|
-
export declare const asPaymentStatusWithSources: {
|
|
31
|
-
<TType extends WithSources<PaymentStatus>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
32
|
-
<TType extends WithSources<PaymentStatus>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<PaymentStatus>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
33
|
-
};
|
|
34
|
-
export declare const asOptionalPaymentStatusWithSources: <TType extends WithSources<PaymentStatus>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
35
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
3
|
-
import { PurchaseSchema } from './Schema.ts';
|
|
4
|
-
export interface PurchaseFields {
|
|
5
|
-
/**
|
|
6
|
-
* The things that were purchased
|
|
7
|
-
*/
|
|
8
|
-
assets: Hash[];
|
|
9
|
-
/**
|
|
10
|
-
* The receipts for payments for this purchase. Array to allow for multiple payments
|
|
11
|
-
* for a single quote.
|
|
12
|
-
*/
|
|
13
|
-
receipts: Hash[];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A purchase ties a payment made to a quote
|
|
17
|
-
*/
|
|
18
|
-
export type Purchase = PayloadWithSources<PurchaseFields, PurchaseSchema>;
|
|
19
|
-
/**
|
|
20
|
-
* Identity function for determine if an object is a Purchase
|
|
21
|
-
*/
|
|
22
|
-
export declare const isPurchase: (x?: unknown | null) => x is Purchase;
|
|
23
|
-
export declare const asPurchase: {
|
|
24
|
-
<TType extends Purchase>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
25
|
-
<TType extends Purchase>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<Purchase>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
26
|
-
};
|
|
27
|
-
export declare const asOptionalPurchase: <TType extends Purchase>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Identity function for determine if an object is a Purchase with sources
|
|
30
|
-
*/
|
|
31
|
-
export declare const isPurchaseWithSources: (x?: unknown | null) => x is WithSources<Purchase>;
|
|
32
|
-
export declare const asPurchaseWithSources: {
|
|
33
|
-
<TType extends WithSources<Purchase>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
34
|
-
<TType extends WithSources<Purchase>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<Purchase>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
35
|
-
};
|
|
36
|
-
export declare const asOptionalPurchaseWithSources: <TType extends WithSources<Purchase>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
37
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import type { SupportedCurrency } from '../Currency.ts';
|
|
3
|
-
import { ReceiptSchema } from './Schema.ts';
|
|
4
|
-
export interface ReceiptFields {
|
|
5
|
-
/**
|
|
6
|
-
* The amount paid
|
|
7
|
-
*/
|
|
8
|
-
amount: number;
|
|
9
|
-
/**
|
|
10
|
-
* The currency of the amount paid
|
|
11
|
-
*/
|
|
12
|
-
currency: SupportedCurrency;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A receipt is a record of a payment made
|
|
16
|
-
*/
|
|
17
|
-
export type Receipt = PayloadWithSources<ReceiptFields, ReceiptSchema>;
|
|
18
|
-
/**
|
|
19
|
-
* Identity function for determine if an object is a Receipt
|
|
20
|
-
*/
|
|
21
|
-
export declare const isReceipt: (x?: unknown | null) => x is Receipt;
|
|
22
|
-
export declare const asReceipt: {
|
|
23
|
-
<TType extends Receipt>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
24
|
-
<TType extends Receipt>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<Receipt>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
25
|
-
};
|
|
26
|
-
export declare const asOptionalReceipt: <TType extends Receipt>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Identity function for determine if an object is a Receipt with sources
|
|
29
|
-
*/
|
|
30
|
-
export declare const isReceiptWithSources: (x?: unknown | null) => x is WithSources<Receipt>;
|
|
31
|
-
export declare const asReceiptWithSources: {
|
|
32
|
-
<TType extends WithSources<Receipt>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
33
|
-
<TType extends WithSources<Receipt>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<Receipt>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
34
|
-
};
|
|
35
|
-
export declare const asOptionalReceiptWithSources: <TType extends WithSources<Receipt>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
36
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import type { AmountFields } from '../../Amount/index.ts';
|
|
3
|
-
export declare const SubtotalSchema: "network.xyo.payments.subtotal";
|
|
4
|
-
export type SubtotalSchema = typeof SubtotalSchema;
|
|
5
|
-
export interface SubtotalFields extends AmountFields {
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The result of a subtotal
|
|
9
|
-
*/
|
|
10
|
-
export type Subtotal = PayloadWithSources<SubtotalFields, SubtotalSchema>;
|
|
11
|
-
/**
|
|
12
|
-
* Identity function for determining if an object is an Subtotal
|
|
13
|
-
*/
|
|
14
|
-
export declare const isSubtotal: (x?: unknown | null) => x is Subtotal;
|
|
15
|
-
export declare const asSubtotal: {
|
|
16
|
-
<TType extends Subtotal>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
17
|
-
<TType extends Subtotal>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<Subtotal>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
18
|
-
};
|
|
19
|
-
export declare const asOptionalSubtotal: <TType extends Subtotal>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* Identity function for determining if an object is an Subtotal with sources
|
|
22
|
-
*/
|
|
23
|
-
export declare const isSubtotalWithSources: (x?: unknown | null) => x is WithSources<Subtotal>;
|
|
24
|
-
export declare const asSubtotalWithSources: {
|
|
25
|
-
<TType extends WithSources<Subtotal>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
26
|
-
<TType extends WithSources<Subtotal>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<Subtotal>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
27
|
-
};
|
|
28
|
-
export declare const asOptionalSubtotalWithSources: <TType extends WithSources<Subtotal>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
29
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import type { AmountFields } from '../../Amount/index.ts';
|
|
3
|
-
export declare const TotalSchema: "network.xyo.payments.total";
|
|
4
|
-
export type TotalSchema = typeof TotalSchema;
|
|
5
|
-
export interface TotalFields extends AmountFields {
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The result of a total
|
|
9
|
-
*/
|
|
10
|
-
export type Total = PayloadWithSources<TotalFields, TotalSchema>;
|
|
11
|
-
/**
|
|
12
|
-
* Identity function for determining if an object is an Total
|
|
13
|
-
*/
|
|
14
|
-
export declare const isTotal: (x?: unknown | null) => x is Total;
|
|
15
|
-
export declare const asTotal: {
|
|
16
|
-
<TType extends Total>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
17
|
-
<TType extends Total>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<Total>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
18
|
-
};
|
|
19
|
-
export declare const asOptionalTotal: <TType extends Total>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* Identity function for determining if an object is an Total with sources
|
|
22
|
-
*/
|
|
23
|
-
export declare const isTotalWithSources: (x?: unknown | null) => x is WithSources<Total>;
|
|
24
|
-
export declare const asTotalWithSources: {
|
|
25
|
-
<TType extends WithSources<Total>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
26
|
-
<TType extends WithSources<Total>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<Total>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
27
|
-
};
|
|
28
|
-
export declare const asOptionalTotalWithSources: <TType extends WithSources<Total>>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
29
|
-
//# sourceMappingURL=Payload.d.ts.map
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from './Amount/index.ts';
|
|
2
|
-
export * from './Billing/index.ts';
|
|
3
|
-
export * from './Currency.ts';
|
|
4
|
-
export * from './Discount/index.ts';
|
|
5
|
-
export * from './Escrow/index.ts';
|
|
6
|
-
export * from './Invoice/index.ts';
|
|
7
|
-
export * from './Payment/index.ts';
|
|
8
|
-
export * from './Purchase/index.ts';
|
|
9
|
-
export * from './Receipt/index.ts';
|
|
10
|
-
export * from './Subtotal/index.ts';
|
|
11
|
-
export * from './Total/index.ts';
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|