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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) 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/Escrow/Outcome.d.ts +9 -2
  15. package/dist/neutral/Escrow/Outcome.d.ts.map +1 -1
  16. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +100 -2
  17. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +1 -1
  18. package/dist/neutral/Payment/Status/Payload.d.ts +12 -2
  19. package/dist/neutral/Payment/Status/Payload.d.ts.map +1 -1
  20. package/dist/neutral/Purchase/Payload.d.ts +12 -2
  21. package/dist/neutral/Purchase/Payload.d.ts.map +1 -1
  22. package/dist/neutral/Receipt/Payload.d.ts +12 -2
  23. package/dist/neutral/Receipt/Payload.d.ts.map +1 -1
  24. package/dist/neutral/index.mjs +104 -20
  25. package/dist/neutral/index.mjs.map +1 -1
  26. package/package.json +15 -15
  27. package/src/Amount/Payload.ts +6 -1
  28. package/src/Billing/Address/Address.ts +6 -1
  29. package/src/Discount/Payload/Coupon/Coupons/FixedAmount.ts +6 -4
  30. package/src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts +8 -4
  31. package/src/Discount/Payload/Coupon/Coupons/FixedPrice.ts +6 -4
  32. package/src/Discount/Payload/Discount.ts +6 -1
  33. package/src/Escrow/Outcome.ts +6 -1
  34. package/src/Payment/Instrument/Card/Payload.ts +6 -1
  35. package/src/Payment/Status/Payload.ts +6 -1
  36. package/src/Purchase/Payload.ts +6 -1
  37. 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 = {
@@ -365,6 +386,7 @@ var NO_DISCOUNT = {
365
386
  };
366
387
 
367
388
  // src/Escrow/Outcome.ts
389
+ import { AsObjectFactory as AsObjectFactory9 } from "@xylabs/object";
368
390
  import {
369
391
  isPayloadOfSchemaType as isPayloadOfSchemaType8,
370
392
  isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources8
@@ -376,18 +398,22 @@ var EscrowSchema = "network.xyo.escrow";
376
398
  // src/Escrow/Outcome.ts
377
399
  var EscrowOutcomeSchema = `${EscrowSchema}.outcome`;
378
400
  var isEscrowOutcome = isPayloadOfSchemaType8(EscrowOutcomeSchema);
401
+ var asEscrowOutcome = AsObjectFactory9.create(isEscrowOutcome);
402
+ var asOptionalEscrowOutcome = AsObjectFactory9.createOptional(isEscrowOutcome);
379
403
  var isEscrowOutcomeWithSources = isPayloadOfSchemaTypeWithSources8(EscrowOutcomeSchema);
404
+ var asEscrowOutcomeWithSources = AsObjectFactory9.createOptional(isEscrowOutcomeWithSources);
405
+ var asOptionalEscrowOutcomeWithSources = AsObjectFactory9.createOptional(isEscrowOutcomeWithSources);
380
406
 
381
407
  // src/Escrow/Terms/Terms.ts
382
- import { AsObjectFactory as AsObjectFactory6 } from "@xylabs/object";
408
+ import { AsObjectFactory as AsObjectFactory10 } from "@xylabs/object";
383
409
  import { isPayloadOfSchemaType as isPayloadOfSchemaType9, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources9 } from "@xyo-network/payload-model";
384
410
  var EscrowTermsSchema = `${EscrowSchema}.terms`;
385
411
  var isEscrowTerms = isPayloadOfSchemaType9(EscrowTermsSchema);
386
- var asEscrowTerms = AsObjectFactory6.create(isEscrowTerms);
387
- var asOptionalEscrowTerms = AsObjectFactory6.createOptional(isEscrowTerms);
412
+ var asEscrowTerms = AsObjectFactory10.create(isEscrowTerms);
413
+ var asOptionalEscrowTerms = AsObjectFactory10.createOptional(isEscrowTerms);
388
414
  var isEscrowTermsWithSources = isPayloadOfSchemaTypeWithSources9(EscrowTermsSchema);
389
- var asEscrowTermsWithSources = AsObjectFactory6.create(isEscrowTermsWithSources);
390
- var asOptionalEscrowTermsWithSources = AsObjectFactory6.createOptional(isEscrowTermsWithSources);
415
+ var asEscrowTermsWithSources = AsObjectFactory10.create(isEscrowTermsWithSources);
416
+ var asOptionalEscrowTermsWithSources = AsObjectFactory10.createOptional(isEscrowTermsWithSources);
391
417
 
392
418
  // src/Escrow/util/appraisal/getAppraisalsByAsset.ts
393
419
  import { isHashLeaseEstimateWithSources } from "@xyo-network/diviner-hash-lease";
@@ -759,6 +785,7 @@ var getSellerSecretSignedValidator = (dictionary) => {
759
785
  };
760
786
 
761
787
  // src/Payment/Instrument/Card/Payload.ts
788
+ import { AsObjectFactory as AsObjectFactory11 } from "@xylabs/object";
762
789
  import { isPayloadOfSchemaType as isPayloadOfSchemaType10, isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources10 } from "@xyo-network/payload-model";
763
790
 
764
791
  // src/Payment/Schema.ts
@@ -772,7 +799,11 @@ var PaymentCardSchema = `${PaymentInstrumentSchema}.card`;
772
799
 
773
800
  // src/Payment/Instrument/Card/Payload.ts
774
801
  var isPaymentCard = isPayloadOfSchemaType10(PaymentCardSchema);
802
+ var asPaymentCard = AsObjectFactory11.create(isPaymentCard);
803
+ var asOptionalPaymentCard = AsObjectFactory11.createOptional(isPaymentCard);
775
804
  var isPaymentCardWithSources = isPayloadOfSchemaTypeWithSources10(PaymentCardSchema);
805
+ var asPaymentCardWithSources = AsObjectFactory11.create(isPaymentCardWithSources);
806
+ var asOptionalPaymentCardWithSources = AsObjectFactory11.createOptional(isPaymentCardWithSources);
776
807
 
777
808
  // src/Payment/Payload.ts
778
809
  import {
@@ -783,6 +814,7 @@ var isPayment = isPayloadOfSchemaType11(PaymentSchema);
783
814
  var isPaymentWithSources = isPayloadOfSchemaTypeWithSources11(PaymentSchema);
784
815
 
785
816
  // src/Payment/Status/Payload.ts
817
+ import { AsObjectFactory as AsObjectFactory12 } from "@xylabs/object";
786
818
  import {
787
819
  isPayloadOfSchemaType as isPayloadOfSchemaType12,
788
820
  isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources12
@@ -793,9 +825,14 @@ var PaymentStatusSchema = `${PaymentSchema}.status`;
793
825
 
794
826
  // src/Payment/Status/Payload.ts
795
827
  var isPaymentStatus = isPayloadOfSchemaType12(PaymentStatusSchema);
828
+ var asPaymentStatus = AsObjectFactory12.create(isPaymentStatus);
829
+ var asOptionalPaymentStatus = AsObjectFactory12.createOptional(isPaymentStatus);
796
830
  var isPaymentStatusWithSources = isPayloadOfSchemaTypeWithSources12(PaymentStatusSchema);
831
+ var asPaymentStatusWithSources = AsObjectFactory12.create(isPaymentStatusWithSources);
832
+ var asOptionalPaymentStatusWithSources = AsObjectFactory12.createOptional(isPaymentStatusWithSources);
797
833
 
798
834
  // src/Purchase/Payload.ts
835
+ import { AsObjectFactory as AsObjectFactory13 } from "@xylabs/object";
799
836
  import {
800
837
  isPayloadOfSchemaType as isPayloadOfSchemaType13,
801
838
  isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources13
@@ -806,9 +843,14 @@ var PurchaseSchema = `${PaymentsSchema}.purchase`;
806
843
 
807
844
  // src/Purchase/Payload.ts
808
845
  var isPurchase = isPayloadOfSchemaType13(PurchaseSchema);
846
+ var asPurchase = AsObjectFactory13.create(isPurchase);
847
+ var asOptionalPurchase = AsObjectFactory13.createOptional(isPurchase);
809
848
  var isPurchaseWithSources = isPayloadOfSchemaTypeWithSources13(PurchaseSchema);
849
+ var asPurchaseWithSources = AsObjectFactory13.create(isPurchaseWithSources);
850
+ var asOptionalPurchaseWithSources = AsObjectFactory13.createOptional(isPurchaseWithSources);
810
851
 
811
852
  // src/Receipt/Payload.ts
853
+ import { AsObjectFactory as AsObjectFactory14 } from "@xylabs/object";
812
854
  import {
813
855
  isPayloadOfSchemaType as isPayloadOfSchemaType14,
814
856
  isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources14
@@ -819,7 +861,11 @@ var ReceiptSchema = `${PaymentsSchema}.receipt`;
819
861
 
820
862
  // src/Receipt/Payload.ts
821
863
  var isReceipt = isPayloadOfSchemaType14(ReceiptSchema);
864
+ var asReceipt = AsObjectFactory14.create(isReceipt);
865
+ var asOptionalReceipt = AsObjectFactory14.createOptional(isReceipt);
822
866
  var isReceiptWithSources = isPayloadOfSchemaTypeWithSources14(ReceiptSchema);
867
+ var asReceiptWithSources = AsObjectFactory14.create(isReceiptWithSources);
868
+ var asOptionalReceiptWithSources = AsObjectFactory14.createOptional(isReceiptWithSources);
823
869
 
824
870
  // src/Subtotal/Diviner/Config.ts
825
871
  var PaymentSubtotalDivinerConfigSchema = "network.xyo.diviner.payments.subtotal.config";
@@ -871,10 +917,18 @@ export {
871
917
  TotalSchema,
872
918
  appraisalAuthoritiesExistValidator,
873
919
  appraisalsExistValidator,
920
+ asAmount,
921
+ asAmountWithSources,
922
+ asBillingAddress,
923
+ asBillingAddressWithSources,
874
924
  asCondition,
875
925
  asConditionWithSources,
876
926
  asCoupon,
877
927
  asCouponWithSources,
928
+ asDiscount,
929
+ asDiscountWithSources,
930
+ asEscrowOutcome,
931
+ asEscrowOutcomeWithSources,
878
932
  asEscrowTerms,
879
933
  asEscrowTermsWithSources,
880
934
  asFixedAmountCoupon,
@@ -883,8 +937,38 @@ export {
883
937
  asFixedPercentageCouponWithSources,
884
938
  asFixedPriceCoupon,
885
939
  asFixedPriceCouponWithSources,
940
+ asOptionalAmount,
941
+ asOptionalAmountWithSources,
942
+ asOptionalBillingAddress,
943
+ asOptionalBillingAddressWithSources,
944
+ asOptionalDiscount,
945
+ asOptionalDiscountWithSources,
946
+ asOptionalEscrowOutcome,
947
+ asOptionalEscrowOutcomeWithSources,
886
948
  asOptionalEscrowTerms,
887
949
  asOptionalEscrowTermsWithSources,
950
+ asOptionalFixedAmountCoupon,
951
+ asOptionalFixedAmountCouponWithSources,
952
+ asOptionalFixedPercentageCoupon,
953
+ asOptionalFixedPercentageCouponWithSources,
954
+ asOptionalFixedPriceCoupon,
955
+ asOptionalFixedPriceCouponWithSources,
956
+ asOptionalPaymentCard,
957
+ asOptionalPaymentCardWithSources,
958
+ asOptionalPaymentStatus,
959
+ asOptionalPaymentStatusWithSources,
960
+ asOptionalPurchase,
961
+ asOptionalPurchaseWithSources,
962
+ asOptionalReceipt,
963
+ asOptionalReceiptWithSources,
964
+ asPaymentCard,
965
+ asPaymentCardWithSources,
966
+ asPaymentStatus,
967
+ asPaymentStatusWithSources,
968
+ asPurchase,
969
+ asPurchaseWithSources,
970
+ asReceipt,
971
+ asReceiptWithSources,
888
972
  assetsExistValidator,
889
973
  buyerExistsValidator,
890
974
  buyerSecretExistsValidator,