diff --git a/src/Data/Requests/FulfillmentInbound/v20240320/CreateInboundPlanRequest.php b/src/Data/Requests/FulfillmentInbound/v20240320/CreateInboundPlanRequest.php index 578482a..779caea 100644 --- a/src/Data/Requests/FulfillmentInbound/v20240320/CreateInboundPlanRequest.php +++ b/src/Data/Requests/FulfillmentInbound/v20240320/CreateInboundPlanRequest.php @@ -5,19 +5,17 @@ use Jasara\AmznSPA\Data\Base\Validators\RuleValidator; use Jasara\AmznSPA\Data\Requests\BaseRequest; use Jasara\AmznSPA\Data\Schemas\AddressSchema; -use Jasara\AmznSPA\Data\Schemas\FulfillmentInbound\v20240320\ContactInformationSchema; use Jasara\AmznSPA\Data\Schemas\FulfillmentInbound\v20240320\ItemInputSchemaList; class CreateInboundPlanRequest extends BaseRequest { public function __construct( - public ContactInformationSchema $contact_information, #[RuleValidator(['array', 'max:1'])] public array $destination_marketplaces, public ItemInputSchemaList $items, #[RuleValidator(['min:1', 'max:40'])] public ?string $name, - public ?AddressSchema $source_address, + public AddressSchema $source_address, ) { } } diff --git a/src/Data/Schemas/FulfillmentInbound/v20240320/LabelOwner.php b/src/Data/Schemas/FulfillmentInbound/v20240320/LabelOwner.php index 44738af..178bd47 100644 --- a/src/Data/Schemas/FulfillmentInbound/v20240320/LabelOwner.php +++ b/src/Data/Schemas/FulfillmentInbound/v20240320/LabelOwner.php @@ -6,4 +6,5 @@ enum LabelOwner: string { case Amazon = 'AMAZON'; case Seller = 'SELLER'; + case None = 'NONE'; } diff --git a/src/Data/Schemas/FulfillmentInbound/v20240320/PrepOwner.php b/src/Data/Schemas/FulfillmentInbound/v20240320/PrepOwner.php index 8b9188b..5663898 100644 --- a/src/Data/Schemas/FulfillmentInbound/v20240320/PrepOwner.php +++ b/src/Data/Schemas/FulfillmentInbound/v20240320/PrepOwner.php @@ -6,4 +6,5 @@ enum PrepOwner: string { case Amazon = 'AMAZON'; case Seller = 'SELLER'; + case None = 'NONE'; } diff --git a/tests/Unit/Resources/FulfillmentInbound/FulfillmentInbound20240320ResourceTest.php b/tests/Unit/Resources/FulfillmentInbound/FulfillmentInbound20240320ResourceTest.php index 5b6a419..321ba04 100644 --- a/tests/Unit/Resources/FulfillmentInbound/FulfillmentInbound20240320ResourceTest.php +++ b/tests/Unit/Resources/FulfillmentInbound/FulfillmentInbound20240320ResourceTest.php @@ -96,9 +96,6 @@ public function testCreateInboundPlan(): void $amzn = new AmznSPA($config); $amzn = $amzn->usingMarketplace('ATVPDKIKX0DER'); $response = $amzn->fulfillment_inbound20240320->createInboundPlan(CreateInboundPlanRequest::from([ - 'contact_information' => [ - 'email' => 'test@test.com', - ], 'destination_marketplaces' => [ 'ATVPDKIKX0DER', ], @@ -110,6 +107,16 @@ public function testCreateInboundPlan(): void 'quantity' => 1, ], ], + 'source_address' => [ + 'name' => Str::random(10), + 'address_line_1' => Str::random(), + 'address_line_2' => null, + 'district_or_county' => Str::random(), + 'city' => Str::random(), + 'state_or_province_code' => Str::random(), + 'country_code' => Str::random(2), + 'postal_code' => Str::random(), + ], ])); $this->assertInstanceOf(CreateInboundPlanResponse::class, $response);