
com.vendasta.sales.v1.UserActionsProviderClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sales.v1 Show documentation
Show all versions of sales.v1 Show documentation
Java SDK for service sales
The newest version!
package com.vendasta.sales.v1;
import com.google.protobuf.Empty;
import com.vendasta.sales.v1.internal.*;
import com.vendasta.vax.Environment;
import java.io.InputStream;
public class UserActionsProviderClient {
private ActionCategory DEFAULT_CATEGORY = ActionCategory.ACTION_CATEGORY_VIEW;
protected UserActionsProviderGeneratedClient client;
public UserActionsProviderClient(Environment environment, InputStream serviceAccount, UserActionsProviderGeneratedClient.Options options) {
this.client = new UserActionsProviderGeneratedClient(environment, serviceAccount, options);
}
public Empty UploadUserActionByCustomerID(String customerID, String partnerID, String description) {
UploadUserActionForCustomerIDRequest req = UploadUserActionForCustomerIDRequest.newBuilder()
.setCustomerId(customerID)
.setPartnerId(partnerID)
.setCategory(DEFAULT_CATEGORY)
.setDescription(description).build();
return this.client.UploadUserActionForCustomerID(req, null);
}
public Empty UploadUserActionByCustomerID(String customerID, String partnerID, String description, ActionCategory category) {
UploadUserActionForCustomerIDRequest req = UploadUserActionForCustomerIDRequest.newBuilder()
.setCustomerId(customerID)
.setPartnerId(partnerID)
.setCategory(category)
.setDescription(description).build();
return this.client.UploadUserActionForCustomerID(req, null);
}
public Empty UploadUserActionByAccountGroupID(String accountGroupID, String description) {
UserActionsRequest req = UserActionsRequest.newBuilder()
.setAccountGroupId(accountGroupID)
.setCategory(DEFAULT_CATEGORY)
.setDescription(description).build();
return this.client.UploadUserAction(req, null);
}
public Empty UploadUserActionByAccountGroupID(String accountGroupID, String description, ActionCategory category) {
UserActionsRequest req = UserActionsRequest.newBuilder()
.setAccountGroupId(accountGroupID)
.setCategory(category)
.setDescription(description).build();
return this.client.UploadUserAction(req, null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy