@xyo-network/payment-payload-plugins 3.2.0 → 3.2.1

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.
Files changed (34) hide show
  1. package/dist/neutral/Amount/Payload.d.ts +12 -2
  2. package/dist/neutral/Amount/Payload.d.ts.map +1 -1
  3. package/dist/neutral/Billing/Address/Address.d.ts +196 -2
  4. package/dist/neutral/Billing/Address/Address.d.ts.map +1 -1
  5. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +13 -3
  6. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +1 -1
  7. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +12 -3
  8. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +1 -1
  9. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +13 -3
  10. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +1 -1
  11. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +15 -15
  12. package/dist/neutral/Discount/Payload/Discount.d.ts +26 -0
  13. package/dist/neutral/Discount/Payload/Discount.d.ts.map +1 -1
  14. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +100 -2
  15. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +1 -1
  16. package/dist/neutral/Payment/Status/Payload.d.ts +12 -2
  17. package/dist/neutral/Payment/Status/Payload.d.ts.map +1 -1
  18. package/dist/neutral/Purchase/Payload.d.ts +12 -2
  19. package/dist/neutral/Purchase/Payload.d.ts.map +1 -1
  20. package/dist/neutral/Receipt/Payload.d.ts +12 -2
  21. package/dist/neutral/Receipt/Payload.d.ts.map +1 -1
  22. package/dist/neutral/index.mjs +95 -20
  23. package/dist/neutral/index.mjs.map +1 -1
  24. package/package.json +15 -15
  25. package/src/Amount/Payload.ts +6 -1
  26. package/src/Billing/Address/Address.ts +6 -1
  27. package/src/Discount/Payload/Coupon/Coupons/FixedAmount.ts +6 -4
  28. package/src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts +8 -4
  29. package/src/Discount/Payload/Coupon/Coupons/FixedPrice.ts +6 -4
  30. package/src/Discount/Payload/Discount.ts +6 -1
  31. package/src/Payment/Instrument/Card/Payload.ts +6 -1
  32. package/src/Payment/Status/Payload.ts +6 -1
  33. package/src/Purchase/Payload.ts +6 -1
  34. package/src/Receipt/Payload.ts +6 -1
@@ -1,4 +1,4 @@
1
- import type { Payload } from '@xyo-network/payload-model';
1
+ import type { Payload, WithSources } from '@xyo-network/payload-model';
2
2
  import { PaymentCardSchema } from './Schema.ts';
3
3
  /**
4
4
  * The fields describing a payment card.
@@ -44,10 +44,59 @@ export declare const isPaymentCard: (x?: unknown | null) => x is import("@xylabs
44
44
  expMonth: number;
45
45
  expYear: number;
46
46
  }>;
47
+ export declare const asPaymentCard: {
48
+ <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
49
+ schema: "network.xyo.payments.payment.instrument.card";
50
+ cardNumber: string;
51
+ cardholderName?: string
52
+ /**
53
+ * Card Verification Value (CVV/CVC) of the payment card.
54
+ */
55
+ | undefined;
56
+ cvv: string;
57
+ expMonth: number;
58
+ expYear: number;
59
+ }>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
60
+ <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
61
+ schema: "network.xyo.payments.payment.instrument.card";
62
+ cardNumber: string;
63
+ cardholderName?: string
64
+ /**
65
+ * Card Verification Value (CVV/CVC) of the payment card.
66
+ */
67
+ | undefined;
68
+ cvv: string;
69
+ expMonth: number;
70
+ expYear: number;
71
+ }>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
72
+ schema: "network.xyo.payments.payment.instrument.card";
73
+ cardNumber: string;
74
+ cardholderName?: string
75
+ /**
76
+ * Card Verification Value (CVV/CVC) of the payment card.
77
+ */
78
+ | undefined;
79
+ cvv: string;
80
+ expMonth: number;
81
+ expYear: number;
82
+ }>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
83
+ };
84
+ export declare const asOptionalPaymentCard: <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
85
+ schema: "network.xyo.payments.payment.instrument.card";
86
+ cardNumber: string;
87
+ cardholderName?: string
88
+ /**
89
+ * Card Verification Value (CVV/CVC) of the payment card.
90
+ */
91
+ | undefined;
92
+ cvv: string;
93
+ expMonth: number;
94
+ expYear: number;
95
+ }>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
47
96
  /**
48
97
  * Identity function for determine if an object is a PaymentCard with sources
49
98
  */
50
- export declare const isPaymentCardWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
99
+ export declare const isPaymentCardWithSources: (x?: unknown | null) => x is WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
51
100
  schema: "network.xyo.payments.payment.instrument.card";
52
101
  cardNumber: string;
53
102
  cardholderName?: string
@@ -59,4 +108,53 @@ export declare const isPaymentCardWithSources: (x?: unknown | null) => x is impo
59
108
  expMonth: number;
60
109
  expYear: number;
61
110
  }>>;
111
+ export declare const asPaymentCardWithSources: {
112
+ <TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
113
+ schema: "network.xyo.payments.payment.instrument.card";
114
+ cardNumber: string;
115
+ cardholderName?: string
116
+ /**
117
+ * Card Verification Value (CVV/CVC) of the payment card.
118
+ */
119
+ | undefined;
120
+ cvv: string;
121
+ expMonth: number;
122
+ expYear: number;
123
+ }>>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
124
+ <TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
125
+ schema: "network.xyo.payments.payment.instrument.card";
126
+ cardNumber: string;
127
+ cardholderName?: string
128
+ /**
129
+ * Card Verification Value (CVV/CVC) of the payment card.
130
+ */
131
+ | undefined;
132
+ cvv: string;
133
+ expMonth: number;
134
+ expYear: number;
135
+ }>>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
136
+ schema: "network.xyo.payments.payment.instrument.card";
137
+ cardNumber: string;
138
+ cardholderName?: string
139
+ /**
140
+ * Card Verification Value (CVV/CVC) of the payment card.
141
+ */
142
+ | undefined;
143
+ cvv: string;
144
+ expMonth: number;
145
+ expYear: number;
146
+ }>>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
147
+ };
148
+ export declare const asOptionalPaymentCardWithSources: <TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
149
+ schema: "network.xyo.payments.payment.instrument.card";
150
+ cardNumber: string;
151
+ cardholderName?: string
152
+ /**
153
+ * Card Verification Value (CVV/CVC) of the payment card.
154
+ */
155
+ | undefined;
156
+ cvv: string;
157
+ expMonth: number;
158
+ expYear: number;
159
+ }>>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
62
160
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAA;AAEvE;;GAEG;AACH,eAAO,MAAM,aAAa;;gBA3BZ,MAAM;qBAID,MAAM;IACvB;;OAEG;;SACE,MAAM;cAID,MAAM;aAIP,MAAM;EAWiE,CAAA;AAElF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;gBAhCvB,MAAM;qBAID,MAAM;IACvB;;OAEG;;SACE,MAAM;cAID,MAAM;aAIP,MAAM;GAgBuF,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAA;AAEvE;;GAEG;AACH,eAAO,MAAM,aAAa;;gBA3BZ,MAAM;qBAID,MAAM;IACvB;;OAEG;;SACE,MAAM;cAID,MAAM;aAIP,MAAM;EAWiE,CAAA;AAClF,eAAO,MAAM,aAAa;;;oBA5BZ,MAAM;yBAID,MAAM;QACvB;;WAEG;;aACE,MAAM;kBAID,MAAM;iBAIP,MAAM;sBAzBY,sDAAgB,iCAGpB,gBAEzB;;;oBAIc,MAAM;yBAID,MAAM;QACvB;;WAEG;;aACE,MAAM;kBAID,MAAM;iBAIP,MAAM;sBAlBmB,sDAAiB;;oBAEvC,MAAM;yBAID,MAAM;QACvB;;WAEG;;aACE,MAAM;kBAID,MAAM;iBAIP,MAAM;yBAdW,gBAAmB;CA0BgC,CAAA;AAC/E,eAAO,MAAM,qBAAqB;;gBA7BpB,MAAM;qBAID,MAAM;IACvB;;OAEG;;SACE,MAAM;cAID,MAAM;aAIP,MAAM;kBANL,sDAAiB,qCAmBkE,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,wBAAwB;;gBAlCvB,MAAM;qBAID,MAAM;IACvB;;OAEG;;SACE,MAAM;cAID,MAAM;aAIP,MAAM;GAkBuF,CAAA;AACxG,eAAO,MAAM,wBAAwB;;;oBAnCvB,MAAM;yBAID,MAAM;QACvB;;WAEG;;aACE,MAAM;kBAID,MAAM;iBAIP,MAAM;uBAzBY,sDAAgB,iCAGpB,gBAEzB;;;oBAIc,MAAM;yBAID,MAAM;QACvB;;WAEG;;aACE,MAAM;kBAID,MAAM;iBAIP,MAAM;uBAlBmB,sDAAiB;;oBAEvC,MAAM;yBAID,MAAM;QACvB;;WAEG;;aACE,MAAM;kBAID,MAAM;iBAIP,MAAM;0BAdW,gBAAmB;CAiCmE,CAAA;AAClH,eAAO,MAAM,gCAAgC;;gBApC/B,MAAM;qBAID,MAAM;IACvB;;OAEG;;SACE,MAAM;cAID,MAAM;aAIP,MAAM;mBANL,sDAAiB,qCA0BqG,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { PayloadWithSources } from '@xyo-network/payload-model';
1
+ import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
2
2
  import { PaymentStatusSchema } from './Schema.ts';
3
3
  export interface PaymentStatusFields {
4
4
  /**
@@ -18,8 +18,18 @@ export type PaymentStatus = PayloadWithSources<PaymentStatusFields, PaymentStatu
18
18
  * Identity function for determine if an object is a PaymentStatus
19
19
  */
20
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.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
23
+ <TType extends PaymentStatus>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/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.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
21
26
  /**
22
27
  * Identity function for determine if an object is a PaymentStatus with sources
23
28
  */
24
- export declare const isPaymentStatusWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<PaymentStatus>;
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.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
32
+ <TType extends WithSources<PaymentStatus>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/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.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
25
35
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAMpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEjD,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,eAAe,4CAA4D,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,0BAA0B,8FAAuE,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEjD,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,eAAe,4CAA4D,CAAA;AACxF,eAAO,MAAM,eAAe;gDAvBhB,sDAAiB,iCAElB,gBAAoB;gDAInB,sDAGR,wGAMmB,gBAAmB;CAQ2C,CAAA;AACrF,eAAO,MAAM,uBAAuB,8CAJV,sDAAiB,qCAI0D,CAAA;AAErG;;GAEG;AACH,eAAO,MAAM,0BAA0B,yDAAuE,CAAA;AAC9G,eAAO,MAAM,0BAA0B;6DA9B3B,sDAAiB,iCAElB,gBAAoB;6DAInB,sDAGR,qHAMmB,gBAAmB;CAe8E,CAAA;AACxH,eAAO,MAAM,kCAAkC,2DAXrB,sDAAiB,qCAW6F,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import type { Hash } from '@xylabs/hex';
2
- import type { PayloadWithSources } from '@xyo-network/payload-model';
2
+ import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
3
3
  import { PurchaseSchema } from './Schema.ts';
4
4
  export interface PurchaseFields {
5
5
  /**
@@ -20,8 +20,18 @@ export type Purchase = PayloadWithSources<PurchaseFields, PurchaseSchema>;
20
20
  * Identity function for determine if an object is a Purchase
21
21
  */
22
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.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
25
+ <TType extends Purchase>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/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.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
23
28
  /**
24
29
  * Identity function for determine if an object is a Purchase with sources
25
30
  */
26
- export declare const isPurchaseWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Purchase>;
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.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
34
+ <TType extends WithSources<Purchase>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/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.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
27
37
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Purchase/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAMpE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;;OAGG;IACH,QAAQ,EAAE,IAAI,EAAE,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,yFAA6D,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Purchase/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;;OAGG;IACH,QAAQ,EAAE,IAAI,EAAE,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AACzE,eAAO,MAAM,UAAU;2CAzBd,sDAAiB,iCAEJ,gBAAoB;2CAKvC,sDACO,mGAEyE,gBACpE;CAcuD,CAAA;AACtE,eAAO,MAAM,kBAAkB,yCAPgB,sDAAiB,qCAOsB,CAAA;AAEtF;;GAEG;AACH,eAAO,MAAM,qBAAqB,oDAA6D,CAAA;AAC/F,eAAO,MAAM,qBAAqB;wDAhCzB,sDAAiB,iCAEJ,gBAAoB;wDAKvC,sDACO,gHAEyE,gBACpE;CAqB0F,CAAA;AACzG,eAAO,MAAM,6BAA6B,sDAdK,sDAAiB,qCAcyD,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { PayloadWithSources } from '@xyo-network/payload-model';
1
+ import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
2
2
  import type { SupportedCurrency } from '../Currency.ts';
3
3
  import { ReceiptSchema } from './Schema.ts';
4
4
  export interface ReceiptFields {
@@ -19,8 +19,18 @@ export type Receipt = PayloadWithSources<ReceiptFields, ReceiptSchema>;
19
19
  * Identity function for determine if an object is a Receipt
20
20
  */
21
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.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
24
+ <TType extends Receipt>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/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.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
22
27
  /**
23
28
  * Identity function for determine if an object is a Receipt with sources
24
29
  */
25
- export declare const isReceiptWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Receipt>;
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.4.26-eff161fa33/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
33
+ <TType extends WithSources<Receipt>>(value: import(".store/@xylabs-promise-npm-4.4.26-eff161fa33/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.4.26-eff161fa33/package").AnyNonPromise) => TType | undefined;
26
36
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Receipt/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAMpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,SAAS,sCAAgD,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,oBAAoB,wFAA2D,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Receipt/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,SAAS,sCAAgD,CAAA;AACtE,eAAO,MAAM,SAAS;0CAvBV,sDAAiB,iCACtB,gBAAmB;0CAKvB,sDACQ,kGAQN,gBAAmB;CAQ2C,CAAA;AACnE,eAAO,MAAM,iBAAiB,wCAJS,sDAAiB,qCAI2B,CAAA;AAEnF;;GAEG;AACH,eAAO,MAAM,oBAAoB,mDAA2D,CAAA;AAC5F,eAAO,MAAM,oBAAoB;uDA9BrB,sDAAiB,iCACtB,gBAAmB;uDAKvB,sDACQ,+GAQN,gBAAmB;CAe8E,CAAA;AACtG,eAAO,MAAM,4BAA4B,qDAXF,sDAAiB,qCAW8D,CAAA"}
@@ -183,15 +183,21 @@ var Iso4217CurrencyCodes = {
183
183
  var isIso4217CurrencyCode = (code) => Iso4217CurrencyCodes[code] ? true : false;
184
184
 
185
185
  // src/Amount/Payload.ts
186
+ import { AsObjectFactory } from "@xylabs/object";
186
187
  import {
187
188
  isPayloadOfSchemaType,
188
189
  isPayloadOfSchemaTypeWithSources
189
190
  } from "@xyo-network/payload-model";
190
191
  var AmountSchema = "network.xyo.payments.amount";
191
192
  var isAmount = isPayloadOfSchemaType(AmountSchema);
193
+ var asAmount = AsObjectFactory.create(isAmount);
194
+ var asOptionalAmount = AsObjectFactory.createOptional(isAmount);
192
195
  var isAmountWithSources = isPayloadOfSchemaTypeWithSources(AmountSchema);
196
+ var asAmountWithSources = AsObjectFactory.create(isAmountWithSources);
197
+ var asOptionalAmountWithSources = AsObjectFactory.createOptional(isAmountWithSources);
193
198
 
194
199
  // src/Billing/Address/Address.ts
200
+ import { AsObjectFactory as AsObjectFactory2 } from "@xylabs/object";
195
201
  import { isPayloadOfSchemaType as isPayloadOfSchemaType2, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources2 } from "@xyo-network/payload-model";
196
202
 
197
203
  // src/Schema.ts
@@ -205,7 +211,11 @@ var BillingAddressSchema = `${BillingSchema}.address`;
205
211
 
206
212
  // src/Billing/Address/Address.ts
207
213
  var isBillingAddress = isPayloadOfSchemaType2(BillingAddressSchema);
214
+ var asBillingAddress = AsObjectFactory2.create(isBillingAddress);
215
+ var asOptionalBillingAddress = AsObjectFactory2.createOptional(isBillingAddress);
208
216
  var isBillingAddressWithSources = isPayloadOfSchemaTypeWithSources2(BillingAddressSchema);
217
+ var asBillingAddressWithSources = AsObjectFactory2.create(isBillingAddressWithSources);
218
+ var asOptionalBillingAddressWithSources = AsObjectFactory2.createOptional(isBillingAddressWithSources);
209
219
 
210
220
  // src/Discount/Config.ts
211
221
  var PaymentDiscountDivinerConfigSchema = "network.xyo.diviner.payments.discount.config";
@@ -289,7 +299,7 @@ var createConditionForRequiredBuyer = (buyer) => {
289
299
  };
290
300
 
291
301
  // src/Discount/Payload/Coupon/Coupons/FixedAmount.ts
292
- import { AsObjectFactory } from "@xylabs/object";
302
+ import { AsObjectFactory as AsObjectFactory3 } from "@xylabs/object";
293
303
  import {
294
304
  isPayloadOfSchemaType as isPayloadOfSchemaType3,
295
305
  isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources3
@@ -301,61 +311,72 @@ var CouponSchema = "network.xyo.payments.coupon";
301
311
  // src/Discount/Payload/Coupon/Coupons/FixedAmount.ts
302
312
  var FixedAmountCouponSchema = `${CouponSchema}.fixed.amount`;
303
313
  var isFixedAmountCoupon = isPayloadOfSchemaType3(FixedAmountCouponSchema);
304
- var asFixedAmountCoupon = AsObjectFactory.create(isFixedAmountCoupon);
314
+ var asFixedAmountCoupon = AsObjectFactory3.create(isFixedAmountCoupon);
315
+ var asOptionalFixedAmountCoupon = AsObjectFactory3.createOptional(isFixedAmountCoupon);
305
316
  var isFixedAmountCouponWithSources = isPayloadOfSchemaTypeWithSources3(FixedAmountCouponSchema);
306
- var asFixedAmountCouponWithSources = AsObjectFactory.create(isFixedAmountCouponWithSources);
317
+ var asFixedAmountCouponWithSources = AsObjectFactory3.create(isFixedAmountCouponWithSources);
318
+ var asOptionalFixedAmountCouponWithSources = AsObjectFactory3.createOptional(isFixedAmountCouponWithSources);
307
319
 
308
320
  // src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts
309
- import { AsObjectFactory as AsObjectFactory2 } from "@xylabs/object";
321
+ import { AsObjectFactory as AsObjectFactory4 } from "@xylabs/object";
310
322
  import {
311
323
  isPayloadOfSchemaType as isPayloadOfSchemaType4,
312
324
  isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources4
313
325
  } from "@xyo-network/payload-model";
314
326
  var FixedPercentageCouponSchema = `${CouponSchema}.fixed.percentage`;
315
327
  var isFixedPercentageCoupon = isPayloadOfSchemaType4(FixedPercentageCouponSchema);
316
- var asFixedPercentageCoupon = AsObjectFactory2.create(isFixedPercentageCoupon);
328
+ var asFixedPercentageCoupon = AsObjectFactory4.create(isFixedPercentageCoupon);
329
+ var asOptionalFixedPercentageCoupon = AsObjectFactory4.createOptional(isFixedPercentageCoupon);
317
330
  var isFixedPercentageCouponWithSources = isPayloadOfSchemaTypeWithSources4(FixedPercentageCouponSchema);
318
- var asFixedPercentageCouponWithSources = AsObjectFactory2.create(isFixedPercentageCouponWithSources);
331
+ var asFixedPercentageCouponWithSources = AsObjectFactory4.create(isFixedPercentageCouponWithSources);
332
+ var asOptionalFixedPercentageCouponWithSources = AsObjectFactory4.createOptional(isFixedPercentageCouponWithSources);
319
333
 
320
334
  // src/Discount/Payload/Coupon/Coupons/FixedPrice.ts
321
- import { AsObjectFactory as AsObjectFactory3 } from "@xylabs/object";
335
+ import { AsObjectFactory as AsObjectFactory5 } from "@xylabs/object";
322
336
  import {
323
337
  isPayloadOfSchemaType as isPayloadOfSchemaType5,
324
338
  isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources5
325
339
  } from "@xyo-network/payload-model";
326
340
  var FixedPriceCouponSchema = `${CouponSchema}.fixed.price`;
327
341
  var isFixedPriceCoupon = isPayloadOfSchemaType5(FixedPriceCouponSchema);
328
- var asFixedPriceCoupon = AsObjectFactory3.create(isFixedPriceCoupon);
342
+ var asFixedPriceCoupon = AsObjectFactory5.create(isFixedPriceCoupon);
343
+ var asOptionalFixedPriceCoupon = AsObjectFactory5.createOptional(isFixedPriceCoupon);
329
344
  var isFixedPriceCouponWithSources = isPayloadOfSchemaTypeWithSources5(FixedPriceCouponSchema);
330
- var asFixedPriceCouponWithSources = AsObjectFactory3.create(isFixedPriceCouponWithSources);
345
+ var asFixedPriceCouponWithSources = AsObjectFactory5.create(isFixedPriceCouponWithSources);
346
+ var asOptionalFixedPriceCouponWithSources = AsObjectFactory5.createOptional(isFixedPriceCouponWithSources);
331
347
 
332
348
  // src/Discount/Payload/Coupon/Payload.ts
333
- import { AsObjectFactory as AsObjectFactory4 } from "@xylabs/object";
349
+ import { AsObjectFactory as AsObjectFactory6 } from "@xylabs/object";
334
350
  var isCoupon = (x) => isFixedAmountCoupon(x) || isFixedPercentageCoupon(x) || isFixedPriceCoupon(x);
335
- var asCoupon = AsObjectFactory4.create(isCoupon);
351
+ var asCoupon = AsObjectFactory6.create(isCoupon);
336
352
  var isCouponWithSources = (x) => isFixedAmountCouponWithSources(x) || isFixedPercentageCouponWithSources(x) || isFixedPriceCouponWithSources(x);
337
- var asCouponWithSources = AsObjectFactory4.create(isCouponWithSources);
353
+ var asCouponWithSources = AsObjectFactory6.create(isCouponWithSources);
338
354
 
339
355
  // src/Discount/Payload/Coupon/types/Condition.ts
340
- import { AsObjectFactory as AsObjectFactory5 } from "@xylabs/object";
356
+ import { AsObjectFactory as AsObjectFactory7 } from "@xylabs/object";
341
357
  import { isPayloadOfSchemaType as isPayloadOfSchemaType6, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources6 } from "@xyo-network/payload-model";
342
358
  import { SchemaSchema as SchemaSchema4 } from "@xyo-network/schema-payload-plugin";
343
359
  var isCondition = isPayloadOfSchemaType6(SchemaSchema4);
344
- var asCondition = AsObjectFactory5.create(isCondition);
360
+ var asCondition = AsObjectFactory7.create(isCondition);
345
361
  var isConditionWithSources = isPayloadOfSchemaTypeWithSources6(SchemaSchema4);
346
- var asConditionWithSources = AsObjectFactory5.create(isConditionWithSources);
362
+ var asConditionWithSources = AsObjectFactory7.create(isConditionWithSources);
347
363
 
348
364
  // src/Discount/Payload/Coupon/types/isStackable.ts
349
365
  var isStackable = (x) => (x ?? { stackable: false })?.stackable;
350
366
 
351
367
  // src/Discount/Payload/Discount.ts
368
+ import { AsObjectFactory as AsObjectFactory8 } from "@xylabs/object";
352
369
  import {
353
370
  isPayloadOfSchemaType as isPayloadOfSchemaType7,
354
371
  isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources7
355
372
  } from "@xyo-network/payload-model";
356
373
  var DiscountSchema = "network.xyo.payments.discount";
357
374
  var isDiscount = isPayloadOfSchemaType7(DiscountSchema);
375
+ var asDiscount = AsObjectFactory8.create(isDiscount);
376
+ var asOptionalDiscount = AsObjectFactory8.createOptional(isDiscount);
358
377
  var isDiscountWithSources = isPayloadOfSchemaTypeWithSources7(DiscountSchema);
378
+ var asDiscountWithSources = AsObjectFactory8.create(isDiscountWithSources);
379
+ var asOptionalDiscountWithSources = AsObjectFactory8.createOptional(isDiscountWithSources);
359
380
 
360
381
  // src/Discount/Payload/NoDiscount.ts
361
382
  var NO_DISCOUNT = {
@@ -379,15 +400,15 @@ var isEscrowOutcome = isPayloadOfSchemaType8(EscrowOutcomeSchema);
379
400
  var isEscrowOutcomeWithSources = isPayloadOfSchemaTypeWithSources8(EscrowOutcomeSchema);
380
401
 
381
402
  // src/Escrow/Terms/Terms.ts
382
- import { AsObjectFactory as AsObjectFactory6 } from "@xylabs/object";
403
+ import { AsObjectFactory as AsObjectFactory9 } from "@xylabs/object";
383
404
  import { isPayloadOfSchemaType as isPayloadOfSchemaType9, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources9 } from "@xyo-network/payload-model";
384
405
  var EscrowTermsSchema = `${EscrowSchema}.terms`;
385
406
  var isEscrowTerms = isPayloadOfSchemaType9(EscrowTermsSchema);
386
- var asEscrowTerms = AsObjectFactory6.create(isEscrowTerms);
387
- var asOptionalEscrowTerms = AsObjectFactory6.createOptional(isEscrowTerms);
407
+ var asEscrowTerms = AsObjectFactory9.create(isEscrowTerms);
408
+ var asOptionalEscrowTerms = AsObjectFactory9.createOptional(isEscrowTerms);
388
409
  var isEscrowTermsWithSources = isPayloadOfSchemaTypeWithSources9(EscrowTermsSchema);
389
- var asEscrowTermsWithSources = AsObjectFactory6.create(isEscrowTermsWithSources);
390
- var asOptionalEscrowTermsWithSources = AsObjectFactory6.createOptional(isEscrowTermsWithSources);
410
+ var asEscrowTermsWithSources = AsObjectFactory9.create(isEscrowTermsWithSources);
411
+ var asOptionalEscrowTermsWithSources = AsObjectFactory9.createOptional(isEscrowTermsWithSources);
391
412
 
392
413
  // src/Escrow/util/appraisal/getAppraisalsByAsset.ts
393
414
  import { isHashLeaseEstimateWithSources } from "@xyo-network/diviner-hash-lease";
@@ -759,6 +780,7 @@ var getSellerSecretSignedValidator = (dictionary) => {
759
780
  };
760
781
 
761
782
  // src/Payment/Instrument/Card/Payload.ts
783
+ import { AsObjectFactory as AsObjectFactory10 } from "@xylabs/object";
762
784
  import { isPayloadOfSchemaType as isPayloadOfSchemaType10, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources10 } from "@xyo-network/payload-model";
763
785
 
764
786
  // src/Payment/Schema.ts
@@ -772,7 +794,11 @@ var PaymentCardSchema = `${PaymentInstrumentSchema}.card`;
772
794
 
773
795
  // src/Payment/Instrument/Card/Payload.ts
774
796
  var isPaymentCard = isPayloadOfSchemaType10(PaymentCardSchema);
797
+ var asPaymentCard = AsObjectFactory10.create(isPaymentCard);
798
+ var asOptionalPaymentCard = AsObjectFactory10.createOptional(isPaymentCard);
775
799
  var isPaymentCardWithSources = isPayloadOfSchemaTypeWithSources10(PaymentCardSchema);
800
+ var asPaymentCardWithSources = AsObjectFactory10.create(isPaymentCardWithSources);
801
+ var asOptionalPaymentCardWithSources = AsObjectFactory10.createOptional(isPaymentCardWithSources);
776
802
 
777
803
  // src/Payment/Payload.ts
778
804
  import {
@@ -783,6 +809,7 @@ var isPayment = isPayloadOfSchemaType11(PaymentSchema);
783
809
  var isPaymentWithSources = isPayloadOfSchemaTypeWithSources11(PaymentSchema);
784
810
 
785
811
  // src/Payment/Status/Payload.ts
812
+ import { AsObjectFactory as AsObjectFactory11 } from "@xylabs/object";
786
813
  import {
787
814
  isPayloadOfSchemaType as isPayloadOfSchemaType12,
788
815
  isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources12
@@ -793,9 +820,14 @@ var PaymentStatusSchema = `${PaymentSchema}.status`;
793
820
 
794
821
  // src/Payment/Status/Payload.ts
795
822
  var isPaymentStatus = isPayloadOfSchemaType12(PaymentStatusSchema);
823
+ var asPaymentStatus = AsObjectFactory11.create(isPaymentStatus);
824
+ var asOptionalPaymentStatus = AsObjectFactory11.createOptional(isPaymentStatus);
796
825
  var isPaymentStatusWithSources = isPayloadOfSchemaTypeWithSources12(PaymentStatusSchema);
826
+ var asPaymentStatusWithSources = AsObjectFactory11.create(isPaymentStatusWithSources);
827
+ var asOptionalPaymentStatusWithSources = AsObjectFactory11.createOptional(isPaymentStatusWithSources);
797
828
 
798
829
  // src/Purchase/Payload.ts
830
+ import { AsObjectFactory as AsObjectFactory12 } from "@xylabs/object";
799
831
  import {
800
832
  isPayloadOfSchemaType as isPayloadOfSchemaType13,
801
833
  isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources13
@@ -806,9 +838,14 @@ var PurchaseSchema = `${PaymentsSchema}.purchase`;
806
838
 
807
839
  // src/Purchase/Payload.ts
808
840
  var isPurchase = isPayloadOfSchemaType13(PurchaseSchema);
841
+ var asPurchase = AsObjectFactory12.create(isPurchase);
842
+ var asOptionalPurchase = AsObjectFactory12.createOptional(isPurchase);
809
843
  var isPurchaseWithSources = isPayloadOfSchemaTypeWithSources13(PurchaseSchema);
844
+ var asPurchaseWithSources = AsObjectFactory12.create(isPurchaseWithSources);
845
+ var asOptionalPurchaseWithSources = AsObjectFactory12.createOptional(isPurchaseWithSources);
810
846
 
811
847
  // src/Receipt/Payload.ts
848
+ import { AsObjectFactory as AsObjectFactory13 } from "@xylabs/object";
812
849
  import {
813
850
  isPayloadOfSchemaType as isPayloadOfSchemaType14,
814
851
  isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources14
@@ -819,7 +856,11 @@ var ReceiptSchema = `${PaymentsSchema}.receipt`;
819
856
 
820
857
  // src/Receipt/Payload.ts
821
858
  var isReceipt = isPayloadOfSchemaType14(ReceiptSchema);
859
+ var asReceipt = AsObjectFactory13.create(isReceipt);
860
+ var asOptionalReceipt = AsObjectFactory13.createOptional(isReceipt);
822
861
  var isReceiptWithSources = isPayloadOfSchemaTypeWithSources14(ReceiptSchema);
862
+ var asReceiptWithSources = AsObjectFactory13.create(isReceiptWithSources);
863
+ var asOptionalReceiptWithSources = AsObjectFactory13.createOptional(isReceiptWithSources);
823
864
 
824
865
  // src/Subtotal/Diviner/Config.ts
825
866
  var PaymentSubtotalDivinerConfigSchema = "network.xyo.diviner.payments.subtotal.config";
@@ -871,10 +912,16 @@ export {
871
912
  TotalSchema,
872
913
  appraisalAuthoritiesExistValidator,
873
914
  appraisalsExistValidator,
915
+ asAmount,
916
+ asAmountWithSources,
917
+ asBillingAddress,
918
+ asBillingAddressWithSources,
874
919
  asCondition,
875
920
  asConditionWithSources,
876
921
  asCoupon,
877
922
  asCouponWithSources,
923
+ asDiscount,
924
+ asDiscountWithSources,
878
925
  asEscrowTerms,
879
926
  asEscrowTermsWithSources,
880
927
  asFixedAmountCoupon,
@@ -883,8 +930,36 @@ export {
883
930
  asFixedPercentageCouponWithSources,
884
931
  asFixedPriceCoupon,
885
932
  asFixedPriceCouponWithSources,
933
+ asOptionalAmount,
934
+ asOptionalAmountWithSources,
935
+ asOptionalBillingAddress,
936
+ asOptionalBillingAddressWithSources,
937
+ asOptionalDiscount,
938
+ asOptionalDiscountWithSources,
886
939
  asOptionalEscrowTerms,
887
940
  asOptionalEscrowTermsWithSources,
941
+ asOptionalFixedAmountCoupon,
942
+ asOptionalFixedAmountCouponWithSources,
943
+ asOptionalFixedPercentageCoupon,
944
+ asOptionalFixedPercentageCouponWithSources,
945
+ asOptionalFixedPriceCoupon,
946
+ asOptionalFixedPriceCouponWithSources,
947
+ asOptionalPaymentCard,
948
+ asOptionalPaymentCardWithSources,
949
+ asOptionalPaymentStatus,
950
+ asOptionalPaymentStatusWithSources,
951
+ asOptionalPurchase,
952
+ asOptionalPurchaseWithSources,
953
+ asOptionalReceipt,
954
+ asOptionalReceiptWithSources,
955
+ asPaymentCard,
956
+ asPaymentCardWithSources,
957
+ asPaymentStatus,
958
+ asPaymentStatusWithSources,
959
+ asPurchase,
960
+ asPurchaseWithSources,
961
+ asReceipt,
962
+ asReceiptWithSources,
888
963
  assetsExistValidator,
889
964
  buyerExistsValidator,
890
965
  buyerSecretExistsValidator,