payment
Module0x5580…2003
- Move path
- 0xd22b…08f0::payment
- Functions
- 1613 public, 0 entry
- Structs
- 4
- Friend modules
- None
payment
Functions16
- public fun apply_percentage_discount<T0: drop>(&mut PaymentIntent,&mut suins::SuiNS,T0,String,u8,bool)
Structs4
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
No fields
No fields
- RequestDatadrop
version u8 domain domain::Domain years u8 base_amount u64 discounts_applied VecMap<String, u64> metadata VecMap<String, String> - TransactionEventcopydropstore
app TypeName domain domain::Domain years u8 request_data_version u8 base_amount u64 discounts_applied VecMap<String, u64> metadata VecMap<String, String> is_renewal bool currency TypeName currency_amount u64
Constants20
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Index | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | "ENotMultipleDiscountsAllowed" // interpreted as UTF8 string | vector<u8> | Value | |
| 1 | "Multiple discounts are not allowed" // interpreted as UTF8 string | vector<u8> | Value | |
| 2 | "ENotSupportedType" // interpreted as UTF8 string | vector<u8> | Value | |
| 3 | "Renewal is not supported in this function call. Call `renew` instead." // interpreted as UTF8 string | vector<u8> | Value | |
| 4 | "ERecordNotFound" // interpreted as UTF8 string | vector<u8> | Value | |
| 5 | "Tries to renew a name that does not exist in the registry (has expired + has been burned)" // interpreted as UTF8 string | vector<u8> | Value | |
| 6 | "ERecordExpired" // interpreted as UTF8 string | vector<u8> | Value | |
| 7 | "Tries to renew an expired name (post grace period)." // interpreted as UTF8 string | vector<u8> | Value | |
| 8 | "EReceiptDomainMissmatch" // interpreted as UTF8 string | vector<u8> | Value | |
| 9 | "The receipt domain does not match the domain of the NFT." // interpreted as UTF8 string | vector<u8> | Value | |
| 10 | "EVersionMismatch" // interpreted as UTF8 string | vector<u8> | Value | |
| 11 | "Version mismatch. The payment intent is not of the correct version for this package." // interpreted as UTF8 string | vector<u8> | Value | |
| 12 | "EInvalidDiscountPercentage" // interpreted as UTF8 string | vector<u8> | Value | |
| 13 | "Discount range is [0, 100]." // interpreted as UTF8 string | vector<u8> | Value | |
| 14 | "ECannotRenewSubdomain" // interpreted as UTF8 string | vector<u8> | Value | |
| 15 | "Cannot renew a subdomain using the payment system." // interpreted as UTF8 string | vector<u8> | Value | |
| 16 | "EDiscountAlreadyApplied" // interpreted as UTF8 string | vector<u8> | Value | |
| 17 | "This discount key has already been applied to the payment intent." // interpreted as UTF8 string | vector<u8> | Value | |
| 18 | "ECannotExceedMaxYears" // interpreted as UTF8 string | vector<u8> | Value | |
| 19 | "Cannot exceed the maximum number of years." // interpreted as UTF8 string | vector<u8> | Value |