@xyo-network/payment-payload-plugins 5.3.2 → 5.3.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 (290) hide show
  1. package/dist/neutral/Amount/Iso4217Currency.d.ts +14 -0
  2. package/dist/neutral/Amount/Iso4217Currency.d.ts.map +1 -0
  3. package/dist/neutral/Amount/Payload.d.ts +27 -0
  4. package/dist/neutral/Amount/Payload.d.ts.map +1 -0
  5. package/dist/neutral/Amount/index.d.ts +3 -0
  6. package/dist/neutral/Amount/index.d.ts.map +1 -0
  7. package/dist/neutral/Billing/Address/Address.d.ts +42 -0
  8. package/dist/neutral/Billing/Address/Address.d.ts.map +1 -0
  9. package/dist/neutral/Billing/Address/Schema.d.ts +5 -0
  10. package/dist/neutral/Billing/Address/Schema.d.ts.map +1 -0
  11. package/dist/neutral/Billing/Address/index.d.ts +3 -0
  12. package/dist/neutral/Billing/Address/index.d.ts.map +1 -0
  13. package/dist/neutral/Billing/Schema.d.ts +5 -0
  14. package/dist/neutral/Billing/Schema.d.ts.map +1 -0
  15. package/dist/neutral/Billing/index.d.ts +3 -0
  16. package/dist/neutral/Billing/index.d.ts.map +1 -0
  17. package/dist/neutral/Currency.d.ts +2 -0
  18. package/dist/neutral/Currency.d.ts.map +1 -0
  19. package/dist/neutral/Discount/Config.d.ts +25 -0
  20. package/dist/neutral/Discount/Config.d.ts.map +1 -0
  21. package/dist/neutral/Discount/Params.d.ts +11 -0
  22. package/dist/neutral/Discount/Params.d.ts.map +1 -0
  23. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +8 -0
  24. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +1 -0
  25. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +8 -0
  26. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +1 -0
  27. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +34 -0
  28. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +1 -0
  29. package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts +4 -0
  30. package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts.map +1 -0
  31. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +26 -0
  32. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +1 -0
  33. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +26 -0
  34. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +1 -0
  35. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +26 -0
  36. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +1 -0
  37. package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts +4 -0
  38. package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts.map +1 -0
  39. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +16 -0
  40. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +1 -0
  41. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts +5 -0
  42. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts.map +1 -0
  43. package/dist/neutral/Discount/Payload/Coupon/index.d.ts +6 -0
  44. package/dist/neutral/Discount/Payload/Coupon/index.d.ts.map +1 -0
  45. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +16 -0
  46. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +1 -0
  47. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts +16 -0
  48. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +1 -0
  49. package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts +4 -0
  50. package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts.map +1 -0
  51. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts +5 -0
  52. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts.map +1 -0
  53. package/dist/neutral/Discount/Payload/Discount.d.ts +25 -0
  54. package/dist/neutral/Discount/Payload/Discount.d.ts.map +1 -0
  55. package/dist/neutral/Discount/Payload/NoDiscount.d.ts +3 -0
  56. package/dist/neutral/Discount/Payload/NoDiscount.d.ts.map +1 -0
  57. package/dist/neutral/Discount/Payload/index.d.ts +4 -0
  58. package/dist/neutral/Discount/Payload/index.d.ts.map +1 -0
  59. package/dist/neutral/Discount/index.d.ts +4 -0
  60. package/dist/neutral/Discount/index.d.ts.map +1 -0
  61. package/dist/neutral/Escrow/Outcome.d.ts +31 -0
  62. package/dist/neutral/Escrow/Outcome.d.ts.map +1 -0
  63. package/dist/neutral/Escrow/Schema.d.ts +5 -0
  64. package/dist/neutral/Escrow/Schema.d.ts.map +1 -0
  65. package/{src/Escrow/Terms/Party.ts → dist/neutral/Escrow/Terms/Party.d.ts} +3 -3
  66. package/dist/neutral/Escrow/Terms/Party.d.ts.map +1 -0
  67. package/dist/neutral/Escrow/Terms/PartySecret.d.ts +6 -0
  68. package/dist/neutral/Escrow/Terms/PartySecret.d.ts.map +1 -0
  69. package/dist/neutral/Escrow/Terms/Terms.d.ts +73 -0
  70. package/dist/neutral/Escrow/Terms/Terms.d.ts.map +1 -0
  71. package/dist/neutral/Escrow/Terms/index.d.ts +4 -0
  72. package/dist/neutral/Escrow/Terms/index.d.ts.map +1 -0
  73. package/dist/neutral/Escrow/index.d.ts +6 -0
  74. package/dist/neutral/Escrow/index.d.ts.map +1 -0
  75. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +12 -0
  76. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +1 -0
  77. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +13 -0
  78. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +1 -0
  79. package/dist/neutral/Escrow/util/appraisal/index.d.ts +3 -0
  80. package/dist/neutral/Escrow/util/appraisal/index.d.ts.map +1 -0
  81. package/dist/neutral/Escrow/util/index.d.ts +3 -0
  82. package/dist/neutral/Escrow/util/index.d.ts.map +1 -0
  83. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +31 -0
  84. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +1 -0
  85. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +13 -0
  86. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +1 -0
  87. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts +7 -0
  88. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts.map +1 -0
  89. package/dist/neutral/Escrow/util/secret/index.d.ts +5 -0
  90. package/dist/neutral/Escrow/util/secret/index.d.ts.map +1 -0
  91. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +33 -0
  92. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +1 -0
  93. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +2 -0
  94. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +1 -0
  95. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +22 -0
  96. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +1 -0
  97. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +10 -0
  98. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +1 -0
  99. package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts +2 -0
  100. package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts.map +1 -0
  101. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts +2 -0
  102. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts.map +1 -0
  103. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +6 -0
  104. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +1 -0
  105. package/dist/neutral/Escrow/validators/common/index.d.ts +4 -0
  106. package/dist/neutral/Escrow/validators/common/index.d.ts.map +1 -0
  107. package/dist/neutral/Escrow/validators/escrow/agent.d.ts +5 -0
  108. package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +1 -0
  109. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +29 -0
  110. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +1 -0
  111. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +10 -0
  112. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +1 -0
  113. package/dist/neutral/Escrow/validators/escrow/assets.d.ts +8 -0
  114. package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +1 -0
  115. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +8 -0
  116. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +1 -0
  117. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +21 -0
  118. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +1 -0
  119. package/dist/neutral/Escrow/validators/escrow/index.d.ts +11 -0
  120. package/dist/neutral/Escrow/validators/escrow/index.d.ts.map +1 -0
  121. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +4 -0
  122. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +1 -0
  123. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +5 -0
  124. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +1 -0
  125. package/dist/neutral/Escrow/validators/escrow/seller.d.ts +8 -0
  126. package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +1 -0
  127. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +21 -0
  128. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -0
  129. package/dist/neutral/Escrow/validators/index.d.ts +3 -0
  130. package/dist/neutral/Escrow/validators/index.d.ts.map +1 -0
  131. package/dist/neutral/Invoice/Invoice.d.ts +17 -0
  132. package/dist/neutral/Invoice/Invoice.d.ts.map +1 -0
  133. package/dist/neutral/Invoice/index.d.ts +2 -0
  134. package/dist/neutral/Invoice/index.d.ts.map +1 -0
  135. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +44 -0
  136. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +1 -0
  137. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts +5 -0
  138. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts.map +1 -0
  139. package/dist/neutral/Payment/Instrument/Card/index.d.ts +3 -0
  140. package/dist/neutral/Payment/Instrument/Card/index.d.ts.map +1 -0
  141. package/dist/neutral/Payment/Instrument/Schema.d.ts +5 -0
  142. package/dist/neutral/Payment/Instrument/Schema.d.ts.map +1 -0
  143. package/dist/neutral/Payment/Instrument/index.d.ts +3 -0
  144. package/dist/neutral/Payment/Instrument/index.d.ts.map +1 -0
  145. package/dist/neutral/Payment/Payload.d.ts +30 -0
  146. package/dist/neutral/Payment/Payload.d.ts.map +1 -0
  147. package/dist/neutral/Payment/Schema.d.ts +5 -0
  148. package/dist/neutral/Payment/Schema.d.ts.map +1 -0
  149. package/dist/neutral/Payment/Status/Payload.d.ts +29 -0
  150. package/dist/neutral/Payment/Status/Payload.d.ts.map +1 -0
  151. package/dist/neutral/Payment/Status/Schema.d.ts +5 -0
  152. package/dist/neutral/Payment/Status/Schema.d.ts.map +1 -0
  153. package/dist/neutral/Payment/Status/index.d.ts +3 -0
  154. package/dist/neutral/Payment/Status/index.d.ts.map +1 -0
  155. package/dist/neutral/Payment/index.d.ts +5 -0
  156. package/dist/neutral/Payment/index.d.ts.map +1 -0
  157. package/dist/neutral/Purchase/Payload.d.ts +31 -0
  158. package/dist/neutral/Purchase/Payload.d.ts.map +1 -0
  159. package/dist/neutral/Purchase/Schema.d.ts +5 -0
  160. package/dist/neutral/Purchase/Schema.d.ts.map +1 -0
  161. package/dist/neutral/Purchase/index.d.ts +3 -0
  162. package/dist/neutral/Purchase/index.d.ts.map +1 -0
  163. package/dist/neutral/Receipt/Payload.d.ts +30 -0
  164. package/dist/neutral/Receipt/Payload.d.ts.map +1 -0
  165. package/dist/neutral/Receipt/Schema.d.ts +5 -0
  166. package/dist/neutral/Receipt/Schema.d.ts.map +1 -0
  167. package/dist/neutral/Receipt/index.d.ts +3 -0
  168. package/dist/neutral/Receipt/index.d.ts.map +1 -0
  169. package/dist/neutral/Schema.d.ts +5 -0
  170. package/dist/neutral/Schema.d.ts.map +1 -0
  171. package/dist/neutral/Subtotal/Diviner/Config.d.ts +10 -0
  172. package/dist/neutral/Subtotal/Diviner/Config.d.ts.map +1 -0
  173. package/dist/neutral/Subtotal/Diviner/Params.d.ts +5 -0
  174. package/dist/neutral/Subtotal/Diviner/Params.d.ts.map +1 -0
  175. package/dist/neutral/Subtotal/Diviner/Payload.d.ts +25 -0
  176. package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +1 -0
  177. package/dist/neutral/Subtotal/Diviner/index.d.ts +4 -0
  178. package/dist/neutral/Subtotal/Diviner/index.d.ts.map +1 -0
  179. package/dist/neutral/Subtotal/index.d.ts +2 -0
  180. package/dist/neutral/Subtotal/index.d.ts.map +1 -0
  181. package/dist/neutral/Total/Diviner/Config.d.ts +20 -0
  182. package/dist/neutral/Total/Diviner/Config.d.ts.map +1 -0
  183. package/dist/neutral/Total/Diviner/Params.d.ts +5 -0
  184. package/dist/neutral/Total/Diviner/Params.d.ts.map +1 -0
  185. package/dist/neutral/Total/Diviner/Payload.d.ts +25 -0
  186. package/dist/neutral/Total/Diviner/Payload.d.ts.map +1 -0
  187. package/dist/neutral/Total/Diviner/index.d.ts +4 -0
  188. package/dist/neutral/Total/Diviner/index.d.ts.map +1 -0
  189. package/dist/neutral/Total/index.d.ts +2 -0
  190. package/dist/neutral/Total/index.d.ts.map +1 -0
  191. package/dist/neutral/index.d.ts +12 -0
  192. package/dist/neutral/index.d.ts.map +1 -0
  193. package/dist/neutral/index.mjs +1097 -0
  194. package/dist/neutral/index.mjs.map +1 -0
  195. package/package.json +18 -6
  196. package/src/Amount/Iso4217Currency.ts +0 -557
  197. package/src/Amount/Payload.ts +0 -36
  198. package/src/Amount/index.ts +0 -2
  199. package/src/Billing/Address/Address.ts +0 -48
  200. package/src/Billing/Address/Schema.ts +0 -6
  201. package/src/Billing/Address/index.ts +0 -2
  202. package/src/Billing/Schema.ts +0 -6
  203. package/src/Billing/index.ts +0 -2
  204. package/src/Currency.ts +0 -3
  205. package/src/Discount/Config.ts +0 -35
  206. package/src/Discount/Params.ts +0 -14
  207. package/src/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.ts +0 -43
  208. package/src/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.ts +0 -25
  209. package/src/Discount/Payload/Coupon/Conditions/BuyerCondition.ts +0 -50
  210. package/src/Discount/Payload/Coupon/Conditions/index.ts +0 -3
  211. package/src/Discount/Payload/Coupon/Coupons/FixedAmount.ts +0 -35
  212. package/src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts +0 -36
  213. package/src/Discount/Payload/Coupon/Coupons/FixedPrice.ts +0 -35
  214. package/src/Discount/Payload/Coupon/Coupons/index.ts +0 -3
  215. package/src/Discount/Payload/Coupon/Payload.ts +0 -37
  216. package/src/Discount/Payload/Coupon/Schema.ts +0 -4
  217. package/src/Discount/Payload/Coupon/index.ts +0 -5
  218. package/src/Discount/Payload/Coupon/types/Condition.ts +0 -21
  219. package/src/Discount/Payload/Coupon/types/CouponFields.ts +0 -16
  220. package/src/Discount/Payload/Coupon/types/index.ts +0 -3
  221. package/src/Discount/Payload/Coupon/types/isStackable.ts +0 -6
  222. package/src/Discount/Payload/Discount.ts +0 -33
  223. package/src/Discount/Payload/NoDiscount.ts +0 -8
  224. package/src/Discount/Payload/index.ts +0 -3
  225. package/src/Discount/index.ts +0 -3
  226. package/src/Escrow/Outcome.ts +0 -42
  227. package/src/Escrow/Schema.ts +0 -4
  228. package/src/Escrow/Terms/PartySecret.ts +0 -6
  229. package/src/Escrow/Terms/Terms.ts +0 -82
  230. package/src/Escrow/Terms/index.ts +0 -3
  231. package/src/Escrow/index.ts +0 -5
  232. package/src/Escrow/util/appraisal/getAppraisalsByAsset.ts +0 -32
  233. package/src/Escrow/util/appraisal/getSignaturesByAppraisal.ts +0 -40
  234. package/src/Escrow/util/appraisal/index.ts +0 -2
  235. package/src/Escrow/util/index.ts +0 -2
  236. package/src/Escrow/util/secret/createEscrowIntent.ts +0 -17
  237. package/src/Escrow/util/secret/findEscrowPartySecretSignatures.ts +0 -47
  238. package/src/Escrow/util/secret/getEscrowSecret.ts +0 -11
  239. package/src/Escrow/util/secret/index.ts +0 -4
  240. package/src/Escrow/util/secret/updateEscrowTermsWithSecret.ts +0 -37
  241. package/src/Escrow/validators/common/ModuleInstanceValidators/index.ts +0 -1
  242. package/src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts +0 -48
  243. package/src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts +0 -46
  244. package/src/Escrow/validators/common/SecretValidators/index.ts +0 -1
  245. package/src/Escrow/validators/common/TemporalValidators/index.ts +0 -1
  246. package/src/Escrow/validators/common/TemporalValidators/validateWithinWindow.ts +0 -6
  247. package/src/Escrow/validators/common/index.ts +0 -3
  248. package/src/Escrow/validators/escrow/agent.ts +0 -17
  249. package/src/Escrow/validators/escrow/appraisal.ts +0 -114
  250. package/src/Escrow/validators/escrow/appraisalAuthorities.ts +0 -37
  251. package/src/Escrow/validators/escrow/assets.ts +0 -19
  252. package/src/Escrow/validators/escrow/buyer.ts +0 -25
  253. package/src/Escrow/validators/escrow/buyerSecret.ts +0 -49
  254. package/src/Escrow/validators/escrow/index.ts +0 -10
  255. package/src/Escrow/validators/escrow/nbfExp.ts +0 -19
  256. package/src/Escrow/validators/escrow/paymentAuthorities.ts +0 -17
  257. package/src/Escrow/validators/escrow/seller.ts +0 -25
  258. package/src/Escrow/validators/escrow/sellerSecret.ts +0 -49
  259. package/src/Escrow/validators/index.ts +0 -2
  260. package/src/Invoice/Invoice.ts +0 -19
  261. package/src/Invoice/index.ts +0 -1
  262. package/src/Payment/Instrument/Card/Payload.ts +0 -50
  263. package/src/Payment/Instrument/Card/Schema.ts +0 -6
  264. package/src/Payment/Instrument/Card/index.ts +0 -2
  265. package/src/Payment/Instrument/Schema.ts +0 -6
  266. package/src/Payment/Instrument/index.ts +0 -2
  267. package/src/Payment/Payload.ts +0 -39
  268. package/src/Payment/Schema.ts +0 -6
  269. package/src/Payment/Status/Payload.ts +0 -39
  270. package/src/Payment/Status/Schema.ts +0 -6
  271. package/src/Payment/Status/index.ts +0 -2
  272. package/src/Payment/index.ts +0 -4
  273. package/src/Purchase/Payload.ts +0 -40
  274. package/src/Purchase/Schema.ts +0 -6
  275. package/src/Purchase/index.ts +0 -2
  276. package/src/Receipt/Payload.ts +0 -39
  277. package/src/Receipt/Schema.ts +0 -6
  278. package/src/Receipt/index.ts +0 -2
  279. package/src/Schema.ts +0 -4
  280. package/src/Subtotal/Diviner/Config.ts +0 -14
  281. package/src/Subtotal/Diviner/Params.ts +0 -8
  282. package/src/Subtotal/Diviner/Payload.ts +0 -33
  283. package/src/Subtotal/Diviner/index.ts +0 -3
  284. package/src/Subtotal/index.ts +0 -1
  285. package/src/Total/Diviner/Config.ts +0 -25
  286. package/src/Total/Diviner/Params.ts +0 -8
  287. package/src/Total/Diviner/Payload.ts +0 -33
  288. package/src/Total/Diviner/index.ts +0 -3
  289. package/src/Total/index.ts +0 -1
  290. package/src/index.ts +0 -11
