"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
import dataclasses
from ...models.components import batchshipmentcreaterequest as components_batchshipmentcreaterequest
from typing import List, Optional


@dataclasses.dataclass
class AddShipmentsToBatchGlobals:
    shippo_api_version: Optional[str] = dataclasses.field(default=None, metadata={'header': { 'field_name': 'SHIPPO-API-VERSION', 'style': 'simple', 'explode': False }})
    r"""Optional string used to pick a non-default API version to use. See our <a href=\\"https://docs.goshippo.com/docs/api_concepts/apiversioning/\\">API version</a> guide."""
    



@dataclasses.dataclass
class AddShipmentsToBatchRequest:
    batch_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'BatchId', 'style': 'simple', 'explode': False }})
    r"""Object ID of the batch"""
    request_body: List[components_batchshipmentcreaterequest.BatchShipmentCreateRequest] = dataclasses.field(metadata={'request': { 'media_type': 'application/json' }})
    r"""Array of shipments to add to the batch"""
    

