@xyo-network/payment-payload-plugins 7.0.2 → 7.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/dist/neutral/index.d.ts +1 -11
  2. package/dist/neutral/index.d.ts.map +1 -1
  3. package/dist/neutral/index.mjs +2 -1298
  4. package/dist/neutral/index.mjs.map +4 -4
  5. package/package.json +53 -49
  6. package/dist/neutral/Amount/Iso4217Currency.d.ts +0 -14
  7. package/dist/neutral/Amount/Iso4217Currency.d.ts.map +0 -1
  8. package/dist/neutral/Amount/Payload.d.ts +0 -68
  9. package/dist/neutral/Amount/Payload.d.ts.map +0 -1
  10. package/dist/neutral/Amount/index.d.ts +0 -3
  11. package/dist/neutral/Amount/index.d.ts.map +0 -1
  12. package/dist/neutral/Billing/Address/Address.d.ts +0 -112
  13. package/dist/neutral/Billing/Address/Address.d.ts.map +0 -1
  14. package/dist/neutral/Billing/Address/Schema.d.ts +0 -5
  15. package/dist/neutral/Billing/Address/Schema.d.ts.map +0 -1
  16. package/dist/neutral/Billing/Address/index.d.ts +0 -3
  17. package/dist/neutral/Billing/Address/index.d.ts.map +0 -1
  18. package/dist/neutral/Billing/Schema.d.ts +0 -5
  19. package/dist/neutral/Billing/Schema.d.ts.map +0 -1
  20. package/dist/neutral/Billing/index.d.ts +0 -3
  21. package/dist/neutral/Billing/index.d.ts.map +0 -1
  22. package/dist/neutral/Currency.d.ts +0 -6
  23. package/dist/neutral/Currency.d.ts.map +0 -1
  24. package/dist/neutral/Discount/Config.d.ts +0 -23
  25. package/dist/neutral/Discount/Config.d.ts.map +0 -1
  26. package/dist/neutral/Discount/Params.d.ts +0 -9
  27. package/dist/neutral/Discount/Params.d.ts.map +0 -1
  28. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +0 -8
  29. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +0 -1
  30. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +0 -8
  31. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +0 -1
  32. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +0 -34
  33. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +0 -1
  34. package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts +0 -4
  35. package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts.map +0 -1
  36. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +0 -92
  37. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +0 -1
  38. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +0 -85
  39. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +0 -1
  40. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +0 -92
  41. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +0 -1
  42. package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts +0 -4
  43. package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts.map +0 -1
  44. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +0 -193
  45. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +0 -1
  46. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts +0 -5
  47. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts.map +0 -1
  48. package/dist/neutral/Discount/Payload/Coupon/index.d.ts +0 -6
  49. package/dist/neutral/Discount/Payload/Coupon/index.d.ts.map +0 -1
  50. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +0 -100
  51. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +0 -1
  52. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts +0 -12
  53. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +0 -1
  54. package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts +0 -4
  55. package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts.map +0 -1
  56. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts +0 -5
  57. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts.map +0 -1
  58. package/dist/neutral/Discount/Payload/Discount.d.ts +0 -64
  59. package/dist/neutral/Discount/Payload/Discount.d.ts.map +0 -1
  60. package/dist/neutral/Discount/Payload/NoDiscount.d.ts +0 -3
  61. package/dist/neutral/Discount/Payload/NoDiscount.d.ts.map +0 -1
  62. package/dist/neutral/Discount/Payload/index.d.ts +0 -4
  63. package/dist/neutral/Discount/Payload/index.d.ts.map +0 -1
  64. package/dist/neutral/Discount/index.d.ts +0 -4
  65. package/dist/neutral/Discount/index.d.ts.map +0 -1
  66. package/dist/neutral/Escrow/Outcome.d.ts +0 -78
  67. package/dist/neutral/Escrow/Outcome.d.ts.map +0 -1
  68. package/dist/neutral/Escrow/Schema.d.ts +0 -5
  69. package/dist/neutral/Escrow/Schema.d.ts.map +0 -1
  70. package/dist/neutral/Escrow/Terms/Party.d.ts +0 -6
  71. package/dist/neutral/Escrow/Terms/Party.d.ts.map +0 -1
  72. package/dist/neutral/Escrow/Terms/PartySecret.d.ts +0 -6
  73. package/dist/neutral/Escrow/Terms/PartySecret.d.ts.map +0 -1
  74. package/dist/neutral/Escrow/Terms/Terms.d.ts +0 -314
  75. package/dist/neutral/Escrow/Terms/Terms.d.ts.map +0 -1
  76. package/dist/neutral/Escrow/Terms/index.d.ts +0 -4
  77. package/dist/neutral/Escrow/Terms/index.d.ts.map +0 -1
  78. package/dist/neutral/Escrow/index.d.ts +0 -6
  79. package/dist/neutral/Escrow/index.d.ts.map +0 -1
  80. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +0 -12
  81. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +0 -1
  82. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +0 -12
  83. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +0 -1
  84. package/dist/neutral/Escrow/util/appraisal/index.d.ts +0 -3
  85. package/dist/neutral/Escrow/util/appraisal/index.d.ts.map +0 -1
  86. package/dist/neutral/Escrow/util/index.d.ts +0 -3
  87. package/dist/neutral/Escrow/util/index.d.ts.map +0 -1
  88. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +0 -38
  89. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +0 -1
  90. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +0 -12
  91. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +0 -1
  92. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts +0 -7
  93. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts.map +0 -1
  94. package/dist/neutral/Escrow/util/secret/index.d.ts +0 -5
  95. package/dist/neutral/Escrow/util/secret/index.d.ts.map +0 -1
  96. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +0 -40
  97. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +0 -1
  98. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +0 -2
  99. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +0 -1
  100. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +0 -21
  101. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +0 -1
  102. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +0 -10
  103. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +0 -1
  104. package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts +0 -2
  105. package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts.map +0 -1
  106. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts +0 -2
  107. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts.map +0 -1
  108. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +0 -6
  109. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +0 -1
  110. package/dist/neutral/Escrow/validators/common/index.d.ts +0 -4
  111. package/dist/neutral/Escrow/validators/common/index.d.ts.map +0 -1
  112. package/dist/neutral/Escrow/validators/escrow/agent.d.ts +0 -4
  113. package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +0 -1
  114. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +0 -29
  115. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +0 -1
  116. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +0 -9
  117. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +0 -1
  118. package/dist/neutral/Escrow/validators/escrow/assets.d.ts +0 -8
  119. package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +0 -1
  120. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +0 -8
  121. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +0 -1
  122. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +0 -21
  123. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +0 -1
  124. package/dist/neutral/Escrow/validators/escrow/index.d.ts +0 -11
  125. package/dist/neutral/Escrow/validators/escrow/index.d.ts.map +0 -1
  126. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +0 -4
  127. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +0 -1
  128. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +0 -4
  129. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +0 -1
  130. package/dist/neutral/Escrow/validators/escrow/seller.d.ts +0 -8
  131. package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +0 -1
  132. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +0 -21
  133. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +0 -1
  134. package/dist/neutral/Escrow/validators/index.d.ts +0 -3
  135. package/dist/neutral/Escrow/validators/index.d.ts.map +0 -1
  136. package/dist/neutral/Invoice/Invoice.d.ts +0 -17
  137. package/dist/neutral/Invoice/Invoice.d.ts.map +0 -1
  138. package/dist/neutral/Invoice/index.d.ts +0 -2
  139. package/dist/neutral/Invoice/index.d.ts.map +0 -1
  140. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +0 -84
  141. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +0 -1
  142. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts +0 -5
  143. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts.map +0 -1
  144. package/dist/neutral/Payment/Instrument/Card/index.d.ts +0 -3
  145. package/dist/neutral/Payment/Instrument/Card/index.d.ts.map +0 -1
  146. package/dist/neutral/Payment/Instrument/Schema.d.ts +0 -5
  147. package/dist/neutral/Payment/Instrument/Schema.d.ts.map +0 -1
  148. package/dist/neutral/Payment/Instrument/index.d.ts +0 -3
  149. package/dist/neutral/Payment/Instrument/index.d.ts.map +0 -1
  150. package/dist/neutral/Payment/Payload.d.ts +0 -64
  151. package/dist/neutral/Payment/Payload.d.ts.map +0 -1
  152. package/dist/neutral/Payment/Schema.d.ts +0 -5
  153. package/dist/neutral/Payment/Schema.d.ts.map +0 -1
  154. package/dist/neutral/Payment/Status/Payload.d.ts +0 -60
  155. package/dist/neutral/Payment/Status/Payload.d.ts.map +0 -1
  156. package/dist/neutral/Payment/Status/Schema.d.ts +0 -5
  157. package/dist/neutral/Payment/Status/Schema.d.ts.map +0 -1
  158. package/dist/neutral/Payment/Status/index.d.ts +0 -3
  159. package/dist/neutral/Payment/Status/index.d.ts.map +0 -1
  160. package/dist/neutral/Payment/index.d.ts +0 -5
  161. package/dist/neutral/Payment/index.d.ts.map +0 -1
  162. package/dist/neutral/Purchase/Payload.d.ts +0 -60
  163. package/dist/neutral/Purchase/Payload.d.ts.map +0 -1
  164. package/dist/neutral/Purchase/Schema.d.ts +0 -5
  165. package/dist/neutral/Purchase/Schema.d.ts.map +0 -1
  166. package/dist/neutral/Purchase/index.d.ts +0 -3
  167. package/dist/neutral/Purchase/index.d.ts.map +0 -1
  168. package/dist/neutral/Receipt/Payload.d.ts +0 -64
  169. package/dist/neutral/Receipt/Payload.d.ts.map +0 -1
  170. package/dist/neutral/Receipt/Schema.d.ts +0 -5
  171. package/dist/neutral/Receipt/Schema.d.ts.map +0 -1
  172. package/dist/neutral/Receipt/index.d.ts +0 -3
  173. package/dist/neutral/Receipt/index.d.ts.map +0 -1
  174. package/dist/neutral/Schema.d.ts +0 -5
  175. package/dist/neutral/Schema.d.ts.map +0 -1
  176. package/dist/neutral/Subtotal/Diviner/Config.d.ts +0 -10
  177. package/dist/neutral/Subtotal/Diviner/Config.d.ts.map +0 -1
  178. package/dist/neutral/Subtotal/Diviner/Params.d.ts +0 -4
  179. package/dist/neutral/Subtotal/Diviner/Params.d.ts.map +0 -1
  180. package/dist/neutral/Subtotal/Diviner/Payload.d.ts +0 -64
  181. package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +0 -1
  182. package/dist/neutral/Subtotal/Diviner/index.d.ts +0 -4
  183. package/dist/neutral/Subtotal/Diviner/index.d.ts.map +0 -1
  184. package/dist/neutral/Subtotal/index.d.ts +0 -2
  185. package/dist/neutral/Subtotal/index.d.ts.map +0 -1
  186. package/dist/neutral/Total/Diviner/Config.d.ts +0 -19
  187. package/dist/neutral/Total/Diviner/Config.d.ts.map +0 -1
  188. package/dist/neutral/Total/Diviner/Params.d.ts +0 -4
  189. package/dist/neutral/Total/Diviner/Params.d.ts.map +0 -1
  190. package/dist/neutral/Total/Diviner/Payload.d.ts +0 -64
  191. package/dist/neutral/Total/Diviner/Payload.d.ts.map +0 -1
  192. package/dist/neutral/Total/Diviner/index.d.ts +0 -4
  193. package/dist/neutral/Total/Diviner/index.d.ts.map +0 -1
  194. package/dist/neutral/Total/index.d.ts +0 -2
  195. package/dist/neutral/Total/index.d.ts.map +0 -1
