Skip to content

Commit

Permalink
Latest Ingrid Delivery Checkout v2 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
an-adamchuk committed May 10, 2023
1 parent af011cf commit e87b3de
Show file tree
Hide file tree
Showing 28 changed files with 1,821 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,15 @@ Class | Method | HTTP request | Description
- [Error](docs/Model/Error.md)
- [GetSessionResponse](docs/Model/GetSessionResponse.md)
- [GroupContent](docs/Model/GroupContent.md)
- [LegLocation](docs/Model/LegLocation.md)
- [LegLocationLocationType](docs/Model/LegLocationLocationType.md)
- [ListSessionsSummariesResponse](docs/Model/ListSessionsSummariesResponse.md)
- [OperationalHours](docs/Model/OperationalHours.md)
- [PickupLocation](docs/Model/PickupLocation.md)
- [PickupLocationType](docs/Model/PickupLocationType.md)
- [PriceComponent](docs/Model/PriceComponent.md)
- [PriceComponentType](docs/Model/PriceComponentType.md)
- [Route](docs/Model/Route.md)
- [SearchAddress](docs/Model/SearchAddress.md)
- [Section](docs/Model/Section.md)
- [SectionColumnItem](docs/Model/SectionColumnItem.md)
Expand All @@ -100,6 +103,7 @@ Class | Method | HTTP request | Description
- [SessionSummary](docs/Model/SessionSummary.md)
- [ShippingDate](docs/Model/ShippingDate.md)
- [ShippingDateTag](docs/Model/ShippingDateTag.md)
- [ShippingLeg](docs/Model/ShippingLeg.md)
- [Supports](docs/Model/Supports.md)
- [Tag](docs/Model/Tag.md)
- [UpdateSessionRequest](docs/Model/UpdateSessionRequest.md)
Expand Down
1 change: 1 addition & 0 deletions docs/Model/BillingAddress.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**company_name** | **string** | | [optional]
**country** | **string** | Country should be specified as two uppercase letters (ISO Alpha-2). Example `SE` for Sweden, `ES` for Spain. | [optional]
**email** | **string** | Email address of the recipient. | [optional]
**external_id** | **string** | | [optional]
**first_name** | **string** | | [optional]
**last_name** | **string** | | [optional]
**phone** | **string** | Phone number of the recipient. | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/Model/DeliveryAddress.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**country** | **string** | Country should be specified as two uppercase letters (ISO Alpha-2). Example `SE` for Sweden, `ES` for Spain. | [optional]
**door_code** | **string** | | [optional]
**email** | **string** | Email address of the recipient. | [optional]
**external_id** | **string** | | [optional]
**first_name** | **string** | | [optional]
**last_name** | **string** | | [optional]
**phone** | **string** | Phone number of the recipient. | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/Model/DeliveryGroupShipping.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**delivery_type** | **string** | Type of delivery (pickup, instore, mailbox, delivery). | [optional]
**meta** | **array<string,string>** | Carrier specific metadata related to the shipping option, for example addons. | [optional]
**product** | **string** | Name of the shipping product. | [optional]
**route** | [**\OpenAPI\Client\Model\Route**](Route.md) | | [optional]
**supports** | [**\OpenAPI\Client\Model\Supports**](Supports.md) | | [optional]
**warehouse** | [**\OpenAPI\Client\Model\DeliveryGroupWarehouse**](DeliveryGroupWarehouse.md) | | [optional]

Expand Down
11 changes: 11 additions & 0 deletions docs/Model/LegLocation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# # LegLocation

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**address** | [**\OpenAPI\Client\Model\Address**](Address.md) | | [optional]
**external_id** | **string** | | [optional]
**location_type** | [**\OpenAPI\Client\Model\LegLocationLocationType**](LegLocationLocationType.md) | | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
8 changes: 8 additions & 0 deletions docs/Model/LegLocationLocationType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# # LegLocationLocationType

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
1 change: 1 addition & 0 deletions docs/Model/ListSessionsSummariesResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**external_id** | **string** | | [optional]
**result** | [**\OpenAPI\Client\Model\SessionSummary**](SessionSummary.md) | | [optional]
**tos_id** | **string** | | [optional]

