chengkun
2025-09-09 774d962b76d63366ed26c395e0a33cdbec309242
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
/**
* This class is autogenerated by the Spapi class generator
* Date of generation: 2022-05-26
* Specification: https://github.com/amzn/selling-partner-api-models/blob/main/models/easy-ship-model/easyShip_2022-03-23.json
* Source MD5 signature: b27b1cd7f23a2cc604d969eced567466
*
*
* Selling Partner API for Easy Ship
* The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders.
 
Your Easy Ship applications can:
 
* Get available time slots for packages to be scheduled for delivery.
 
* Schedule, reschedule, and cancel Easy Ship orders.
 
* Print labels, invoices, and warranties.
 
See the [Marketplace Support Table](doc:easy-ship-api-v2022-03-23-use-case-guide) for the differences in Easy Ship operations by marketplace.
*/
namespace DoubleBreak\Spapi\Api;
use DoubleBreak\Spapi\Client;
 
class Easy extends Client {
 
  /**
  * Operation listHandoverSlots
  *
  */
  public function listHandoverSlots($body = [])
  {
    return $this->send("/easyShip/2022-03-23/timeSlot", [
      'method' => 'POST',
      'json' => $body
    ]);
  }
 
  public function listHandoverSlotsAsync($body = [])
  {
    return $this->sendAsync("/easyShip/2022-03-23/timeSlot", [
      'method' => 'POST',
      'json' => $body
    ]);
  }
 
  /**
  * Operation getScheduledPackage
  *
  * @param array $queryParams
  *    - *amazonOrderId* string - An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
  *    - *marketplaceId* string - An identifier for the marketplace in which the seller is selling.
  *
  */
  public function getScheduledPackage($queryParams = [])
  {
    return $this->send("/easyShip/2022-03-23/package", [
      'method' => 'GET',
      'query' => $queryParams,
    ]);
  }
 
  public function getScheduledPackageAsync($queryParams = [])
  {
    return $this->sendAsync("/easyShip/2022-03-23/package", [
      'method' => 'GET',
      'query' => $queryParams,
    ]);
  }
 
  /**
  * Operation createScheduledPackage
  *
  */
  public function createScheduledPackage($body = [])
  {
    return $this->send("/easyShip/2022-03-23/package", [
      'method' => 'POST',
      'json' => $body
    ]);
  }
 
  public function createScheduledPackageAsync($body = [])
  {
    return $this->sendAsync("/easyShip/2022-03-23/package", [
      'method' => 'POST',
      'json' => $body
    ]);
  }
 
  /**
  * Operation updateScheduledPackages
  *
  */
  public function updateScheduledPackages($body = [])
  {
    return $this->send("/easyShip/2022-03-23/package", [
      'method' => 'PATCH',
      'json' => $body
    ]);
  }
 
  public function updateScheduledPackagesAsync($body = [])
  {
    return $this->sendAsync("/easyShip/2022-03-23/package", [
      'method' => 'PATCH',
      'json' => $body
    ]);
  }
}