@@ -0,0 +1,14 @@
1
+ /**
2
+ * ISO 4217 currency codes
3
+ */
4
+ export type Iso4217AlphabeticalCode = 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMW' | 'ZWG' | 'ZWL';
5
+ /**
6
+ * ISO 4217 numeric currency number codes
7
+ */
8
+ export type Iso4217NumericCode = 784 | 971 | 8 | 51 | 532 | 973 | 32 | 36 | 533 | 944 | 977 | 52 | 50 | 975 | 48 | 108 | 60 | 96 | 68 | 984 | 986 | 44 | 64 | 72 | 933 | 84 | 124 | 976 | 947 | 756 | 948 | 990 | 152 | 156 | 170 | 970 | 188 | 192 | 132 | 203 | 262 | 208 | 214 | 12 | 818 | 232 | 230 | 978 | 242 | 238 | 826 | 981 | 936 | 292 | 270 | 324 | 320 | 328 | 344 | 340 | 332 | 348 | 360 | 376 | 356 | 368 | 364 | 352 | 388 | 400 | 392 | 404 | 417 | 116 | 174 | 408 | 410 | 414 | 136 | 398 | 418 | 422 | 144 | 430 | 426 | 434 | 504 | 498 | 969 | 807 | 104 | 496 | 446 | 929 | 480 | 462 | 454 | 484 | 979 | 458 | 943 | 516 | 566 | 558 | 578 | 524 | 554 | 512 | 590 | 604 | 598 | 608 | 586 | 985 | 600 | 634 | 946 | 941 | 643 | 646 | 682 | 90 | 690 | 938 | 752 | 702 | 654 | 925 | 706 | 968 | 728 | 930 | 222 | 760 | 748 | 764 | 972 | 934 | 788 | 776 | 949 | 780 | 901 | 834 | 980 | 800 | 840 | 997 | 940 | 858 | 927 | 860 | 926 | 928 | 704 | 548 | 882 | 950 | 961 | 959 | 955 | 956 | 957 | 958 | 951 | 960 | 952 | 964 | 953 | 962 | 994 | 963 | 965 | 999 | 886 | 710 | 967 | 924 | 932;
9
+ /**
10
+ * Dictionary of ISO 4217 alphabetical currency codes to numeric currency number codes
11
+ */
12
+ export declare const Iso4217CurrencyCodes: Record<Iso4217AlphabeticalCode, Iso4217NumericCode>;
13
+ export declare const isIso4217CurrencyCode: (code: string) => code is Iso4217AlphabeticalCode;
14
+ //# sourceMappingURL=Iso4217Currency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Iso4217Currency.d.ts","sourceRoot":"","sources":["../../../src/Amount/Iso4217Currency.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAC/B,KAAK,GACH,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAA;AAIX;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,GAAG,GACD,GAAG,GACH,CAAC,GACD,EAAE,GACF,GAAG,GACH,GAAG,GACH,EAAE,GACF,EAAE,GACF,GAAG,GACH,GAAG,GACH,GAAG,GACH,EAAE,GACF,EAAE,GACF,GAAG,GACH,EAAE,GACF,GAAG,GACH,EAAE,GACF,EAAE,GACF,EAAE,GACF,GAAG,GACH,GAAG,GACH,EAAE,GACF,EAAE,GACF,EAAE,GACF,GAAG,GACH,EAAE,GACF,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,EAAE,GACF,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,EAAE,GACF,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAA;AAET;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,uBAAuB,EAAE,kBAAkB,CAoLpF,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,KAAG,IAAI,IAAI,uBAA+F,CAAA"}
@@ -0,0 +1,27 @@
1
+ import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
2
+ import type { Iso4217AlphabeticalCode } from './Iso4217Currency.ts';
3
+ export declare const AmountSchema: "network.xyo.payments.amount" & {
4
+ readonly __schema: true;
5
+ };
6
+ export type AmountSchema = typeof AmountSchema;
7
+ export interface AmountFields {
8
+ amount: number;
9
+ currency: Iso4217AlphabeticalCode;
10
+ }
11
+ /**
12
+ * The result of a amount
13
+ */
14
+ export type Amount = PayloadWithSources<AmountFields, AmountSchema>;
15
+ /**
16
+ * Identity function for determining if an object is an Amount
17
+ */
18
+ export declare const isAmount: (x?: unknown | null) => x is Amount;
19
+ export declare const asAmount: import("@xylabs/sdk-js").AsTypeFunction<Amount>;
20
+ export declare const asOptionalAmount: (value: import("@xylabs/promise").AnyNonPromise) => Amount | undefined;
21
+ /**
22
+ * Identity function for determining if an object is an Amount with sources
23
+ */
24
+ export declare const isAmountWithSources: (x?: unknown | null) => x is WithSources<Amount>;
25
+ export declare const asAmountWithSources: import("@xylabs/sdk-js").AsTypeFunction<WithSources<Amount>>;
26
+ export declare const asOptionalAmountWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<Amount> | undefined;
27
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Amount/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAOjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAEnE,eAAO,MAAM,YAAY;;CAAgD,CAAA;AACzE,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAA;AAE9C,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,uBAAuB,CAAA;CAClC;AAED;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,kBAAkB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAA;AAEnE;;GAEG;AACH,eAAO,MAAM,QAAQ,qCAA8C,CAAA;AACnE,eAAO,MAAM,QAAQ,iDAA2C,CAAA;AAChE,eAAO,MAAM,gBAAgB,wEAAmD,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,mBAAmB,kDAAyD,CAAA;AACzF,eAAO,MAAM,mBAAmB,8DAAmE,CAAA;AACnG,eAAO,MAAM,2BAA2B,qFAA2E,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Iso4217Currency.ts';
2
+ export * from './Payload.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Amount/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,cAAc,CAAA"}
@@ -0,0 +1,42 @@
1
+ import type { Payload, WithSources } from '@xyo-network/payload-model';
2
+ import { BillingAddressSchema } from './Schema.ts';
3
+ /**
4
+ * The fields describing a billing address.
5
+ */
6
+ export interface BillingAddressFields {
7
+ /** Street address line 1. */
8
+ address?: string;
9
+ /** Street address line 2. */
10
+ address2?: string | null;
11
+ /** City of the billing address. */
12
+ city?: string;
13
+ /** Country code of the billing address, ISO 3166-1 alpha-2 code. */
14
+ country?: string;
15
+ /** First name */
16
+ firstName: string;
17
+ /** Last name */
18
+ lastName: string;
19
+ /** Organization or company name associated with the billing address. */
20
+ organization?: string | null;
21
+ /** Postal or ZIP code of the billing address. */
22
+ postalCode?: string;
23
+ /** State or region of the billing address. */
24
+ region?: string;
25
+ }
26
+ /**
27
+ * A BillingAddress Payload
28
+ */
29
+ export type BillingAddress = Payload<BillingAddressFields, BillingAddressSchema>;
30
+ /**
31
+ * Identity function for determine if an object is a BillingAddress
32
+ */
33
+ export declare const isBillingAddress: (x?: unknown | null) => x is BillingAddress;
34
+ export declare const asBillingAddress: import("@xylabs/sdk-js").AsTypeFunction<BillingAddress>;
35
+ export declare const asOptionalBillingAddress: (value: import("@xylabs/promise").AnyNonPromise) => BillingAddress | undefined;
36
+ /**
37
+ * Identity function for determine if an object is a BillingAddress with sources
38
+ */
39
+ export declare const isBillingAddressWithSources: (x?: unknown | null) => x is WithSources<BillingAddress>;
40
+ export declare const asBillingAddressWithSources: import("@xylabs/sdk-js").AsTypeFunction<WithSources<BillingAddress>>;
41
+ export declare const asOptionalBillingAddressWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<BillingAddress> | undefined;
42
+ //# sourceMappingURL=Address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Address.d.ts","sourceRoot":"","sources":["../../../../src/Billing/Address/Address.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAGtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,gBAAgB,6CAA8D,CAAA;AAC3F,eAAO,MAAM,gBAAgB,yDAA2D,CAAA;AACxF,eAAO,MAAM,wBAAwB,gFAAmE,CAAA;AAExG;;GAEG;AACH,eAAO,MAAM,2BAA2B,0DAAyE,CAAA;AACjH,eAAO,MAAM,2BAA2B,sEAAmF,CAAA;AAC3H,eAAO,MAAM,mCAAmC,6FAA2F,CAAA"}
@@ -0,0 +1,5 @@
1
+ export declare const BillingAddressSchema: string & {
2
+ readonly __schema: true;
3
+ };
4
+ export type BillingAddressSchema = typeof BillingAddressSchema;
5
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Billing/Address/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;CAA6C,CAAA;AAC9E,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Address.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Billing/Address/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,5 @@
1
+ export declare const BillingSchema: string & {
2
+ readonly __schema: true;
3
+ };
4
+ export type BillingSchema = typeof BillingSchema;
5
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export * from './Address/index.ts';
2
+ export * from './Schema.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Billing/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type SupportedCurrency = 'USD';
2
+ //# sourceMappingURL=Currency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../src/Currency.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAA"}
@@ -0,0 +1,25 @@
1
+ import type { Address } from '@xylabs/sdk-js';
2
+ import type { DivinerConfig } from '@xyo-network/diviner-model';
3
+ import type { ModuleIdentifier } from '@xyo-network/module-model';
4
+ export declare const PaymentDiscountDivinerConfigSchema: "network.xyo.diviner.payments.discount.config" & {
5
+ readonly __schema: true;
6
+ };
7
+ export type PaymentDiscountDivinerConfigSchema = typeof PaymentDiscountDivinerConfigSchema;
8
+ /**
9
+ * The configuration for the Payment Discount Diviner
10
+ */
11
+ export type PaymentDiscountDivinerConfig = DivinerConfig<{
12
+ /**
13
+ * The boundwitness diviner used to query for payloads
14
+ */
15
+ boundWitnessDiviner?: ModuleIdentifier;
16
+ /**
17
+ * The list of coupon authorities that can be used to get a discount
18
+ */
19
+ couponAuthorities?: Address[];
20
+ /**
21
+ * The Diviner that can be used to determine the subtotal to apply discounts to
22
+ */
23
+ paymentSubtotalDiviner?: ModuleIdentifier;
24
+ }, PaymentDiscountDivinerConfigSchema>;
25
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/Discount/Config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAGjE,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,OAAO,EAAE,CAAA;IAO7B;;OAEG;IACH,sBAAsB,CAAC,EAAE,gBAAgB,CAAA;CAC1C,EACD,kCAAkC,CACnC,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { Address } from '@xylabs/sdk-js';
2
+ import type { DivinerParams } from '@xyo-network/diviner-model';
3
+ import type { AnyConfigSchema } from '@xyo-network/module-model';
4
+ import type { PaymentDiscountDivinerConfig } from './Config.ts';
5
+ export interface PaymentDiscountDivinerParams<TConfig extends AnyConfigSchema<PaymentDiscountDivinerConfig> = AnyConfigSchema<PaymentDiscountDivinerConfig>> extends DivinerParams<TConfig> {
6
+ /**
7
+ * The list of coupon authorities that can be used to get a discount
8
+ */
9
+ couponAuthorities?: Address[];
10
+ }
11
+ //# sourceMappingURL=Params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/Discount/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,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,OAAO,EAAE,CAAA;CAC9B"}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,34 @@
1
+ import type { Address } from '@xylabs/sdk-js';
2
+ import { SchemaSchema } from '@xyo-network/schema-payload-plugin';
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: Address;
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: Address) => BuyerCondition;
34
+ //# sourceMappingURL=BuyerCondition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuyerCondition.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Conditions/BuyerCondition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AAEjE,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,OAAO,CAAA;wBACd,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,OAAO,KAAG,cAiBhE,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './AppraisalAmountCondition.ts';
2
+ export * from './AssetQuantityCondition.ts';
3
+ export * from './BuyerCondition.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,26 @@
1
+ import type { Payload, WithSources } from '@xyo-network/payload-model';
2
+ import type { AmountFields } from '../../../../Amount/index.ts';
3
+ import type { CouponFields } from '../types/index.ts';
4
+ export declare const FixedAmountCouponSchema: string & {
5
+ readonly __schema: true;
6
+ };
7
+ export type FixedAmountCouponSchema = typeof FixedAmountCouponSchema;
8
+ export interface FixedAmountCouponFields extends CouponFields, AmountFields {
9
+ }
10
+ /**
11
+ * A coupon that provides a fixed discount amount
12
+ */
13
+ export type FixedAmountCoupon = Payload<FixedAmountCouponFields, FixedAmountCouponSchema>;
14
+ /**
15
+ * Identity function for determining if an object is an FixedAmountCoupon
16
+ */
17
+ export declare const isFixedAmountCoupon: (x?: unknown | null) => x is FixedAmountCoupon;
18
+ export declare const asFixedAmountCoupon: import("@xylabs/sdk-js").AsTypeFunction<FixedAmountCoupon>;
19
+ export declare const asOptionalFixedAmountCoupon: (value: import("@xylabs/promise").AnyNonPromise) => FixedAmountCoupon | undefined;
20
+ /**
21
+ * Identity function for determining if an object is an FixedAmountCoupon with sources
22
+ */
23
+ export declare const isFixedAmountCouponWithSources: (x?: unknown | null) => x is WithSources<WithSources<FixedAmountCoupon>>;
24
+ export declare const asFixedAmountCouponWithSources: import("@xylabs/sdk-js").AsTypeFunction<WithSources<FixedAmountCoupon>>;
25
+ export declare const asOptionalFixedAmountCouponWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<FixedAmountCoupon> | undefined;
26
+ //# sourceMappingURL=FixedAmount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FixedAmount.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedAmount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAOtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,uBAAuB;;CAAiD,CAAA;AACrF,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAwB,SAAQ,YAAY,EAAE,YAAY;CAAG;AAE9E;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA;AAEzF;;GAEG;AACH,eAAO,MAAM,mBAAmB,gDAAoE,CAAA;AACpG,eAAO,MAAM,mBAAmB,4DAAiE,CAAA;AACjG,eAAO,MAAM,2BAA2B,mFAAyE,CAAA;AAEjH;;EAEE;AACF,eAAO,MAAM,8BAA8B,0EAA4F,CAAA;AACvI,eAAO,MAAM,8BAA8B,yEAAyF,CAAA;AACpI,eAAO,MAAM,sCAAsC,gGAAiG,CAAA"}
@@ -0,0 +1,26 @@
1
+ import type { Payload, WithSources } from '@xyo-network/payload-model';
2
+ import type { CouponFields } from '../types/index.ts';
3
+ export declare const FixedPercentageCouponSchema: string & {
4
+ readonly __schema: true;
5
+ };
6
+ export type FixedPercentageCouponSchema = typeof FixedPercentageCouponSchema;
7
+ export interface FixedPercentageCouponFields extends CouponFields {
8
+ percentage: number;
9
+ }
10
+ /**
11
+ * A coupon that provides a fixed discount amount
12
+ */
13
+ export type FixedPercentageCoupon = Payload<FixedPercentageCouponFields, FixedPercentageCouponSchema>;
14
+ /**
15
+ * Identity function for determining if an object is an FixedPercentageCoupon
16
+ */
17
+ export declare const isFixedPercentageCoupon: (x?: unknown | null) => x is FixedPercentageCoupon;
18
+ export declare const asFixedPercentageCoupon: import("@xylabs/sdk-js").AsTypeFunction<FixedPercentageCoupon>;
19
+ export declare const asOptionalFixedPercentageCoupon: (value: import("@xylabs/promise").AnyNonPromise) => FixedPercentageCoupon | undefined;
20
+ /**
21
+ * Identity function for determining if an object is an FixedPercentageCoupon with sources
22
+ */
23
+ export declare const isFixedPercentageCouponWithSources: (x?: unknown | null) => x is WithSources<WithSources<FixedPercentageCoupon>>;
24
+ export declare const asFixedPercentageCouponWithSources: import("@xylabs/sdk-js").AsTypeFunction<WithSources<FixedPercentageCoupon>>;
25
+ export declare const asOptionalFixedPercentageCouponWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<FixedPercentageCoupon> | undefined;
26
+ //# sourceMappingURL=FixedPercentage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FixedPercentage.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAQtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,2BAA2B;;CAAqD,CAAA;AAC7F,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAA;AAE5E,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC,2BAA2B,EAAE,2BAA2B,CAAC,CAAA;AAErG;;GAEG;AACH,eAAO,MAAM,uBAAuB,oDAA4E,CAAA;AAChH,eAAO,MAAM,uBAAuB,gEAAyE,CAAA;AAC7G,eAAO,MAAM,+BAA+B,uFAAiF,CAAA;AAE7H;;EAEE;AACF,eAAO,MAAM,kCAAkC,8EAAoG,CAAA;AACnJ,eAAO,MAAM,kCAAkC,6EAAiG,CAAA;AAChJ,eAAO,MAAM,0CAA0C,oGAAyG,CAAA"}
@@ -0,0 +1,26 @@
1
+ import type { Payload, WithSources } from '@xyo-network/payload-model';
2
+ import type { AmountFields } from '../../../../Amount/index.ts';
3
+ import type { CouponFields } from '../types/index.ts';
4
+ export declare const FixedPriceCouponSchema: string & {
5
+ readonly __schema: true;
6
+ };
7
+ export type FixedPriceCouponSchema = typeof FixedPriceCouponSchema;
8
+ export interface FixedPriceCouponFields extends CouponFields, AmountFields {
9
+ }
10
+ /**
11
+ * A coupon that provides a fixed total price
12
+ */
13
+ export type FixedPriceCoupon = Payload<FixedPriceCouponFields, FixedPriceCouponSchema>;
14
+ /**
15
+ * Identity function for determining if an object is an FixedPriceCoupon
16
+ */
17
+ export declare const isFixedPriceCoupon: (x?: unknown | null) => x is FixedPriceCoupon;
18
+ export declare const asFixedPriceCoupon: import("@xylabs/sdk-js").AsTypeFunction<FixedPriceCoupon>;
19
+ export declare const asOptionalFixedPriceCoupon: (value: import("@xylabs/promise").AnyNonPromise) => FixedPriceCoupon | undefined;
20
+ /**
21
+ * Identity function for determining if an object is an FixedPriceCoupon with sources
22
+ */
23
+ export declare const isFixedPriceCouponWithSources: (x?: unknown | null) => x is WithSources<WithSources<FixedPriceCoupon>>;
24
+ export declare const asFixedPriceCouponWithSources: import("@xylabs/sdk-js").AsTypeFunction<WithSources<FixedPriceCoupon>>;
25
+ export declare const asOptionalFixedPriceCouponWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<FixedPriceCoupon> | undefined;
26
+ //# sourceMappingURL=FixedPrice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FixedPrice.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedPrice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAOtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,sBAAsB;;CAAgD,CAAA;AACnF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAElE,MAAM,WAAW,sBAAuB,SAAQ,YAAY,EAAE,YAAY;CAAI;AAE9E;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,CAAA;AAEtF;;GAEG;AACH,eAAO,MAAM,kBAAkB,+CAAkE,CAAA;AACjG,eAAO,MAAM,kBAAkB,2DAA+D,CAAA;AAC9F,eAAO,MAAM,0BAA0B,kFAAuE,CAAA;AAE9G;;EAEE;AACF,eAAO,MAAM,6BAA6B,yEAA0F,CAAA;AACpI,eAAO,MAAM,6BAA6B,wEAAuF,CAAA;AACjI,eAAO,MAAM,qCAAqC,+FAA+F,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './FixedAmount.ts';
2
+ export * from './FixedPercentage.ts';
3
+ export * from './FixedPrice.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,16 @@
1
+ import type { FixedAmountCoupon, FixedPercentageCoupon, FixedPriceCoupon } from './Coupons/index.ts';
2
+ /**
3
+ * The type of coupons
4
+ */
5
+ export type Coupon = FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon;
6
+ /**
7
+ * Identity function for determining if an object is an Coupon
8
+ */
9
+ export declare const isCoupon: (x?: unknown | null) => x is FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon;
10
+ export declare const asCoupon: import("@xylabs/sdk-js").AsTypeFunction<FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>;
11
+ /**
12
+ * Identity function for determining if an object is an Coupon with sources
13
+ */
14
+ export declare const isCouponWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedAmountCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPercentageCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPriceCoupon>>;
15
+ export declare const asCouponWithSources: import("@xylabs/sdk-js").AsTypeFunction<import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedAmountCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPercentageCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPriceCoupon>>>;
16
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Discount/Payload/Coupon/Payload.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,iBAAiB,EAAE,qBAAqB,EAAE,gBAAgB,EAC3D,MAAM,oBAAoB,CAAA;AAQ3B;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,iBAAiB,GACf,qBAAqB,GACrB,gBAAgB,CAAA;AAEtB;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,IAAI,OAAO,GAAG,IAAI,sEAGjB,CAAA;AAC1B,eAAO,MAAM,QAAQ,uGAAmC,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,IAAI,OAAO,GAAG,IAAI,kXAGjB,CAAA;AACrC,eAAO,MAAM,mBAAmB,mZAA8C,CAAA"}
@@ -0,0 +1,5 @@
1
+ export declare const CouponSchema: "network.xyo.payments.coupon" & {
2
+ readonly __schema: true;
3
+ };
4
+ export type CouponSchema = typeof CouponSchema;
5
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../../src/Discount/Payload/Coupon/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;CAAgD,CAAA;AACzE,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from './Conditions/index.ts';
2
+ export * from './Coupons/index.ts';
3
+ export * from './Payload.ts';
4
+ export * from './Schema.ts';
5
+ export * from './types/index.ts';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Discount/Payload/Coupon/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import type { SchemaPayload } from '@xyo-network/schema-payload-plugin';
2
+ /**
3
+ * The payloads that can be used as conditions for a coupon
4
+ */
5
+ export type Condition = SchemaPayload;
6
+ /**
7
+ * Identity function for determining if an object is a Condition payload
8
+ */
9
+ export declare const isCondition: (x?: unknown | null) => x is SchemaPayload;
10
+ export declare const asCondition: import("@xylabs/sdk-js").AsTypeFunction<SchemaPayload>;
11
+ /**
12
+ * Identity function for determining if an object is a Condition payload with sources
13
+ */
14
+ export declare const isConditionWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<SchemaPayload>;
15
+ export declare const asConditionWithSources: import("@xylabs/sdk-js").AsTypeFunction<import("@xyo-network/payload-model").WithSources<SchemaPayload>>;
16
+ //# sourceMappingURL=Condition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Condition.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/types/Condition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAGvE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,aAAa,CAAA;AAErC;;GAEG;AACH,eAAO,MAAM,WAAW,4CAAiD,CAAA;AACzE,eAAO,MAAM,WAAW,wDAAsC,CAAA;AAE9D;;EAEE;AACF,eAAO,MAAM,sBAAsB,8FAA4D,CAAA;AAC/F,eAAO,MAAM,sBAAsB,0GAAiD,CAAA"}
@@ -0,0 +1,16 @@
1
+ import type { Hash } from '@xylabs/sdk-js';
2
+ import type { DurationFields } from '@xyo-network/xns-record-payload-plugins';
3
+ /**
4
+ * The fields that are common across all coupons
5
+ */
6
+ export interface CouponFields extends DurationFields {
7
+ /**
8
+ * The conditions that must be met in order for this coupon to be applied
9
+ */
10
+ conditions?: Hash[];
11
+ /**
12
+ * Whether or not this discount can be stacked with other discounts
13
+ */
14
+ stackable?: boolean;
15
+ }
16
+ //# sourceMappingURL=CouponFields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CouponFields.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/types/CouponFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAE7E;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,cAAc;IAClD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,EAAE,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB"}
@@ -0,0 +1,4 @@
1
+ export * from './Condition.ts';
2
+ export * from './CouponFields.ts';
3
+ export * from './isStackable.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Identity function for determining if coupon is stackable
3
+ */
4
+ export declare const isStackable: (x?: unknown | null) => boolean | undefined;
5
+ //# sourceMappingURL=isStackable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isStackable.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/types/isStackable.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,IAAI,OAAO,GAAG,IAAI,wBAA2D,CAAA"}
@@ -0,0 +1,25 @@
1
+ import type { Payload, WithSources } from '@xyo-network/payload-model';
2
+ import type { AmountFields } from '../../Amount/index.ts';
3
+ export declare const DiscountSchema: "network.xyo.payments.discount" & {
4
+ readonly __schema: true;
5
+ };
6
+ export type DiscountSchema = typeof DiscountSchema;
7
+ export interface DiscountFields extends AmountFields {
8
+ }
9
+ /**
10
+ * The result of a discount
11
+ */
12
+ export type Discount = Payload<DiscountFields, DiscountSchema>;
13
+ /**
14
+ * Identity function for determining if an object is an Discount
15
+ */
16
+ export declare const isDiscount: (x?: unknown | null) => x is Discount;
17
+ export declare const asDiscount: import("@xylabs/sdk-js").AsTypeFunction<Discount>;
18
+ export declare const asOptionalDiscount: (value: import("@xylabs/promise").AnyNonPromise) => Discount | undefined;
19
+ /**
20
+ * Identity function for determining if an object is an Discount with sources
21
+ */
22
+ export declare const isDiscountWithSources: (x?: unknown | null) => x is WithSources<Discount>;
23
+ export declare const asDiscountWithSources: import("@xylabs/sdk-js").AsTypeFunction<WithSources<Discount>>;
24
+ export declare const asOptionalDiscountWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<Discount> | undefined;
25
+ //# sourceMappingURL=Discount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Discount.d.ts","sourceRoot":"","sources":["../../../../src/Discount/Payload/Discount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAOtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,cAAc;;CAAkD,CAAA;AAC7E,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA;AAElD,MAAM,WAAW,cAAe,SAAQ,YAAY;CAAI;AAExD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AACzE,eAAO,MAAM,UAAU,mDAA+C,CAAA;AACtE,eAAO,MAAM,kBAAkB,0EAAuD,CAAA;AAEtF;;GAEG;AACH,eAAO,MAAM,qBAAqB,oDAA6D,CAAA;AAC/F,eAAO,MAAM,qBAAqB,gEAAuE,CAAA;AACzG,eAAO,MAAM,6BAA6B,uFAA+E,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Discount } from './Discount.ts';
2
+ export declare const NO_DISCOUNT: Discount;
3
+ //# sourceMappingURL=NoDiscount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NoDiscount.d.ts","sourceRoot":"","sources":["../../../../src/Discount/Payload/NoDiscount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAG7C,eAAO,MAAM,WAAW,EAAE,QAIzB,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './Coupon/index.ts';
2
+ export * from './Discount.ts';
3
+ export * from './NoDiscount.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Discount/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './Config.ts';
2
+ export * from './Params.ts';
3
+ export * from './Payload/index.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Discount/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA"}
@@ -0,0 +1,31 @@
1
+ import type { Hash } from '@xylabs/sdk-js';
2
+ import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
3
+ export declare const EscrowOutcomeSchema: string & {
4
+ readonly __schema: true;
5
+ };
6
+ export type EscrowOutcomeSchema = typeof EscrowOutcomeSchema;
7
+ /**
8
+ * The possible outcomes for an escrow
9
+ */
10
+ export type EscrowOutcomes = 'fulfilled' | 'expired';
11
+ export interface EscrowOutcomeFields {
12
+ outcome: EscrowOutcomes;
13
+ terms: Hash;
14
+ }
15
+ /**
16
+ * The terms of an escrow
17
+ */
18
+ export type EscrowOutcome = PayloadWithSources<EscrowOutcomeFields, EscrowOutcomeSchema>;
19
+ /**
20
+ * Identity function for determining if an object is an EscrowOutcome
21
+ */
22
+ export declare const isEscrowOutcome: (x?: unknown | null) => x is EscrowOutcome;
23
+ export declare const asEscrowOutcome: import("@xylabs/sdk-js").AsTypeFunction<EscrowOutcome>;
24
+ export declare const asOptionalEscrowOutcome: (value: import("@xylabs/promise").AnyNonPromise) => EscrowOutcome | undefined;
25
+ /**
26
+ * Identity function for determining if an object is an EscrowOutcome with sources
27
+ */
28
+ export declare const isEscrowOutcomeWithSources: (x?: unknown | null) => x is WithSources<EscrowOutcome>;
29
+ export declare const asEscrowOutcomeWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<EscrowOutcome> | undefined;
30
+ export declare const asOptionalEscrowOutcomeWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<EscrowOutcome> | undefined;
31
+ //# sourceMappingURL=Outcome.d.ts.map