Expand Down
9 changes: 9 additions & 0 deletions docs/Model/Route.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# # Route

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**shipping_legs** | [**\OpenAPI\Client\Model\ShippingLeg[]**](ShippingLeg.md) | ShippingLegs represent a list of delivery steps. For a non-chained delivery this will contain only one element. | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
1 change: 1 addition & 0 deletions docs/Model/SessionSummary.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**addresses** | [**\OpenAPI\Client\Model\Addresses**](Addresses.md) | | [optional]
**category** | [**\OpenAPI\Client\Model\DeliveryGroupCategory**](DeliveryGroupCategory.md) | | [optional]
**delivery_time** | [**\OpenAPI\Client\Model\DeliveryGroupDeliveryTime**](DeliveryGroupDeliveryTime.md) | | [optional]
**pricing** | [**\OpenAPI\Client\Model\DeliveryGroupPricing**](DeliveryGroupPricing.md) | | [optional]
Expand Down
12 changes: 12 additions & 0 deletions docs/Model/ShippingLeg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# # ShippingLeg

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**delivery_type** | **string** | | [optional]
**from** | [**\OpenAPI\Client\Model\LegLocation**](LegLocation.md) | | [optional]
**shipping_method** | **string** | | [optional]
**to** | [**\OpenAPI\Client\Model\LegLocation**](LegLocation.md) | | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
30 changes: 30 additions & 0 deletions lib/Model/BillingAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class BillingAddress implements ModelInterface, ArrayAccess, \JsonSerializable
'company_name' => 'string',
'country' => 'string',
'email' => 'string',
'external_id' => 'string',
'first_name' => 'string',
'last_name' => 'string',
'phone' => 'string',
Expand Down Expand Up @@ -94,6 +95,7 @@ class BillingAddress implements ModelInterface, ArrayAccess, \JsonSerializable
'company_name' => null,
'country' => null,
'email' => null,
'external_id' => null,
'first_name' => null,
'last_name' => null,
'phone' => null,
Expand Down Expand Up @@ -140,6 +142,7 @@ public static function openAPIFormats()
'company_name' => 'company_name',
'country' => 'country',
'email' => 'email',
'external_id' => 'external_id',
'first_name' => 'first_name',
'last_name' => 'last_name',
'phone' => 'phone',
Expand All @@ -165,6 +168,7 @@ public static function openAPIFormats()
'company_name' => 'setCompanyName',
'country' => 'setCountry',
'email' => 'setEmail',
'external_id' => 'setExternalId',
'first_name' => 'setFirstName',
'last_name' => 'setLastName',
'phone' => 'setPhone',
Expand All @@ -190,6 +194,7 @@ public static function openAPIFormats()
'company_name' => 'getCompanyName',
'country' => 'getCountry',
'email' => 'getEmail',
'external_id' => 'getExternalId',
'first_name' => 'getFirstName',
'last_name' => 'getLastName',
'phone' => 'getPhone',
Expand Down Expand Up @@ -266,6 +271,7 @@ public function __construct(array $data = null)
$this->container['company_name'] = $data['company_name'] ?? null;
$this->container['country'] = $data['country'] ?? null;
$this->container['email'] = $data['email'] ?? null;
$this->container['external_id'] = $data['external_id'] ?? null;
$this->container['first_name'] = $data['first_name'] ?? null;
$this->container['last_name'] = $data['last_name'] ?? null;
$this->container['phone'] = $data['phone'] ?? null;
Expand Down Expand Up @@ -493,6 +499,30 @@ public function setEmail($email)
return $this;
}

/**
* Gets external_id
*
* @return string|null
*/
public function getExternalId()
{
return $this->container['external_id'];
}

/**
* Sets external_id
*
* @param string|null $external_id external_id
*
* @return self
*/
public function setExternalId($external_id)
{
$this->container['external_id'] = $external_id;

return $this;
}

