| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace Webkul\BagistoApi\Dto;
- use ApiPlatform\Metadata\ApiProperty;
- use Symfony\Component\Serializer\Annotation\Groups;
- use Symfony\Component\Serializer\Annotation\SerializedName;
- /**
- * SaveCheckoutCartInput - GraphQL Input DTO for saving checkout selections.
- *
- * All fields are optional. Any field whose value equals the sentinel "-1" is
- * left untouched, so the frontend can selectively update only the fields it
- * cares about. Authentication token is passed via Authorization: Bearer header,
- * NOT as an input parameter.
- */
- class SaveCheckoutCartInput
- {
- #[Groups(['mutation'])]
- #[ApiProperty(description: 'Shipping method code. Pass "-1" to leave unchanged.')]
- #[SerializedName('shippingMethod')]
- public ?string $shippingMethod = null;
- #[Groups(['mutation'])]
- #[ApiProperty(description: 'Coupon code. Pass "-1" to leave unchanged, empty string to remove the applied coupon.')]
- #[SerializedName('couponCode')]
- public ?string $couponCode = null;
- #[Groups(['mutation'])]
- #[ApiProperty(description: 'Payment method code. Pass "-1" to leave unchanged.')]
- #[SerializedName('paymentMethod')]
- public ?string $paymentMethod = null;
- #[Groups(['mutation'])]
- #[ApiProperty(description: 'Gift Card Number. Pass "-1" to leave unchanged.')]
- #[SerializedName('giftCardNumber')]
- public ?string $giftCardNumber = null;
- #[Groups(['mutation'])]
- #[ApiProperty(description: 'Member discount toggle. Pass "-1" to leave unchanged, "1" to apply, empty string to remove.')]
- #[SerializedName('memberDiscount')]
- public ?string $memberDiscount = null;
- }
|