team_user_billing_details.js 1.1 KB

1234567891011121314151617181920212223
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.TeamUserBillingDetails = void 0;
  4. const team_user_billing_details_1 = require("../models/team_user_billing_details");
  5. const base_collection_1 = require("./base_collection");
  6. class TeamUserBillingDetails extends base_collection_1.BaseCollection {
  7. static rootElementName = "";
  8. static prefixURI = "teams/{!:team_id}/billing_details";
  9. static elementClass = team_user_billing_details_1.TeamUserBillingDetails;
  10. get(team_id) {
  11. const params = { team_id: team_id };
  12. return this.createPromise("GET", params, this.populateObjectFromJson, this.handleReject, null);
  13. }
  14. create(billing_details_params, request_params) {
  15. return this.doCreate(billing_details_params, request_params);
  16. }
  17. update(team_id, billing_details_params) {
  18. const params = { team_id: team_id };
  19. return this.createPromise("PUT", params, this.populateObjectFromJson, this.handleReject, billing_details_params);
  20. }
  21. }
  22. exports.TeamUserBillingDetails = TeamUserBillingDetails;
  23. //# sourceMappingURL=team_user_billing_details.js.map