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