Module: AppStoreConnectApi::Domain::SandboxTesters

Included in:
AppStoreConnectApi::Domain
Defined in:
lib/app_store_connect_api/domain/sandbox_testers.rb

Instance Method Summary collapse

Instance Method Details

#clear_sandbox_tester_purchase_history(sandbox_tester_ids) ⇒ Object



19
20
21
22
# File 'lib/app_store_connect_api/domain/sandbox_testers.rb', line 19

def clear_sandbox_tester_purchase_history(sandbox_tester_ids)
  post '/v2/sandboxTestersClearPurchaseHistoryRequest', data: { relationships: Utils::RelationshipMapper.expand(sandbox_testers: sandbox_tester_ids),
                                                                type: 'sandboxTestersClearPurchaseHistoryRequest' }
end

#sandbox_testers(options = {}) ⇒ Object



7
8
9
# File 'lib/app_store_connect_api/domain/sandbox_testers.rb', line 7

def sandbox_testers(options = {})
  get '/v2/sandboxTesters', options
end

#update_sandbox_tester(sandbox_tester_id, attributes) ⇒ Object



12
13
14
15
16
# File 'lib/app_store_connect_api/domain/sandbox_testers.rb', line 12

def update_sandbox_tester(sandbox_tester_id, attributes)
  patch "/v2/sandboxTesters/#{sandbox_tester_id}", data: { attributes: attributes,
                                                           id: sandbox_tester_id,
                                                           type: 'sandboxTesters' }
end