[econ] purchase offer delete

This commit is contained in:
Devin Zuczek
2026-10-08 13:03:26 -04:00
parent c6e035e4e1
commit 7ec295ef33
4 changed files with 235 additions and 4 deletions
+10 -2
View File
@@ -1071,9 +1071,17 @@ export const CreatePurchaseOfferRequest = z.object({
Order: z.string().optional().describe('Where it sits in the shop; defaults to 0'),
})
/** `POST /api/roomcurrencies/v1/deletePurchaseOffer` — form-encoded. */
export const DeletePurchaseOfferRequest = z.object({
PurchaseOfferId: z
.string()
.describe('The offer to take down, by its `CurrencyPurchaseOfferId` (any letter case)'),
})
/**
* The envelope the create-offer endpoint answers in — the same
* `{ Value, Success, Error, error_id }` the currency writes use, with the offer in `Value`.
* The envelope the create- and delete-offer endpoints answer in — the same
* `{ Value, Success, Error, error_id }` the currency writes use, with the offer (as created,
* or as it stood when removed) in `Value`.
*/
export const RoomCurrencyPurchaseOfferEnvelope = z.object({
Value: RoomCurrencyPurchaseOfferDto.nullable(),