|
| 1 | +<?php |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | + |
| 5 | +/** |
| 6 | + * AUTO-GENERATED by scripts/generate.mjs from the live OpenAPI spec. |
| 7 | + * Do not edit this file by hand. Regenerate with: node scripts/generate.mjs |
| 8 | + */ |
| 9 | + |
| 10 | +namespace RoxyAPI\Sdk\Generated\Requests; |
| 11 | + |
| 12 | +use Saloon\Enums\Method; |
| 13 | +use Saloon\Http\Request; |
| 14 | +use Saloon\Contracts\Body\HasBody; |
| 15 | +use Saloon\Traits\Body\HasJsonBody; |
| 16 | + |
| 17 | +/** |
| 18 | + * Chaldean numerology name reading - Destiny, compound number, planetary ruler |
| 19 | + * |
| 20 | + * Calculate a complete Chaldean numerology reading for a name. The older Chaldean system maps |
| 21 | + * letters to values 1 to 8 by vibration (the number 9 is sacred and never assigned to a |
| 22 | + * letter) and reads the unreduced two-digit compound number (10 to 52, also called a fadic |
| 23 | + * number, defined by Cheiro) in addition to the single-digit root. Returns the Destiny or name |
| 24 | + * number from all letters, the Soul Urge from vowels, and the Personality from consonants, |
| 25 | + * each with its compound number, root, and Cheiro compound interpretation, plus the planetary |
| 26 | + * ruler of the Destiny root and a caution flag for the karmic numbers 4 and 8. Perfect for |
| 27 | + * Chaldean numerology calculators, name analysis tools, and AI numerology assistants that need |
| 28 | + * both the compound and root layers in one call. |
| 29 | + * |
| 30 | + * POST /numerology/chaldean |
| 31 | + */ |
| 32 | +class CalculateChaldeanRequest extends Request implements HasBody |
| 33 | +{ |
| 34 | + use HasJsonBody; |
| 35 | + |
| 36 | + protected Method $method = Method::POST; |
| 37 | + |
| 38 | + public function __construct( |
| 39 | + public readonly string $name, |
| 40 | + public readonly ?string $lang = null, |
| 41 | + ) { |
| 42 | + } |
| 43 | + |
| 44 | + public function resolveEndpoint(): string |
| 45 | + { |
| 46 | + return "/numerology/chaldean"; |
| 47 | + } |
| 48 | + |
| 49 | + /** |
| 50 | + * @return array<string, mixed> |
| 51 | + */ |
| 52 | + protected function defaultBody(): array |
| 53 | + { |
| 54 | + $body = []; |
| 55 | + $body['name'] = $this->name; |
| 56 | + |
| 57 | + return $body; |
| 58 | + } |
| 59 | + |
| 60 | + /** |
| 61 | + * @return array<string, mixed> |
| 62 | + */ |
| 63 | + protected function defaultQuery(): array |
| 64 | + { |
| 65 | + $query = []; |
| 66 | + if ($this->lang !== null) { |
| 67 | + $query['lang'] = $this->lang; |
| 68 | + } |
| 69 | + |
| 70 | + return $query; |
| 71 | + } |
| 72 | +} |
0 commit comments