Module: AppStoreConnectApi::Domain::AppPriceSchedules
- Included in:
- AppStoreConnectApi::Domain
- Defined in:
- lib/app_store_connect_api/domain/app_price_schedules.rb
Instance Method Summary collapse
- #app_price_schedule(app_price_schedule_id, options = {}) ⇒ Object
- #app_price_schedule_automatic_prices(app_price_schedule_id, options = {}) ⇒ Object
- #app_price_schedule_base_territory(app_price_schedule_id, options = {}) ⇒ Object
- #app_price_schedule_manual_prices(app_price_schedule_id, options = {}) ⇒ Object
- #create_app_price_schedule(relationships, app_price_ids = [], territory_ids = []) ⇒ Object
Instance Method Details
#app_price_schedule(app_price_schedule_id, options = {}) ⇒ Object
7 8 9 |
# File 'lib/app_store_connect_api/domain/app_price_schedules.rb', line 7 def app_price_schedule(app_price_schedule_id, = {}) get "/v1/appPriceSchedules/#{app_price_schedule_id}", end |
#app_price_schedule_automatic_prices(app_price_schedule_id, options = {}) ⇒ Object
20 21 22 |
# File 'lib/app_store_connect_api/domain/app_price_schedules.rb', line 20 def app_price_schedule_automatic_prices(app_price_schedule_id, = {}) get "/v1/appPriceSchedules/#{app_price_schedule_id}/automaticPrices", end |
#app_price_schedule_base_territory(app_price_schedule_id, options = {}) ⇒ Object
30 31 32 |
# File 'lib/app_store_connect_api/domain/app_price_schedules.rb', line 30 def app_price_schedule_base_territory(app_price_schedule_id, = {}) get "/v1/appPriceSchedules/#{app_price_schedule_id}/baseTerritory", end |
#app_price_schedule_manual_prices(app_price_schedule_id, options = {}) ⇒ Object
25 26 27 |
# File 'lib/app_store_connect_api/domain/app_price_schedules.rb', line 25 def app_price_schedule_manual_prices(app_price_schedule_id, = {}) get "/v1/appPriceSchedules/#{app_price_schedule_id}/manualPrices", end |
#create_app_price_schedule(relationships, app_price_ids = [], territory_ids = []) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/app_store_connect_api/domain/app_price_schedules.rb', line 12 def create_app_price_schedule(relationships, app_price_ids = [], territory_ids = []) post '/v1/appPriceSchedules', data: { relationships: Utils::RelationshipMapper.(relationships, 'manualPrices' => 'appPrices', 'baseTerritories' => 'territories'), included: Utils::RelationshipMapper.resource_keys(app_price_ids, 'appPrices') + Utils::RelationshipMapper.resource_keys(territory_ids, 'territories'), type: 'appPriceSchedules' } end |