Skip to content

Commit 4ac5471

Browse files
author
awstools
committed
feat(client-marketplace-agreement): This release adds 8 new APIs for AWS Marketplace sellers. 4 APIs for Cancellations (Send, List, Get, Cancel action on AgreementCancellationRequest), 3 APIs for Billing Adjustments (BatchCreate, List, Get action on BillingAdjustmentRequest), and 1 API to List Invoices (ListAgreementInvoiceLineItems)
1 parent 85d0436 commit 4ac5471

23 files changed

Lines changed: 5518 additions & 720 deletions

clients/client-marketplace-agreement/README.md

Lines changed: 63 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ To install this package, use the CLI of your favorite package manager:
2222

2323
The AWS SDK is modulized by clients and commands.
2424
To send a request, you only need to import the `MarketplaceAgreementClient` and
25-
the commands you need, for example `ListAgreementPaymentRequestsCommand`:
25+
the commands you need, for example `ListBillingAdjustmentRequestsCommand`:
2626

2727
```js
2828
// ES5 example
29-
const { MarketplaceAgreementClient, ListAgreementPaymentRequestsCommand } = require("@aws-sdk/client-marketplace-agreement");
29+
const { MarketplaceAgreementClient, ListBillingAdjustmentRequestsCommand } = require("@aws-sdk/client-marketplace-agreement");
3030
```
3131

3232
```ts
3333
// ES6+ example
34-
import { MarketplaceAgreementClient, ListAgreementPaymentRequestsCommand } from "@aws-sdk/client-marketplace-agreement";
34+
import { MarketplaceAgreementClient, ListBillingAdjustmentRequestsCommand } from "@aws-sdk/client-marketplace-agreement";
3535
```
3636

3737
### Usage
@@ -48,7 +48,7 @@ To send a request:
4848
const client = new MarketplaceAgreementClient({ region: "REGION" });
4949

5050
const params = { /** input parameters */ };
51-
const command = new ListAgreementPaymentRequestsCommand(params);
51+
const command = new ListBillingAdjustmentRequestsCommand(params);
5252
```
5353

5454
#### Async/await
@@ -104,15 +104,15 @@ const client = new MarketplaceAgreement({ region: "REGION" });
104104

105105
// async/await.
106106
try {
107-
const data = await client.listAgreementPaymentRequests(params);
107+
const data = await client.listBillingAdjustmentRequests(params);
108108
// process data.
109109
} catch (error) {
110110
// error handling.
111111
}
112112

113113
// Promises.
114114
client
115-
.listAgreementPaymentRequests(params)
115+
.listBillingAdjustmentRequests(params)
116116
.then((data) => {
117117
// process data.
118118
})
@@ -121,7 +121,7 @@ client
121121
});
122122

123123
// callbacks (not recommended).
124-
client.listAgreementPaymentRequests(params, (err, data) => {
124+
client.listBillingAdjustmentRequests(params, (err, data) => {
125125
// process err and data.
126126
});
127127
```
@@ -179,6 +179,20 @@ see LICENSE for more information.
179179

180180
## Client Commands (Operations List)
181181

182+
<details>
183+
<summary>
184+
BatchCreateBillingAdjustmentRequest
185+
</summary>
186+
187+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/marketplace-agreement/command/BatchCreateBillingAdjustmentRequestCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/BatchCreateBillingAdjustmentRequestCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/BatchCreateBillingAdjustmentRequestCommandOutput/)
188+
</details>
189+
<details>
190+
<summary>
191+
CancelAgreementCancellationRequest
192+
</summary>
193+
194+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/marketplace-agreement/command/CancelAgreementCancellationRequestCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/CancelAgreementCancellationRequestCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/CancelAgreementCancellationRequestCommandOutput/)
195+
</details>
182196
<details>
183197
<summary>
184198
CancelAgreementPaymentRequest
@@ -195,6 +209,13 @@ DescribeAgreement
195209
</details>
196210
<details>
197211
<summary>
212+
GetAgreementCancellationRequest
213+
</summary>
214+
215+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/marketplace-agreement/command/GetAgreementCancellationRequestCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/GetAgreementCancellationRequestCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/GetAgreementCancellationRequestCommandOutput/)
216+
</details>
217+
<details>
218+
<summary>
198219
GetAgreementPaymentRequest
199220
</summary>
200221

@@ -209,20 +230,55 @@ GetAgreementTerms
209230
</details>
210231
<details>
211232
<summary>
233+
GetBillingAdjustmentRequest
234+
</summary>
235+
236+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/marketplace-agreement/command/GetBillingAdjustmentRequestCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/GetBillingAdjustmentRequestCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/GetBillingAdjustmentRequestCommandOutput/)
237+
</details>
238+
<details>
239+
<summary>
240+
ListAgreementCancellationRequests
241+
</summary>
242+
243+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/marketplace-agreement/command/ListAgreementCancellationRequestsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/ListAgreementCancellationRequestsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/ListAgreementCancellationRequestsCommandOutput/)
244+
</details>
245+
<details>
246+
<summary>
247+
ListAgreementInvoiceLineItems
248+
</summary>
249+
250+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/marketplace-agreement/command/ListAgreementInvoiceLineItemsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/ListAgreementInvoiceLineItemsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/ListAgreementInvoiceLineItemsCommandOutput/)
251+
</details>
252+
<details>
253+
<summary>
212254
ListAgreementPaymentRequests
213255
</summary>
214256

215257
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/marketplace-agreement/command/ListAgreementPaymentRequestsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/ListAgreementPaymentRequestsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/ListAgreementPaymentRequestsCommandOutput/)
216258
</details>
217259
<details>
218260
<summary>
261+
ListBillingAdjustmentRequests
262+
</summary>
263+
264+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/marketplace-agreement/command/ListBillingAdjustmentRequestsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/ListBillingAdjustmentRequestsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/ListBillingAdjustmentRequestsCommandOutput/)
265+
</details>
266+
<details>
267+
<summary>
219268
SearchAgreements
220269
</summary>
221270

222271
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/marketplace-agreement/command/SearchAgreementsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/SearchAgreementsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/SearchAgreementsCommandOutput/)
223272
</details>
224273
<details>
225274
<summary>
275+
SendAgreementCancellationRequest
276+
</summary>
277+
278+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/marketplace-agreement/command/SendAgreementCancellationRequestCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/SendAgreementCancellationRequestCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-agreement/Interface/SendAgreementCancellationRequestCommandOutput/)
279+
</details>
280+
<details>
281+
<summary>
226282
SendAgreementPaymentRequest
227283
</summary>
228284

0 commit comments

Comments
 (0)