app_store_connect 0.30.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46d75330d8f45544239511328cc4506fc789d32742e03362a35145d8a30cd057
4
- data.tar.gz: 33f8845d2784d1e8de83806d85d7aa6fff4b69129a1200d4f6a392f88b17ed6d
3
+ metadata.gz: 3ddbcb353c883b2dba3f10c3aa52bb0a3a9d6160d48dbe73550428ddef595291
4
+ data.tar.gz: 594356c9b235dc4e1dd6a930ba47d5ee3d67d12e887d1e931aa699f2d2b26e25
5
5
  SHA512:
6
- metadata.gz: 871d8d12b3e8005bef55a51f424715c00eea185ad19fd8d647de1d3632529d4d0b8a5b883ee893c73f36d0f52b9e2c6cba689db43d7e1963098f15e127a8b859
7
- data.tar.gz: 6f1a6d0c3c5bb66a9e101d1d266465c90515c0210b1d0863e8197e2a44e1c122e5d63621287722aa131fd26c389d553a31a471a23cbc1020ade4eac24024e0e6
6
+ metadata.gz: 4ac96e24758197bb8e096379d2a128c5aa6a46508baa1664ec001ca999ffa1cf8314f0150a23fdc949e05e4a8e28396ab97a1923f78bdcc50ffd8fdc16174f9e
7
+ data.tar.gz: 4324ba606bd03e91ec5df28de19d5681d19b7c71d9dde9ed096bbcfe610e158a38d0410f7be6dc692ac499bc628712dc2f33fcba9c06cbe87e056fbe1a37284c
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: Default
2
+ name: CI/CD
3
3
 
4
4
  on:
5
5
  push:
@@ -100,16 +100,13 @@ jobs:
100
100
  runs-on: ubuntu-latest
101
101
  if: ${{ startsWith(github.ref, 'refs/tags/v') }}
102
102
  needs: [test, lint]
103
- strategy:
104
- matrix:
105
- ruby_versions: [2.7, 3.0, 3.1, 3.2]
106
103
 
107
104
  steps:
108
105
  - uses: actions/checkout@v3
109
- - name: Set up Ruby ${{ matrix.ruby_versions }}
106
+ - name: Set up Ruby 3.2
110
107
  uses: ruby/setup-ruby@v1
111
108
  with:
112
- ruby-version: ${{ matrix.ruby_versions }}
109
+ ruby-version: 3.2
113
110
  - uses: actions/cache@v3
114
111
  with:
115
112
  path: vendor/bundle
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_store_connect (0.30.0)
4
+ app_store_connect (0.33.0)
5
5
  activesupport (>= 6.0.0)
6
6
  jwt (>= 1.4)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.4)
11
+ activesupport (7.0.4.2)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
@@ -17,7 +17,7 @@ GEM
17
17
  public_suffix (>= 2.0.2, < 6.0)
18
18
  ast (2.4.2)
19
19
  coderay (1.1.3)
20
- concurrent-ruby (1.1.10)
20
+ concurrent-ruby (1.2.0)
21
21
  crack (0.4.5)
22
22
  rexml
23
23
  diff-lcs (1.5.0)
@@ -50,7 +50,7 @@ GEM
50
50
  rb-inotify (~> 0.9, >= 0.9.10)
51
51
  lumberjack (1.2.8)
52
52
  method_source (1.0.0)
53
- minitest (5.16.3)
53
+ minitest (5.17.0)
54
54
  nenv (0.3.0)
55
55
  notiffany (0.1.3)
56
56
  nenv (~> 0.1)
@@ -105,7 +105,7 @@ GEM
105
105
  simplecov_json_formatter (0.1.4)
106
106
  thor (1.2.1)
107
107
  timecop (0.9.5)
108
- tzinfo (2.0.5)
108
+ tzinfo (2.0.6)
109
109
  concurrent-ruby (~> 1.0)
110
110
  unicode-display_width (2.3.0)
111
111
  webmock (3.18.1)
@@ -133,4 +133,4 @@ DEPENDENCIES
133
133
  webmock (~> 3.18.1)
134
134
 
135
135
  BUNDLED WITH
136
- 2.3.22
136
+ 2.3.24
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # App Store Connect
2
- [![Test](https://github.com/kyledecot/app_store_connect/workflows/Test/badge.svg)](https://github.com/kyledecot/app_store_connect/actions) [![Gem Version](https://badge.fury.io/rb/app_store_connect.svg)](https://badge.fury.io/rb/app_store_connect) [![Maintainability](https://api.codeclimate.com/v1/badges/eb09ffa68f84f8da0b6d/maintainability)](https://codeclimate.com/github/kyledecot/app_store_connect/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/eb09ffa68f84f8da0b6d/test_coverage)](https://codeclimate.com/github/kyledecot/app_store_connect/test_coverage)
2
+
3
+ [![CI/CD](https://github.com/kyledecot/app_store_connect/actions/workflows/default.yml/badge.svg)](https://github.com/kyledecot/app_store_connect/actions/workflows/default.yml)
3
4
 
4
5
  A Ruby interface to the [App Store Connect API](https://developer.apple.com/app-store-connect/api/)
5
6
 
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'app_store_connect'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'app_store_connect/create_request'
4
+
5
+ module AppStoreConnect
6
+ class BetaBuildLocalizationCreateRequest < CreateRequest
7
+ data do
8
+ type 'betaBuildLocalizations'
9
+
10
+ attributes do
11
+ property :locale, required: true
12
+ property :whats_new
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'app_store_connect/modify_request'
4
+
5
+ module AppStoreConnect
6
+ class BetaBuildLocalizationModifyRequest < ModifyRequest
7
+ data do
8
+ type 'betaBuildLocalizations'
9
+
10
+ attributes do
11
+ property :whats_new
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AppStoreConnect
4
+ class ModifyRequest
5
+ def self.inherited(klass)
6
+ super
7
+ klass.include(Object::Data)
8
+ end
9
+
10
+ def initialize(**kwargs)
11
+ @data = self.class::Data.new(kwargs)
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'app_store_connect/create_request'
4
+
5
+ module AppStoreConnect
6
+ module Requests
7
+ module V2
8
+ module InAppPurchase
9
+ class Create < CreateRequest
10
+ data do
11
+ type 'inAppPurchases'
12
+
13
+ attributes do
14
+ property :name, required: true
15
+ property :product_id, required: true
16
+ property :in_app_purchase_type, required: true
17
+ property :available_in_all_territories
18
+ property :family_sharable
19
+ property :review_note
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'app_store_connect/create_request'
4
+
5
+ module AppStoreConnect
6
+ module Requests
7
+ module V2
8
+ module InAppPurchase
9
+ class Update < CreateRequest
10
+ data do
11
+ id
12
+ type 'inAppPurchases'
13
+
14
+ attributes do
15
+ property :name
16
+ property :available_in_all_territories
17
+ property :family_sharable
18
+ property :review_note
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppStoreConnect
4
- VERSION = '0.30.0'
4
+ VERSION = '0.33.0'
5
5
  end
@@ -19,7 +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/v2/in_app_purchase/create'
23
+ require 'app_store_connect/requests/v2/in_app_purchase/update'
22
24
  require 'app_store_connect/profile_create_request'
25
+ require 'app_store_connect/beta_build_localization_create_request'
26
+ require 'app_store_connect/beta_build_localization_modify_request'
23
27
  require 'app_store_connect/review_submission_create_request'
24
28
  require 'app_store_connect/review_submission_item_create_request'
25
29
  require 'app_store_connect/review_submission_update_request'
@@ -132,6 +132,18 @@
132
132
  "http_body_type": "BundleIdCapabilityCreateRequest",
133
133
  "http_method": "post"
134
134
  },
135
+ {
136
+ "alias": "create_beta_build_localization",
137
+ "url": "https://api.appstoreconnect.apple.com/v1/betaBuildLocalizations",
138
+ "http_body_type": "BetaBuildLocalizationCreateRequest",
139
+ "http_method": "post"
140
+ },
141
+ {
142
+ "alias": "modify_beta_build_localization",
143
+ "url": "https://api.appstoreconnect.apple.com/v1/betaBuildLocalizations/{id}",
144
+ "http_body_type": "BetaBuildLocalizationModifyRequest",
145
+ "http_method": "patch"
146
+ },
135
147
  {
136
148
  "http_method": "get",
137
149
  "url": "https://api.appstoreconnect.apple.com/v1/users",
@@ -322,6 +334,48 @@
322
334
  "url": "https://api.appstoreconnect.apple.com/v1/apps/{id}",
323
335
  "alias": "app"
324
336
  },
337
+ {
338
+ "http_method": "get",
339
+ "url": "https://api.appstoreconnect.apple.com/v1/apps/{id}/pricePoints",
340
+ "alias": "app_price_points"
341
+ },
342
+ {
343
+ "alias": "create_in_app_purchase",
344
+ "http_body_type": "Requests::V2::InAppPurchase::Create",
345
+ "http_method": "post",
346
+ "url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases"
347
+ },
348
+ {
349
+ "alias": "update_in_app_purchase",
350
+ "http_body_type": "Requests::V2::InAppPurchase::Update",
351
+ "http_method": "patch",
352
+ "url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}"
353
+ },
354
+ {
355
+ "alias": "delete_in_app_purchase",
356
+ "http_method": "delete",
357
+ "url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}"
358
+ },
359
+ {
360
+ "http_method": "get",
361
+ "url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}",
362
+ "alias": "in_app_purchase"
363
+ },
364
+ {
365
+ "http_method": "get",
366
+ "url": "https://api.appstoreconnect.apple.com/v1/apps/{id}/inAppPurchasesV2",
367
+ "alias": "app_in_app_purchases"
368
+ },
369
+ {
370
+ "http_method": "get",
371
+ "url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}/pricePoints",
372
+ "alias": "in_app_purchase_price_points"
373
+ },
374
+ {
375
+ "http_method": "get",
376
+ "url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}/inAppPurchaseLocalizations",
377
+ "alias": "in_app_purchase_localizations"
378
+ },
325
379
  {
326
380
  "http_method": "get",
327
381
  "url": "https://api.appstoreconnect.apple.com/v1/apps/{id}/betaGroups",
@@ -780,6 +834,13 @@
780
834
  }
781
835
  ],
782
836
  "types": [
837
+ {
838
+ "type": "BundleIdPlatform",
839
+ "values": [
840
+ "IOS",
841
+ "MAC_OS"
842
+ ]
843
+ },
783
844
  {
784
845
  "type": "CapabilityType",
785
846
  "values": [
@@ -821,10 +882,11 @@
821
882
  ]
822
883
  },
823
884
  {
824
- "type": "BundleIdPlatform",
885
+ "type": "InAppPurchaseType",
825
886
  "values": [
826
- "IOS",
827
- "MAC_OS"
887
+ "CONSUMABLE",
888
+ "NON_CONSUMABLE",
889
+ "NON_RENEWING_SUBSCRIPTION"
828
890
  ]
829
891
  },
830
892
  {
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.30.0
4
+ version: 0.33.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-02 00:00:00.000000000 Z
11
+ date: 2023-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -215,6 +215,7 @@ files:
215
215
  - README.md
216
216
  - Rakefile
217
217
  - app_store_connect.gemspec
218
+ - bin/console
218
219
  - lib/app_store_connect.rb
219
220
  - lib/app_store_connect/app_store_version_build_linkage_request.rb
220
221
  - lib/app_store_connect/app_store_version_create_request.rb
@@ -222,6 +223,8 @@ files:
222
223
  - lib/app_store_connect/app_store_version_phased_release_update_request.rb
223
224
  - lib/app_store_connect/app_store_version_release_request_create_request.rb
224
225
  - lib/app_store_connect/app_store_version_update_request.rb
226
+ - lib/app_store_connect/beta_build_localization_create_request.rb
227
+ - lib/app_store_connect/beta_build_localization_modify_request.rb
225
228
  - lib/app_store_connect/build_update_request.rb
226
229
  - lib/app_store_connect/bundle_id_capability_create_request.rb
227
230
  - lib/app_store_connect/bundle_id_create_request.rb
@@ -233,6 +236,7 @@ files:
233
236
  - lib/app_store_connect/client/utils.rb
234
237
  - lib/app_store_connect/create_request.rb
235
238
  - lib/app_store_connect/device_create_request.rb
239
+ - lib/app_store_connect/modify_request.rb
236
240
  - lib/app_store_connect/object/attributes.rb
237
241
  - lib/app_store_connect/object/data.rb
238
242
  - lib/app_store_connect/object/id.rb
@@ -240,6 +244,8 @@ files:
240
244
  - lib/app_store_connect/object/type.rb
241
245
  - lib/app_store_connect/profile_create_request.rb
242
246
  - lib/app_store_connect/request.rb
247
+ - lib/app_store_connect/requests/v2/in_app_purchase/create.rb
248
+ - lib/app_store_connect/requests/v2/in_app_purchase/update.rb
243
249
  - lib/app_store_connect/review_submission_create_request.rb
244
250
  - lib/app_store_connect/review_submission_item_create_request.rb
245
251
  - lib/app_store_connect/review_submission_update_request.rb