Happy Business Starts Here

7.4 select billing plugin

Highlighted
Guru

7.4 select billing plugin

@nathanc I opened a ticket for this yesterday

 

Updated to 7.4 and 3.4

 

When I am in the Zuora Config and attemp to register a component for zqu.SelectBillingAccountComponentOptions.ICustomizeBillingAccountPlugin I get the error:

 

One or more plugin(s) class name cannot be instantiated. Check in the list below.

 

I copied the sample code and simplified to this below. Do you know what I may need to change or configure. 

 

 

public class SelectBillingAccountPlugin implements 
zqu.SelectBillingAccountComponentOptions.ICustomizeBillingAccountPlugin {
public zqu.JSRemoteController.BillingAccountObjects getAvailableBillingAccounts( 
zqu.JSRemoteController.BillingAccountObjects accountObjs){
System.debug('### ' + accountObjs);
// Set the default selected billing account type 
accountObjs.defaultBillingAccountType = 'existing';
return accountObjs; 
}
public zqu.JSRemoteController.QuoteTypeObjects getAvailableQuoteTypes( 
zqu.JSRemoteController.QuoteTypeObjects quoteTypeObjs){
System.debug('### ' + quoteTypeObjs);
return quoteTypeObjs; 
}
public zqu.JSRemoteController.SubscriptionObjects getAvailableSubscriptions( 
zqu.JSRemoteController.SubscriptionObjects subscriptionObjs){ 

System.debug('### ' + subscriptionObjs);
return subscriptionObjs; 
} 
}

 

Maggie Longshore
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Guru

Re: 7.4 select billing plugin

@MaggieL I believe you need to declare your plugin as "global" instead of "public" for the zqu namespace to be able to see it and call it.

View solution in original post

27 REPLIES 27
Highlighted
Guru

Re: 7.4 select billing plugin

@MaggieL I believe you need to declare your plugin as "global" instead of "public" for the zqu namespace to be able to see it and call it.

View solution in original post

Highlighted
Zuora Alumni

Re: 7.4 select billing plugin

Thanks @feisley!!!

Highlighted
Guru

Re: 7.4 select billing plugin

Thanks @feisley, the things that are so easy to forget.

 

@nathanc it would help if the samples were marked global.

 

I forget this every time.

Maggie Longshore
Highlighted
Zuora Alumni

Re: 7.4 select billing plugin

yup we will change the doc.

Highlighted
Guru

Re: 7.4 select billing plugin

@nathanc Is there a way for me to get the current opportunity id in this plugin?

Maggie Longshore
Highlighted
Zuora Alumni

Re: 7.4 select billing plugin

just use the quote id to get the oppty id?

Highlighted
Guru

Re: 7.4 select billing plugin

there isn't one yet?

Maggie Longshore
Highlighted
Zuora Alumni

Re: 7.4 select billing plugin

you mean as a variable you can access?  we just didnt want to do an extra query every time to get the oppty id if it wasnt necessary.  and since you can get at it yourself shouldnt be an issue?

Highlighted
Guru

Re: 7.4 select billing plugin

I think the point is the system has not assigned a quote id at the time the select billing account component is invoked. The opportunity id is passed i believe as a param to the page, but not sure how to access it yet via the Apex plugin.