Function buildAmenityPurchaseApuFields
- buildAmenityPurchaseApuFields(input): Pick<{
amenityKind:
| "supermarket"
| "shop"
| "car_wash"
| "parking"
| "house"
| "talk_time"
| "wallet_bundle"
| "apu_credit"
| "apu_debit";
at: string;
counterpartyNodeId?: string;
creditSource?: string;
debitSource?: string;
detail?: string;
id: string;
itemRef: {
id: string;
kind:
| "supermarket"
| "shop"
| "parking"
| "house"
| "carwash"
| "game"
| "apu"
| "talk"
| "bundle";
};
playerId: string;
powerUpsDelta?: number;
powerUpsEarned?: number;
powerUpsSpent?: number;
priceUsd?: number;
spaceId: string;
token?: "APU";
},
| "powerUpsEarned"
| "powerUpsDelta"
| "debitSource"
| "creditSource"
| "token"> Parameters
- input: {
amenityKind: "supermarket" | "shop" | "car_wash";
earnedPowerUps: number;
spaceId: string;
}amenityKind: "supermarket" | "shop" | "car_wash"
earnedPowerUps: number
spaceId: string
Returns Pick<{
amenityKind:
| "supermarket"
| "shop"
| "car_wash"
| "parking"
| "house"
| "talk_time"
| "wallet_bundle"
| "apu_credit"
| "apu_debit";
at: string;
counterpartyNodeId?: string;
creditSource?: string;
debitSource?: string;
detail?: string;
id: string;
itemRef: {
id: string;
kind:
| "supermarket"
| "shop"
| "parking"
| "house"
| "carwash"
| "game"
| "apu"
| "talk"
| "bundle";
};
playerId: string;
powerUpsDelta?: number;
powerUpsEarned?: number;
powerUpsSpent?: number;
priceUsd?: number;
spaceId: string;
token?: "APU";
},
| "powerUpsEarned"
| "powerUpsDelta"
| "debitSource"
| "creditSource"
| "token">
APU fields appended to amenity purchase audit rows when USD is spent and power-ups are minted.