Cloudchannel_v1Functions

Functions

Link copied to clipboard

Returns the requested ChannelPartnerLink resource. You must be a distributor to call this method. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: ChannelPartnerLink resource not found because of an invalid channel partner link name. Return value: The ChannelPartnerLink resource.

suspend fun getChannelPartnerLink(accountId: String, channelPartnerLinkId: String, view: String? = null): GetChannelPartnerLinkResult
Link copied to clipboard

Gets information about how a Distributor modifies their bill before sending it to a ChannelPartner. Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the account being queried are different. * NOT_FOUND: The ChannelPartnerRepricingConfig was not found. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the ChannelPartnerRepricingConfig resource, otherwise returns an error.

suspend fun getChannelPartnerRepricingConfig(accountId: String, channelPartnerLinkId: String, channelPartnerRepricingConfigId: String): GetChannelPartnerRepricingConfigResult
Link copied to clipboard

Returns the requested Customer resource. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer resource doesn't exist. Usually the result of an invalid name parameter. Return value: The Customer resource.

suspend fun getCustomer(argument: suspend GetCustomerPlainArgsBuilder.() -> Unit): GetCustomerResult
suspend fun getCustomer(accountId: String, channelPartnerLinkId: String, customerId: String): GetCustomerResult
Link copied to clipboard

Gets information about how a Reseller modifies their bill before sending it to a Customer. Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the account being queried are different. * NOT_FOUND: The CustomerRepricingConfig was not found. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the CustomerRepricingConfig resource, otherwise returns an error.

suspend fun getCustomerRepricingConfig(accountId: String, customerId: String, customerRepricingConfigId: String): GetCustomerRepricingConfigResult
Link copied to clipboard

Returns the requested Entitlement resource. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer entitlement was not found. Return value: The requested Entitlement resource.

suspend fun getEntitlement(accountId: String, customerId: String, entitlementId: String): GetEntitlementResult