@@ -1,3 +0,0 @@
1
- export * from './Address.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Billing/Address/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const BillingSchema: string & {
2
- readonly __schema: true;
3
- };
4
- export type BillingSchema = typeof BillingSchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Billing/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;CAA8C,CAAA;AACxE,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Address/index.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Billing/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA"}
@@ -1,6 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export declare const SupportedCurrencyZod: z.ZodMiniEnum<{
3
- USD: "USD";
4
- }>;
5
- export type SupportedCurrency = z.infer<typeof SupportedCurrencyZod>;
6
- //# sourceMappingURL=Currency.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../src/Currency.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,oBAAoB;;EAAkB,CAAA;AAEnD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
@@ -1,23 +0,0 @@
1
- import type { DivinerConfig, ModuleIdentifier, XyoAddress } from '@xyo-network/sdk';
2
- export declare const PaymentDiscountDivinerConfigSchema: "network.xyo.diviner.payments.discount.config" & {
3
- readonly __schema: true;
4
- };
5
- export type PaymentDiscountDivinerConfigSchema = typeof PaymentDiscountDivinerConfigSchema;
6
- /**
7
- * The configuration for the Payment Discount Diviner
8
- */
9
- export type PaymentDiscountDivinerConfig = DivinerConfig<{
10
- /**
11
- * The boundwitness diviner used to query for payloads
12
- */
13
- boundWitnessDiviner?: ModuleIdentifier;
14
- /**
15
- * The list of coupon authorities that can be used to get a discount
16
- */
17
- couponAuthorities?: XyoAddress[];
18
- /**
19
- * The Diviner that can be used to determine the subtotal to apply discounts to
20
- */
21
- paymentSubtotalDiviner?: ModuleIdentifier;
22
- }, PaymentDiscountDivinerConfigSchema>;
23
- //# sourceMappingURL=Config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/Discount/Config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAC5C,MAAM,kBAAkB,CAAA;AAGzB,eAAO,MAAM,kCAAkC;;CAAiE,CAAA;AAChH,MAAM,MAAM,kCAAkC,GAAG,OAAO,kCAAkC,CAAA;AAE1F;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,aAAa,CACtD;IACE;;OAEG;IACH,mBAAmB,CAAC,EAAE,gBAAgB,CAAA;IACtC;;OAEG;IACH,iBAAiB,CAAC,EAAE,UAAU,EAAE,CAAA;IAOhC;;OAEG;IACH,sBAAsB,CAAC,EAAE,gBAAgB,CAAA;CAC1C,EACD,kCAAkC,CACnC,CAAA"}
@@ -1,9 +0,0 @@
1
- import type { AnyConfigSchema, DivinerParams, XyoAddress } from '@xyo-network/sdk';
2
- import type { PaymentDiscountDivinerConfig } from './Config.ts';
3
- export interface PaymentDiscountDivinerParams<TConfig extends AnyConfigSchema<PaymentDiscountDivinerConfig> = AnyConfigSchema<PaymentDiscountDivinerConfig>> extends DivinerParams<TConfig> {
4
- /**
5
- * The list of coupon authorities that can be used to get a discount
6
- */
7
- couponAuthorities?: XyoAddress[];
8
- }
9
- //# sourceMappingURL=Params.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/Discount/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EAAE,aAAa,EAAE,UAAU,EAC3C,MAAM,kBAAkB,CAAA;AAEzB,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AAE/D,MAAM,WAAW,4BAA4B,CAC3C,OAAO,SAAS,eAAe,CAAC,4BAA4B,CAAC,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAC7G,SAAQ,aAAa,CAAC,OAAO,CAAC;IAC9B;;SAEK;IACL,iBAAiB,CAAC,EAAE,UAAU,EAAE,CAAA;CACjC"}
@@ -1,8 +0,0 @@
1
- import type { Condition } from '../types/index.ts';
2
- /**
3
- * Creates a coupon condition that requires an appraisal amount below a certain value
4
- * @param maximumAppraisalAmount The maximum appraisal amount
5
- * @returns A condition that requires an appraisal amount below a certain value
6
- */
7
- export declare const createConditionForMaximumAppraisalAmount: (maximumAppraisalAmount: number) => Condition;
8
- //# sourceMappingURL=AppraisalAmountCondition.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppraisalAmountCondition.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAElD;;;;GAIG;AACH,eAAO,MAAM,wCAAwC,GAAI,wBAAwB,MAAM,KAAG,SAgCzF,CAAA"}
@@ -1,8 +0,0 @@
1
- import type { Condition } from '../types/index.ts';
2
- /**
3
- * Returns a coupon condition that requires a minimum quantity of assets
4
- * @param minimumAssetQuantity The minimum quantity of assets required
5
- * @returns A condition that requires a minimum quantity of assets
6
- */
7
- export declare const createConditionForMinimumAssetQuantity: (minimumAssetQuantity: number) => Condition;
8
- //# sourceMappingURL=AssetQuantityCondition.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AssetQuantityCondition.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAElD;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,GAAI,sBAAsB,MAAM,KAAG,SAerF,CAAA"}
@@ -1,34 +0,0 @@
1
- import type { XyoAddress } from '@xyo-network/sdk';
2
- import { SchemaSchema } from '@xyo-network/sdk';
3
- import type { Condition } from '../types/index.ts';
4
- export type BuyerCondition = Condition & {
5
- definition: {
6
- contains: {
7
- properties: {
8
- buyer: {
9
- items: {
10
- const: XyoAddress;
11
- type: 'string';
12
- };
13
- minItems: 1;
14
- type: 'array';
15
- };
16
- schema: {
17
- const: 'network.xyo.escrow.terms';
18
- type: 'string';
19
- };
20
- };
21
- required: ['schema', 'buyer'];
22
- type: 'object';
23
- };
24
- type: 'array';
25
- };
26
- schema: SchemaSchema;
27
- };
28
- /**
29
- * Creates a coupon condition that requires a specific buyer
30
- * @param buyer The buyer's address
31
- * @returns A coupon condition that requires a specific buyer
32
- */
33
- export declare const createConditionForRequiredBuyer: (buyer: XyoAddress) => BuyerCondition;
34
- //# sourceMappingURL=BuyerCondition.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BuyerCondition.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Conditions/BuyerCondition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAElD,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG;IACvC,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,KAAK,EAAE;wBACL,KAAK,EAAE,UAAU,CAAA;wBACjB,IAAI,EAAE,QAAQ,CAAA;qBACf,CAAA;oBACD,QAAQ,EAAE,CAAC,CAAA;oBACX,IAAI,EAAE,OAAO,CAAA;iBACd,CAAA;gBACD,MAAM,EAAE;oBAAE,KAAK,EAAE,0BAA0B,CAAC;oBAAC,IAAI,EAAE,QAAQ,CAAA;iBAAE,CAAA;aAC9D,CAAA;YACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;YAC7B,IAAI,EAAE,QAAQ,CAAA;SACf,CAAA;QACD,IAAI,EAAE,OAAO,CAAA;KACd,CAAA;IACD,MAAM,EAAE,YAAY,CAAA;CACrB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,GAAI,OAAO,UAAU,KAAG,cAiBnE,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './AppraisalAmountCondition.ts';
2
- export * from './AssetQuantityCondition.ts';
3
- export * from './BuyerCondition.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Conditions/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qBAAqB,CAAA"}
@@ -1,92 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export declare const FixedAmountCouponSchema: string & {
3
- readonly __schema: true;
4
- };
5
- export type FixedAmountCouponSchema = typeof FixedAmountCouponSchema;
6
- export declare const FixedAmountCouponFieldsZod: z.ZodMiniObject<{
7
- amount: z.ZodMiniNumber<number>;
8
- currency: z.ZodMiniCustom<import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode, import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode>;
9
- conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
10
- exp: z.ZodMiniNumber<number>;
11
- nbf: z.ZodMiniNumber<number>;
12
- stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
13
- }, z.core.$strip>;
14
- export type FixedAmountCouponFields = z.infer<typeof FixedAmountCouponFieldsZod>;
15
- /**
16
- * A coupon that provides a fixed discount amount
17
- */
18
- export declare const FixedAmountCouponZod: z.ZodMiniObject<{
19
- schema: z.ZodMiniLiteral<string & {
20
- readonly __schema: true;
21
- }>;
22
- amount: z.ZodMiniNumber<number>;
23
- currency: z.ZodMiniCustom<import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode, import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode>;
24
- conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
25
- exp: z.ZodMiniNumber<number>;
26
- nbf: z.ZodMiniNumber<number>;
27
- stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
28
- }, z.core.$strip>;
29
- export type FixedAmountCoupon = z.infer<typeof FixedAmountCouponZod>;
30
- /**
31
- * Identity function for determining if an object is an FixedAmountCoupon
32
- */
33
- export declare const isFixedAmountCoupon: <T>(value: T) => value is T & {
34
- schema: string & {
35
- readonly __schema: true;
36
- };
37
- amount: number;
38
- currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
39
- exp: number;
40
- nbf: number;
41
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
42
- stackable?: boolean | undefined;
43
- };
44
- export declare const asFixedAmountCoupon: {
45
- <T>(value: T): (T & {
46
- schema: string & {
47
- readonly __schema: true;
48
- };
49
- amount: number;
50
- currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
51
- exp: number;
52
- nbf: number;
53
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
54
- stackable?: boolean | undefined;
55
- }) | undefined;
56
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
57
- schema: string & {
58
- readonly __schema: true;
59
- };
60
- amount: number;
61
- currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
62
- exp: number;
63
- nbf: number;
64
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
65
- stackable?: boolean | undefined;
66
- };
67
- };
68
- export declare const toFixedAmountCoupon: {
69
- <T>(value: T): (T & {
70
- schema: string & {
71
- readonly __schema: true;
72
- };
73
- amount: number;
74
- currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
75
- exp: number;
76
- nbf: number;
77
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
78
- stackable?: boolean | undefined;
79
- }) | undefined;
80
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
81
- schema: string & {
82
- readonly __schema: true;
83
- };
84
- amount: number;
85
- currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
86
- exp: number;
87
- nbf: number;
88
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
89
- stackable?: boolean | undefined;
90
- };
91
- };
92
- //# sourceMappingURL=FixedAmount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FixedAmount.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedAmount.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAM7B,eAAO,MAAM,uBAAuB;;CAAiD,CAAA;AACrF,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,eAAO,MAAM,0BAA0B;;;;;;;iBAGrC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;iBAAiG,CAAA;AAElI,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEpE;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;CAAqC,CAAA;AACrE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;CAA4D,CAAA;AAC5F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;CAA4D,CAAA"}
@@ -1,85 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export declare const FixedPercentageCouponSchema: string & {
3
- readonly __schema: true;
4
- };
5
- export type FixedPercentageCouponSchema = typeof FixedPercentageCouponSchema;
6
- export declare const FixedPercentageCouponFieldsZod: z.ZodMiniObject<{
7
- percentage: z.ZodMiniNumber<number>;
8
- conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
9
- exp: z.ZodMiniNumber<number>;
10
- nbf: z.ZodMiniNumber<number>;
11
- stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
12
- }, z.core.$strip>;
13
- export type FixedPercentageCouponFields = z.infer<typeof FixedPercentageCouponFieldsZod>;
14
- /**
15
- * A coupon that provides a fixed discount amount
16
- */
17
- export declare const FixedPercentageCouponZod: z.ZodMiniObject<{
18
- schema: z.ZodMiniLiteral<string & {
19
- readonly __schema: true;
20
- }>;
21
- percentage: z.ZodMiniNumber<number>;
22
- conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
23
- exp: z.ZodMiniNumber<number>;
24
- nbf: z.ZodMiniNumber<number>;
25
- stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
26
- }, z.core.$strip>;
27
- export type FixedPercentageCoupon = z.infer<typeof FixedPercentageCouponZod>;
28
- /**
29
- * Identity function for determining if an object is an FixedPercentageCoupon
30
- */
31
- export declare const isFixedPercentageCoupon: <T>(value: T) => value is T & {
32
- schema: string & {
33
- readonly __schema: true;
34
- };
35
- percentage: number;
36
- exp: number;
37
- nbf: number;
38
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
39
- stackable?: boolean | undefined;
40
- };
41
- export declare const asFixedPercentageCoupon: {
42
- <T>(value: T): (T & {
43
- schema: string & {
44
- readonly __schema: true;
45
- };
46
- percentage: number;
47
- exp: number;
48
- nbf: number;
49
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
50
- stackable?: boolean | undefined;
51
- }) | undefined;
52
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
53
- schema: string & {
54
- readonly __schema: true;
55
- };
56
- percentage: number;
57
- exp: number;
58
- nbf: number;
59
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
60
- stackable?: boolean | undefined;
61
- };
62
- };
63
- export declare const toFixedPercentageCoupon: {
64
- <T>(value: T): (T & {
65
- schema: string & {
66
- readonly __schema: true;
67
- };
68
- percentage: number;
69
- exp: number;
70
- nbf: number;
71
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
72
- stackable?: boolean | undefined;
73
- }) | undefined;
74
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
75
- schema: string & {
76
- readonly __schema: true;
77
- };
78
- percentage: number;
79
- exp: number;
80
- nbf: number;
81
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
82
- stackable?: boolean | undefined;
83
- };
84
- };
85
- //# sourceMappingURL=FixedPercentage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FixedPercentage.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAK7B,eAAO,MAAM,2BAA2B;;CAAqD,CAAA;AAC7F,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAA;AAE5E,eAAO,MAAM,8BAA8B;;;;;;iBAGzC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;iBAAyG,CAAA;AAE9I,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;CAAyC,CAAA;AAC7E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;CAAoE,CAAA;AACxG,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;CAAoE,CAAA"}
@@ -1,92 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export declare const FixedPriceCouponSchema: string & {
3
- readonly __schema: true;
4
- };
5
- export type FixedPriceCouponSchema = typeof FixedPriceCouponSchema;
6
- export declare const FixedPriceCouponFieldsZod: z.ZodMiniObject<{
7
- amount: z.ZodMiniNumber<number>;
8
- currency: z.ZodMiniCustom<import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode, import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode>;
9
- conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
10
- exp: z.ZodMiniNumber<number>;
11
- nbf: z.ZodMiniNumber<number>;
12
- stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
13
- }, z.core.$strip>;
14
- export type FixedPriceCouponFields = z.infer<typeof FixedPriceCouponFieldsZod>;
15
- /**
16
- * A coupon that provides a fixed total price
17
- */
18
- export declare const FixedPriceCouponZod: z.ZodMiniObject<{
19
- schema: z.ZodMiniLiteral<string & {
20
- readonly __schema: true;
21
- }>;
22
- amount: z.ZodMiniNumber<number>;
23
- currency: z.ZodMiniCustom<import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode, import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode>;
24
- conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
25
- exp: z.ZodMiniNumber<number>;
26
- nbf: z.ZodMiniNumber<number>;
27
- stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
28
- }, z.core.$strip>;
29
- export type FixedPriceCoupon = z.infer<typeof FixedPriceCouponZod>;
30
- /**
31
- * Identity function for determining if an object is an FixedPriceCoupon
32
- */
33
- export declare const isFixedPriceCoupon: <T>(value: T) => value is T & {
34
- schema: string & {
35
- readonly __schema: true;
36
- };
37
- amount: number;
38
- currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
39
- exp: number;
40
- nbf: number;
41
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
42
- stackable?: boolean | undefined;
43
- };
44
- export declare const asFixedPriceCoupon: {
45
- <T>(value: T): (T & {
46
- schema: string & {
47
- readonly __schema: true;
48
- };
49
- amount: number;
50
- currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
51
- exp: number;
52
- nbf: number;
53
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
54
- stackable?: boolean | undefined;
55
- }) | undefined;
56
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
57
- schema: string & {
58
- readonly __schema: true;
59
- };
60
- amount: number;
61
- currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
62
- exp: number;
63
- nbf: number;
64
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
65
- stackable?: boolean | undefined;
66
- };
67
- };
68
- export declare const toFixedPriceCoupon: {
69
- <T>(value: T): (T & {
70
- schema: string & {
71
- readonly __schema: true;
72
- };
73
- amount: number;
74
- currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
75
- exp: number;
76
- nbf: number;
77
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
78
- stackable?: boolean | undefined;
79
- }) | undefined;
80
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
81
- schema: string & {
82
- readonly __schema: true;
83
- };
84
- amount: number;
85
- currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
86
- exp: number;
87
- nbf: number;
88
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
89
- stackable?: boolean | undefined;
90
- };
91
- };
92
- //# sourceMappingURL=FixedPrice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FixedPrice.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedPrice.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAM7B,eAAO,MAAM,sBAAsB;;CAAgD,CAAA;AACnF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAElE,eAAO,MAAM,yBAAyB;;;;;;;iBAGpC,CAAA;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE9E;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;iBAA+F,CAAA;AAE/H,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAElE;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;CAAoC,CAAA;AACnE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;CAA0D,CAAA;AACzF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;CAA0D,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './FixedAmount.ts';
2
- export * from './FixedPercentage.ts';
3
- export * from './FixedPrice.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA"}
@@ -1,193 +0,0 @@
1
- import * as z from 'zod/mini';
2
- /**
3
- * The type of coupons
4
- */
5
- export declare const CouponZod: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
6
- schema: z.ZodMiniLiteral<string & {
7
- readonly __schema: true;
8
- }>;
9
- amount: z.ZodMiniNumber<number>;
10
- currency: z.ZodMiniCustom<import("../../../index.ts").Iso4217AlphabeticalCode, import("../../../index.ts").Iso4217AlphabeticalCode>;
11
- conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
12
- exp: z.ZodMiniNumber<number>;
13
- nbf: z.ZodMiniNumber<number>;
14
- stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
15
- }, z.core.$strip>, z.ZodMiniObject<{
16
- schema: z.ZodMiniLiteral<string & {
17
- readonly __schema: true;
18
- }>;
19
- percentage: z.ZodMiniNumber<number>;
20
- conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
21
- exp: z.ZodMiniNumber<number>;
22
- nbf: z.ZodMiniNumber<number>;
23
- stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
24
- }, z.core.$strip>, z.ZodMiniObject<{
25
- schema: z.ZodMiniLiteral<string & {
26
- readonly __schema: true;
27
- }>;
28
- amount: z.ZodMiniNumber<number>;
29
- currency: z.ZodMiniCustom<import("../../../index.ts").Iso4217AlphabeticalCode, import("../../../index.ts").Iso4217AlphabeticalCode>;
30
- conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
31
- exp: z.ZodMiniNumber<number>;
32
- nbf: z.ZodMiniNumber<number>;
33
- stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
34
- }, z.core.$strip>]>;
35
- export type Coupon = z.infer<typeof CouponZod>;
36
- /**
37
- * Identity function for determining if an object is an Coupon
38
- */
39
- export declare const isCoupon: <T>(value: T) => value is T & ({
40
- schema: string & {
41
- readonly __schema: true;
42
- };
43
- amount: number;
44
- currency: import("../../../index.ts").Iso4217AlphabeticalCode;
45
- exp: number;
46
- nbf: number;
47
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
48
- stackable?: boolean | undefined;
49
- } | {
50
- schema: string & {
51
- readonly __schema: true;
52
- };
53
- percentage: number;
54
- exp: number;
55
- nbf: number;
56
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
57
- stackable?: boolean | undefined;
58
- } | {
59
- schema: string & {
60
- readonly __schema: true;
61
- };
62
- amount: number;
63
- currency: import("../../../index.ts").Iso4217AlphabeticalCode;
64
- exp: number;
65
- nbf: number;
66
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
67
- stackable?: boolean | undefined;
68
- });
69
- export declare const asCoupon: {
70
- <T>(value: T): (T & ({
71
- schema: string & {
72
- readonly __schema: true;
73
- };
74
- amount: number;
75
- currency: import("../../../index.ts").Iso4217AlphabeticalCode;
76
- exp: number;
77
- nbf: number;
78
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
79
- stackable?: boolean | undefined;
80
- } | {
81
- schema: string & {
82
- readonly __schema: true;
83
- };
84
- percentage: number;
85
- exp: number;
86
- nbf: number;
87
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
88
- stackable?: boolean | undefined;
89
- } | {
90
- schema: string & {
91
- readonly __schema: true;
92
- };
93
- amount: number;
94
- currency: import("../../../index.ts").Iso4217AlphabeticalCode;
95
- exp: number;
96
- nbf: number;
97
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
98
- stackable?: boolean | undefined;
99
- })) | undefined;
100
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & ({
101
- schema: string & {
102
- readonly __schema: true;
103
- };
104
- amount: number;
105
- currency: import("../../../index.ts").Iso4217AlphabeticalCode;
106
- exp: number;
107
- nbf: number;
108
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
109
- stackable?: boolean | undefined;
110
- } | {
111
- schema: string & {
112
- readonly __schema: true;
113
- };
114
- percentage: number;
115
- exp: number;
116
- nbf: number;
117
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
118
- stackable?: boolean | undefined;
119
- } | {
120
- schema: string & {
121
- readonly __schema: true;
122
- };
123
- amount: number;
124
- currency: import("../../../index.ts").Iso4217AlphabeticalCode;
125
- exp: number;
126
- nbf: number;
127
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
128
- stackable?: boolean | undefined;
129
- });
130
- };
131
- export declare const toCoupon: {
132
- <T>(value: T): (T & ({
133
- schema: string & {
134
- readonly __schema: true;
135
- };
136
- amount: number;
137
- currency: import("../../../index.ts").Iso4217AlphabeticalCode;
138
- exp: number;
139
- nbf: number;
140
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
141
- stackable?: boolean | undefined;
142
- } | {
143
- schema: string & {
144
- readonly __schema: true;
145
- };
146
- percentage: number;
147
- exp: number;
148
- nbf: number;
149
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
150
- stackable?: boolean | undefined;
151
- } | {
152
- schema: string & {
153
- readonly __schema: true;
154
- };
155
- amount: number;
156
- currency: import("../../../index.ts").Iso4217AlphabeticalCode;
157
- exp: number;
158
- nbf: number;
159
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
160
- stackable?: boolean | undefined;
161
- })) | undefined;
162
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & ({
163
- schema: string & {
164
- readonly __schema: true;
165
- };
166
- amount: number;
167
- currency: import("../../../index.ts").Iso4217AlphabeticalCode;
168
- exp: number;
169
- nbf: number;
170
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
171
- stackable?: boolean | undefined;
172
- } | {
173
- schema: string & {
174
- readonly __schema: true;
175
- };
176
- percentage: number;
177
- exp: number;
178
- nbf: number;
179
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
180
- stackable?: boolean | undefined;
181
- } | {
182
- schema: string & {
183
- readonly __schema: true;
184
- };
185
- amount: number;
186
- currency: import("../../../index.ts").Iso4217AlphabeticalCode;
187
- exp: number;
188
- nbf: number;
189
- conditions?: import("@ariestools/sdk").BrandedHash[] | undefined;
190
- stackable?: boolean | undefined;
191
- });
192
- };
193
- //# 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":"AAGA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAM7B;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAIpB,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAE9C;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0B,CAAA;AAC/C,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAsC,CAAA;AAC3D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAsC,CAAA"}