10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::se::licensing::FluentLicenseCheckout Class Reference

#include <FluentLicenseCheckout.h>

Detailed Description

Checks out licenses, building the request fluently.

Call execute() to execute the request.

See the superclass tenduke::se::licensing::FluentConsumptionBuilder for the builder methods.

Inheritance diagram for tenduke::se::licensing::FluentLicenseCheckout:
tenduke::se::licensing::FluentConsumptionBuilder< FluentLicenseCheckout >

Public Member Functions

 FluentLicenseCheckout (const ::tenduke::se::licensing::LicensingClient &client, const std::string &licenseKey="")
 Constructs new instance.
 
::tenduke::se::licensing::LicenseCheckoutResponse execute ()
 Checks out the licenses.
 
- Public Member Functions inherited from tenduke::se::licensing::FluentConsumptionBuilder< FluentLicenseCheckout >
 FluentConsumptionBuilder (std::string licenseKey)
 Constructs new instance.
 
FluentLicenseCheckoutseats (const std::string &pProductName, std::int64_t numSeats)
 Start building a license-consumption for seats.
 
FluentLicenseCheckoutseat (const std::string &pProductName)
 Start building a license-consumption for one seat.
 
FluentLicenseCheckoutcount (const std::string &pProductName, std::int64_t useCount)
 Start building a license consumption for use count.
 
FluentLicenseCheckoutcount (const std::string &pProductName)
 Starts building a license consumption for one use count.
 
FluentLicenseCheckouttime (const std::string &pProductName, std::int64_t useTime)
 Starts building a license consumption of use time.
 
FluentLicenseCheckoutversion (const std::string &pClientVersion)
 Set the client version.
 
FluentLicenseCheckoutlicenseId (const std::string &pLicenseId)
 Sets the license id to consume.
 

Additional Inherited Members

- Protected Member Functions inherited from tenduke::se::licensing::FluentConsumptionBuilder< FluentLicenseCheckout >
void buildArgument ()
 Builds one argument.
 
void startArgument (::tenduke::se::licensing::License::QuantityDimension pQtyDimension, const std::string &pProductName, std::int64_t pQty)
 Starts building new argument.
 
- Protected Attributes inherited from tenduke::se::licensing::FluentConsumptionBuilder< FluentLicenseCheckout >
const std::string licenseKey
 License key to use in checkout.
 
std::vector<::tenduke::se::licensing::LicenseCheckoutArgumentsarguments
 Arguments.
 

Constructor & Destructor Documentation

◆ FluentLicenseCheckout()

tenduke::se::licensing::FluentLicenseCheckout::FluentLicenseCheckout ( const ::tenduke::se::licensing::LicensingClient client,
const std::string &  licenseKey = "" 
)
explicit

Constructs new instance.

Parameters
client-
licenseKey-

Member Function Documentation

◆ execute()

xdlic::LicenseCheckoutResponse tenduke::se::licensing::FluentLicenseCheckout::execute ( )

Checks out the licenses.

Returns
-
Exceptions
tenduke::net::NetworkingException(and subclasses) on networking issues (no network, host not found etc)
tenduke::jwt::JWTValidationExceptionwhen any returned license token fails to validate
tenduke::se::http::APIException(and subclasses) when the request failed

The documentation for this class was generated from the following files: