Sha256: 3f7917ca4f848815bf780c8a7a911185d7fa92b0d5ee6f42b47bc5165095ffce

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true

module AppStoreConnect
  class UserInvitationCreateRequest < Struct.new(:first_name, :last_name, :email, :roles)
    def body
      { 'data' =>
        { 'type' => 'userInvitations', 'attributes' =>
          { 'firstName' => @first_name, 'lastName' => @last_name, 'email' => @email, 'roles' => @roles, 'allAppsVisible' => true, 'provisioningAllowed' => true } } }
    end

    def to_s
      body.to_json
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
app_store_connect-0.3.1 lib/app_store_connect/user_invitation_create_request.rb
app_store_connect-0.3.0 lib/app_store_connect/user_invitation_create_request.rb