app_store_dev_api 0.1.4 → 0.1.7
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 +4 -4
- data/.DS_Store +0 -0
- data/app_store_dev_api.gemspec +2 -2
- data/lib/app_store_dev_api/.DS_Store +0 -0
- data/lib/app_store_dev_api/base.rb +1 -1
- data/lib/app_store_dev_api/client/builder.rb +9 -9
- data/lib/app_store_dev_api/client.rb +9 -9
- data/lib/app_store_dev_api/object/data.rb +19 -1
- data/lib/app_store_dev_api/object/data_type.rb +23 -0
- data/lib/app_store_dev_api/request/body.rb +1 -1
- data/lib/app_store_dev_api/request.rb +2 -2
- data/lib/app_store_dev_api/requests/delete_with_body.rb +11 -0
- data/lib/app_store_dev_api/requests/v1/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/beta_build_localization/create.rb +15 -9
- data/lib/app_store_dev_api/requests/v1/beta_build_localization/update.rb +18 -9
- data/lib/app_store_dev_api/requests/v1/build_beta_detail/update.rb +20 -0
- data/lib/app_store_dev_api/requests/v1/build_beta_groups/create.rb +16 -0
- data/lib/app_store_dev_api/requests/v1/build_beta_groups/delete.rb +16 -0
- data/lib/app_store_dev_api/requests/v1/bundle_id/create.rb +22 -0
- data/lib/app_store_dev_api/requests/v1/bundle_id_capability/create.rb +23 -0
- data/lib/app_store_dev_api/requests/v1/certificate/create.rb +22 -0
- data/lib/app_store_dev_api/requests/v1/device/create.rb +23 -0
- data/lib/app_store_dev_api/requests/v1/profile/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/profile/create.rb +31 -0
- data/lib/app_store_dev_api/requests/v1/subscription/update.rb +1 -1
- data/lib/app_store_dev_api/requests/v1/subscription_introductory_offer/delete.rb +19 -0
- data/lib/app_store_dev_api/{specification → requests/v1/subscription_price_change_consent_reason}/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/subscription_price_change_consent_reason/create.rb +16 -0
- data/lib/app_store_dev_api/version.rb +1 -1
- data/lib/config/schema.json +31 -18
- data/lib/tasks/changelog.rake +2 -2
- data/lib/tasks/console.rake +1 -1
- data/lib/tasks/push.rake +2 -2
- data/lib/tasks/version.rake +1 -1
- metadata +19 -11
- data/lib/app_store_dev_api/bundle_id_capability_create_request.rb +0 -13
- data/lib/app_store_dev_api/bundle_id_create_request.rb +0 -16
- data/lib/app_store_dev_api/certificate_create_request.rb +0 -14
- data/lib/app_store_dev_api/device_create_request.rb +0 -15
- data/lib/app_store_dev_api/profile_create_request.rb +0 -14
- /data/lib/app_store_dev_api/{user_invitation_create_request.rb → request/user_invitation_create_request.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec038f6917e42de1ca7db66c613cd0f92500f15da21602b967bbaa63cfbeac1c
|
4
|
+
data.tar.gz: 8509f5aeca20ee511987c064def3c4eeb6517d9edcc9ff8624930bb3a0b53eaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f5b9f63d31ca8f196cc9376700dbabbe1c07f3bbdf64d8aecf29551fadeae4c207c9c0ad0a26e894b04f5bd9522cb80c700c3ea63e92330d8c1cea1d4f13f7d
|
7
|
+
data.tar.gz: d1228a1ce80540f87dfdc67c60d0a023dca4c3ec147975b884163cc015f3363606d4d67833ae47258a67865df586c2ef08c8b6399dcc400bae3621de490c294b
|
data/.DS_Store
CHANGED
Binary file
|
data/app_store_dev_api.gemspec
CHANGED
@@ -11,8 +11,8 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.authors = ["wade"]
|
12
12
|
spec.email = ["wade@gmail.com"]
|
13
13
|
|
14
|
-
spec.summary = "easy work for
|
15
|
-
spec.description = "easy work for
|
14
|
+
spec.summary = "easy work for app_store_dev_api work"
|
15
|
+
spec.description = "easy work for app_store_dev_api"
|
16
16
|
spec.homepage = "https://github.com/wade0317/app_store_dev_api.git."
|
17
17
|
spec.license = "MIT"
|
18
18
|
|
Binary file
|
@@ -68,7 +68,7 @@ module AppStoreDevApi
|
|
68
68
|
headers: headers
|
69
69
|
}
|
70
70
|
|
71
|
-
options[:http_body] = http_body(web_service_endpoint, **kwargs) if
|
71
|
+
options[:http_body] = http_body(web_service_endpoint, **kwargs) if web_service_endpoint.http_body_type.present?
|
72
72
|
|
73
73
|
Request.new(**options)
|
74
74
|
end
|
@@ -38,35 +38,35 @@ module AppStoreDevApi
|
|
38
38
|
"alias": 'create_certificate',
|
39
39
|
"http_method": 'post',
|
40
40
|
"url": 'https://api.appstoreconnect.apple.com/v1/certificates',
|
41
|
-
"http_body_type": '
|
42
|
-
"see": 'https://developer.apple.com/documentation/
|
41
|
+
"http_body_type": 'Requests::V1::Certificate::Create',
|
42
|
+
"see": 'https://developer.apple.com/documentation/appstoreconnectapi'
|
43
43
|
},
|
44
44
|
{
|
45
45
|
"http_method": 'delete',
|
46
46
|
"url": 'https://api.appstoreconnect.apple.com/v1/users/{id}/relationships/visibleApps',
|
47
47
|
"alias": 'delete_visible_app',
|
48
|
-
"see": 'https://developer.apple.com/documentation/
|
48
|
+
"see": 'https://developer.apple.com/documentation/appstoreconnectapi'
|
49
49
|
},
|
50
50
|
{
|
51
51
|
"alias": 'create_bundle_id',
|
52
52
|
"url": 'https://api.appstoreconnect.apple.com/v1/bundleIds',
|
53
|
-
"http_body_type": '
|
53
|
+
"http_body_type": 'Requests::V1::BundleId::Create',
|
54
54
|
"http_method": 'post',
|
55
|
-
"see": 'https://developer.apple.com/documentation/
|
55
|
+
"see": 'https://developer.apple.com/documentation/appstoreconnectapi/register_a_new_bundle_id'
|
56
56
|
},
|
57
57
|
{
|
58
58
|
"alias": 'create_bundle_id_capability',
|
59
59
|
"url": 'https://api.appstoreconnect.apple.com/v1/bundleIdCapabilities',
|
60
|
-
"http_body_type": '
|
60
|
+
"http_body_type": 'Requests::V1::BundleIdCapability::Create',
|
61
61
|
"http_method": 'post',
|
62
|
-
"see": 'https://developer.apple.com/documentation/
|
62
|
+
"see": 'https://developer.apple.com/documentation/appstoreconnectapi'
|
63
63
|
},
|
64
64
|
{
|
65
65
|
"alias": 'create_beta_build_localization',
|
66
66
|
"url": 'https://api.appstoreconnect.apple.com/v1/betaBuildLocalizations',
|
67
|
-
"http_body_type": '
|
67
|
+
"http_body_type": 'Requests::V1::BetaBuildLocalization::Create',
|
68
68
|
"http_method": 'post',
|
69
|
-
"see": 'https://developer.apple.com/documentation/
|
69
|
+
"see": 'https://developer.apple.com/documentation/appstoreconnectapi'
|
70
70
|
}
|
71
71
|
].map(&:symbolize_keys)
|
72
72
|
end
|
@@ -9,18 +9,18 @@
|
|
9
9
|
module AppStoreDevApi
|
10
10
|
class Client < Base
|
11
11
|
#
|
12
|
-
# @see https://developer.apple.com/documentation/
|
12
|
+
# @see https://developer.apple.com/documentation/appstoreconnectapi
|
13
13
|
#
|
14
14
|
def create_certificate(**kwargs)
|
15
15
|
web_service_endpoint = Schema::WebServiceEndpoint.new(
|
16
|
-
{ http_body_type: '
|
16
|
+
{ http_body_type: 'Requests::V1::Certificate::Create', http_method: 'post', url: 'https://api.appstoreconnect.apple.com/v1/certificates' }
|
17
17
|
)
|
18
18
|
|
19
19
|
call(web_service_endpoint, **kwargs)
|
20
20
|
end
|
21
21
|
|
22
22
|
#
|
23
|
-
# @see https://developer.apple.com/documentation/
|
23
|
+
# @see https://developer.apple.com/documentation/appstoreconnectapi
|
24
24
|
#
|
25
25
|
def delete_visible_app(**kwargs)
|
26
26
|
web_service_endpoint = Schema::WebServiceEndpoint.new(
|
@@ -31,33 +31,33 @@ module AppStoreDevApi
|
|
31
31
|
end
|
32
32
|
|
33
33
|
#
|
34
|
-
# @see https://developer.apple.com/documentation/
|
34
|
+
# @see https://developer.apple.com/documentation/appstoreconnectapi/register_a_new_bundle_id
|
35
35
|
#
|
36
36
|
def create_bundle_id(**kwargs)
|
37
37
|
web_service_endpoint = Schema::WebServiceEndpoint.new(
|
38
|
-
{ http_body_type: '
|
38
|
+
{ http_body_type: 'Requests::V1::BundleId::Create', http_method: 'post', url: 'https://api.appstoreconnect.apple.com/v1/bundleIds' }
|
39
39
|
)
|
40
40
|
|
41
41
|
call(web_service_endpoint, **kwargs)
|
42
42
|
end
|
43
43
|
|
44
44
|
#
|
45
|
-
# @see https://developer.apple.com/documentation/
|
45
|
+
# @see https://developer.apple.com/documentation/appstoreconnectapi
|
46
46
|
#
|
47
47
|
def create_bundle_id_capability(**kwargs)
|
48
48
|
web_service_endpoint = Schema::WebServiceEndpoint.new(
|
49
|
-
{ http_body_type: '
|
49
|
+
{ http_body_type: 'Requests::V1::BundleIdCapability::Create', http_method: 'post', url: 'https://api.appstoreconnect.apple.com/v1/bundleIdCapabilities' }
|
50
50
|
)
|
51
51
|
|
52
52
|
call(web_service_endpoint, **kwargs)
|
53
53
|
end
|
54
54
|
|
55
55
|
#
|
56
|
-
# @see https://developer.apple.com/documentation/
|
56
|
+
# @see https://developer.apple.com/documentation/appstoreconnectapi
|
57
57
|
#
|
58
58
|
def create_beta_build_localization(**kwargs)
|
59
59
|
web_service_endpoint = Schema::WebServiceEndpoint.new(
|
60
|
-
{ http_body_type: '
|
60
|
+
{ http_body_type: 'Requests::V1::BetaBuildLocalization::Create', http_method: 'post', url: 'https://api.appstoreconnect.apple.com/v1/betaBuildLocalizations' }
|
61
61
|
)
|
62
62
|
|
63
63
|
call(web_service_endpoint, **kwargs)
|
@@ -11,12 +11,14 @@ module AppStoreDevApi
|
|
11
11
|
attr_reader :data
|
12
12
|
|
13
13
|
klass = Class.new do |data|
|
14
|
+
include Object::DataType
|
14
15
|
include Object::Attributes
|
15
16
|
include Object::Type
|
16
17
|
include Object::Id
|
17
18
|
|
18
19
|
data.send(:define_method, :initialize) do |**kwargs|
|
19
20
|
instance_variable_set('@relationships', kwargs.delete(:relationships).to_h)
|
21
|
+
instance_variable_set('@data', Array(kwargs.delete(:data)))
|
20
22
|
instance_variable_set('@attributes', data::Attributes.new(**kwargs))
|
21
23
|
instance_variable_set('@id', kwargs[id_arg_name])
|
22
24
|
end
|
@@ -30,13 +32,29 @@ module AppStoreDevApi
|
|
30
32
|
props[:id] = @id if id?
|
31
33
|
props.reject { |_k, v| v.blank? }
|
32
34
|
end
|
35
|
+
|
36
|
+
def to_a
|
37
|
+
@data.each do |item|
|
38
|
+
item[:type] = type
|
39
|
+
end
|
40
|
+
@data
|
41
|
+
end
|
42
|
+
|
43
|
+
def to_data_type
|
44
|
+
if data_type == Array
|
45
|
+
to_a
|
46
|
+
else
|
47
|
+
to_h
|
48
|
+
end
|
49
|
+
end
|
33
50
|
end
|
34
51
|
|
35
52
|
const_set('Data', klass)
|
36
53
|
end
|
37
54
|
|
38
55
|
class_methods do
|
39
|
-
def data(&block)
|
56
|
+
def data(type = Hash, &block)
|
57
|
+
self::Data.data_type = type
|
40
58
|
self::Data.class_eval(&block)
|
41
59
|
end
|
42
60
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'active_support/concern'
|
4
|
+
|
5
|
+
module AppStoreDevApi
|
6
|
+
module Object
|
7
|
+
module DataType
|
8
|
+
extend ActiveSupport::Concern
|
9
|
+
|
10
|
+
class_methods do
|
11
|
+
def data_type=(type)
|
12
|
+
@data_type = type
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
included do
|
17
|
+
def data_type
|
18
|
+
self.class.instance_variable_get('@data_type')
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -63,7 +63,7 @@ module AppStoreDevApi
|
|
63
63
|
def body
|
64
64
|
return if http_method == :get
|
65
65
|
|
66
|
-
@options.fetch(:http_body)
|
66
|
+
@options.fetch(:http_body, nil)
|
67
67
|
end
|
68
68
|
|
69
69
|
def url_parameter_names(web_service_endpoint)
|
@@ -77,7 +77,7 @@ module AppStoreDevApi
|
|
77
77
|
case http_method
|
78
78
|
when :get then Net::HTTP::Get
|
79
79
|
when :post then Net::HTTP::Post
|
80
|
-
when :delete then
|
80
|
+
when :delete then Requests::DeleteWithBody
|
81
81
|
when :patch then Net::HTTP::Patch
|
82
82
|
else
|
83
83
|
raise UnsupportedHTTPMethod, http_method
|
Binary file
|
@@ -1,14 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module AppStoreDevApi
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module BetaBuildLocalization
|
7
|
+
class Create < Request::Body
|
8
|
+
data do
|
9
|
+
type 'betaBuildLocalizations'
|
7
10
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
attributes do
|
12
|
+
property :locale, required: true
|
13
|
+
property :whats_new
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
14
20
|
end
|
@@ -1,13 +1,22 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
|
4
|
+
|
3
5
|
module AppStoreDevApi
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
module Requests
|
7
|
+
module V1
|
8
|
+
module BetaBuildLocalization
|
9
|
+
class Update < Request::Body
|
10
|
+
data do
|
11
|
+
type 'betaBuildLocalizations'
|
12
|
+
|
13
|
+
attributes do
|
14
|
+
property :whats_new
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
13
21
|
end
|
22
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module BuildBetaDetail
|
7
|
+
class Update < Request::Body
|
8
|
+
data do
|
9
|
+
id
|
10
|
+
type 'buildBetaDetails'
|
11
|
+
|
12
|
+
attributes do
|
13
|
+
property :auto_notify_enabled
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module BundleId
|
7
|
+
class Create < Request::Body
|
8
|
+
data do
|
9
|
+
type 'bundleIds'
|
10
|
+
|
11
|
+
attributes do
|
12
|
+
property :identifier, required: true
|
13
|
+
property :name, required: true
|
14
|
+
property :platform, required: true
|
15
|
+
property :seed_id
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
module AppStoreDevApi
|
6
|
+
module Requests
|
7
|
+
module V1
|
8
|
+
module BundleIdCapability
|
9
|
+
class Create < Request::Body
|
10
|
+
data do
|
11
|
+
type 'bundleIdCapabilities'
|
12
|
+
|
13
|
+
attributes do
|
14
|
+
property :capability_type, required: true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
|
4
|
+
module AppStoreDevApi
|
5
|
+
module Requests
|
6
|
+
module V1
|
7
|
+
module Certificate
|
8
|
+
class Create < Request::Body
|
9
|
+
data do
|
10
|
+
type 'certificates'
|
11
|
+
|
12
|
+
attributes do
|
13
|
+
property :certificate_type, required: true
|
14
|
+
property :csr_content, required: true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
|
4
|
+
module AppStoreDevApi
|
5
|
+
module Requests
|
6
|
+
module V1
|
7
|
+
module Device
|
8
|
+
class Create < Request::Body
|
9
|
+
data do
|
10
|
+
type 'devices'
|
11
|
+
|
12
|
+
attributes do
|
13
|
+
property :name, required: true
|
14
|
+
property :platform, required: true
|
15
|
+
property :udid, required: true
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
Binary file
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
module AppStoreDevApi
|
6
|
+
module Requests
|
7
|
+
module V1
|
8
|
+
module Profile
|
9
|
+
class Create < Request::Body
|
10
|
+
data do
|
11
|
+
type 'profiles'
|
12
|
+
|
13
|
+
attributes do
|
14
|
+
property :name, required: true
|
15
|
+
property :profile_type, required: true
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
module AppStoreDevApi
|
28
|
+
class ProfileCreateRequest < Request::Body
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
|
4
|
+
module AppStoreDevApi
|
5
|
+
module Requests
|
6
|
+
module V1
|
7
|
+
module SubscriptionIntroductoryOffer
|
8
|
+
class Delete < Request::Body
|
9
|
+
|
10
|
+
data(Array) do
|
11
|
+
id
|
12
|
+
type 'subscriptionIntroductoryOffers'
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
Binary file
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module SubscriptionPriceChangeConsentReason
|
7
|
+
class Create < Request::Body
|
8
|
+
data do
|
9
|
+
type 'subscriptionPriceChangeConsentReasons'
|
10
|
+
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/config/schema.json
CHANGED
@@ -96,35 +96,35 @@
|
|
96
96
|
"alias": "create_profile",
|
97
97
|
"http_method": "post",
|
98
98
|
"url": "https://api.appstoreconnect.apple.com/v1/profiles",
|
99
|
-
"http_body_type": "
|
99
|
+
"http_body_type": "Requests::V1::Profile::Create"
|
100
100
|
},
|
101
101
|
{
|
102
102
|
"alias": "create_device",
|
103
103
|
"http_method": "post",
|
104
104
|
"url": "https://api.appstoreconnect.apple.com/v1/devices",
|
105
|
-
"http_body_type": "
|
105
|
+
"http_body_type": "Requests::V1::Device::Create"
|
106
106
|
},
|
107
107
|
{
|
108
108
|
"alias": "create_user_invitation",
|
109
109
|
"url": "https://api.appstoreconnect.apple.com/v1/userInvitations",
|
110
|
-
"http_body_type": "
|
110
|
+
"http_body_type": "Requests::V1::UserInvitation::Create",
|
111
111
|
"http_method": "post"
|
112
112
|
},
|
113
113
|
{
|
114
114
|
"alias": "modify_beta_build_localization",
|
115
115
|
"url": "https://api.appstoreconnect.apple.com/v1/betaBuildLocalizations/{id}",
|
116
|
-
"http_body_type": "
|
116
|
+
"http_body_type": "Requests::V1::BetaBuildLocalization::Update",
|
117
117
|
"http_method": "patch"
|
118
118
|
},
|
119
119
|
{
|
120
120
|
"http_method": "get",
|
121
121
|
"url": "https://api.appstoreconnect.apple.com/v1/users",
|
122
|
-
"alias": "
|
122
|
+
"alias": "list_users"
|
123
123
|
},
|
124
124
|
{
|
125
125
|
"http_method": "get",
|
126
126
|
"url": "https://api.appstoreconnect.apple.com/v1/users/{id}",
|
127
|
-
"alias": "
|
127
|
+
"alias": "read_user_info"
|
128
128
|
},
|
129
129
|
{
|
130
130
|
"http_method": "get",
|
@@ -338,7 +338,7 @@
|
|
338
338
|
"url": "https://api.appstoreconnect.apple.com/v1/appPriceSchedules/{id}/baseTerritory"
|
339
339
|
},
|
340
340
|
{
|
341
|
-
"alias": "
|
341
|
+
"alias": "create_app_price_schedule",
|
342
342
|
"http_method": "post",
|
343
343
|
"http_body_type": "Requests::V1::AppPriceSchedule::Update",
|
344
344
|
"url": "https://api.appstoreconnect.apple.com/v1/appPriceSchedules"
|
@@ -591,7 +591,7 @@
|
|
591
591
|
"url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}/inAppPurchaseLocalizations"
|
592
592
|
},
|
593
593
|
{
|
594
|
-
"alias": "
|
594
|
+
"alias": "read_review_screenshot_for_in_app_purchase",
|
595
595
|
"http_method": "get",
|
596
596
|
"url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}/appStoreReviewScreenshot"
|
597
597
|
},
|
@@ -681,7 +681,7 @@
|
|
681
681
|
"url": "https://api.appstoreconnect.apple.com/v1/inAppPurchaseLocalizations/{id}"
|
682
682
|
},
|
683
683
|
{
|
684
|
-
"alias": "
|
684
|
+
"alias": "read_in_app_purchase_review_screenshot",
|
685
685
|
"http_method": "get",
|
686
686
|
"url": "https://api.appstoreconnect.apple.com/v1/inAppPurchaseAppStoreReviewScreenshots/{id}"
|
687
687
|
},
|
@@ -789,23 +789,24 @@
|
|
789
789
|
"url": "https://api.appstoreconnect.apple.com/v1/subscriptions/{id}/subscriptionLocalizations"
|
790
790
|
},
|
791
791
|
{
|
792
|
-
"alias": "
|
792
|
+
"alias": "list_all_introductory_offers_for_subscription",
|
793
793
|
"http_method": "get",
|
794
794
|
"url": "https://api.appstoreconnect.apple.com/v1/subscriptions/{id}/introductoryOffers"
|
795
795
|
},
|
796
796
|
{
|
797
|
-
"alias": "
|
797
|
+
"alias": "list_all_introductory_offers_ids_for_subscription",
|
798
798
|
"http_method": "get",
|
799
799
|
"url": "https://api.appstoreconnect.apple.com/v1/subscriptions/{id}/relationships/introductoryOffers"
|
800
800
|
},
|
801
801
|
{
|
802
|
-
"alias": "
|
802
|
+
"alias": "delete_introductory_offers_for_subscription",
|
803
803
|
"http_method": "delete",
|
804
|
-
"
|
804
|
+
"http_body_type": "Requests::V1::SubscriptionIntroductoryOffer::Delete",
|
805
|
+
"url": "https://api.appstoreconnect.apple.com/v1/subscriptions/{id}/relationships/introductoryOffers"
|
805
806
|
},
|
806
807
|
{
|
807
808
|
"alias": "read_subscription_promoted_purchase_info",
|
808
|
-
"http_method": "
|
809
|
+
"http_method": "get",
|
809
810
|
"url": "https://api.appstoreconnect.apple.com/v1/subscriptions/{id}/promotedPurchase"
|
810
811
|
},
|
811
812
|
{
|
@@ -816,7 +817,7 @@
|
|
816
817
|
{
|
817
818
|
"alias": "list_subscription_promotional_offer_resoure_ids",
|
818
819
|
"http_method": "get",
|
819
|
-
"url": "https://api.appstoreconnect.apple.com/v1/subscriptions/{id}/relationships/
|
820
|
+
"url": "https://api.appstoreconnect.apple.com/v1/subscriptions/{id}/relationships/promotionalOffers"
|
820
821
|
},
|
821
822
|
{
|
822
823
|
"alias": "list_subscription_price_points",
|
@@ -839,7 +840,13 @@
|
|
839
840
|
"url": "https://api.appstoreconnect.apple.com/v1/subscriptions/{id}/relationships/prices"
|
840
841
|
},
|
841
842
|
{
|
842
|
-
"alias": "
|
843
|
+
"alias": "create_subscription_price_schedule",
|
844
|
+
"http_body_type": "Requests::V1::SubscriptionPriceSchedule::Create",
|
845
|
+
"http_method": "post",
|
846
|
+
"url": "https://api.appstoreconnect.apple.com/v1/subscriptionPriceSchedules"
|
847
|
+
},
|
848
|
+
{
|
849
|
+
"alias": "read_review_screenshot_for_subscription",
|
843
850
|
"http_method": "get",
|
844
851
|
"url": "https://api.appstoreconnect.apple.com/v1/subscriptions/{id}/appStoreReviewScreenshot"
|
845
852
|
},
|
@@ -886,6 +893,12 @@
|
|
886
893
|
"http_method": "delete",
|
887
894
|
"url": "https://api.appstoreconnect.apple.com/v1/subscriptionPrices/{id}"
|
888
895
|
},
|
896
|
+
{
|
897
|
+
"alias": "create_subscription_price_change_consent_reason",
|
898
|
+
"http_body_type": "Requests::V1::SubscriptionPriceChangeConsentReason::Create",
|
899
|
+
"http_method": "post",
|
900
|
+
"url": "https://api.appstoreconnect.apple.com/v1/subscriptionPriceChangeConsentReasons"
|
901
|
+
},
|
889
902
|
{
|
890
903
|
"alias": "read_subscription_availability",
|
891
904
|
"http_method": "get",
|
@@ -903,7 +916,7 @@
|
|
903
916
|
"url": "https://api.appstoreconnect.apple.com/v1/subscriptionAvailabilities"
|
904
917
|
},
|
905
918
|
{
|
906
|
-
"alias": "
|
919
|
+
"alias": "read_subscription_review_screenshot",
|
907
920
|
"http_method": "get",
|
908
921
|
"url": "https://api.appstoreconnect.apple.com/v1/subscriptionAppStoreReviewScreenshots/{id}"
|
909
922
|
},
|
@@ -914,7 +927,7 @@
|
|
914
927
|
"url": "https://api.appstoreconnect.apple.com/v1/subscriptionAppStoreReviewScreenshots"
|
915
928
|
},
|
916
929
|
{
|
917
|
-
"alias": "
|
930
|
+
"alias": "update_subscription_review_screenshot",
|
918
931
|
"http_body_type": "Requests::V1::SubscriptionReviewScreenshot::Update",
|
919
932
|
"http_method": "patch",
|
920
933
|
"url": "https://api.appstoreconnect.apple.com/v1/subscriptionAppStoreReviewScreenshots/{id}"
|
data/lib/tasks/changelog.rake
CHANGED
@@ -4,8 +4,8 @@ require 'github_changelog_generator'
|
|
4
4
|
|
5
5
|
task :changelog, [:release] do |_task, args|
|
6
6
|
options = GitHubChangelogGenerator::Parser.default_options
|
7
|
-
options[:user] = '
|
8
|
-
options[:project] = '
|
7
|
+
options[:user] = 'wade'
|
8
|
+
options[:project] = 'app_store_dev_api'
|
9
9
|
options[:future_release] = args[:release]
|
10
10
|
|
11
11
|
generator = GitHubChangelogGenerator::Generator.new(options)
|
data/lib/tasks/console.rake
CHANGED
data/lib/tasks/push.rake
CHANGED
@@ -4,7 +4,7 @@ require 'app_store_dev_api/version'
|
|
4
4
|
|
5
5
|
version = AppStoreDevApi::VERSION
|
6
6
|
|
7
|
-
desc "Push
|
7
|
+
desc "Push app_store_dev_api-#{version}.gem"
|
8
8
|
task :push, [:key] do |_task, args|
|
9
9
|
args.with_defaults(key: 'rubygems')
|
10
10
|
|
@@ -14,5 +14,5 @@ task :push, [:key] do |_task, args|
|
|
14
14
|
github: 'https://rubygems.pkg.github.com/kyledecot'
|
15
15
|
}.fetch(key)
|
16
16
|
|
17
|
-
sh %(gem push --key=#{key} --host=#{host}
|
17
|
+
sh %(gem push --key=#{key} --host=#{host} app_store_dev_api-#{version}.gem)
|
18
18
|
end
|
data/lib/tasks/version.rake
CHANGED
@@ -12,7 +12,7 @@ namespace :version do
|
|
12
12
|
desc 'Increment version'
|
13
13
|
task :increment do
|
14
14
|
version = Semantic::Version.new(AppStoreDevApi::VERSION)
|
15
|
-
path = File.expand_path(File.join('..', '
|
15
|
+
path = File.expand_path(File.join('..', 'app_store_dev_api', 'version.rb'), __dir__)
|
16
16
|
new_version = version.increment!(:minor).to_s
|
17
17
|
|
18
18
|
File.open(path, 'r+') do |file|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_store_dev_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -248,7 +248,7 @@ dependencies:
|
|
248
248
|
- - "~>"
|
249
249
|
- !ruby/object:Gem::Version
|
250
250
|
version: 3.18.1
|
251
|
-
description: easy work for
|
251
|
+
description: easy work for app_store_dev_api
|
252
252
|
email:
|
253
253
|
- wade@gmail.com
|
254
254
|
executables: []
|
@@ -273,27 +273,25 @@ files:
|
|
273
273
|
- lib/app_store_dev_api.rb
|
274
274
|
- lib/app_store_dev_api/.DS_Store
|
275
275
|
- lib/app_store_dev_api/base.rb
|
276
|
-
- lib/app_store_dev_api/bundle_id_capability_create_request.rb
|
277
|
-
- lib/app_store_dev_api/bundle_id_create_request.rb
|
278
|
-
- lib/app_store_dev_api/certificate_create_request.rb
|
279
276
|
- lib/app_store_dev_api/client.rb
|
280
277
|
- lib/app_store_dev_api/client/authorization.rb
|
281
278
|
- lib/app_store_dev_api/client/builder.rb
|
282
279
|
- lib/app_store_dev_api/client/options.rb
|
283
280
|
- lib/app_store_dev_api/client/registry.rb
|
284
281
|
- lib/app_store_dev_api/client/utils.rb
|
285
|
-
- lib/app_store_dev_api/device_create_request.rb
|
286
282
|
- lib/app_store_dev_api/object/attributes.rb
|
287
283
|
- lib/app_store_dev_api/object/data.rb
|
284
|
+
- lib/app_store_dev_api/object/data_type.rb
|
288
285
|
- lib/app_store_dev_api/object/id.rb
|
289
286
|
- lib/app_store_dev_api/object/included.rb
|
290
287
|
- lib/app_store_dev_api/object/properties.rb
|
291
288
|
- lib/app_store_dev_api/object/type.rb
|
292
|
-
- lib/app_store_dev_api/profile_create_request.rb
|
293
289
|
- lib/app_store_dev_api/request.rb
|
294
290
|
- lib/app_store_dev_api/request/body.rb
|
295
291
|
- lib/app_store_dev_api/request/builder/create.rb
|
292
|
+
- lib/app_store_dev_api/request/user_invitation_create_request.rb
|
296
293
|
- lib/app_store_dev_api/requests/.DS_Store
|
294
|
+
- lib/app_store_dev_api/requests/delete_with_body.rb
|
297
295
|
- lib/app_store_dev_api/requests/v1/.DS_Store
|
298
296
|
- lib/app_store_dev_api/requests/v1/app/.DS_Store
|
299
297
|
- lib/app_store_dev_api/requests/v1/app/update.rb
|
@@ -324,10 +322,17 @@ files:
|
|
324
322
|
- lib/app_store_dev_api/requests/v1/beta_build_localization/.DS_Store
|
325
323
|
- lib/app_store_dev_api/requests/v1/beta_build_localization/create.rb
|
326
324
|
- lib/app_store_dev_api/requests/v1/beta_build_localization/update.rb
|
325
|
+
- lib/app_store_dev_api/requests/v1/build_beta_detail/update.rb
|
326
|
+
- lib/app_store_dev_api/requests/v1/build_beta_groups/create.rb
|
327
|
+
- lib/app_store_dev_api/requests/v1/build_beta_groups/delete.rb
|
327
328
|
- lib/app_store_dev_api/requests/v1/builds/.DS_Store
|
328
329
|
- lib/app_store_dev_api/requests/v1/builds/update.rb
|
330
|
+
- lib/app_store_dev_api/requests/v1/bundle_id/create.rb
|
331
|
+
- lib/app_store_dev_api/requests/v1/bundle_id_capability/create.rb
|
332
|
+
- lib/app_store_dev_api/requests/v1/certificate/create.rb
|
329
333
|
- lib/app_store_dev_api/requests/v1/customer_review_response/.DS_Store
|
330
334
|
- lib/app_store_dev_api/requests/v1/customer_review_response/create.rb
|
335
|
+
- lib/app_store_dev_api/requests/v1/device/create.rb
|
331
336
|
- lib/app_store_dev_api/requests/v1/in_app_purchase_localization/create.rb
|
332
337
|
- lib/app_store_dev_api/requests/v1/in_app_purchase_localization/update.rb
|
333
338
|
- lib/app_store_dev_api/requests/v1/in_app_purchase_price_schedule/create.rb
|
@@ -336,6 +341,8 @@ files:
|
|
336
341
|
- lib/app_store_dev_api/requests/v1/in_app_purchase_submission/create.rb
|
337
342
|
- lib/app_store_dev_api/requests/v1/in_app_purchase_territory/.DS_Store
|
338
343
|
- lib/app_store_dev_api/requests/v1/in_app_purchase_territory/create.rb
|
344
|
+
- lib/app_store_dev_api/requests/v1/profile/.DS_Store
|
345
|
+
- lib/app_store_dev_api/requests/v1/profile/create.rb
|
339
346
|
- lib/app_store_dev_api/requests/v1/promoted_purchases/create.rb
|
340
347
|
- lib/app_store_dev_api/requests/v1/promoted_purchases/update.rb
|
341
348
|
- lib/app_store_dev_api/requests/v1/promoted_purchases_image/create.rb
|
@@ -358,6 +365,7 @@ files:
|
|
358
365
|
- lib/app_store_dev_api/requests/v1/subscription_group_submission/.DS_Store
|
359
366
|
- lib/app_store_dev_api/requests/v1/subscription_group_submission/create.rb
|
360
367
|
- lib/app_store_dev_api/requests/v1/subscription_introductory_offer/create.rb
|
368
|
+
- lib/app_store_dev_api/requests/v1/subscription_introductory_offer/delete.rb
|
361
369
|
- lib/app_store_dev_api/requests/v1/subscription_introductory_offer/update.rb
|
362
370
|
- lib/app_store_dev_api/requests/v1/subscription_localization/create.rb
|
363
371
|
- lib/app_store_dev_api/requests/v1/subscription_localization/update.rb
|
@@ -369,6 +377,8 @@ files:
|
|
369
377
|
- lib/app_store_dev_api/requests/v1/subscription_offer_code_one_time_use_code/update.rb
|
370
378
|
- lib/app_store_dev_api/requests/v1/subscription_price/.DS_Store
|
371
379
|
- lib/app_store_dev_api/requests/v1/subscription_price/create.rb
|
380
|
+
- lib/app_store_dev_api/requests/v1/subscription_price_change_consent_reason/.DS_Store
|
381
|
+
- lib/app_store_dev_api/requests/v1/subscription_price_change_consent_reason/create.rb
|
372
382
|
- lib/app_store_dev_api/requests/v1/subscription_promotional_offer/create.rb
|
373
383
|
- lib/app_store_dev_api/requests/v1/subscription_promotional_offer/update.rb
|
374
384
|
- lib/app_store_dev_api/requests/v1/subscription_review_screenshot/create.rb
|
@@ -387,9 +397,7 @@ files:
|
|
387
397
|
- lib/app_store_dev_api/schema/type.rb
|
388
398
|
- lib/app_store_dev_api/schema/web_service_endpoint.rb
|
389
399
|
- lib/app_store_dev_api/specification.rb
|
390
|
-
- lib/app_store_dev_api/specification/.DS_Store
|
391
400
|
- lib/app_store_dev_api/specification/component/schema.rb
|
392
|
-
- lib/app_store_dev_api/user_invitation_create_request.rb
|
393
401
|
- lib/app_store_dev_api/version.rb
|
394
402
|
- lib/config/schema.json
|
395
403
|
- lib/tasks/build.rake
|
@@ -426,5 +434,5 @@ requirements: []
|
|
426
434
|
rubygems_version: 3.4.3
|
427
435
|
signing_key:
|
428
436
|
specification_version: 4
|
429
|
-
summary: easy work for
|
437
|
+
summary: easy work for app_store_dev_api work
|
430
438
|
test_files: []
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module AppStoreDevApi
|
4
|
-
class BundleIdCreateRequest < Request::Body
|
5
|
-
data do
|
6
|
-
type 'bundleIds'
|
7
|
-
|
8
|
-
attributes do
|
9
|
-
property :identifier, required: true
|
10
|
-
property :name, required: true
|
11
|
-
property :platform, required: true
|
12
|
-
property :seed_id
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module AppStoreDevApi
|
4
|
-
class CertificateCreateRequest < Request::Body
|
5
|
-
data do
|
6
|
-
type 'certificates'
|
7
|
-
|
8
|
-
attributes do
|
9
|
-
property :certificate_type, required: true
|
10
|
-
property :csr_content, required: true
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module AppStoreDevApi
|
4
|
-
class DeviceCreateRequest < Request::Body
|
5
|
-
data do
|
6
|
-
type 'devices'
|
7
|
-
|
8
|
-
attributes do
|
9
|
-
property :name, required: true
|
10
|
-
property :platform, required: true
|
11
|
-
property :udid, required: true
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
File without changes
|