Polarex.CustomerSeats (Polarex v0.3.1)

Copy Markdown View Source

Provides API endpoints related to customer seats

Summary

Functions

customer_seats_assign_seat(body, opts \\ [])

@spec customer_seats_assign_seat(body :: Polarex.SeatAssign.t(), opts :: keyword()) ::
  {:ok, Polarex.CustomerSeat.t()} | {:error, Polarex.HTTPValidationError.t()}

Assign Seat

Scopes: customer_seats:write

Request Body

Content Types: application/json

customer_seats_claim_seat(body, opts \\ [])

@spec customer_seats_claim_seat(body :: Polarex.SeatClaim.t(), opts :: keyword()) ::
  {:ok, Polarex.CustomerSeatClaimResponse.t()}
  | {:error, Polarex.HTTPValidationError.t()}

Claim Seat

Request Body

Content Types: application/json

customer_seats_get_claim_info(invitation_token, opts \\ [])

@spec customer_seats_get_claim_info(invitation_token :: String.t(), opts :: keyword()) ::
  {:ok, Polarex.SeatClaimInfo.t()} | {:error, Polarex.HTTPValidationError.t()}

Get Claim Info

customer_seats_list_seats(opts \\ [])

@spec customer_seats_list_seats(opts :: keyword()) ::
  {:ok, Polarex.SeatsList.t()} | {:error, Polarex.HTTPValidationError.t()}

List Seats

Scopes: customer_seats:write

Options

  • subscription_id
  • order_id

customer_seats_resend_invitation(seat_id, opts \\ [])

@spec customer_seats_resend_invitation(seat_id :: String.t(), opts :: keyword()) ::
  {:ok, Polarex.CustomerSeat.t()} | {:error, Polarex.HTTPValidationError.t()}

Resend Invitation

Scopes: customer_seats:write

customer_seats_revoke_seat(seat_id, opts \\ [])

@spec customer_seats_revoke_seat(seat_id :: String.t(), opts :: keyword()) ::
  {:ok, Polarex.CustomerSeat.t()} | {:error, Polarex.HTTPValidationError.t()}

Revoke Seat

Scopes: customer_seats:write