Part of lp.services.salesforce.interfaces View In Hierarchy
These vouchers are used to allow commercial projects to subscribe to Launchpad.
Method | getUnredeemedVouchers | Get the unredeemed vouchers for the user. |
Method | getAllVouchers | Get all of the vouchers for the user. |
Method | getServerStatus | Get the server status. |
Method | getVoucher | Lookup a voucher. |
Method | redeemVoucher | Redeem a voucher. |
Method | updateProjectName | Update the name of a project in Salesforce. |
Method | grantVoucher | An administrator can grant a voucher to a Launchpad user. |
Parameters | voucher_id | string with the id of the voucher to be redeemed. |
user | user who is redeeming the voucher. | |
project | project that is being subscribed. | |
Returns | list with a boolean indicating status of redemption, and an integer representing the number of months the subscription allows. |
Update the name of a project in Salesforce. If a project changes its name it is updated in Salesforce. :param project: the project to update :return: integer representing the number of vouchers found for this project which were updated.
This call assumes the admin and approver already exist in the Salesforce database and can be looked up via their OpenID. The recipient may or may not exist, therefore basic information about the recipient is sent in the call.
Parameters | admin | the admin who is making the grant. |
approver | the manager who approved the grant. | |
recipient | the user who is being given the voucher. | |
term_months | integer representing the number of months for the voucher. | |
Returns | the voucher id of the newly granted voucher. |