@xyo-network/payment-payload-plugins 3.6.1 → 4.1.0
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/{types → neutral}/Amount/Iso4217Currency.d.ts.map +1 -1
- package/dist/neutral/Amount/Payload.d.ts +25 -0
- package/dist/{types → neutral}/Amount/Payload.d.ts.map +1 -1
- package/dist/neutral/Billing/Address/Address.d.ts +42 -0
- package/dist/{types → neutral}/Billing/Address/Address.d.ts.map +1 -1
- package/dist/{types → neutral}/Discount/Params.d.ts +2 -2
- package/dist/{types → neutral}/Discount/Params.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +24 -0
- package/dist/{types → neutral}/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +24 -0
- package/dist/{types → neutral}/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +24 -0
- package/dist/{types → neutral}/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +16 -0
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +1 -0
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +16 -0
- package/dist/{types → neutral}/Discount/Payload/Coupon/types/Condition.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Discount.d.ts +23 -0
- package/dist/{types → neutral}/Discount/Payload/Discount.d.ts.map +1 -1
- package/dist/neutral/Escrow/Outcome.d.ts +29 -0
- package/dist/{types → neutral}/Escrow/Outcome.d.ts.map +1 -1
- package/dist/{types → neutral}/Escrow/Terms/Terms.d.ts +4 -10
- package/dist/{types → neutral}/Escrow/Terms/Terms.d.ts.map +1 -1
- package/dist/{types → neutral}/Escrow/util/secret/createEscrowIntent.d.ts +1 -1
- package/dist/{types → neutral}/Escrow/util/secret/createEscrowIntent.d.ts.map +1 -1
- package/dist/{types → neutral}/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +1 -1
- package/dist/{types → neutral}/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/spec/moduleInstanceValidators.spec.d.ts +2 -0
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/spec/moduleInstanceValidators.spec.d.ts.map +1 -0
- package/dist/neutral/Escrow/validators/common/SecretValidators/spec/getPartySecretSignedValidator.spec.d.ts +2 -0
- package/dist/neutral/Escrow/validators/common/SecretValidators/spec/getPartySecretSignedValidator.spec.d.ts.map +1 -0
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +44 -0
- package/dist/{types → neutral}/Payment/Instrument/Card/Payload.d.ts.map +1 -1
- package/dist/neutral/Payment/Payload.d.ts +30 -0
- package/dist/{types → neutral}/Payment/Payload.d.ts.map +1 -1
- package/dist/neutral/Payment/Status/Payload.d.ts +29 -0
- package/dist/{types → neutral}/Payment/Status/Payload.d.ts.map +1 -1
- package/dist/neutral/Purchase/Payload.d.ts +31 -0
- package/dist/{types → neutral}/Purchase/Payload.d.ts.map +1 -1
- package/dist/neutral/Receipt/Payload.d.ts +30 -0
- package/dist/{types → neutral}/Receipt/Payload.d.ts.map +1 -1
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts +23 -0
- package/dist/{types → neutral}/Subtotal/Diviner/Payload.d.ts.map +1 -1
- package/dist/neutral/Total/Diviner/Payload.d.ts +23 -0
- package/dist/{types → neutral}/Total/Diviner/Payload.d.ts.map +1 -1
- package/dist/neutral/index.d.ts +850 -0
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +26 -26
- package/src/Amount/Iso4217Currency.ts +360 -360
- package/src/Discount/Params.ts +3 -3
- package/src/Discount/Payload/Coupon/Payload.ts +4 -4
- package/dist/types/Amount/Payload.d.ts +0 -31
- package/dist/types/Billing/Address/Address.d.ts +0 -48
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +0 -30
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +0 -30
- package/dist/types/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +0 -30
- package/dist/types/Discount/Payload/Coupon/Payload.d.ts +0 -22
- package/dist/types/Discount/Payload/Coupon/Payload.d.ts.map +0 -1
- package/dist/types/Discount/Payload/Coupon/types/Condition.d.ts +0 -22
- package/dist/types/Discount/Payload/Discount.d.ts +0 -29
- package/dist/types/Escrow/Outcome.d.ts +0 -32
- package/dist/types/Payment/Instrument/Card/Payload.d.ts +0 -50
- package/dist/types/Payment/Payload.d.ts +0 -36
- package/dist/types/Payment/Status/Payload.d.ts +0 -35
- package/dist/types/Purchase/Payload.d.ts +0 -37
- package/dist/types/Receipt/Payload.d.ts +0 -36
- package/dist/types/Subtotal/Diviner/Payload.d.ts +0 -29
- package/dist/types/Total/Diviner/Payload.d.ts +0 -29
- package/dist/types/index.d.ts +0 -12
- /package/dist/{types → neutral}/Amount/Iso4217Currency.d.ts +0 -0
- /package/dist/{types → neutral}/Amount/index.d.ts +0 -0
- /package/dist/{types → neutral}/Amount/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Billing/Address/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Billing/Address/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Billing/Address/index.d.ts +0 -0
- /package/dist/{types → neutral}/Billing/Address/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Billing/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Billing/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Billing/index.d.ts +0 -0
- /package/dist/{types → neutral}/Billing/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Currency.d.ts +0 -0
- /package/dist/{types → neutral}/Currency.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Config.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Config.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/index.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Conditions/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Coupons/index.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Coupons/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/index.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/types/CouponFields.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/types/CouponFields.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/types/index.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/types/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/types/isStackable.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/Coupon/types/isStackable.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/NoDiscount.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/NoDiscount.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/Payload/index.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/Payload/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Discount/index.d.ts +0 -0
- /package/dist/{types → neutral}/Discount/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/Terms/Party.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/Terms/Party.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/Terms/PartySecret.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/Terms/PartySecret.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/Terms/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/Terms/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/util/appraisal/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/util/appraisal/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/util/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/util/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/util/secret/getEscrowSecret.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/util/secret/getEscrowSecret.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/util/secret/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/util/secret/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/SecretValidators/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/SecretValidators/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/TemporalValidators/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/TemporalValidators/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/common/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/agent.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/agent.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/appraisal.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/appraisal.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/appraisalAuthorities.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/assets.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/assets.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/buyer.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/buyer.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/buyerSecret.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/buyerSecret.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/nbfExp.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/nbfExp.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/paymentAuthorities.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/paymentAuthorities.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/seller.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/seller.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/sellerSecret.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/escrow/sellerSecret.d.ts.map +0 -0
- /package/dist/{types → neutral}/Escrow/validators/index.d.ts +0 -0
- /package/dist/{types → neutral}/Escrow/validators/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Invoice/Invoice.d.ts +0 -0
- /package/dist/{types → neutral}/Invoice/Invoice.d.ts.map +0 -0
- /package/dist/{types → neutral}/Invoice/index.d.ts +0 -0
- /package/dist/{types → neutral}/Invoice/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/Card/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/Card/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/Card/index.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/Card/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/index.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/Instrument/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/Status/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/Status/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/Status/index.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/Status/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Payment/index.d.ts +0 -0
- /package/dist/{types → neutral}/Payment/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Purchase/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Purchase/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Purchase/index.d.ts +0 -0
- /package/dist/{types → neutral}/Purchase/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Receipt/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Receipt/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Receipt/index.d.ts +0 -0
- /package/dist/{types → neutral}/Receipt/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Schema.d.ts +0 -0
- /package/dist/{types → neutral}/Schema.d.ts.map +0 -0
- /package/dist/{types → neutral}/Subtotal/Diviner/Config.d.ts +0 -0
- /package/dist/{types → neutral}/Subtotal/Diviner/Config.d.ts.map +0 -0
- /package/dist/{types → neutral}/Subtotal/Diviner/Params.d.ts +0 -0
- /package/dist/{types → neutral}/Subtotal/Diviner/Params.d.ts.map +0 -0
- /package/dist/{types → neutral}/Subtotal/Diviner/index.d.ts +0 -0
- /package/dist/{types → neutral}/Subtotal/Diviner/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Subtotal/index.d.ts +0 -0
- /package/dist/{types → neutral}/Subtotal/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Total/Diviner/Config.d.ts +0 -0
- /package/dist/{types → neutral}/Total/Diviner/Config.d.ts.map +0 -0
- /package/dist/{types → neutral}/Total/Diviner/Params.d.ts +0 -0
- /package/dist/{types → neutral}/Total/Diviner/Params.d.ts.map +0 -0
- /package/dist/{types → neutral}/Total/Diviner/index.d.ts +0 -0
- /package/dist/{types → neutral}/Total/Diviner/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/Total/index.d.ts +0 -0
- /package/dist/{types → neutral}/Total/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/index.d.ts.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Iso4217Currency.d.ts","sourceRoot":"","sources":["../../../src/Amount/Iso4217Currency.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,MAAM,MAAM,uBAAuB,
|
|
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,25 @@
|
|
|
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
|
+
export type AmountSchema = typeof AmountSchema;
|
|
5
|
+
export interface AmountFields {
|
|
6
|
+
amount: number;
|
|
7
|
+
currency: Iso4217AlphabeticalCode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The result of a amount
|
|
11
|
+
*/
|
|
12
|
+
export type Amount = PayloadWithSources<AmountFields, AmountSchema>;
|
|
13
|
+
/**
|
|
14
|
+
* Identity function for determining if an object is an Amount
|
|
15
|
+
*/
|
|
16
|
+
export declare const isAmount: (x?: unknown | null) => x is Amount;
|
|
17
|
+
export declare const asAmount: import("@xylabs/object").AsTypeFunction<Amount>;
|
|
18
|
+
export declare const asOptionalAmount: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => Amount | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Identity function for determining if an object is an Amount with sources
|
|
21
|
+
*/
|
|
22
|
+
export declare const isAmountWithSources: (x?: unknown | null) => x is WithSources<Amount>;
|
|
23
|
+
export declare const asAmountWithSources: import("@xylabs/object").AsTypeFunction<WithSources<Amount>>;
|
|
24
|
+
export declare const asOptionalAmountWithSources: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => WithSources<Amount> | undefined;
|
|
25
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +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;AAMjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAEnE,eAAO,MAAM,YAAY,EAAG,6BAAsC,CAAA;AAClE,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
|
|
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;AAMjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAEnE,eAAO,MAAM,YAAY,EAAG,6BAAsC,CAAA;AAClE,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,8GAAmD,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,mBAAmB,kDAAyD,CAAA;AACzF,eAAO,MAAM,mBAAmB,8DAAmE,CAAA;AACnG,eAAO,MAAM,2BAA2B,2HAA2E,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/object").AsTypeFunction<BillingAddress>;
|
|
35
|
+
export declare const asOptionalBillingAddress: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").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/object").AsTypeFunction<WithSources<BillingAddress>>;
|
|
41
|
+
export declare const asOptionalBillingAddressWithSources: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => WithSources<BillingAddress> | undefined;
|
|
42
|
+
//# sourceMappingURL=Address.d.ts.map
|
|
@@ -1 +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
|
|
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,sHAAmE,CAAA;AAExG;;GAEG;AACH,eAAO,MAAM,2BAA2B,0DAAyE,CAAA;AACjH,eAAO,MAAM,2BAA2B,sEAAmF,CAAA;AAC3H,eAAO,MAAM,mCAAmC,mIAA2F,CAAA"}
|
|
@@ -2,10 +2,10 @@ import type { Address } from '@xylabs/hex';
|
|
|
2
2
|
import type { DivinerParams } from '@xyo-network/diviner-model';
|
|
3
3
|
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
4
|
import type { PaymentDiscountDivinerConfig } from './Config.ts';
|
|
5
|
-
export
|
|
5
|
+
export interface PaymentDiscountDivinerParams<TConfig extends AnyConfigSchema<PaymentDiscountDivinerConfig> = AnyConfigSchema<PaymentDiscountDivinerConfig>> extends DivinerParams<TConfig> {
|
|
6
6
|
/**
|
|
7
7
|
* The list of coupon authorities that can be used to get a discount
|
|
8
8
|
*/
|
|
9
9
|
couponAuthorities?: Address[];
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
11
|
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/Discount/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,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,
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/Discount/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,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,24 @@
|
|
|
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: "network.xyo.payments.coupon.fixed.amount";
|
|
5
|
+
export type FixedAmountCouponSchema = typeof FixedAmountCouponSchema;
|
|
6
|
+
export interface FixedAmountCouponFields extends CouponFields, AmountFields {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A coupon that provides a fixed discount amount
|
|
10
|
+
*/
|
|
11
|
+
export type FixedAmountCoupon = Payload<FixedAmountCouponFields, FixedAmountCouponSchema>;
|
|
12
|
+
/**
|
|
13
|
+
* Identity function for determining if an object is an FixedAmountCoupon
|
|
14
|
+
*/
|
|
15
|
+
export declare const isFixedAmountCoupon: (x?: unknown | null) => x is FixedAmountCoupon;
|
|
16
|
+
export declare const asFixedAmountCoupon: import("@xylabs/object").AsTypeFunction<FixedAmountCoupon>;
|
|
17
|
+
export declare const asOptionalFixedAmountCoupon: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => FixedAmountCoupon | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Identity function for determining if an object is an FixedAmountCoupon with sources
|
|
20
|
+
*/
|
|
21
|
+
export declare const isFixedAmountCouponWithSources: (x?: unknown | null) => x is WithSources<WithSources<FixedAmountCoupon>>;
|
|
22
|
+
export declare const asFixedAmountCouponWithSources: import("@xylabs/object").AsTypeFunction<WithSources<FixedAmountCoupon>>;
|
|
23
|
+
export declare const asOptionalFixedAmountCouponWithSources: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => WithSources<FixedAmountCoupon> | undefined;
|
|
24
|
+
//# sourceMappingURL=FixedAmount.d.ts.map
|
|
@@ -1 +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;AAMtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,uBAAuB,4CAA0C,CAAA;AAC9E,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
|
|
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;AAMtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,uBAAuB,4CAA0C,CAAA;AAC9E,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,yHAAyE,CAAA;AAEjH;;EAEE;AACF,eAAO,MAAM,8BAA8B,0EAA4F,CAAA;AACvI,eAAO,MAAM,8BAA8B,yEAAyF,CAAA;AACpI,eAAO,MAAM,sCAAsC,sIAAiG,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
2
|
+
import type { CouponFields } from '../types/index.ts';
|
|
3
|
+
export declare const FixedPercentageCouponSchema: "network.xyo.payments.coupon.fixed.percentage";
|
|
4
|
+
export type FixedPercentageCouponSchema = typeof FixedPercentageCouponSchema;
|
|
5
|
+
export interface FixedPercentageCouponFields extends CouponFields {
|
|
6
|
+
percentage: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A coupon that provides a fixed discount amount
|
|
10
|
+
*/
|
|
11
|
+
export type FixedPercentageCoupon = Payload<FixedPercentageCouponFields, FixedPercentageCouponSchema>;
|
|
12
|
+
/**
|
|
13
|
+
* Identity function for determining if an object is an FixedPercentageCoupon
|
|
14
|
+
*/
|
|
15
|
+
export declare const isFixedPercentageCoupon: (x?: unknown | null) => x is FixedPercentageCoupon;
|
|
16
|
+
export declare const asFixedPercentageCoupon: import("@xylabs/object").AsTypeFunction<FixedPercentageCoupon>;
|
|
17
|
+
export declare const asOptionalFixedPercentageCoupon: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => FixedPercentageCoupon | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Identity function for determining if an object is an FixedPercentageCoupon with sources
|
|
20
|
+
*/
|
|
21
|
+
export declare const isFixedPercentageCouponWithSources: (x?: unknown | null) => x is WithSources<WithSources<FixedPercentageCoupon>>;
|
|
22
|
+
export declare const asFixedPercentageCouponWithSources: import("@xylabs/object").AsTypeFunction<WithSources<FixedPercentageCoupon>>;
|
|
23
|
+
export declare const asOptionalFixedPercentageCouponWithSources: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => WithSources<FixedPercentageCoupon> | undefined;
|
|
24
|
+
//# sourceMappingURL=FixedPercentage.d.ts.map
|
|
@@ -1 +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;AAOtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,2BAA2B,gDAA8C,CAAA;AACtF,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
|
|
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;AAOtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,2BAA2B,gDAA8C,CAAA;AACtF,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,6HAAiF,CAAA;AAE7H;;EAEE;AACF,eAAO,MAAM,kCAAkC,8EAAoG,CAAA;AACnJ,eAAO,MAAM,kCAAkC,6EAAiG,CAAA;AAChJ,eAAO,MAAM,0CAA0C,0IAAyG,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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: "network.xyo.payments.coupon.fixed.price";
|
|
5
|
+
export type FixedPriceCouponSchema = typeof FixedPriceCouponSchema;
|
|
6
|
+
export interface FixedPriceCouponFields extends CouponFields, AmountFields {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A coupon that provides a fixed total price
|
|
10
|
+
*/
|
|
11
|
+
export type FixedPriceCoupon = Payload<FixedPriceCouponFields, FixedPriceCouponSchema>;
|
|
12
|
+
/**
|
|
13
|
+
* Identity function for determining if an object is an FixedPriceCoupon
|
|
14
|
+
*/
|
|
15
|
+
export declare const isFixedPriceCoupon: (x?: unknown | null) => x is FixedPriceCoupon;
|
|
16
|
+
export declare const asFixedPriceCoupon: import("@xylabs/object").AsTypeFunction<FixedPriceCoupon>;
|
|
17
|
+
export declare const asOptionalFixedPriceCoupon: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => FixedPriceCoupon | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Identity function for determining if an object is an FixedPriceCoupon with sources
|
|
20
|
+
*/
|
|
21
|
+
export declare const isFixedPriceCouponWithSources: (x?: unknown | null) => x is WithSources<WithSources<FixedPriceCoupon>>;
|
|
22
|
+
export declare const asFixedPriceCouponWithSources: import("@xylabs/object").AsTypeFunction<WithSources<FixedPriceCoupon>>;
|
|
23
|
+
export declare const asOptionalFixedPriceCouponWithSources: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => WithSources<FixedPriceCoupon> | undefined;
|
|
24
|
+
//# sourceMappingURL=FixedPrice.d.ts.map
|
|
@@ -1 +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;AAMtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,sBAAsB,2CAAyC,CAAA;AAC5E,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
|
|
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;AAMtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,sBAAsB,2CAAyC,CAAA;AAC5E,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,wHAAuE,CAAA;AAE9G;;EAEE;AACF,eAAO,MAAM,6BAA6B,yEAA0F,CAAA;AACpI,eAAO,MAAM,6BAA6B,wEAAuF,CAAA;AACjI,eAAO,MAAM,qCAAqC,qIAA+F,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/object").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/object").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,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/object").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/object").AsTypeFunction<import("@xyo-network/payload-model").WithSources<SchemaPayload>>;
|
|
16
|
+
//# sourceMappingURL=Condition.d.ts.map
|
|
@@ -1 +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
|
|
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,23 @@
|
|
|
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
|
+
export type DiscountSchema = typeof DiscountSchema;
|
|
5
|
+
export interface DiscountFields extends AmountFields {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The result of a discount
|
|
9
|
+
*/
|
|
10
|
+
export type Discount = Payload<DiscountFields, DiscountSchema>;
|
|
11
|
+
/**
|
|
12
|
+
* Identity function for determining if an object is an Discount
|
|
13
|
+
*/
|
|
14
|
+
export declare const isDiscount: (x?: unknown | null) => x is Discount;
|
|
15
|
+
export declare const asDiscount: import("@xylabs/object").AsTypeFunction<Discount>;
|
|
16
|
+
export declare const asOptionalDiscount: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => Discount | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Identity function for determining if an object is an Discount with sources
|
|
19
|
+
*/
|
|
20
|
+
export declare const isDiscountWithSources: (x?: unknown | null) => x is WithSources<Discount>;
|
|
21
|
+
export declare const asDiscountWithSources: import("@xylabs/object").AsTypeFunction<WithSources<Discount>>;
|
|
22
|
+
export declare const asOptionalDiscountWithSources: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => WithSources<Discount> | undefined;
|
|
23
|
+
//# sourceMappingURL=Discount.d.ts.map
|
|
@@ -1 +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;AAMtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,cAAc,EAAG,+BAAwC,CAAA;AACtE,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
|
|
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;AAMtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,cAAc,EAAG,+BAAwC,CAAA;AACtE,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,gHAAuD,CAAA;AAEtF;;GAEG;AACH,eAAO,MAAM,qBAAqB,oDAA6D,CAAA;AAC/F,eAAO,MAAM,qBAAqB,gEAAuE,CAAA;AACzG,eAAO,MAAM,6BAA6B,6HAA+E,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex';
|
|
2
|
+
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
3
|
+
export declare const EscrowOutcomeSchema: "network.xyo.escrow.outcome";
|
|
4
|
+
export type EscrowOutcomeSchema = typeof EscrowOutcomeSchema;
|
|
5
|
+
/**
|
|
6
|
+
* The possible outcomes for an escrow
|
|
7
|
+
*/
|
|
8
|
+
export type EscrowOutcomes = 'fulfilled' | 'expired';
|
|
9
|
+
export interface EscrowOutcomeFields {
|
|
10
|
+
outcome: EscrowOutcomes;
|
|
11
|
+
terms: Hash;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The terms of an escrow
|
|
15
|
+
*/
|
|
16
|
+
export type EscrowOutcome = PayloadWithSources<EscrowOutcomeFields, EscrowOutcomeSchema>;
|
|
17
|
+
/**
|
|
18
|
+
* Identity function for determining if an object is an EscrowOutcome
|
|
19
|
+
*/
|
|
20
|
+
export declare const isEscrowOutcome: (x?: unknown | null) => x is EscrowOutcome;
|
|
21
|
+
export declare const asEscrowOutcome: import("@xylabs/object").AsTypeFunction<EscrowOutcome>;
|
|
22
|
+
export declare const asOptionalEscrowOutcome: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => EscrowOutcome | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Identity function for determining if an object is an EscrowOutcome with sources
|
|
25
|
+
*/
|
|
26
|
+
export declare const isEscrowOutcomeWithSources: (x?: unknown | null) => x is WithSources<EscrowOutcome>;
|
|
27
|
+
export declare const asEscrowOutcomeWithSources: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => WithSources<EscrowOutcome> | undefined;
|
|
28
|
+
export declare const asOptionalEscrowOutcomeWithSources: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => WithSources<EscrowOutcome> | undefined;
|
|
29
|
+
//# sourceMappingURL=Outcome.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Outcome.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Outcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAQjF,eAAO,MAAM,mBAAmB,8BAAqC,CAAA;AACrE,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAE5D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,SAAS,CAAA;AAEpD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,cAAc,CAAA;IACvB,KAAK,EAAE,IAAI,CAAA;CACZ;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,eAAe,4CAA4D,CAAA;AACxF,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"Outcome.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Outcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAQjF,eAAO,MAAM,mBAAmB,8BAAqC,CAAA;AACrE,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAE5D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,SAAS,CAAA;AAEpD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,cAAc,CAAA;IACvB,KAAK,EAAE,IAAI,CAAA;CACZ;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,eAAe,4CAA4D,CAAA;AACxF,eAAO,MAAM,eAAe,wDAAyD,CAAA;AACrF,eAAO,MAAM,uBAAuB,qHAAiE,CAAA;AAErG;;GAEG;AACH,eAAO,MAAM,0BAA0B,yDAAuE,CAAA;AAC9G,eAAO,MAAM,0BAA0B,kIAAyF,CAAA;AAChI,eAAO,MAAM,kCAAkC,kIAAyF,CAAA"}
|
|
@@ -60,18 +60,12 @@ export type EscrowTerms = Payload<Partial<EscrowTermsFields>, EscrowTermsSchema>
|
|
|
60
60
|
* Identity function for determining if an object is an EscrowTerms
|
|
61
61
|
*/
|
|
62
62
|
export declare const isEscrowTerms: (x?: unknown | null) => x is EscrowTerms;
|
|
63
|
-
export declare const asEscrowTerms:
|
|
64
|
-
|
|
65
|
-
<TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<EscrowTerms>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
66
|
-
};
|
|
67
|
-
export declare const asOptionalEscrowTerms: <TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
63
|
+
export declare const asEscrowTerms: import("@xylabs/object").AsTypeFunction<EscrowTerms>;
|
|
64
|
+
export declare const asOptionalEscrowTerms: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => EscrowTerms | undefined;
|
|
68
65
|
/**
|
|
69
66
|
* Identity function for determining if an object is an EscrowTerms with sources
|
|
70
67
|
*/
|
|
71
68
|
export declare const isEscrowTermsWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<EscrowTerms>;
|
|
72
|
-
export declare const asEscrowTermsWithSources:
|
|
73
|
-
|
|
74
|
-
<TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<EscrowTerms>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
75
|
-
};
|
|
76
|
-
export declare const asOptionalEscrowTermsWithSources: <TType extends EscrowTerms>(value: import(".store/@xylabs-promise-npm-4.11.2-66516e0826/package").AnyNonPromise) => TType | undefined;
|
|
69
|
+
export declare const asEscrowTermsWithSources: import("@xylabs/object").AsTypeFunction<EscrowTerms>;
|
|
70
|
+
export declare const asOptionalEscrowTermsWithSources: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => EscrowTerms | undefined;
|
|
77
71
|
//# sourceMappingURL=Terms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,eAAO,MAAM,iBAAiB,4BAAmC,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAGxD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,oBAAoB,EAAE,OAAO,EAAE,CAAA;IAC/B;;OAEG;IACH,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB;;OAEG;IACH,WAAW,EAAE,IAAI,CAAA;IACjB;;OAEG;IACH,SAAS,EAAE,IAAI,EAAE,CAAA;IACjB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,kBAAkB,EAAE,OAAO,EAAE,CAAA;IAC7B;;OAEG;IACH,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB;;OAEG;IACH,YAAY,EAAE,IAAI,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,aAAa,0CAAwD,CAAA;AAClF,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,eAAO,MAAM,iBAAiB,4BAAmC,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAGxD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,oBAAoB,EAAE,OAAO,EAAE,CAAA;IAC/B;;OAEG;IACH,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB;;OAEG;IACH,WAAW,EAAE,IAAI,CAAA;IACjB;;OAEG;IACH,SAAS,EAAE,IAAI,EAAE,CAAA;IACjB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,kBAAkB,EAAE,OAAO,EAAE,CAAA;IAC7B;;OAEG;IACH,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB;;OAEG;IACH,YAAY,EAAE,IAAI,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,aAAa,0CAAwD,CAAA;AAClF,eAAO,MAAM,aAAa,sDAAqD,CAAA;AAC/E,eAAO,MAAM,qBAAqB,mHAA6D,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,wBAAwB,4FAAmE,CAAA;AACxG,eAAO,MAAM,wBAAwB,sDAAgE,CAAA;AACrG,eAAO,MAAM,gCAAgC,mHAAwE,CAAA"}
|
|
@@ -8,5 +8,5 @@ import type { EscrowTerms } from '../../Terms/index.ts';
|
|
|
8
8
|
* @param account The account to create the escrow intent with
|
|
9
9
|
* @returns The escrow intent
|
|
10
10
|
*/
|
|
11
|
-
export declare const createEscrowIntentWithSecret: (terms: EscrowTerms, secret: Id, account: AccountInstance) => Promise<[import("@xyo-network/boundwitness-model").Signed<import("@xyo-network/boundwitness-model").UnsignedBoundWitness>, import("@xyo-network/payload-model").
|
|
11
|
+
export declare const createEscrowIntentWithSecret: (terms: EscrowTerms, secret: Id, account: AccountInstance) => Promise<[import("@xyo-network/boundwitness-model").Signed<import("@xyo-network/boundwitness-model").UnsignedBoundWitness>, import("@xyo-network/payload-model").Payload[], import("@xyo-network/payload-model").ModuleError[]]>;
|
|
12
12
|
//# sourceMappingURL=createEscrowIntent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEscrowIntent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/createEscrowIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAA;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,GAAU,OAAO,WAAW,EAAE,QAAQ,EAAE,EAAE,SAAS,eAAe,
|
|
1
|
+
{"version":3,"file":"createEscrowIntent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/createEscrowIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAA;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,GAAU,OAAO,WAAW,EAAE,QAAQ,EAAE,EAAE,SAAS,eAAe,oOAG1G,CAAA"}
|
|
@@ -10,5 +10,5 @@ import type { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
|
|
|
10
10
|
* not provided, a cryptographically random secret will be generated.
|
|
11
11
|
* @returns The escrow intent
|
|
12
12
|
*/
|
|
13
|
-
export declare const updateEscrowTermsWithSecret: (terms: EscrowTerms, escrowParty: EscrowParty, account: AccountInstance | AccountInstance[], secret?: IdPayload) => Promise<[import("@xyo-network/boundwitness-model").Signed<import("@xyo-network/boundwitness-model").UnsignedBoundWitness>, import("@xyo-network/payload-model").
|
|
13
|
+
export declare const updateEscrowTermsWithSecret: (terms: EscrowTerms, escrowParty: EscrowParty, account: AccountInstance | AccountInstance[], secret?: IdPayload) => Promise<[import("@xyo-network/boundwitness-model").Signed<import("@xyo-network/boundwitness-model").UnsignedBoundWitness>, import("@xyo-network/payload-model").Payload[], import("@xyo-network/payload-model").ModuleError[]]>;
|
|
14
14
|
//# sourceMappingURL=updateEscrowTermsWithSecret.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateEscrowTermsWithSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/updateEscrowTermsWithSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG/D,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAG7B;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,GACtC,OAAO,WAAW,EAClB,aAAa,WAAW,EACxB,SAAS,eAAe,GAAG,eAAe,EAAE,EAC5C,SAAS,SAAS,
|
|
1
|
+
{"version":3,"file":"updateEscrowTermsWithSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/updateEscrowTermsWithSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG/D,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAG7B;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,GACtC,OAAO,WAAW,EAClB,aAAa,WAAW,EACxB,SAAS,eAAe,GAAG,eAAe,EAAE,EAC5C,SAAS,SAAS,oOAanB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moduleInstanceValidators.spec.d.ts","sourceRoot":"","sources":["../../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/spec/moduleInstanceValidators.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPartySecretSignedValidator.spec.d.ts","sourceRoot":"","sources":["../../../../../../../src/Escrow/validators/common/SecretValidators/spec/getPartySecretSignedValidator.spec.ts"],"names":[],"mappings":"AACA,OAAO,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
2
|
+
import { PaymentCardSchema } from './Schema.ts';
|
|
3
|
+
/**
|
|
4
|
+
* The fields describing a payment card.
|
|
5
|
+
*/
|
|
6
|
+
export interface PaymentCardFields {
|
|
7
|
+
/**
|
|
8
|
+
* Card Number (PAN) of the payment card. This value is required to perform a payment.
|
|
9
|
+
*/
|
|
10
|
+
cardNumber: string;
|
|
11
|
+
/**
|
|
12
|
+
* The name as it appears on the payment card.
|
|
13
|
+
*/
|
|
14
|
+
cardholderName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Card Verification Value (CVV/CVC) of the payment card.
|
|
17
|
+
*/
|
|
18
|
+
cvv: string;
|
|
19
|
+
/**
|
|
20
|
+
* Expiration month of the payment card.
|
|
21
|
+
*/
|
|
22
|
+
expMonth: number;
|
|
23
|
+
/**
|
|
24
|
+
* Expiration year of the payment card.
|
|
25
|
+
*/
|
|
26
|
+
expYear: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A PaymentCard Payload
|
|
30
|
+
*/
|
|
31
|
+
export type PaymentCard = Payload<PaymentCardFields, PaymentCardSchema>;
|
|
32
|
+
/**
|
|
33
|
+
* Identity function for determine if an object is a PaymentCard
|
|
34
|
+
*/
|
|
35
|
+
export declare const isPaymentCard: (x?: unknown | null) => x is PaymentCard;
|
|
36
|
+
export declare const asPaymentCard: import("@xylabs/object").AsTypeFunction<PaymentCard>;
|
|
37
|
+
export declare const asOptionalPaymentCard: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => PaymentCard | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Identity function for determine if an object is a PaymentCard with sources
|
|
40
|
+
*/
|
|
41
|
+
export declare const isPaymentCardWithSources: (x?: unknown | null) => x is WithSources<PaymentCard>;
|
|
42
|
+
export declare const asPaymentCardWithSources: import("@xylabs/object").AsTypeFunction<WithSources<PaymentCard>>;
|
|
43
|
+
export declare const asOptionalPaymentCardWithSources: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => WithSources<PaymentCard> | undefined;
|
|
44
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAA;AAEvE;;GAEG;AACH,eAAO,MAAM,aAAa,0CAAwD,CAAA;AAClF,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAA;AAEvE;;GAEG;AACH,eAAO,MAAM,aAAa,0CAAwD,CAAA;AAClF,eAAO,MAAM,aAAa,sDAAqD,CAAA;AAC/E,eAAO,MAAM,qBAAqB,mHAA6D,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,wBAAwB,uDAAmE,CAAA;AACxG,eAAO,MAAM,wBAAwB,mEAA6E,CAAA;AAClH,eAAO,MAAM,gCAAgC,gIAAqF,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
2
|
+
import type { SupportedCurrency } from '../Currency.ts';
|
|
3
|
+
import { PaymentSchema } from './Schema.ts';
|
|
4
|
+
export interface PaymentFields {
|
|
5
|
+
/**
|
|
6
|
+
* The amount paid
|
|
7
|
+
*/
|
|
8
|
+
amount: number;
|
|
9
|
+
/**
|
|
10
|
+
* The currency of the amount paid
|
|
11
|
+
*/
|
|
12
|
+
currency: SupportedCurrency;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A payment is a record of an amount to be paid
|
|
16
|
+
*/
|
|
17
|
+
export type Payment = PayloadWithSources<PaymentFields, PaymentSchema>;
|
|
18
|
+
/**
|
|
19
|
+
* Identity function for determine if an object is a Payment
|
|
20
|
+
*/
|
|
21
|
+
export declare const isPayment: (x?: unknown | null) => x is Payment;
|
|
22
|
+
export declare const asPayment: import("@xylabs/object").AsTypeFunction<Payment>;
|
|
23
|
+
export declare const asOptionalPayment: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => Payment | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Identity function for determine if an object is a Payment with sources
|
|
26
|
+
*/
|
|
27
|
+
export declare const isPaymentWithSources: (x?: unknown | null) => x is WithSources<Payment>;
|
|
28
|
+
export declare const asPaymentWithSources: import("@xylabs/object").AsTypeFunction<WithSources<Payment>>;
|
|
29
|
+
export declare const asOptionalPaymentWithSources: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => WithSources<Payment> | undefined;
|
|
30
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payment/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,SAAS,sCAAgD,CAAA;AACtE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payment/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,SAAS,sCAAgD,CAAA;AACtE,eAAO,MAAM,SAAS,kDAA6C,CAAA;AACnE,eAAO,MAAM,iBAAiB,+GAAqD,CAAA;AAEnF;;GAEG;AACH,eAAO,MAAM,oBAAoB,mDAA2D,CAAA;AAC5F,eAAO,MAAM,oBAAoB,+DAAqE,CAAA;AACtG,eAAO,MAAM,4BAA4B,4HAA6E,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
2
|
+
import { PaymentStatusSchema } from './Schema.ts';
|
|
3
|
+
export interface PaymentStatusFields {
|
|
4
|
+
/**
|
|
5
|
+
* The result of the payment (i.e. declined)
|
|
6
|
+
*/
|
|
7
|
+
result?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The status of the payment (i.e. completed)
|
|
10
|
+
*/
|
|
11
|
+
status: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A payment status is the outcome of a payment attempt
|
|
15
|
+
*/
|
|
16
|
+
export type PaymentStatus = PayloadWithSources<PaymentStatusFields, PaymentStatusSchema>;
|
|
17
|
+
/**
|
|
18
|
+
* Identity function for determine if an object is a PaymentStatus
|
|
19
|
+
*/
|
|
20
|
+
export declare const isPaymentStatus: (x?: unknown | null) => x is PaymentStatus;
|
|
21
|
+
export declare const asPaymentStatus: import("@xylabs/object").AsTypeFunction<PaymentStatus>;
|
|
22
|
+
export declare const asOptionalPaymentStatus: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => PaymentStatus | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Identity function for determine if an object is a PaymentStatus with sources
|
|
25
|
+
*/
|
|
26
|
+
export declare const isPaymentStatusWithSources: (x?: unknown | null) => x is WithSources<PaymentStatus>;
|
|
27
|
+
export declare const asPaymentStatusWithSources: import("@xylabs/object").AsTypeFunction<WithSources<PaymentStatus>>;
|
|
28
|
+
export declare const asOptionalPaymentStatusWithSources: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => WithSources<PaymentStatus> | undefined;
|
|
29
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEjD,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,eAAe,4CAA4D,CAAA;AACxF,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEjD,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,eAAe,4CAA4D,CAAA;AACxF,eAAO,MAAM,eAAe,wDAAyD,CAAA;AACrF,eAAO,MAAM,uBAAuB,qHAAiE,CAAA;AAErG;;GAEG;AACH,eAAO,MAAM,0BAA0B,yDAAuE,CAAA;AAC9G,eAAO,MAAM,0BAA0B,qEAAiF,CAAA;AACxH,eAAO,MAAM,kCAAkC,kIAAyF,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex';
|
|
2
|
+
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
3
|
+
import { PurchaseSchema } from './Schema.ts';
|
|
4
|
+
export interface PurchaseFields {
|
|
5
|
+
/**
|
|
6
|
+
* The things that were purchased
|
|
7
|
+
*/
|
|
8
|
+
assets: Hash[];
|
|
9
|
+
/**
|
|
10
|
+
* The receipts for payments for this purchase. Array to allow for multiple payments
|
|
11
|
+
* for a single quote.
|
|
12
|
+
*/
|
|
13
|
+
receipts: Hash[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A purchase ties a payment made to a quote
|
|
17
|
+
*/
|
|
18
|
+
export type Purchase = PayloadWithSources<PurchaseFields, PurchaseSchema>;
|
|
19
|
+
/**
|
|
20
|
+
* Identity function for determine if an object is a Purchase
|
|
21
|
+
*/
|
|
22
|
+
export declare const isPurchase: (x?: unknown | null) => x is Purchase;
|
|
23
|
+
export declare const asPurchase: import("@xylabs/object").AsTypeFunction<Purchase>;
|
|
24
|
+
export declare const asOptionalPurchase: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => Purchase | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Identity function for determine if an object is a Purchase with sources
|
|
27
|
+
*/
|
|
28
|
+
export declare const isPurchaseWithSources: (x?: unknown | null) => x is WithSources<Purchase>;
|
|
29
|
+
export declare const asPurchaseWithSources: import("@xylabs/object").AsTypeFunction<WithSources<Purchase>>;
|
|
30
|
+
export declare const asOptionalPurchaseWithSources: (value: import(".store/@xylabs-promise-npm-4.13.15-8bdb7d384b/package").AnyNonPromise) => WithSources<Purchase> | undefined;
|
|
31
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Purchase/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;;OAGG;IACH,QAAQ,EAAE,IAAI,EAAE,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AACzE,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Purchase/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;;OAGG;IACH,QAAQ,EAAE,IAAI,EAAE,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AACzE,eAAO,MAAM,UAAU,mDAA+C,CAAA;AACtE,eAAO,MAAM,kBAAkB,gHAAuD,CAAA;AAEtF;;GAEG;AACH,eAAO,MAAM,qBAAqB,oDAA6D,CAAA;AAC/F,eAAO,MAAM,qBAAqB,gEAAuE,CAAA;AACzG,eAAO,MAAM,6BAA6B,6HAA+E,CAAA"}
|