@Service public class MeteredUsageApiClientServiceImpl extends Object implements MeteredUsageApiClientService
| Constructor and Description |
|---|
MeteredUsageApiClientServiceImpl(DeveloperSpecificAppmarketCredentialsSupplier credentialsSupplier,
OAuth1RetrofitWrapper oAuth1RetrofitWrapper) |
| Modifier and Type | Method and Description |
|---|---|
MeteredUsageApi |
createMeteredUsageApi(String key) |
APIResult |
reportUsage(String secretKey,
List<MeteredUsageItem> meteredUsageItems)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String secretKey,
MeteredUsageItem meteredUsageItem)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String secretKey,
String idempotentKey,
List<MeteredUsageItem> meteredUsageItems)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String secretKey,
String idempotentKey,
MeteredUsageItem meteredUsageItem)
Calls the Metered Usage API Endpoint to bill usages.
|
@Autowired public MeteredUsageApiClientServiceImpl(DeveloperSpecificAppmarketCredentialsSupplier credentialsSupplier, OAuth1RetrofitWrapper oAuth1RetrofitWrapper)
public APIResult reportUsage(String secretKey, String idempotentKey, MeteredUsageItem meteredUsageItem)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicesecretKey - to sign the requestidempotentKey - to make unique callsmeteredUsageItem - usage instance to be reportedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public APIResult reportUsage(String secretKey, MeteredUsageItem meteredUsageItem)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicesecretKey - to sign the requestmeteredUsageItem - usage instance to be reportedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public APIResult reportUsage(String secretKey, List<MeteredUsageItem> meteredUsageItems)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicesecretKey - to sign the requestmeteredUsageItems - list of usages to be reportedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public APIResult reportUsage(String secretKey, String idempotentKey, List<MeteredUsageItem> meteredUsageItems)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicesecretKey - to sign the requestidempotentKey - to make unique callsmeteredUsageItems - list of usages to be reportedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public MeteredUsageApi createMeteredUsageApi(String key)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.