Class: Aws::MarketplaceAgreement::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::MarketplaceAgreement::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb
Overview
An API client for MarketplaceAgreement. To construct a client, you need to configure a :region and :credentials.
client = Aws::MarketplaceAgreement::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#batch_create_billing_adjustment_request(params = {}) ⇒ Types::BatchCreateBillingAdjustmentRequestOutput
Allows sellers (proposers) to submit billing adjustment requests for one or more invoices within an agreement.
-
#cancel_agreement_cancellation_request(params = {}) ⇒ Types::CancelAgreementCancellationRequestOutput
Allows sellers (proposers) to withdraw an existing agreement cancellation request that is in a pending state.
-
#cancel_agreement_payment_request(params = {}) ⇒ Types::CancelAgreementPaymentRequestOutput
Allows sellers (proposers) to cancel a payment request that is in
PENDING_APPROVALstatus. -
#describe_agreement(params = {}) ⇒ Types::DescribeAgreementOutput
Provides details about an agreement, such as the proposer, acceptor, start date, and end date.
-
#get_agreement_cancellation_request(params = {}) ⇒ Types::GetAgreementCancellationRequestOutput
Retrieves detailed information about a specific agreement cancellation request.
-
#get_agreement_payment_request(params = {}) ⇒ Types::GetAgreementPaymentRequestOutput
Retrieves detailed information about a specific payment request.
-
#get_agreement_terms(params = {}) ⇒ Types::GetAgreementTermsOutput
Obtains details about the terms in an agreement that you participated in as proposer or acceptor.
-
#get_billing_adjustment_request(params = {}) ⇒ Types::GetBillingAdjustmentRequestOutput
Retrieves detailed information about a specific billing adjustment request.
-
#list_agreement_cancellation_requests(params = {}) ⇒ Types::ListAgreementCancellationRequestsOutput
Lists agreement cancellation requests available to you as a seller or buyer.
-
#list_agreement_invoice_line_items(params = {}) ⇒ Types::ListAgreementInvoiceLineItemsOutput
Allows sellers (proposers) to retrieve aggregated billing data from AWS Marketplace agreements using flexible grouping.
-
#list_agreement_payment_requests(params = {}) ⇒ Types::ListAgreementPaymentRequestsOutput
Lists payment requests available to you as a seller or buyer.
-
#list_billing_adjustment_requests(params = {}) ⇒ Types::ListBillingAdjustmentRequestsOutput
Lists billing adjustment requests for a specific agreement.
-
#search_agreements(params = {}) ⇒ Types::SearchAgreementsOutput
Searches across all agreements that a proposer has in AWS Marketplace.
-
#send_agreement_cancellation_request(params = {}) ⇒ Types::SendAgreementCancellationRequestOutput
Allows sellers (proposers) to submit a cancellation request for an active agreement.
-
#send_agreement_payment_request(params = {}) ⇒ Types::SendAgreementPaymentRequestOutput
Allows sellers (proposers) to submit a payment request to buyers (acceptors) for a specific charge amount for an agreement that includes a
VariablePaymentTerm.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
480 481 482 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 480 def initialize(*args) super end |
Instance Method Details
#batch_create_billing_adjustment_request(params = {}) ⇒ Types::BatchCreateBillingAdjustmentRequestOutput
Allows sellers (proposers) to submit billing adjustment requests for one or more invoices within an agreement. Each entry in the batch specifies an invoice and the adjustment amount. The operation returns successfully created adjustment request IDs and any errors for entries that failed validation.
clientToken for idempotency. A
ValidationException is returned if the adjustment amount exceeds the
maximum refundable amount for the invoice.
566 567 568 569 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 566 def batch_create_billing_adjustment_request(params = {}, = {}) req = build_request(:batch_create_billing_adjustment_request, params) req.send_request() end |
#cancel_agreement_cancellation_request(params = {}) ⇒ Types::CancelAgreementCancellationRequestOutput
Allows sellers (proposers) to withdraw an existing agreement
cancellation request that is in a pending state. Once cancelled, the
cancellation request transitions to CANCELLED status and can no
longer be approved or rejected by the buyer.
PENDING_APPROVAL status can be
cancelled. A ConflictException is thrown if the cancellation request
is in any other status.
648 649 650 651 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 648 def cancel_agreement_cancellation_request(params = {}, = {}) req = build_request(:cancel_agreement_cancellation_request, params) req.send_request() end |
#cancel_agreement_payment_request(params = {}) ⇒ Types::CancelAgreementPaymentRequestOutput
Allows sellers (proposers) to cancel a payment request that is in
PENDING_APPROVAL status. Once cancelled, the payment request
transitions to CANCELLED status and can no longer be accepted or
rejected by the buyer.
PENDING_APPROVAL status can be cancelled. A
ConflictException is thrown if the payment request is in any other
status.
706 707 708 709 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 706 def cancel_agreement_payment_request(params = {}, = {}) req = build_request(:cancel_agreement_payment_request, params) req.send_request() end |
#describe_agreement(params = {}) ⇒ Types::DescribeAgreementOutput
Provides details about an agreement, such as the proposer, acceptor, start date, and end date.
758 759 760 761 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 758 def describe_agreement(params = {}, = {}) req = build_request(:describe_agreement, params) req.send_request() end |
#get_agreement_cancellation_request(params = {}) ⇒ Types::GetAgreementCancellationRequestOutput
Retrieves detailed information about a specific agreement cancellation request. Both sellers (proposers) and buyers (acceptors) can use this operation to view cancellation requests associated with their agreements.
ResourceNotFoundException is returned if the
cancellation request does not exist.
834 835 836 837 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 834 def get_agreement_cancellation_request(params = {}, = {}) req = build_request(:get_agreement_cancellation_request, params) req.send_request() end |
#get_agreement_payment_request(params = {}) ⇒ Types::GetAgreementPaymentRequestOutput
Retrieves detailed information about a specific payment request. Both sellers (proposers) and buyers (acceptors) can use this operation to view payment requests associated with their agreements. The response includes the current status, charge details, timestamps, and the charge ID if the request has been approved.
ResourceNotFoundException is returned if the
payment request does not exist.
897 898 899 900 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 897 def get_agreement_payment_request(params = {}, = {}) req = build_request(:get_agreement_payment_request, params) req.send_request() end |
#get_agreement_terms(params = {}) ⇒ Types::GetAgreementTermsOutput
Obtains details about the terms in an agreement that you participated in as proposer or acceptor.
The details include:
TermType– The type of term, such asLegalTerm,RenewalTerm, orConfigurableUpfrontPricingTerm.TermID– The ID of the particular term, which is common between offer and agreement.TermPayload– The key information contained in the term, such as the EULA forLegalTermor pricing and dimensions for various pricing terms, such asConfigurableUpfrontPricingTermorUsageBasedPricingTerm. ^Configuration– The buyer/acceptor's selection at the time of agreement creation, such as the number of units purchased for a dimension or setting theEnableAutoRenewflag.
^
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1018 1019 1020 1021 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 1018 def get_agreement_terms(params = {}, = {}) req = build_request(:get_agreement_terms, params) req.send_request() end |
#get_billing_adjustment_request(params = {}) ⇒ Types::GetBillingAdjustmentRequestOutput
Retrieves detailed information about a specific billing adjustment request. Sellers (proposers) can use this operation to view the status and details of a billing adjustment request they submitted.
ResourceNotFoundException is returned if the billing adjustment
request does not exist or the caller does not have permission to
access it.
1101 1102 1103 1104 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 1101 def get_billing_adjustment_request(params = {}, = {}) req = build_request(:get_billing_adjustment_request, params) req.send_request() end |
#list_agreement_cancellation_requests(params = {}) ⇒ Types::ListAgreementCancellationRequestsOutput
Lists agreement cancellation requests available to you as a seller or buyer. Both sellers (proposers) and buyers (acceptors) can use this operation to find cancellation requests by specifying their party type and applying optional filters.
PartyType is a required parameter. A ValidationException is
returned if PartyType is not provided. Pagination is supported
through maxResults (1-50, default 20) and nextToken parameters.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1206 1207 1208 1209 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 1206 def list_agreement_cancellation_requests(params = {}, = {}) req = build_request(:list_agreement_cancellation_requests, params) req.send_request() end |
#list_agreement_invoice_line_items(params = {}) ⇒ Types::ListAgreementInvoiceLineItemsOutput
Allows sellers (proposers) to retrieve aggregated billing data from AWS Marketplace agreements using flexible grouping. Supports invoice-level aggregation with filtering by billing period, invoice type, and issued date.
groupBy parameter is required and currently supports only
INVOICE_ID as a value. The agreementId parameter is required.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1327 1328 1329 1330 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 1327 def list_agreement_invoice_line_items(params = {}, = {}) req = build_request(:list_agreement_invoice_line_items, params) req.send_request() end |
#list_agreement_payment_requests(params = {}) ⇒ Types::ListAgreementPaymentRequestsOutput
Lists payment requests available to you as a seller or buyer. Both sellers (proposers) and buyers (acceptors) can use this operation to find payment requests by specifying their party type and applying optional parameters.
PartyType is a required parameter. A ValidationException is
returned if PartyType is not provided. Pagination is supported
through maxResults (1-50, default 50) and nextToken parameters.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1410 1411 1412 1413 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 1410 def list_agreement_payment_requests(params = {}, = {}) req = build_request(:list_agreement_payment_requests, params) req.send_request() end |
#list_billing_adjustment_requests(params = {}) ⇒ Types::ListBillingAdjustmentRequestsOutput
Lists billing adjustment requests for a specific agreement. Sellers (proposers) can use this operation to view all billing adjustment requests associated with an agreement.
maxResults and nextToken
parameters.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1520 1521 1522 1523 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 1520 def list_billing_adjustment_requests(params = {}, = {}) req = build_request(:list_billing_adjustment_requests, params) req.send_request() end |
#search_agreements(params = {}) ⇒ Types::SearchAgreementsOutput
Searches across all agreements that a proposer has in AWS Marketplace. The search returns a list of agreements with basic agreement information.
The following filter combinations are supported when the PartyType
is Proposer:
AgreementTypeAgreementType+EndTimeAgreementType+ResourceTypeAgreementType+ResourceType+EndTimeAgreementType+ResourceType+StatusAgreementType+ResourceType+Status+EndTimeAgreementType+ResourceIdAgreementType+ResourceId+EndTimeAgreementType+ResourceId+StatusAgreementType+ResourceId+Status+EndTimeAgreementType+AcceptorAccountIdAgreementType+AcceptorAccountId+EndTimeAgreementType+AcceptorAccountId+StatusAgreementType+AcceptorAccountId+Status+EndTimeAgreementType+AcceptorAccountId+OfferIdAgreementType+AcceptorAccountId+OfferId+StatusAgreementType+AcceptorAccountId+OfferId+EndTimeAgreementType+AcceptorAccountId+OfferId+Status+EndTimeAgreementType+AcceptorAccountId+ResourceIdAgreementType+AcceptorAccountId+ResourceId+StatusAgreementType+AcceptorAccountId+ResourceId+EndTimeAgreementType+AcceptorAccountId+ResourceId+Status+EndTimeAgreementType+AcceptorAccountId+ResourceTypeAgreementType+AcceptorAccountId+ResourceType+EndTimeAgreementType+AcceptorAccountId+ResourceType+StatusAgreementType+AcceptorAccountId+ResourceType+Status+EndTimeAgreementType+StatusAgreementType+Status+EndTimeAgreementType+OfferIdAgreementType+OfferId+EndTimeAgreementType+OfferId+StatusAgreementType+OfferId+Status+EndTimeAgreementType+OfferSetIdAgreementType+OfferSetId+EndTimeAgreementType+OfferSetId+StatusAgreementType+OfferSetId+Status+EndTime
EndTime, you can use either BeforeEndTime or
AfterEndTime. Only EndTime is supported for sorting.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1711 1712 1713 1714 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 1711 def search_agreements(params = {}, = {}) req = build_request(:search_agreements, params) req.send_request() end |
#send_agreement_cancellation_request(params = {}) ⇒ Types::SendAgreementCancellationRequestOutput
Allows sellers (proposers) to submit a cancellation request for an
active agreement. The cancellation request is created in
PENDING_APPROVAL status, at which point the buyer can review it.
1795 1796 1797 1798 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 1795 def send_agreement_cancellation_request(params = {}, = {}) req = build_request(:send_agreement_cancellation_request, params) req.send_request() end |
#send_agreement_payment_request(params = {}) ⇒ Types::SendAgreementPaymentRequestOutput
Allows sellers (proposers) to submit a payment request to buyers
(acceptors) for a specific charge amount for an agreement that
includes a VariablePaymentTerm. The payment request is created in
PENDING_APPROVAL status, at which point the buyer can accept or
reject it.
VariablePaymentTerm to
support payment requests. The chargeAmount must not exceed the
remaining available balance under the VariablePaymentTerm
maxTotalChargeAmount.
1883 1884 1885 1886 |
# File 'gems/aws-sdk-marketplaceagreement/lib/aws-sdk-marketplaceagreement/client.rb', line 1883 def send_agreement_payment_request(params = {}, = {}) req = build_request(:send_agreement_payment_request, params) req.send_request() end |