✨feature: Add cooldown/navigation timers, move credits display to header
This commit is contained in:
@@ -291,6 +291,33 @@ class SpacetradersApi {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deliver cargo for a contract using a ship at the delivery destination.
|
||||
*
|
||||
* @param string $contractId The contract ID.
|
||||
* @param string $shipSymbol The ship symbol delivering cargo.
|
||||
* @param string $tradeSymbol The trade symbol being delivered.
|
||||
* @param int $units The number of units to deliver.
|
||||
*
|
||||
* @return array<string,mixed>
|
||||
*/
|
||||
public function deliverContractCargo(
|
||||
string $contractId,
|
||||
string $shipSymbol,
|
||||
string $tradeSymbol,
|
||||
int $units
|
||||
): array {
|
||||
return $this->request(
|
||||
'POST',
|
||||
'/my/contracts/' . rawurlencode( $contractId ) . '/deliver',
|
||||
array(
|
||||
'shipSymbol' => $shipSymbol,
|
||||
'tradeSymbol' => $tradeSymbol,
|
||||
'units' => $units,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of all systems in the universe.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user