app_store_connect 0.32.0 → 0.33.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: 1b0cf3a6465aade091a98df88de13c46aa7b121ec1a0b50b7f9b0caf69980155
4
- data.tar.gz: af3b403667fcd3cf3fe70365e18051b735574bc598f7fa1567d1013a957ff752
3
+ metadata.gz: 3ddbcb353c883b2dba3f10c3aa52bb0a3a9d6160d48dbe73550428ddef595291
4
+ data.tar.gz: 594356c9b235dc4e1dd6a930ba47d5ee3d67d12e887d1e931aa699f2d2b26e25
5
5
  SHA512:
6
- metadata.gz: 6d25d79565e2b8dcd71fe15a29537f81155144738b1271d493666e9a89935b0635bc81583d0909bf246e2cb10003610ac1d86fd0417994dcc724b651067a15c9
7
- data.tar.gz: f272e5b4fce17fc8d871f5f6466d5c33427bac9c013e71bf0c55e2b3ec71eab4eb57c7e4cdffc1a46eb2dab21dcce8266d0824c32a408f2ae396a8e46bdbe9f1
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:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_store_connect (0.32.0)
4
+ app_store_connect (0.33.0)
5
5
  activesupport (>= 6.0.0)
6
6
  jwt (>= 1.4)
7
7
 
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,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.32.0'
4
+ VERSION = '0.33.0'
5
5
  end
@@ -19,6 +19,8 @@ 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'
23
25
  require 'app_store_connect/beta_build_localization_create_request'
24
26
  require 'app_store_connect/beta_build_localization_modify_request'
@@ -334,6 +334,48 @@
334
334
  "url": "https://api.appstoreconnect.apple.com/v1/apps/{id}",
335
335
  "alias": "app"
336
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
+ },
337
379
  {
338
380
  "http_method": "get",
339
381
  "url": "https://api.appstoreconnect.apple.com/v1/apps/{id}/betaGroups",
@@ -792,6 +834,13 @@
792
834
  }
793
835
  ],
794
836
  "types": [
837
+ {
838
+ "type": "BundleIdPlatform",
839
+ "values": [
840
+ "IOS",
841
+ "MAC_OS"
842
+ ]
843
+ },
795
844
  {
796
845
  "type": "CapabilityType",
797
846
  "values": [
@@ -833,10 +882,11 @@
833
882
  ]
834
883
  },
835
884
  {
836
- "type": "BundleIdPlatform",
885
+ "type": "InAppPurchaseType",
837
886
  "values": [
838
- "IOS",
839
- "MAC_OS"
887
+ "CONSUMABLE",
888
+ "NON_CONSUMABLE",
889
+ "NON_RENEWING_SUBSCRIPTION"
840
890
  ]
841
891
  },
842
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.32.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
@@ -243,6 +244,8 @@ files:
243
244
  - lib/app_store_connect/object/type.rb
244
245
  - lib/app_store_connect/profile_create_request.rb
245
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
246
249
  - lib/app_store_connect/review_submission_create_request.rb
247
250
  - lib/app_store_connect/review_submission_item_create_request.rb
248
251
  - lib/app_store_connect/review_submission_update_request.rb