Module: AppStoreConnectApi::Domain::Apps

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

Instance Method Summary collapse

Instance Method Details

#app(app_id, options = {}) ⇒ Object



12
13
14
# File 'lib/app_store_connect_api/domain/apps.rb', line 12

def app(app_id, options = {})
  get "/v1/apps/#{app_id}", options
end

#app_app_availability(app_id, options = {}) ⇒ Object



120
121
122
# File 'lib/app_store_connect_api/domain/apps.rb', line 120

def app_app_availability(app_id, options = {})
  get "/v1/apps/#{app_id}/appAvailability", options
end

#app_app_clips(app_id, options = {}) ⇒ Object



60
61
62
# File 'lib/app_store_connect_api/domain/apps.rb', line 60

def app_app_clips(app_id, options = {})
  get "/v1/apps/#{app_id}/appClips", options
end

#app_app_custom_product_pages(app_id, options = {}) ⇒ Object



90
91
92
# File 'lib/app_store_connect_api/domain/apps.rb', line 90

def app_app_custom_product_pages(app_id, options = {})
  get "/v1/apps/#{app_id}/appCustomProductPages", options
end

#app_app_infos(app_id, options = {}) ⇒ Object



75
76
77
# File 'lib/app_store_connect_api/domain/apps.rb', line 75

def app_app_infos(app_id, options = {})
  get "/v1/apps/#{app_id}/appInfos", options
end

#app_app_price_points(app_id, options = {}) ⇒ Object



65
66
67
# File 'lib/app_store_connect_api/domain/apps.rb', line 65

def app_app_price_points(app_id, options = {})
  get "/v1/apps/#{app_id}/appPricePoints", options
end

#app_app_price_schedule(app_id, options = {}) ⇒ Object



115
116
117
# File 'lib/app_store_connect_api/domain/apps.rb', line 115

def app_app_price_schedule(app_id, options = {})
  get "/v1/apps/#{app_id}/appPriceSchedule", options
end

#app_app_store_versions(app_id, options = {}) ⇒ Object



70
71
72
# File 'lib/app_store_connect_api/domain/apps.rb', line 70

def app_app_store_versions(app_id, options = {})
  get "/v1/apps/#{app_id}/appStoreVersions", options
end

#app_beta_app_localizations(app_id, options = {}) ⇒ Object



45
46
47
# File 'lib/app_store_connect_api/domain/apps.rb', line 45

def app_beta_app_localizations(app_id, options = {})
  get "/v1/apps/#{app_id}/betaAppLocalizations", options
end

#app_beta_app_review_detail(app_id, options = {}) ⇒ Object



35
36
37
# File 'lib/app_store_connect_api/domain/apps.rb', line 35

def app_beta_app_review_detail(app_id, options = {})
  get "/v1/apps/#{app_id}/betaAppReviewDetail", options
end

#app_beta_groups(app_id, options = {}) ⇒ Object



25
26
27
# File 'lib/app_store_connect_api/domain/apps.rb', line 25

def app_beta_groups(app_id, options = {})
  get "/v1/apps/#{app_id}/betaGroups", options
end

#app_beta_license_agreement(app_id, options = {}) ⇒ Object



40
41
42
# File 'lib/app_store_connect_api/domain/apps.rb', line 40

def app_beta_license_agreement(app_id, options = {})
  get "/v1/apps/#{app_id}/betaLicenseAgreement", options
end

#app_builds(app_id, options = {}) ⇒ Object



50
51
52
# File 'lib/app_store_connect_api/domain/apps.rb', line 50

def app_builds(app_id, options = {})
  get "/v1/apps/#{app_id}/builds", options
end

#app_customer_reviews(app_id, options = {}) ⇒ Object



110
111
112
# File 'lib/app_store_connect_api/domain/apps.rb', line 110

def app_customer_reviews(app_id, options = {})
  get "/v1/apps/#{app_id}/customerReviews", options
end

#app_end_user_license_agreement(app_id, options = {}) ⇒ Object



85
86
87
# File 'lib/app_store_connect_api/domain/apps.rb', line 85

def app_end_user_license_agreement(app_id, options = {})
  get "/v1/apps/#{app_id}/endUserLicenseAgreement", options
end

#app_in_app_purchases(app_id, options = {}) ⇒ Object



95
96
97
# File 'lib/app_store_connect_api/domain/apps.rb', line 95

def app_in_app_purchases(app_id, options = {})
  get "/v1/apps/#{app_id}/inAppPurchasesV2", options
end

#app_pre_order(app_id, options = {}) ⇒ Object



80
81
82
# File 'lib/app_store_connect_api/domain/apps.rb', line 80

def app_pre_order(app_id, options = {})
  get "/v1/apps/#{app_id}/preOrder", options
end

#app_prerelease_versions(app_id, options = {}) ⇒ Object



55
56
57
# File 'lib/app_store_connect_api/domain/apps.rb', line 55

def app_prerelease_versions(app_id, options = {})
  get "/v1/apps/#{app_id}/preReleaseVersions", options
end

#app_promoted_purchases(app_id, options = {}) ⇒ Object



100
101
102
# File 'lib/app_store_connect_api/domain/apps.rb', line 100

def app_promoted_purchases(app_id, options = {})
  get "/v1/apps/#{app_id}/promotedPurchases", options
end

#app_review_submissions(app_id, options = {}) ⇒ Object



105
106
107
# File 'lib/app_store_connect_api/domain/apps.rb', line 105

def app_review_submissions(app_id, options = {})
  get "/v1/apps/#{app_id}/reviewSubmissions", options
end

#apps(options = {}) ⇒ Object



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

def apps(options = {})
  get '/v1/apps', options
end

#remove_app_beta_testers(app_id, beta_tester_ids) ⇒ Object



30
31
32
# File 'lib/app_store_connect_api/domain/apps.rb', line 30

def remove_app_beta_testers(app_id, beta_tester_ids)
  delete "/v1/apps/#{app_id}/relationships/betaTesters", data: Utils::RelationshipMapper.resource_keys(beta_tester_ids, 'betaTesters')
end

#update_app(app_id, attributes = {}, app_price_ids = []) ⇒ Object



17
18
19
20
21
22
# File 'lib/app_store_connect_api/domain/apps.rb', line 17

def update_app(app_id, attributes = {}, app_price_ids = [])
  patch "/v1/apps/#{app_id}", data: { attributes: attributes,
                                      id: app_id,
                                      type: 'apps' },
                              included: Utils::RelationshipMapper.resource_keys(app_price_ids, 'appPrices')
end