/**
* Gets first_name
*
Expand Down
30 changes: 30 additions & 0 deletions lib/Model/DeliveryAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class DeliveryAddress implements ModelInterface, ArrayAccess, \JsonSerializable
'country' => 'string',
'door_code' => 'string',
'email' => 'string',
'external_id' => 'string',
'first_name' => 'string',
'last_name' => 'string',
'phone' => 'string',
Expand Down Expand Up @@ -96,6 +97,7 @@ class DeliveryAddress implements ModelInterface, ArrayAccess, \JsonSerializable
'country' => null,
'door_code' => null,
'email' => null,
'external_id' => null,
'first_name' => null,
'last_name' => null,
'phone' => null,
Expand Down Expand Up @@ -142,6 +144,7 @@ public static function openAPIFormats()
'country' => 'country',
'door_code' => 'door_code',
'email' => 'email',
'external_id' => 'external_id',
'first_name' => 'first_name',
'last_name' => 'last_name',
'phone' => 'phone',
Expand All @@ -167,6 +170,7 @@ public static function openAPIFormats()
'country' => 'setCountry',
'door_code' => 'setDoorCode',
'email' => 'setEmail',
'external_id' => 'setExternalId',
'first_name' => 'setFirstName',
'last_name' => 'setLastName',
'phone' => 'setPhone',
Expand All @@ -192,6 +196,7 @@ public static function openAPIFormats()
'country' => 'getCountry',
'door_code' => 'getDoorCode',
'email' => 'getEmail',
'external_id' => 'getExternalId',
'first_name' => 'getFirstName',
'last_name' => 'getLastName',
'phone' => 'getPhone',
Expand Down Expand Up @@ -268,6 +273,7 @@ public function __construct(array $data = null)
$this->container['country'] = $data['country'] ?? null;
$this->container['door_code'] = $data['door_code'] ?? null;
$this->container['email'] = $data['email'] ?? null;
$this->container['external_id'] = $data['external_id'] ?? null;
$this->container['first_name'] = $data['first_name'] ?? null;
$this->container['last_name'] = $data['last_name'] ?? null;
$this->container['phone'] = $data['phone'] ?? null;
Expand Down Expand Up @@ -541,6 +547,30 @@ public function setEmail($email)
return $this;
}

/**
* Gets external_id
*
* @return string|null
*/
public function getExternalId()
{
return $this->container['external_id'];
}

/**
* Sets external_id
*
* @param string|null $external_id external_id
*
* @return self
*/
public function setExternalId($external_id)
{
$this->container['external_id'] = $external_id;

return $this;
}

/**
* Gets first_name
*
Expand Down
30 changes: 30 additions & 0 deletions lib/Model/DeliveryGroupShipping.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class DeliveryGroupShipping implements ModelInterface, ArrayAccess, \JsonSeriali
'delivery_type' => 'string',
'meta' => 'array<string,string>',
'product' => 'string',
'route' => '\OpenAPI\Client\Model\Route',
'supports' => '\OpenAPI\Client\Model\Supports',
'warehouse' => '\OpenAPI\Client\Model\DeliveryGroupWarehouse'
];
Expand All @@ -86,6 +87,7 @@ class DeliveryGroupShipping implements ModelInterface, ArrayAccess, \JsonSeriali
'delivery_type' => null,
'meta' => null,
'product' => null,
'route' => null,
'supports' => null,
'warehouse' => null
];
Expand Down Expand Up @@ -124,6 +126,7 @@ public static function openAPIFormats()
'delivery_type' => 'delivery_type',
'meta' => 'meta',
'product' => 'product',
'route' => 'route',
'supports' => 'supports',
'warehouse' => 'warehouse'
];
Expand All @@ -141,6 +144,7 @@ public static function openAPIFormats()
'delivery_type' => 'setDeliveryType',
'meta' => 'setMeta',
'product' => 'setProduct',
'route' => 'setRoute',
'supports' => 'setSupports',
'warehouse' => 'setWarehouse'
];
Expand All @@ -158,6 +162,7 @@ public static function openAPIFormats()
'delivery_type' => 'getDeliveryType',
'meta' => 'getMeta',
'product' => 'getProduct',
'route' => 'getRoute',
'supports' => 'getSupports',
'warehouse' => 'getWarehouse'
];
Expand Down Expand Up @@ -226,6 +231,7 @@ public function __construct(array $data = null)
$this->container['delivery_type'] = $data['delivery_type'] ?? null;
$this->container['meta'] = $data['meta'] ?? null;
$this->container['product'] = $data['product'] ?? null;
$this->container['route'] = $data['route'] ?? null;
$this->container['supports'] = $data['supports'] ?? null;
$this->container['warehouse'] = $data['warehouse'] ?? null;
}
Expand Down Expand Up @@ -422,6 +428,30 @@ public function setProduct($product)
return $this;
}

/**
* Gets route
*
* @return \OpenAPI\Client\Model\Route|null
*/
public function getRoute()
{
return $this->container['route'];
}

/**
* Sets route
*
* @param \OpenAPI\Client\Model\Route|null $route route
*
* @return self
*/
public function setRoute($route)
{
$this->container['route'] = $route;

return $this;
}

/**
* Gets supports
*
Expand Down
Loading

0 comments on commit e87b3de

Please sign in to comment.