app_store_connect 0.35.0 → 0.37.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc0408c0134453d1ab4a61791c10e22a2bb22f2872cb73e1e8323489bdddaf96
4
- data.tar.gz: 3290a3571293cf80808feb4ed2b29169bc0091287d848fdf626dd2c0062c277a
3
+ metadata.gz: 7c2de00dda29abd9da8b87ce52e8f8e6eacf387d9607c29c8f03a390707b8f27
4
+ data.tar.gz: eb9072553b8f34d7729610ebade2ffdd123f3100e8253f854428f54751bf7c71
5
5
  SHA512:
6
- metadata.gz: 6714cda55b9c64af4fb39d6b934134e1c21914acc19ea1873890646d96c1d19d6124c512d84a4b1ff0e84dcb0db7514d9788868ed0849a344e1666903ff91c10
7
- data.tar.gz: 3e9d55bac6f710781a8b34a533df9a1e442553730fd96670406c1634d49686a5e27551d03d66027fe15d94545e7cc1bf4ffbcb1fa707561693c52c42d304247b
6
+ metadata.gz: 0fce51dd37645410baa0124ae6e841222ee0cd81b6568f6973dbb27c7a2a9b44a68aae04eba7c51d500d288e7863d96e6e911e4a940e15515fbff9a8ea2be18d
7
+ data.tar.gz: 8d7121973eafead5f0bbc1dae7c7a7177716312bfdefbe2189513c4b4f0ab69425dcc54027f8cda401239aac0bdd53a7cfa58fa1d9984dd7ddc0e30bffd19985
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.37.0](https://github.com/kyledecot/app_store_connect/tree/v0.37.0) (2023-02-14)
4
+
5
+ [Full Changelog](https://github.com/kyledecot/app_store_connect/compare/v0.36.0...v0.37.0)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Manage In-App Purchase Localizations and Price Points [\#133](https://github.com/kyledecot/app_store_connect/pull/133) ([tmarkanov](https://github.com/tmarkanov))
10
+
11
+ ## [v0.36.0](https://github.com/kyledecot/app_store_connect/tree/v0.36.0) (2023-02-08)
12
+
13
+ [Full Changelog](https://github.com/kyledecot/app_store_connect/compare/v0.35.0...v0.36.0)
14
+
15
+ ## [v0.35.0](https://github.com/kyledecot/app_store_connect/tree/v0.35.0) (2023-02-08)
16
+
17
+ [Full Changelog](https://github.com/kyledecot/app_store_connect/compare/v0.34.0...v0.35.0)
18
+
3
19
  ## [v0.34.0](https://github.com/kyledecot/app_store_connect/tree/v0.34.0) (2023-02-08)
4
20
 
5
21
  [Full Changelog](https://github.com/kyledecot/app_store_connect/compare/v0.33.0...v0.34.0)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_store_connect (0.35.0)
4
+ app_store_connect (0.37.0)
5
5
  activesupport (>= 6.0.0)
6
6
  jwt (>= 1.4)
7
7
 
data/README.md CHANGED
@@ -131,7 +131,57 @@ app_store_connect.create_review_submission_item(
131
131
  )
132
132
  ```
133
133
 
134
- ## Q&A
134
+ ### Create In-App Purchase Price Schedule
135
+
136
+ ```ruby
137
+
138
+ app_store_connect.create_in_app_purchase_price_schedule(relationships: {
139
+ manual_prices: {
140
+ data: [
141
+ {
142
+ type: 'inAppPurchasePrices',
143
+ id: '${price1}'
144
+ }
145
+ ]
146
+ },
147
+ in_app_purchase: {
148
+ data: {
149
+ type: 'inAppPurchases',
150
+ id: '<in-app-purchase-id>'
151
+ }
152
+ }
153
+ }, included: [
154
+ {
155
+ type: 'inAppPurchasePrices',
156
+ id: '${price1}',
157
+ attributes:
158
+ {
159
+ startDate: nil
160
+ },
161
+ relationships:
162
+ {
163
+ inAppPurchaseV2:
164
+ {
165
+ data:
166
+ {
167
+ type: 'inAppPurchases',
168
+ id: '<in-app-purchase-id>'
169
+ }
170
+ },
171
+ inAppPurchasePricePoint:
172
+ {
173
+ data:
174
+ {
175
+ type: 'inAppPurchasePricePoints',
176
+ id: '<price-point-id>'
177
+ }
178
+ }
179
+ }
180
+ }
181
+ ])
182
+ ```
183
+
184
+ ## FAQ
135
185
 
136
186
  ### How to understand the `devices, sales_reports, create_bundle_id` keyword seen in the demo?
137
187
 
@@ -145,6 +195,18 @@ It's function key from `schema.json` file.
145
195
 
146
196
  `http_body_type` have a value type. Based on this value, we can find the definition of the relevant configuration in the source code of ruby.
147
197
 
198
+ ### How to include related resources?
199
+
200
+ ```ruby
201
+ app_store_connect.in_app_purchase(id: 123, include: 'appStoreReviewScreenshot,pricePoints')
202
+ ```
203
+
204
+ ### How to filter fields?
205
+
206
+ ```ruby
207
+ app_store_connect.in_app_purchase(id: 123, fields: 'name,productId')
208
+ ```
209
+
148
210
  ## Development
149
211
 
150
212
  After checking out the repo, run `bundle install` to install dependencies. Then, run `rake spec` to run the tests. You can also run `rake console` for an interactive prompt that will allow you to experiment.
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'app_store_connect/create_request'
4
+
5
+ module AppStoreConnect
6
+ module Requests
7
+ module V1
8
+ module InAppPurchaseLocalization
9
+ class Create < CreateRequest
10
+ data do
11
+ type 'inAppPurchaseLocalizations'
12
+
13
+ attributes do
14
+ property :description
15
+ property :locale, required: true
16
+ property :name, required: true
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'app_store_connect/create_request'
4
+
5
+ module AppStoreConnect
6
+ module Requests
7
+ module V1
8
+ module InAppPurchaseLocalization
9
+ class Update < CreateRequest
10
+ data do
11
+ id
12
+ type 'inAppPurchaseLocalizations'
13
+
14
+ attributes do
15
+ property :description
16
+ property :name
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'app_store_connect/create_request'
4
+
5
+ module AppStoreConnect
6
+ module Requests
7
+ module V1
8
+ module InAppPurchasePriceSchedule
9
+ class Create < CreateRequest
10
+ data do
11
+ type 'inAppPurchasePriceSchedules'
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'app_store_connect/create_request'
4
+
5
+ module AppStoreConnect
6
+ module Requests
7
+ module V1
8
+ module InAppPurchaseReviewScreenshot
9
+ class Create < CreateRequest
10
+ data do
11
+ type 'inAppPurchaseAppStoreReviewScreenshots'
12
+
13
+ attributes do
14
+ property :file_name, required: true
15
+ property :file_size, required: true
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'app_store_connect/create_request'
4
+
5
+ module AppStoreConnect
6
+ module Requests
7
+ module V1
8
+ module InAppPurchaseSubmission
9
+ class Create < CreateRequest
10
+ data do
11
+ type 'inAppPurchaseSubmissions'
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppStoreConnect
4
- VERSION = '0.35.0'
4
+ VERSION = '0.37.0'
5
5
  end
@@ -19,6 +19,11 @@ require 'app_store_connect/bundle_id_capability_create_request'
19
19
  require 'app_store_connect/bundle_id_create_request'
20
20
  require 'app_store_connect/certificate_create_request'
21
21
  require 'app_store_connect/device_create_request'
22
+ require 'app_store_connect/requests/v1/in_app_purchase_localization/create'
23
+ require 'app_store_connect/requests/v1/in_app_purchase_localization/update'
24
+ require 'app_store_connect/requests/v1/in_app_purchase_price_schedule/create'
25
+ require 'app_store_connect/requests/v1/in_app_purchase_review_screenshot/create'
26
+ require 'app_store_connect/requests/v1/in_app_purchase_submission/create'
22
27
  require 'app_store_connect/requests/v2/in_app_purchase/create'
23
28
  require 'app_store_connect/requests/v2/in_app_purchase/update'
24
29
  require 'app_store_connect/profile_create_request'
@@ -339,6 +339,11 @@
339
339
  "url": "https://api.appstoreconnect.apple.com/v1/apps/{id}/pricePoints",
340
340
  "alias": "app_price_points"
341
341
  },
342
+ {
343
+ "http_method": "get",
344
+ "url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}",
345
+ "alias": "in_app_purchase"
346
+ },
342
347
  {
343
348
  "alias": "create_in_app_purchase",
344
349
  "http_body_type": "Requests::V2::InAppPurchase::Create",
@@ -357,9 +362,26 @@
357
362
  "url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}"
358
363
  },
359
364
  {
365
+ "alias": "create_in_app_purchase_submission",
366
+ "http_body_type": "Requests::V1::InAppPurchaseSubmission::Create",
367
+ "http_method": "post",
368
+ "url": "https://api.appstoreconnect.apple.com/v1/inAppPurchaseSubmissions"
369
+ },
370
+ {
371
+ "alias": "review_screenshot_for_in_app_purchase",
360
372
  "http_method": "get",
361
- "url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}",
362
- "alias": "in_app_purchase"
373
+ "url": "https://api.appstoreconnect.apple.com/v1/inAppPurchaseAppStoreReviewScreenshots/{id}"
374
+ },
375
+ {
376
+ "alias": "in_app_purchase_review_screenshot",
377
+ "http_method": "get",
378
+ "url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}/appStoreReviewScreenshot"
379
+ },
380
+ {
381
+ "alias": "create_in_app_purchase_review_screenshot",
382
+ "http_body_type": "Requests::V1::InAppPurchaseReviewScreenshot::Create",
383
+ "http_method": "post",
384
+ "url": "https://api.appstoreconnect.apple.com/v1/inAppPurchaseAppStoreReviewScreenshots"
363
385
  },
364
386
  {
365
387
  "http_method": "get",
@@ -372,9 +394,47 @@
372
394
  "alias": "in_app_purchase_price_points"
373
395
  },
374
396
  {
397
+ "alias": "create_in_app_purchase_price_schedule",
398
+ "http_body_type": "Requests::V1::InAppPurchasePriceSchedule::Create",
399
+ "http_method": "post",
400
+ "url": "https://api.appstoreconnect.apple.com/v1/inAppPurchasePriceSchedules"
401
+ },
402
+ {
403
+ "alias": "in_app_purchase_price_schedule",
375
404
  "http_method": "get",
376
- "url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}/inAppPurchaseLocalizations",
377
- "alias": "in_app_purchase_localizations"
405
+ "url": "https://api.appstoreconnect.apple.com/v1/inAppPurchasePriceSchedules/{id}"
406
+ },
407
+ {
408
+ "alias": "in_app_purchase_current_price_point",
409
+ "http_method": "get",
410
+ "url": "https://api.appstoreconnect.apple.com/v1/inAppPurchasePriceSchedules/{id}/manualPrices"
411
+ },
412
+ {
413
+ "alias": "in_app_purchase_localizations",
414
+ "http_method": "get",
415
+ "url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}/inAppPurchaseLocalizations"
416
+ },
417
+ {
418
+ "alias": "in_app_purchase_localization",
419
+ "http_method": "get",
420
+ "url": "https://api.appstoreconnect.apple.com/v1/inAppPurchaseLocalizations/{id}"
421
+ },
422
+ {
423
+ "alias": "create_in_app_purchase_localization",
424
+ "http_body_type": "Requests::V1::InAppPurchaseLocalization::Create",
425
+ "http_method": "post",
426
+ "url": "https://api.appstoreconnect.apple.com/v1/inAppPurchaseLocalizations"
427
+ },
428
+ {
429
+ "alias": "update_in_app_purchase_localization",
430
+ "http_body_type": "Requests::V1::InAppPurchaseLocalization::Update",
431
+ "http_method": "patch",
432
+ "url": "https://api.appstoreconnect.apple.com/v1/inAppPurchaseLocalizations/{id}"
433
+ },
434
+ {
435
+ "alias": "delete_in_app_purchase_localization",
436
+ "http_method": "delete",
437
+ "url": "https://api.appstoreconnect.apple.com/v1/inAppPurchaseLocalizations/{id}"
378
438
  },
379
439
  {
380
440
  "http_method": "get",
data/lib/tasks/git.rake CHANGED
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  namespace :git do
4
- task :add, [:flags] do |_task, args|
5
- `git add #{args[:flags]}`
4
+ task :add, [:extra] do |_task, args|
5
+ `git add #{args[:extra]}`
6
6
  end
7
7
 
8
8
  task :commit, [:message] do |_task, args|
@@ -13,7 +13,7 @@ namespace :git do
13
13
  `git tag #{args[:tag]}`
14
14
  end
15
15
 
16
- task :push, [:flags] do |_task, args|
17
- `git push #{args[:flags]}`
16
+ task :push, [:extra] do |_task, args|
17
+ `git push #{args[:extra]}`
18
18
  end
19
19
  end
@@ -12,5 +12,6 @@ task :release do
12
12
  Rake::Task['git:add'].invoke('-A')
13
13
  Rake::Task['git:commit'].invoke("v#{version}")
14
14
  Rake::Task['git:tag'].invoke("v#{version}")
15
- Rake::Task['git:push'].invoke('--follow-tags')
15
+ Rake::Task['git:push'].invoke('origin main')
16
+ Rake::Task['git:push'].invoke("origin v#{version}")
16
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_store_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.0
4
+ version: 0.37.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Decot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-08 00:00:00.000000000 Z
11
+ date: 2023-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -260,6 +260,11 @@ files:
260
260
  - lib/app_store_connect/object/type.rb
261
261
  - lib/app_store_connect/profile_create_request.rb
262
262
  - lib/app_store_connect/request.rb
263
+ - lib/app_store_connect/requests/v1/in_app_purchase_localization/create.rb
264
+ - lib/app_store_connect/requests/v1/in_app_purchase_localization/update.rb
265
+ - lib/app_store_connect/requests/v1/in_app_purchase_price_schedule/create.rb
266
+ - lib/app_store_connect/requests/v1/in_app_purchase_review_screenshot/create.rb
267
+ - lib/app_store_connect/requests/v1/in_app_purchase_submission/create.rb
263
268
  - lib/app_store_connect/requests/v2/in_app_purchase/create.rb
264
269
  - lib/app_store_connect/requests/v2/in_app_purchase/update.rb
265
270
  - lib/app_store_connect/review_submission_create_request.rb
@@ -299,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
304
  - !ruby/object:Gem::Version
300
305
  version: '0'
301
306
  requirements: []
302
- rubygems_version: 3.4.1
307
+ rubygems_version: 3.3.26
303
308
  signing_key:
304
309
  specification_version: 4
305
310
  summary: A Ruby interface to the App Store Connect API