@xyo-network/payment-payload-plugins 3.4.3 → 3.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/index.mjs +3 -12
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/{neutral → types}/Amount/Payload.d.ts +8 -8
- package/dist/types/Amount/Payload.d.ts.map +1 -0
- package/dist/{neutral → types}/Billing/Address/Address.d.ts +7 -7
- package/dist/types/Billing/Address/Address.d.ts.map +1 -0
- package/dist/{neutral → types}/Discount/Config.d.ts +3 -3
- package/dist/types/Discount/Config.d.ts.map +1 -0
- package/dist/{neutral → types}/Discount/Params.d.ts +4 -4
- package/dist/types/Discount/Params.d.ts.map +1 -0
- package/dist/{neutral → types}/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +1 -1
- package/dist/{neutral → types}/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +1 -1
- package/dist/{neutral → types}/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +1 -1
- package/dist/{neutral → types}/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +1 -1
- package/dist/{neutral → types}/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +2 -2
- package/dist/types/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +1 -0
- package/dist/{neutral → types}/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +9 -9
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +1 -0
- package/dist/{neutral → types}/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +8 -8
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +1 -0
- package/dist/{neutral → types}/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +9 -9
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +1 -0
- package/dist/{neutral → types}/Discount/Payload/Coupon/Payload.d.ts +5 -5
- package/dist/types/Discount/Payload/Coupon/Payload.d.ts.map +1 -0
- package/dist/{neutral → types}/Discount/Payload/Coupon/types/Condition.d.ts +5 -5
- package/dist/types/Discount/Payload/Coupon/types/Condition.d.ts.map +1 -0
- package/dist/{neutral → types}/Discount/Payload/Coupon/types/CouponFields.d.ts +2 -2
- package/dist/types/Discount/Payload/Coupon/types/CouponFields.d.ts.map +1 -0
- package/dist/{neutral → types}/Discount/Payload/Discount.d.ts +8 -16
- package/dist/types/Discount/Payload/Discount.d.ts.map +1 -0
- package/dist/types/Discount/Payload/NoDiscount.d.ts +3 -0
- package/dist/{neutral → types}/Discount/Payload/NoDiscount.d.ts.map +1 -1
- package/dist/{neutral → types}/Escrow/Outcome.d.ts +7 -11
- package/dist/types/Escrow/Outcome.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/Terms/Party.d.ts +1 -1
- package/dist/types/Escrow/Terms/Party.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/Terms/PartySecret.d.ts +1 -1
- package/dist/types/Escrow/Terms/PartySecret.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/Terms/Terms.d.ts +8 -8
- package/dist/types/Escrow/Terms/Terms.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +4 -4
- package/dist/types/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +4 -4
- package/dist/types/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/util/secret/createEscrowIntent.d.ts +3 -3
- package/dist/types/Escrow/util/secret/createEscrowIntent.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +4 -4
- package/dist/types/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/util/secret/getEscrowSecret.d.ts +1 -1
- package/dist/{neutral → types}/Escrow/util/secret/getEscrowSecret.d.ts.map +1 -1
- package/dist/{neutral → types}/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +3 -3
- package/dist/types/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +3 -3
- package/dist/types/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +3 -3
- package/dist/types/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +1 -0
- package/dist/types/Escrow/validators/escrow/agent.d.ts +5 -0
- package/dist/types/Escrow/validators/escrow/agent.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/validators/escrow/appraisal.d.ts +3 -3
- package/dist/types/Escrow/validators/escrow/appraisal.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/validators/escrow/appraisalAuthorities.d.ts +3 -3
- package/dist/types/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/validators/escrow/assets.d.ts +2 -2
- package/dist/types/Escrow/validators/escrow/assets.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/validators/escrow/buyer.d.ts +2 -2
- package/dist/types/Escrow/validators/escrow/buyer.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/validators/escrow/buyerSecret.d.ts +3 -3
- package/dist/types/Escrow/validators/escrow/buyerSecret.d.ts.map +1 -0
- package/dist/types/Escrow/validators/escrow/nbfExp.d.ts +4 -0
- package/dist/types/Escrow/validators/escrow/nbfExp.d.ts.map +1 -0
- package/dist/types/Escrow/validators/escrow/paymentAuthorities.d.ts +5 -0
- package/dist/types/Escrow/validators/escrow/paymentAuthorities.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/validators/escrow/seller.d.ts +2 -2
- package/dist/types/Escrow/validators/escrow/seller.d.ts.map +1 -0
- package/dist/{neutral → types}/Escrow/validators/escrow/sellerSecret.d.ts +3 -3
- package/dist/types/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -0
- package/dist/{neutral → types}/Invoice/Invoice.d.ts +4 -4
- package/dist/types/Invoice/Invoice.d.ts.map +1 -0
- package/dist/{neutral → types}/Payment/Instrument/Card/Payload.d.ts +7 -7
- package/dist/types/Payment/Instrument/Card/Payload.d.ts.map +1 -0
- package/dist/{neutral → types}/Payment/Payload.d.ts +8 -12
- package/dist/types/Payment/Payload.d.ts.map +1 -0
- package/dist/{neutral → types}/Payment/Status/Payload.d.ts +7 -7
- package/dist/types/Payment/Status/Payload.d.ts.map +1 -0
- package/dist/{neutral → types}/Purchase/Payload.d.ts +8 -8
- package/dist/types/Purchase/Payload.d.ts.map +1 -0
- package/dist/{neutral → types}/Receipt/Payload.d.ts +8 -12
- package/dist/types/Receipt/Payload.d.ts.map +1 -0
- package/dist/{neutral → types}/Subtotal/Diviner/Config.d.ts +1 -1
- package/dist/types/Subtotal/Diviner/Config.d.ts.map +1 -0
- package/dist/types/Subtotal/Diviner/Params.d.ts +5 -0
- package/dist/types/Subtotal/Diviner/Params.d.ts.map +1 -0
- package/dist/{neutral → types}/Subtotal/Diviner/Payload.d.ts +8 -8
- package/dist/types/Subtotal/Diviner/Payload.d.ts.map +1 -0
- package/dist/{neutral → types}/Total/Diviner/Config.d.ts +2 -2
- package/dist/types/Total/Diviner/Config.d.ts.map +1 -0
- package/dist/types/Total/Diviner/Params.d.ts +5 -0
- package/dist/types/Total/Diviner/Params.d.ts.map +1 -0
- package/dist/{neutral → types}/Total/Diviner/Payload.d.ts +8 -8
- package/dist/types/Total/Diviner/Payload.d.ts.map +1 -0
- package/package.json +25 -25
- package/src/Amount/Payload.ts +3 -2
- package/src/Billing/Address/Address.ts +2 -3
- package/src/Discount/Config.ts +3 -3
- package/src/Discount/Params.ts +4 -4
- package/src/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.ts +1 -1
- package/src/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.ts +1 -1
- package/src/Discount/Payload/Coupon/Conditions/BuyerCondition.ts +2 -2
- package/src/Discount/Payload/Coupon/Coupons/FixedAmount.ts +4 -3
- package/src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts +2 -2
- package/src/Discount/Payload/Coupon/Coupons/FixedPrice.ts +4 -3
- package/src/Discount/Payload/Coupon/Payload.ts +3 -1
- package/src/Discount/Payload/Coupon/types/Condition.ts +2 -1
- package/src/Discount/Payload/Coupon/types/CouponFields.ts +2 -2
- package/src/Discount/Payload/Coupon/types/isStackable.ts +1 -1
- package/src/Discount/Payload/Discount.ts +3 -2
- package/src/Discount/Payload/NoDiscount.ts +2 -1
- package/src/Escrow/Outcome.ts +3 -2
- package/src/Escrow/Terms/Party.ts +1 -1
- package/src/Escrow/Terms/PartySecret.ts +1 -1
- package/src/Escrow/Terms/Terms.ts +3 -4
- package/src/Escrow/util/appraisal/getAppraisalsByAsset.ts +5 -4
- package/src/Escrow/util/appraisal/getSignaturesByAppraisal.ts +5 -4
- package/src/Escrow/util/secret/createEscrowIntent.ts +3 -3
- package/src/Escrow/util/secret/findEscrowPartySecretSignatures.ts +5 -4
- package/src/Escrow/util/secret/getEscrowSecret.ts +2 -1
- package/src/Escrow/util/secret/updateEscrowTermsWithSecret.ts +3 -3
- package/src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts +3 -3
- package/src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts +3 -3
- package/src/Escrow/validators/escrow/agent.ts +3 -3
- package/src/Escrow/validators/escrow/appraisal.ts +6 -5
- package/src/Escrow/validators/escrow/appraisalAuthorities.ts +3 -3
- package/src/Escrow/validators/escrow/assets.ts +2 -2
- package/src/Escrow/validators/escrow/buyer.ts +2 -2
- package/src/Escrow/validators/escrow/buyerSecret.ts +3 -3
- package/src/Escrow/validators/escrow/nbfExp.ts +2 -2
- package/src/Escrow/validators/escrow/paymentAuthorities.ts +3 -3
- package/src/Escrow/validators/escrow/seller.ts +2 -2
- package/src/Escrow/validators/escrow/sellerSecret.ts +3 -3
- package/src/Invoice/Invoice.ts +4 -4
- package/src/Payment/Instrument/Card/Payload.ts +2 -3
- package/src/Payment/Payload.ts +3 -2
- package/src/Payment/Status/Payload.ts +2 -1
- package/src/Purchase/Payload.ts +3 -2
- package/src/Receipt/Payload.ts +3 -2
- package/src/Subtotal/Diviner/Config.ts +1 -1
- package/src/Subtotal/Diviner/Params.ts +3 -3
- package/src/Subtotal/Diviner/Payload.ts +3 -2
- package/src/Total/Diviner/Config.ts +2 -2
- package/src/Total/Diviner/Params.ts +3 -3
- package/src/Total/Diviner/Payload.ts +3 -2
- package/xy.config.ts +1 -1
- package/dist/neutral/Amount/Payload.d.ts.map +0 -1
- package/dist/neutral/Billing/Address/Address.d.ts.map +0 -1
- package/dist/neutral/Discount/Config.d.ts.map +0 -1
- package/dist/neutral/Discount/Params.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Discount.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/NoDiscount.d.ts +0 -3
- package/dist/neutral/Escrow/Outcome.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/Party.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/PartySecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/Terms.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/agent.d.ts +0 -5
- package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +0 -4
- package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +0 -5
- package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +0 -1
- package/dist/neutral/Invoice/Invoice.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +0 -1
- package/dist/neutral/Payment/Payload.d.ts.map +0 -1
- package/dist/neutral/Payment/Status/Payload.d.ts.map +0 -1
- package/dist/neutral/Purchase/Payload.d.ts.map +0 -1
- package/dist/neutral/Receipt/Payload.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/Config.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/Params.d.ts +0 -5
- package/dist/neutral/Subtotal/Diviner/Params.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/Config.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/Params.d.ts +0 -5
- package/dist/neutral/Total/Diviner/Params.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/Payload.d.ts.map +0 -1
- /package/dist/{neutral → types}/Amount/Iso4217Currency.d.ts +0 -0
- /package/dist/{neutral → types}/Amount/Iso4217Currency.d.ts.map +0 -0
- /package/dist/{neutral → types}/Amount/index.d.ts +0 -0
- /package/dist/{neutral → types}/Amount/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Billing/Address/Schema.d.ts +0 -0
- /package/dist/{neutral → types}/Billing/Address/Schema.d.ts.map +0 -0
- /package/dist/{neutral → types}/Billing/Address/index.d.ts +0 -0
- /package/dist/{neutral → types}/Billing/Address/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Billing/Schema.d.ts +0 -0
- /package/dist/{neutral → types}/Billing/Schema.d.ts.map +0 -0
- /package/dist/{neutral → types}/Billing/index.d.ts +0 -0
- /package/dist/{neutral → types}/Billing/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Currency.d.ts +0 -0
- /package/dist/{neutral → types}/Currency.d.ts.map +0 -0
- /package/dist/{neutral → types}/Discount/Payload/Coupon/Conditions/index.d.ts +0 -0
- /package/dist/{neutral → types}/Discount/Payload/Coupon/Conditions/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Discount/Payload/Coupon/Coupons/index.d.ts +0 -0
- /package/dist/{neutral → types}/Discount/Payload/Coupon/Coupons/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Discount/Payload/Coupon/Schema.d.ts +0 -0
- /package/dist/{neutral → types}/Discount/Payload/Coupon/Schema.d.ts.map +0 -0
- /package/dist/{neutral → types}/Discount/Payload/Coupon/index.d.ts +0 -0
- /package/dist/{neutral → types}/Discount/Payload/Coupon/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Discount/Payload/Coupon/types/index.d.ts +0 -0
- /package/dist/{neutral → types}/Discount/Payload/Coupon/types/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Discount/Payload/Coupon/types/isStackable.d.ts +0 -0
- /package/dist/{neutral → types}/Discount/Payload/Coupon/types/isStackable.d.ts.map +0 -0
- /package/dist/{neutral → types}/Discount/Payload/index.d.ts +0 -0
- /package/dist/{neutral → types}/Discount/Payload/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Discount/index.d.ts +0 -0
- /package/dist/{neutral → types}/Discount/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Escrow/Schema.d.ts +0 -0
- /package/dist/{neutral → types}/Escrow/Schema.d.ts.map +0 -0
- /package/dist/{neutral → types}/Escrow/Terms/index.d.ts +0 -0
- /package/dist/{neutral → types}/Escrow/Terms/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Escrow/index.d.ts +0 -0
- /package/dist/{neutral → types}/Escrow/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Escrow/util/appraisal/index.d.ts +0 -0
- /package/dist/{neutral → types}/Escrow/util/appraisal/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Escrow/util/index.d.ts +0 -0
- /package/dist/{neutral → types}/Escrow/util/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Escrow/util/secret/index.d.ts +0 -0
- /package/dist/{neutral → types}/Escrow/util/secret/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +0 -0
- /package/dist/{neutral → types}/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Escrow/validators/common/SecretValidators/index.d.ts +0 -0
- /package/dist/{neutral → types}/Escrow/validators/common/SecretValidators/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Escrow/validators/common/TemporalValidators/index.d.ts +0 -0
- /package/dist/{neutral → types}/Escrow/validators/common/TemporalValidators/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +0 -0
- /package/dist/{neutral → types}/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +0 -0
- /package/dist/{neutral → types}/Escrow/validators/common/index.d.ts +0 -0
- /package/dist/{neutral → types}/Escrow/validators/common/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Escrow/validators/escrow/index.d.ts +0 -0
- /package/dist/{neutral → types}/Escrow/validators/escrow/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Escrow/validators/index.d.ts +0 -0
- /package/dist/{neutral → types}/Escrow/validators/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Invoice/index.d.ts +0 -0
- /package/dist/{neutral → types}/Invoice/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Payment/Instrument/Card/Schema.d.ts +0 -0
- /package/dist/{neutral → types}/Payment/Instrument/Card/Schema.d.ts.map +0 -0
- /package/dist/{neutral → types}/Payment/Instrument/Card/index.d.ts +0 -0
- /package/dist/{neutral → types}/Payment/Instrument/Card/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Payment/Instrument/Schema.d.ts +0 -0
- /package/dist/{neutral → types}/Payment/Instrument/Schema.d.ts.map +0 -0
- /package/dist/{neutral → types}/Payment/Instrument/index.d.ts +0 -0
- /package/dist/{neutral → types}/Payment/Instrument/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Payment/Schema.d.ts +0 -0
- /package/dist/{neutral → types}/Payment/Schema.d.ts.map +0 -0
- /package/dist/{neutral → types}/Payment/Status/Schema.d.ts +0 -0
- /package/dist/{neutral → types}/Payment/Status/Schema.d.ts.map +0 -0
- /package/dist/{neutral → types}/Payment/Status/index.d.ts +0 -0
- /package/dist/{neutral → types}/Payment/Status/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Payment/index.d.ts +0 -0
- /package/dist/{neutral → types}/Payment/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Purchase/Schema.d.ts +0 -0
- /package/dist/{neutral → types}/Purchase/Schema.d.ts.map +0 -0
- /package/dist/{neutral → types}/Purchase/index.d.ts +0 -0
- /package/dist/{neutral → types}/Purchase/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Receipt/Schema.d.ts +0 -0
- /package/dist/{neutral → types}/Receipt/Schema.d.ts.map +0 -0
- /package/dist/{neutral → types}/Receipt/index.d.ts +0 -0
- /package/dist/{neutral → types}/Receipt/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Schema.d.ts +0 -0
- /package/dist/{neutral → types}/Schema.d.ts.map +0 -0
- /package/dist/{neutral → types}/Subtotal/Diviner/index.d.ts +0 -0
- /package/dist/{neutral → types}/Subtotal/Diviner/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Subtotal/index.d.ts +0 -0
- /package/dist/{neutral → types}/Subtotal/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Total/Diviner/index.d.ts +0 -0
- /package/dist/{neutral → types}/Total/Diviner/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/Total/index.d.ts +0 -0
- /package/dist/{neutral → types}/Total/index.d.ts.map +0 -0
- /package/dist/{neutral → types}/index.d.ts +0 -0
- /package/dist/{neutral → types}/index.d.ts.map +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
} from '@xyo-network/payload-model'
|
|
2
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model'
|
|
3
|
+
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
|
|
5
4
|
|
|
6
5
|
import { BillingAddressSchema } from './Schema.ts'
|
|
7
6
|
|
package/src/Discount/Config.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// import type { Hash } from '@xylabs/hex'
|
|
2
|
-
import { Address } from '@xylabs/hex'
|
|
3
|
-
import { DivinerConfig } from '@xyo-network/diviner-model'
|
|
4
|
-
import { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
+
import type { Address } from '@xylabs/hex'
|
|
3
|
+
import type { DivinerConfig } from '@xyo-network/diviner-model'
|
|
4
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
5
5
|
|
|
6
6
|
export const PaymentDiscountDivinerConfigSchema = 'network.xyo.diviner.payments.discount.config'
|
|
7
7
|
export type PaymentDiscountDivinerConfigSchema = typeof PaymentDiscountDivinerConfigSchema
|
package/src/Discount/Params.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Address } from '@xylabs/hex'
|
|
2
|
-
import { DivinerParams } from '@xyo-network/diviner-model'
|
|
3
|
-
import { AnyConfigSchema } from '@xyo-network/module-model'
|
|
1
|
+
import type { Address } from '@xylabs/hex'
|
|
2
|
+
import type { DivinerParams } from '@xyo-network/diviner-model'
|
|
3
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model'
|
|
4
4
|
|
|
5
|
-
import { PaymentDiscountDivinerConfig } from './Config.ts'
|
|
5
|
+
import type { PaymentDiscountDivinerConfig } from './Config.ts'
|
|
6
6
|
|
|
7
7
|
export type PaymentDiscountDivinerParams<
|
|
8
8
|
TConfig extends AnyConfigSchema<PaymentDiscountDivinerConfig> = AnyConfigSchema<PaymentDiscountDivinerConfig>,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable unicorn/no-thenable */
|
|
2
2
|
import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
3
3
|
|
|
4
|
-
import { Condition } from '../types/index.ts'
|
|
4
|
+
import type { Condition } from '../types/index.ts'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Creates a coupon condition that requires an appraisal amount below a certain value
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Address } from '@xylabs/hex'
|
|
1
|
+
import type { Address } from '@xylabs/hex'
|
|
2
2
|
import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
3
3
|
|
|
4
|
-
import { Condition } from '../types/index.ts'
|
|
4
|
+
import type { Condition } from '../types/index.ts'
|
|
5
5
|
|
|
6
6
|
export type BuyerCondition = Condition & {
|
|
7
7
|
definition: {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model'
|
|
2
3
|
import {
|
|
3
4
|
isPayloadOfSchemaType,
|
|
4
|
-
isPayloadOfSchemaTypeWithSources,
|
|
5
|
+
isPayloadOfSchemaTypeWithSources,
|
|
5
6
|
} from '@xyo-network/payload-model'
|
|
6
7
|
|
|
7
|
-
import { AmountFields } from '../../../../Amount/index.ts'
|
|
8
|
+
import type { AmountFields } from '../../../../Amount/index.ts'
|
|
8
9
|
import { CouponSchema } from '../Schema.ts'
|
|
9
|
-
import { CouponFields } from '../types/index.ts'
|
|
10
|
+
import type { CouponFields } from '../types/index.ts'
|
|
10
11
|
|
|
11
12
|
export const FixedAmountCouponSchema = `${CouponSchema}.fixed.amount` as const
|
|
12
13
|
export type FixedAmountCouponSchema = typeof FixedAmountCouponSchema
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model'
|
|
2
3
|
import {
|
|
3
4
|
isPayloadOfSchemaType,
|
|
4
5
|
isPayloadOfSchemaTypeWithSources,
|
|
5
|
-
Payload, WithSources,
|
|
6
6
|
} from '@xyo-network/payload-model'
|
|
7
7
|
|
|
8
8
|
import { CouponSchema } from '../Schema.ts'
|
|
9
|
-
import { CouponFields } from '../types/index.ts'
|
|
9
|
+
import type { CouponFields } from '../types/index.ts'
|
|
10
10
|
|
|
11
11
|
export const FixedPercentageCouponSchema = `${CouponSchema}.fixed.percentage` as const
|
|
12
12
|
export type FixedPercentageCouponSchema = typeof FixedPercentageCouponSchema
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model'
|
|
2
3
|
import {
|
|
3
4
|
isPayloadOfSchemaType,
|
|
4
|
-
isPayloadOfSchemaTypeWithSources,
|
|
5
|
+
isPayloadOfSchemaTypeWithSources,
|
|
5
6
|
} from '@xyo-network/payload-model'
|
|
6
7
|
|
|
7
|
-
import { AmountFields } from '../../../../Amount/index.ts'
|
|
8
|
+
import type { AmountFields } from '../../../../Amount/index.ts'
|
|
8
9
|
import { CouponSchema } from '../Schema.ts'
|
|
9
|
-
import { CouponFields } from '../types/index.ts'
|
|
10
|
+
import type { CouponFields } from '../types/index.ts'
|
|
10
11
|
|
|
11
12
|
export const FixedPriceCouponSchema = `${CouponSchema}.fixed.price` as const
|
|
12
13
|
export type FixedPriceCouponSchema = typeof FixedPriceCouponSchema
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type {
|
|
4
4
|
FixedAmountCoupon, FixedPercentageCoupon, FixedPriceCoupon,
|
|
5
|
+
} from './Coupons/index.ts'
|
|
6
|
+
import {
|
|
5
7
|
isFixedAmountCoupon, isFixedAmountCouponWithSources, isFixedPercentageCoupon,
|
|
6
8
|
isFixedPercentageCouponWithSources,
|
|
7
9
|
isFixedPriceCoupon,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
2
|
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
|
|
3
|
-
import { SchemaPayload
|
|
3
|
+
import type { SchemaPayload } from '@xyo-network/schema-payload-plugin'
|
|
4
|
+
import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* The payloads that can be used as conditions for a coupon
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Hash } from '@xylabs/hex'
|
|
2
|
-
import { DurationFields } from '@xyo-network/xns-record-payload-plugins'
|
|
1
|
+
import type { Hash } from '@xylabs/hex'
|
|
2
|
+
import type { DurationFields } from '@xyo-network/xns-record-payload-plugins'
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The fields that are common across all coupons
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model'
|
|
2
3
|
import {
|
|
3
4
|
isPayloadOfSchemaType,
|
|
4
|
-
isPayloadOfSchemaTypeWithSources,
|
|
5
|
+
isPayloadOfSchemaTypeWithSources,
|
|
5
6
|
} from '@xyo-network/payload-model'
|
|
6
7
|
|
|
7
|
-
import { AmountFields } from '../../Amount/index.ts'
|
|
8
|
+
import type { AmountFields } from '../../Amount/index.ts'
|
|
8
9
|
|
|
9
10
|
export const DiscountSchema = 'network.xyo.payments.discount' as const
|
|
10
11
|
export type DiscountSchema = typeof DiscountSchema
|
package/src/Escrow/Outcome.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Hash } from '@xylabs/hex'
|
|
1
|
+
import type { Hash } from '@xylabs/hex'
|
|
2
2
|
import { AsObjectFactory } from '@xylabs/object'
|
|
3
|
+
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model'
|
|
3
4
|
import {
|
|
4
5
|
isPayloadOfSchemaType,
|
|
5
|
-
isPayloadOfSchemaTypeWithSources,
|
|
6
|
+
isPayloadOfSchemaTypeWithSources,
|
|
6
7
|
} from '@xyo-network/payload-model'
|
|
7
8
|
|
|
8
9
|
import { EscrowSchema } from './Schema.ts'
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Address, Hash } from '@xylabs/hex'
|
|
1
|
+
import type { Address, Hash } from '@xylabs/hex'
|
|
2
2
|
import { AsObjectFactory } from '@xylabs/object'
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
} from '@xyo-network/payload-model'
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
4
|
+
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
|
|
6
5
|
|
|
7
6
|
import { EscrowSchema } from '../Schema.ts'
|
|
8
7
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Hash } from '@xylabs/hex'
|
|
2
|
-
import { HashLeaseEstimate
|
|
3
|
-
import {
|
|
1
|
+
import type { Hash } from '@xylabs/hex'
|
|
2
|
+
import type { HashLeaseEstimate } from '@xyo-network/diviner-hash-lease'
|
|
3
|
+
import { isHashLeaseEstimateWithSources } from '@xyo-network/diviner-hash-lease'
|
|
4
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model'
|
|
4
5
|
|
|
5
|
-
import { EscrowTerms } from '../../Terms/index.ts'
|
|
6
|
+
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Returns a dictionary of asset hashes and their associated appraisals
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Hash } from '@xylabs/hex'
|
|
2
|
-
import { BoundWitness
|
|
3
|
-
import {
|
|
1
|
+
import type { Hash } from '@xylabs/hex'
|
|
2
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
3
|
+
import { isBoundWitness } from '@xyo-network/boundwitness-model'
|
|
4
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
4
5
|
|
|
5
|
-
import { EscrowTerms } from '../../Terms/index.ts'
|
|
6
|
+
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Returns a dictionary of appraisals and their associated bound witnesses which are signed by
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AccountInstance } from '@xyo-network/account-model'
|
|
1
|
+
import type { AccountInstance } from '@xyo-network/account-model'
|
|
2
2
|
import { BoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
|
|
3
|
-
import { Id } from '@xyo-network/id-payload-plugin'
|
|
3
|
+
import type { Id } from '@xyo-network/id-payload-plugin'
|
|
4
4
|
|
|
5
|
-
import { EscrowTerms } from '../../Terms/index.ts'
|
|
5
|
+
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Creates an escrow intent (for a buyer or seller) using the supplied secret
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Hash } from '@xylabs/hex'
|
|
2
|
-
import { BoundWitness
|
|
3
|
-
import {
|
|
1
|
+
import type { Hash } from '@xylabs/hex'
|
|
2
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
3
|
+
import { isBoundWitness } from '@xyo-network/boundwitness-model'
|
|
4
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
4
5
|
|
|
5
|
-
import {
|
|
6
|
+
import type {
|
|
6
7
|
EscrowParty, EscrowPartySecret, EscrowTerms,
|
|
7
8
|
} from '../../Terms/index.ts'
|
|
8
9
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Crypto } from '@xylabs/crypto'
|
|
2
|
-
import { IdPayload
|
|
2
|
+
import type { IdPayload } from '@xyo-network/id-payload-plugin'
|
|
3
|
+
import { IdSchema } from '@xyo-network/id-payload-plugin'
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Returns a cryptographically random secret to use for escrow
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AccountInstance } from '@xyo-network/account-model'
|
|
1
|
+
import type { AccountInstance } from '@xyo-network/account-model'
|
|
2
2
|
import { BoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
|
|
3
|
-
import { IdPayload } from '@xyo-network/id-payload-plugin'
|
|
3
|
+
import type { IdPayload } from '@xyo-network/id-payload-plugin'
|
|
4
4
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import type {
|
|
7
7
|
EscrowParty, EscrowPartySecret, EscrowTerms,
|
|
8
8
|
} from '../../Terms/index.ts'
|
|
9
9
|
import { getEscrowSecret } from './getEscrowSecret.ts'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
-
import { PayloadValueExpression } from '@xyo-network/payload-model'
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
+
import type { PayloadValueExpression } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
|
-
import { EscrowTerms } from '../../../Terms/index.ts'
|
|
4
|
+
import type { EscrowTerms } from '../../../Terms/index.ts'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Checks if property value of the escrow terms contains one of the valid moduleIdentifiers
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Hash } from '@xylabs/hex'
|
|
1
|
+
import type { Hash } from '@xylabs/hex'
|
|
2
2
|
import { BoundWitnessValidator } from '@xyo-network/boundwitness-validator'
|
|
3
|
-
import { AsyncPayloadValidationFunction, Payload } from '@xyo-network/payload-model'
|
|
3
|
+
import type { AsyncPayloadValidationFunction, Payload } from '@xyo-network/payload-model'
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import type {
|
|
6
6
|
EscrowParty, EscrowPartySecret, EscrowTerms,
|
|
7
7
|
} from '../../../Terms/index.ts'
|
|
8
8
|
import { findEscrowPartySecretSignatures } from '../../../util/index.ts'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
-
import { SyncPayloadValidationFunction } from '@xyo-network/payload-model'
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
|
-
import { EscrowTerms } from '../../Terms/index.ts'
|
|
4
|
+
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
5
5
|
import { moduleIdentifiersContainsOneOf } from '../common/index.ts'
|
|
6
6
|
|
|
7
7
|
const name = 'EscrowTerms.escrowAgent'
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
|
-
import { Hash } from '@xylabs/hex'
|
|
3
|
-
import { BoundWitness
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import type { Hash } from '@xylabs/hex'
|
|
3
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
4
|
+
import { isBoundWitness } from '@xyo-network/boundwitness-model'
|
|
5
|
+
import type { HashLeaseEstimate } from '@xyo-network/diviner-hash-lease'
|
|
6
|
+
import type {
|
|
6
7
|
Payload, SyncPayloadValidationFunction, WithSources,
|
|
7
8
|
} from '@xyo-network/payload-model'
|
|
8
9
|
|
|
9
|
-
import { EscrowTerms } from '../../Terms/index.ts'
|
|
10
|
+
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
10
11
|
import { getAppraisalsByAsset } from '../../util/index.ts'
|
|
11
12
|
import { validateWithinWindow } from '../common/index.ts'
|
|
12
13
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { asAddress } from '@xylabs/hex'
|
|
2
|
-
import { ModuleIdentifier } from '@xyo-network/module-model'
|
|
3
|
-
import { SyncPayloadValidationFunction } from '@xyo-network/payload-model'
|
|
2
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
3
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model'
|
|
4
4
|
|
|
5
|
-
import { EscrowTerms } from '../../Terms/index.ts'
|
|
5
|
+
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
6
6
|
import { moduleIdentifiersContainsAllOf } from '../common/index.ts'
|
|
7
7
|
|
|
8
8
|
const name = 'EscrowTerms.appraisalAuthorities'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SyncPayloadValidationFunction } from '@xyo-network/payload-model'
|
|
1
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model'
|
|
2
2
|
|
|
3
|
-
import { EscrowTerms } from '../../Terms/index.ts'
|
|
3
|
+
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
4
4
|
|
|
5
5
|
const name = 'EscrowTerms.assets'
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { asAddress } from '@xylabs/hex'
|
|
2
|
-
import { SyncPayloadValidationFunction } from '@xyo-network/payload-model'
|
|
2
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
|
-
import { EscrowTerms } from '../../Terms/index.ts'
|
|
4
|
+
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
5
5
|
|
|
6
6
|
const name = 'EscrowTerms.buyer'
|
|
7
7
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
|
-
import { Hash } from '@xylabs/hex'
|
|
3
|
-
import {
|
|
2
|
+
import type { Hash } from '@xylabs/hex'
|
|
3
|
+
import type {
|
|
4
4
|
AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction,
|
|
5
5
|
} from '@xyo-network/payload-model'
|
|
6
6
|
|
|
7
|
-
import { EscrowTerms } from '../../Terms/index.ts'
|
|
7
|
+
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
8
8
|
import { getPartySecretSignedValidator } from '../common/index.ts'
|
|
9
9
|
|
|
10
10
|
const name = 'EscrowTerms.buyerSecret'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SyncPayloadValidationFunction } from '@xyo-network/payload-model'
|
|
1
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model'
|
|
2
2
|
|
|
3
|
-
import { EscrowTerms } from '../../Terms/index.ts'
|
|
3
|
+
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
4
4
|
|
|
5
5
|
export const getNbfExpValidator = (now: number, minRequiredDuration: number): SyncPayloadValidationFunction<EscrowTerms> => {
|
|
6
6
|
const minExp = now + minRequiredDuration
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
-
import { SyncPayloadValidationFunction } from '@xyo-network/payload-model'
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
|
-
import { EscrowTerms } from '../../Terms/index.ts'
|
|
4
|
+
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
5
5
|
import { moduleIdentifiersContainsAllOf } from '../common/index.ts'
|
|
6
6
|
|
|
7
7
|
const name = 'EscrowTerms.paymentAuthorities'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { asAddress } from '@xylabs/hex'
|
|
2
|
-
import { SyncPayloadValidationFunction } from '@xyo-network/payload-model'
|
|
2
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
|
-
import { EscrowTerms } from '../../Terms/index.ts'
|
|
4
|
+
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
5
5
|
|
|
6
6
|
const name = 'EscrowTerms.seller'
|
|
7
7
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
|
-
import { Hash } from '@xylabs/hex'
|
|
3
|
-
import {
|
|
2
|
+
import type { Hash } from '@xylabs/hex'
|
|
3
|
+
import type {
|
|
4
4
|
AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction,
|
|
5
5
|
} from '@xyo-network/payload-model'
|
|
6
6
|
|
|
7
|
-
import { EscrowTerms } from '../../Terms/index.ts'
|
|
7
|
+
import type { EscrowTerms } from '../../Terms/index.ts'
|
|
8
8
|
import { getPartySecretSignedValidator } from '../common/index.ts'
|
|
9
9
|
|
|
10
10
|
const name = 'EscrowTerms.sellerSecret'
|
package/src/Invoice/Invoice.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Discount } from '../Discount/index.ts'
|
|
2
|
-
import { Payment } from '../Payment/index.ts'
|
|
3
|
-
import { Subtotal } from '../Subtotal/index.ts'
|
|
4
|
-
import { Total } from '../Total/index.ts'
|
|
1
|
+
import type { Discount } from '../Discount/index.ts'
|
|
2
|
+
import type { Payment } from '../Payment/index.ts'
|
|
3
|
+
import type { Subtotal } from '../Subtotal/index.ts'
|
|
4
|
+
import type { Total } from '../Total/index.ts'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* A tuple containing the subtotal, total, and payment for an invoice.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
} from '@xyo-network/payload-model'
|
|
2
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model'
|
|
3
|
+
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
|
|
5
4
|
|
|
6
5
|
import { PaymentCardSchema } from './Schema.ts'
|
|
7
6
|
|
package/src/Payment/Payload.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
+
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model'
|
|
2
3
|
import {
|
|
3
4
|
isPayloadOfSchemaType,
|
|
4
|
-
isPayloadOfSchemaTypeWithSources,
|
|
5
|
+
isPayloadOfSchemaTypeWithSources,
|
|
5
6
|
} from '@xyo-network/payload-model'
|
|
6
7
|
|
|
7
|
-
import { SupportedCurrency } from '../Currency.ts'
|
|
8
|
+
import type { SupportedCurrency } from '../Currency.ts'
|
|
8
9
|
import { PaymentSchema } from './Schema.ts'
|
|
9
10
|
|
|
10
11
|
export interface PaymentFields {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
+
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model'
|
|
2
3
|
import {
|
|
3
4
|
isPayloadOfSchemaType,
|
|
4
|
-
isPayloadOfSchemaTypeWithSources,
|
|
5
|
+
isPayloadOfSchemaTypeWithSources,
|
|
5
6
|
} from '@xyo-network/payload-model'
|
|
6
7
|
|
|
7
8
|
import { PaymentStatusSchema } from './Schema.ts'
|
package/src/Purchase/Payload.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Hash } from '@xylabs/hex'
|
|
1
|
+
import type { Hash } from '@xylabs/hex'
|
|
2
2
|
import { AsObjectFactory } from '@xylabs/object'
|
|
3
|
+
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model'
|
|
3
4
|
import {
|
|
4
5
|
isPayloadOfSchemaType,
|
|
5
|
-
isPayloadOfSchemaTypeWithSources,
|
|
6
|
+
isPayloadOfSchemaTypeWithSources,
|
|
6
7
|
} from '@xyo-network/payload-model'
|
|
7
8
|
|
|
8
9
|
import { PurchaseSchema } from './Schema.ts'
|
package/src/Receipt/Payload.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
+
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model'
|
|
2
3
|
import {
|
|
3
4
|
isPayloadOfSchemaType,
|
|
4
|
-
isPayloadOfSchemaTypeWithSources,
|
|
5
|
+
isPayloadOfSchemaTypeWithSources,
|
|
5
6
|
} from '@xyo-network/payload-model'
|
|
6
7
|
|
|
7
|
-
import { SupportedCurrency } from '../Currency.ts'
|
|
8
|
+
import type { SupportedCurrency } from '../Currency.ts'
|
|
8
9
|
import { ReceiptSchema } from './Schema.ts'
|
|
9
10
|
|
|
10
11
|
export interface ReceiptFields {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// import type { Hash } from '@xylabs/hex'
|
|
2
|
-
import { DivinerConfig } from '@xyo-network/diviner-model'
|
|
2
|
+
import type { DivinerConfig } from '@xyo-network/diviner-model'
|
|
3
3
|
|
|
4
4
|
export const PaymentSubtotalDivinerConfigSchema = 'network.xyo.diviner.payments.subtotal.config'
|
|
5
5
|
export type PaymentSubtotalDivinerConfigSchema = typeof PaymentSubtotalDivinerConfigSchema
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DivinerParams } from '@xyo-network/diviner-model'
|
|
2
|
-
import { AnyConfigSchema } from '@xyo-network/module-model'
|
|
1
|
+
import type { DivinerParams } from '@xyo-network/diviner-model'
|
|
2
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model'
|
|
3
3
|
|
|
4
|
-
import { PaymentSubtotalDivinerConfig } from './Config.ts'
|
|
4
|
+
import type { PaymentSubtotalDivinerConfig } from './Config.ts'
|
|
5
5
|
|
|
6
6
|
export type PaymentSubtotalDivinerParams<
|
|
7
7
|
TConfig extends AnyConfigSchema<PaymentSubtotalDivinerConfig> = AnyConfigSchema<PaymentSubtotalDivinerConfig>,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
+
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model'
|
|
2
3
|
import {
|
|
3
4
|
isPayloadOfSchemaType,
|
|
4
|
-
isPayloadOfSchemaTypeWithSources,
|
|
5
|
+
isPayloadOfSchemaTypeWithSources,
|
|
5
6
|
} from '@xyo-network/payload-model'
|
|
6
7
|
|
|
7
|
-
import { AmountFields } from '../../Amount/index.ts'
|
|
8
|
+
import type { AmountFields } from '../../Amount/index.ts'
|
|
8
9
|
|
|
9
10
|
export const SubtotalSchema = 'network.xyo.payments.subtotal' as const
|
|
10
11
|
export type SubtotalSchema = typeof SubtotalSchema
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// import type { Hash } from '@xylabs/hex'
|
|
2
|
-
import { DivinerConfig } from '@xyo-network/diviner-model'
|
|
3
|
-
import { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
+
import type { DivinerConfig } from '@xyo-network/diviner-model'
|
|
3
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
4
4
|
|
|
5
5
|
export const PaymentTotalDivinerConfigSchema = 'network.xyo.diviner.payments.total.config'
|
|
6
6
|
export type PaymentTotalDivinerConfigSchema = typeof PaymentTotalDivinerConfigSchema
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DivinerParams } from '@xyo-network/diviner-model'
|
|
2
|
-
import { AnyConfigSchema } from '@xyo-network/module-model'
|
|
1
|
+
import type { DivinerParams } from '@xyo-network/diviner-model'
|
|
2
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model'
|
|
3
3
|
|
|
4
|
-
import { PaymentTotalDivinerConfig } from './Config.ts'
|
|
4
|
+
import type { PaymentTotalDivinerConfig } from './Config.ts'
|
|
5
5
|
|
|
6
6
|
export type PaymentTotalDivinerParams<
|
|
7
7
|
TConfig extends AnyConfigSchema<PaymentTotalDivinerConfig> = AnyConfigSchema<PaymentTotalDivinerConfig>,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
|
+
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model'
|
|
2
3
|
import {
|
|
3
4
|
isPayloadOfSchemaType,
|
|
4
|
-
isPayloadOfSchemaTypeWithSources,
|
|
5
|
+
isPayloadOfSchemaTypeWithSources,
|
|
5
6
|
} from '@xyo-network/payload-model'
|
|
6
7
|
|
|
7
|
-
import { AmountFields } from '../../Amount/index.ts'
|
|
8
|
+
import type { AmountFields } from '../../Amount/index.ts'
|
|
8
9
|
|
|
9
10
|
export const TotalSchema = 'network.xyo.payments.total' as const
|
|
10
11
|
export type TotalSchema = typeof TotalSchema
|
package/xy.config.ts
CHANGED