Skip to content

Commit

Permalink
Add new price type field to the listing DTO (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfreytag authored Aug 14, 2024
1 parent 12a9df4 commit adad9f9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Dto/ListingDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ enum ListingState: string
case CLOSED = 'CLOSED';
}

enum PriceType: string
{
case NONE = 'NONE';
case OFFERS = 'OFFERS';
case EXACT = 'EXACT';
}

/**
* ListingDto defines the shape of the listing data used by the CloudForest API.
*
Expand Down Expand Up @@ -54,6 +61,14 @@ class ListingDto
*/
public $description = 'A testing listing created from the CloudForest PHP ApiClient';

/**
* The price type. Set it to NONE until the user has a chance to got to
* CloudForest to enter their preferred pricing.
*
* @var value-of<PriceType>
*/
public $priceType = 'NONE';

/**
* The units in which the listing is available as a freeform string. EG
* "tonnes", "m^3".
Expand Down

0 comments on commit adad9f9

Please sign in to comment.