app_store_dev_api 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.gitignore +56 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +198 -0
- data/LICENSE +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +4 -0
- data/app_store_dev_api.gemspec +54 -0
- data/bin/.DS_Store +0 -0
- data/bin/console +10 -0
- data/bin/setup +10 -0
- data/lib/.DS_Store +0 -0
- data/lib/app_store_dev_api/.DS_Store +0 -0
- data/lib/app_store_dev_api/base.rb +83 -0
- data/lib/app_store_dev_api/bundle_id_capability_create_request.rb +13 -0
- data/lib/app_store_dev_api/bundle_id_create_request.rb +16 -0
- data/lib/app_store_dev_api/certificate_create_request.rb +14 -0
- data/lib/app_store_dev_api/client/authorization.rb +38 -0
- data/lib/app_store_dev_api/client/builder.rb +91 -0
- data/lib/app_store_dev_api/client/options.rb +48 -0
- data/lib/app_store_dev_api/client/registry.rb +15 -0
- data/lib/app_store_dev_api/client/utils.rb +32 -0
- data/lib/app_store_dev_api/client.rb +66 -0
- data/lib/app_store_dev_api/device_create_request.rb +15 -0
- data/lib/app_store_dev_api/object/attributes.rb +47 -0
- data/lib/app_store_dev_api/object/data.rb +45 -0
- data/lib/app_store_dev_api/object/id.rb +28 -0
- data/lib/app_store_dev_api/object/included.rb +27 -0
- data/lib/app_store_dev_api/object/properties.rb +23 -0
- data/lib/app_store_dev_api/object/type.rb +23 -0
- data/lib/app_store_dev_api/profile_create_request.rb +14 -0
- data/lib/app_store_dev_api/request/body.rb +26 -0
- data/lib/app_store_dev_api/request/builder/create.rb +69 -0
- data/lib/app_store_dev_api/request.rb +93 -0
- data/lib/app_store_dev_api/requests/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/app/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/app/update.rb +27 -0
- data/lib/app_store_dev_api/requests/v1/app_availability/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/app_availability/update.rb +21 -0
- data/lib/app_store_dev_api/requests/v1/app_info/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/app_info/update.rb +25 -0
- data/lib/app_store_dev_api/requests/v1/app_info_localization/create.rb +24 -0
- data/lib/app_store_dev_api/requests/v1/app_info_localization/update.rb +25 -0
- data/lib/app_store_dev_api/requests/v1/app_price_ schedule/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/app_price_ schedule/update.rb +17 -0
- data/lib/app_store_dev_api/requests/v1/app_promoted_purchases/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/app_promoted_purchases/update.rb +16 -0
- data/lib/app_store_dev_api/requests/v1/app_store_review_detail/create.rb +27 -0
- data/lib/app_store_dev_api/requests/v1/app_store_review_detail/update.rb +25 -0
- data/lib/app_store_dev_api/requests/v1/app_store_version/create.rb +23 -0
- data/lib/app_store_dev_api/requests/v1/app_store_version/update.rb +25 -0
- data/lib/app_store_dev_api/requests/v1/app_store_version_build_linkage_request/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/app_store_version_build_linkage_request/update.rb +17 -0
- data/lib/app_store_dev_api/requests/v1/app_store_version_localization/create.rb +25 -0
- data/lib/app_store_dev_api/requests/v1/app_store_version_localization/update.rb +25 -0
- data/lib/app_store_dev_api/requests/v1/app_store_version_phased_releases/create.rb +20 -0
- data/lib/app_store_dev_api/requests/v1/app_store_version_phased_releases/update.rb +20 -0
- data/lib/app_store_dev_api/requests/v1/app_store_version_promotion/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/app_store_version_promotion/create.rb +20 -0
- data/lib/app_store_dev_api/requests/v1/app_store_version_releases_request/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/app_store_version_releases_request/create.rb +20 -0
- data/lib/app_store_dev_api/requests/v1/beta_build_localization/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/beta_build_localization/create.rb +14 -0
- data/lib/app_store_dev_api/requests/v1/beta_build_localization/update.rb +13 -0
- data/lib/app_store_dev_api/requests/v1/builds/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/builds/update.rb +21 -0
- data/lib/app_store_dev_api/requests/v1/customer_review_response/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/customer_review_response/create.rb +19 -0
- data/lib/app_store_dev_api/requests/v1/in_app_purchase_ territory/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/in_app_purchase_ territory/create.rb +19 -0
- data/lib/app_store_dev_api/requests/v1/in_app_purchase_localization/create.rb +21 -0
- data/lib/app_store_dev_api/requests/v1/in_app_purchase_localization/update.rb +21 -0
- data/lib/app_store_dev_api/requests/v1/in_app_purchase_price_schedule/create.rb +17 -0
- data/lib/app_store_dev_api/requests/v1/in_app_purchase_review_screenshot/create.rb +20 -0
- data/lib/app_store_dev_api/requests/v1/in_app_purchase_review_screenshot/update.rb +21 -0
- data/lib/app_store_dev_api/requests/v1/in_app_purchase_submission/create.rb +17 -0
- data/lib/app_store_dev_api/requests/v1/promoted_purchases/create.rb +20 -0
- data/lib/app_store_dev_api/requests/v1/promoted_purchases/update.rb +21 -0
- data/lib/app_store_dev_api/requests/v1/promoted_purchases_image/create.rb +20 -0
- data/lib/app_store_dev_api/requests/v1/promoted_purchases_image/update.rb +21 -0
- data/lib/app_store_dev_api/requests/v1/review_submission/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/review_submission/create.rb +20 -0
- data/lib/app_store_dev_api/requests/v1/review_submission/update.rb +22 -0
- data/lib/app_store_dev_api/requests/v1/review_submission_item/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/review_submission_item/create.rb +15 -0
- data/lib/app_store_dev_api/requests/v1/subscription/create.rb +25 -0
- data/lib/app_store_dev_api/requests/v1/subscription/update.rb +25 -0
- data/lib/app_store_dev_api/requests/v1/subscription_availability/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/subscription_availability/create.rb +19 -0
- data/lib/app_store_dev_api/requests/v1/subscription_grace_period/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/subscription_grace_period/update.rb +23 -0
- data/lib/app_store_dev_api/requests/v1/subscription_group/create.rb +20 -0
- data/lib/app_store_dev_api/requests/v1/subscription_group/update.rb +21 -0
- data/lib/app_store_dev_api/requests/v1/subscription_group_localization/create.rb +22 -0
- data/lib/app_store_dev_api/requests/v1/subscription_group_localization/update.rb +24 -0
- data/lib/app_store_dev_api/requests/v1/subscription_group_submission/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/subscription_group_submission/create.rb +17 -0
- data/lib/app_store_dev_api/requests/v1/subscription_introductory_offer/create.rb +25 -0
- data/lib/app_store_dev_api/requests/v1/subscription_introductory_offer/update.rb +22 -0
- data/lib/app_store_dev_api/requests/v1/subscription_localization/create.rb +23 -0
- data/lib/app_store_dev_api/requests/v1/subscription_localization/update.rb +23 -0
- data/lib/app_store_dev_api/requests/v1/subscription_offer_code/create.rb +26 -0
- data/lib/app_store_dev_api/requests/v1/subscription_offer_code/update.rb +22 -0
- data/lib/app_store_dev_api/requests/v1/subscription_offer_code_cunstom_code/create.rb +23 -0
- data/lib/app_store_dev_api/requests/v1/subscription_offer_code_cunstom_code/update.rb +22 -0
- data/lib/app_store_dev_api/requests/v1/subscription_offer_code_one_time_use_code/create.rb +22 -0
- data/lib/app_store_dev_api/requests/v1/subscription_offer_code_one_time_use_code/update.rb +22 -0
- data/lib/app_store_dev_api/requests/v1/subscription_price/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/subscription_price/create.rb +20 -0
- data/lib/app_store_dev_api/requests/v1/subscription_promotional_offer/create.rb +25 -0
- data/lib/app_store_dev_api/requests/v1/subscription_promotional_offer/update.rb +19 -0
- data/lib/app_store_dev_api/requests/v1/subscription_review_screenshot/create.rb +20 -0
- data/lib/app_store_dev_api/requests/v1/subscription_review_screenshot/update.rb +21 -0
- data/lib/app_store_dev_api/requests/v1/subscription_submission/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v1/subscription_submission/create.rb +15 -0
- data/lib/app_store_dev_api/requests/v2/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v2/in_app_purchase/create.rb +25 -0
- data/lib/app_store_dev_api/requests/v2/in_app_purchase/update.rb +23 -0
- data/lib/app_store_dev_api/requests/v2/sandbox_tester/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v2/sandbox_tester/update.rb +22 -0
- data/lib/app_store_dev_api/requests/v2/sandbox_tester_clear_purchase_history/.DS_Store +0 -0
- data/lib/app_store_dev_api/requests/v2/sandbox_tester_clear_purchase_history/update.rb +16 -0
- data/lib/app_store_dev_api/schema/object.rb +14 -0
- data/lib/app_store_dev_api/schema/type.rb +15 -0
- data/lib/app_store_dev_api/schema/web_service_endpoint.rb +27 -0
- data/lib/app_store_dev_api/schema.rb +24 -0
- data/lib/app_store_dev_api/specification/component/schema.rb +25 -0
- data/lib/app_store_dev_api/specification.rb +54 -0
- data/lib/app_store_dev_api/user_invitation_create_request.rb +18 -0
- data/lib/app_store_dev_api/version.rb +5 -0
- data/lib/app_store_dev_api.rb +23 -0
- data/lib/config/schema.json +1650 -0
- data/lib/tasks/build.rake +8 -0
- data/lib/tasks/bundle.rake +7 -0
- data/lib/tasks/changelog.rake +17 -0
- data/lib/tasks/console.rake +9 -0
- data/lib/tasks/git.rake +19 -0
- data/lib/tasks/push.rake +18 -0
- data/lib/tasks/release.rake +17 -0
- data/lib/tasks/version.rake +28 -0
- data/sig/app_store_connect_api.rbs +4 -0
- metadata +429 -0
@@ -0,0 +1,93 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'net/http'
|
4
|
+
|
5
|
+
module AppStoreDevApi
|
6
|
+
class Request
|
7
|
+
class UnsupportedHTTPMethod < ArgumentError
|
8
|
+
def initialize(http_method)
|
9
|
+
super "Unsupported HTTP Method: #{http_method}"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def initialize(**options)
|
14
|
+
@uri = options.fetch(:uri)
|
15
|
+
@options = options
|
16
|
+
end
|
17
|
+
|
18
|
+
def execute
|
19
|
+
Net::HTTP.start(uri.host, uri.port, net_http_options) do |http|
|
20
|
+
http.request(request)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def web_service_endpoint
|
27
|
+
@options.fetch(:web_service_endpoint)
|
28
|
+
end
|
29
|
+
|
30
|
+
def query
|
31
|
+
return unless http_method == :get
|
32
|
+
|
33
|
+
names = url_parameter_names(web_service_endpoint)
|
34
|
+
|
35
|
+
kwargs
|
36
|
+
.reject { |n| names.include?(n) }
|
37
|
+
.deep_transform_keys { |k| k.to_s.camelize(:lower) }
|
38
|
+
.to_query
|
39
|
+
end
|
40
|
+
|
41
|
+
def http_method
|
42
|
+
@options.fetch(:http_method).to_sym
|
43
|
+
end
|
44
|
+
|
45
|
+
def net_http_options
|
46
|
+
{ use_ssl: uri.scheme == 'https' }
|
47
|
+
end
|
48
|
+
|
49
|
+
def kwargs
|
50
|
+
@options.fetch(:kwargs, {})
|
51
|
+
end
|
52
|
+
|
53
|
+
def uri
|
54
|
+
@options.fetch(:uri).tap do |uri|
|
55
|
+
uri.query = query if http_method == :get
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def headers
|
60
|
+
@options.fetch(:headers, {})
|
61
|
+
end
|
62
|
+
|
63
|
+
def body
|
64
|
+
return if http_method == :get
|
65
|
+
|
66
|
+
@options.fetch(:http_body)
|
67
|
+
end
|
68
|
+
|
69
|
+
def url_parameter_names(web_service_endpoint)
|
70
|
+
web_service_endpoint
|
71
|
+
.url
|
72
|
+
.scan(/(\{(\w+)\})/)
|
73
|
+
.map { |_, n| n.to_sym }
|
74
|
+
end
|
75
|
+
|
76
|
+
def net_http_request_class
|
77
|
+
case http_method
|
78
|
+
when :get then Net::HTTP::Get
|
79
|
+
when :post then Net::HTTP::Post
|
80
|
+
when :delete then Net::HTTP::Delete
|
81
|
+
when :patch then Net::HTTP::Patch
|
82
|
+
else
|
83
|
+
raise UnsupportedHTTPMethod, http_method
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
def request
|
88
|
+
net_http_request_class
|
89
|
+
.new(uri, headers)
|
90
|
+
.tap { |r| r.body = body if r.request_body_permitted? }
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module App
|
7
|
+
class Update < Request::Body
|
8
|
+
data do
|
9
|
+
id
|
10
|
+
type 'apps'
|
11
|
+
|
12
|
+
attributes do
|
13
|
+
property :bundle_id
|
14
|
+
property :content_rights_declaration
|
15
|
+
property :primary_locale
|
16
|
+
property :subscription_status_url
|
17
|
+
property :subscription_status_url_for_sandbox
|
18
|
+
property :subscription_status_url_version
|
19
|
+
property :subscription_status_url_version_for_sandbox
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppAvailability
|
7
|
+
class Update < Request::Body
|
8
|
+
data do
|
9
|
+
|
10
|
+
type 'appAvailabilities'
|
11
|
+
|
12
|
+
attributes do
|
13
|
+
property :available_in_new_territories, required: true
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
Binary file
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppInfo
|
7
|
+
class Update < Request::Body
|
8
|
+
data do
|
9
|
+
id
|
10
|
+
type 'appInfos'
|
11
|
+
|
12
|
+
attributes do
|
13
|
+
property :description
|
14
|
+
property :keywords
|
15
|
+
property :marketing_url
|
16
|
+
property :promotional_text
|
17
|
+
property :support_url
|
18
|
+
property :whats_new
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppInfoLocalizations
|
7
|
+
class Create < Request::Body
|
8
|
+
data do
|
9
|
+
id
|
10
|
+
type 'appInfoLocalizations'
|
11
|
+
|
12
|
+
attributes do
|
13
|
+
property :name
|
14
|
+
property :subtitle
|
15
|
+
property :privacy_policy_text
|
16
|
+
property :privacy_policy_url
|
17
|
+
property :privacy_choices_url
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppInfoLocalizations
|
7
|
+
class Update < Request::Body
|
8
|
+
data do
|
9
|
+
id
|
10
|
+
type 'appInfoLocalizations'
|
11
|
+
|
12
|
+
attributes do
|
13
|
+
property :description
|
14
|
+
property :keywords
|
15
|
+
property :marketing_url
|
16
|
+
property :promotional_text
|
17
|
+
property :support_url
|
18
|
+
property :whats_new
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
Binary file
|
Binary file
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppStoreReviewDetail
|
7
|
+
class Create < Request::Body
|
8
|
+
data do
|
9
|
+
type 'appStoreReviewDetails'
|
10
|
+
|
11
|
+
attributes do
|
12
|
+
property :contact_email
|
13
|
+
property :contact_phone
|
14
|
+
property :contact_first_name
|
15
|
+
property :contact_last_name
|
16
|
+
property :demo_account_name
|
17
|
+
property :demo_account_password
|
18
|
+
property :demo_account_required
|
19
|
+
property :notes
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppStoreReviewDetail
|
7
|
+
class Update < Request::Body
|
8
|
+
data do
|
9
|
+
id
|
10
|
+
type 'appStoreReviewDetails'
|
11
|
+
|
12
|
+
attributes do
|
13
|
+
property :description
|
14
|
+
property :keywords
|
15
|
+
property :marketing_url
|
16
|
+
property :promotional_text
|
17
|
+
property :support_url
|
18
|
+
property :whats_new
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppStoreVersion
|
7
|
+
class Create < Request::Body
|
8
|
+
data do
|
9
|
+
type 'appStoreVersions'
|
10
|
+
|
11
|
+
attributes do
|
12
|
+
property :copyright
|
13
|
+
property :earliest_release_date
|
14
|
+
property :platform, required: true
|
15
|
+
property :release_type
|
16
|
+
property :version_string, required: true
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppStoreVersion
|
7
|
+
class Update < Request::Body
|
8
|
+
data do
|
9
|
+
id
|
10
|
+
type 'appStoreVersions'
|
11
|
+
|
12
|
+
attributes do
|
13
|
+
property :description
|
14
|
+
property :keywords
|
15
|
+
property :marketing_url
|
16
|
+
property :promotional_text
|
17
|
+
property :support_url
|
18
|
+
property :whats_new
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
Binary file
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppStoreVersionBuildLinkageRequest
|
7
|
+
class Update < Request::Body
|
8
|
+
data do
|
9
|
+
id :build_id
|
10
|
+
type 'builds'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppStoreVersionLocalization
|
7
|
+
class Create < Request::Body
|
8
|
+
data do
|
9
|
+
type 'appStoreVersionLocalizations'
|
10
|
+
|
11
|
+
attributes do
|
12
|
+
property :description
|
13
|
+
property :keywords
|
14
|
+
property :locale, required: true
|
15
|
+
property :marketing_url
|
16
|
+
property :promotional_text
|
17
|
+
property :support_url
|
18
|
+
property :whats_new
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppStoreVersionLocalization
|
7
|
+
class Update < Request::Body
|
8
|
+
data do
|
9
|
+
id
|
10
|
+
type 'appStoreVersionLocalizations'
|
11
|
+
|
12
|
+
attributes do
|
13
|
+
property :description
|
14
|
+
property :keywords
|
15
|
+
property :marketing_url
|
16
|
+
property :promotional_text
|
17
|
+
property :support_url
|
18
|
+
property :whats_new
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppStoreVersionPhasedRelease
|
7
|
+
class Create < Request::Body
|
8
|
+
data do
|
9
|
+
type 'appStoreVersionPhasedReleases'
|
10
|
+
|
11
|
+
attributes do
|
12
|
+
property :phased_release_state
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppStoreVersionPhasedRelease
|
7
|
+
class Update < Request::Body
|
8
|
+
data do
|
9
|
+
id
|
10
|
+
type 'appStoreVersionPhasedReleases'
|
11
|
+
|
12
|
+
attributes do
|
13
|
+
property :phased_release_state
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppStoreVersionPromotion
|
7
|
+
class Create < Request::Body
|
8
|
+
data do
|
9
|
+
type 'appStoreVersionPromotions'
|
10
|
+
|
11
|
+
attributes do
|
12
|
+
property :phased_release_state
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
Binary file
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module AppStoreVersionReleaseRequest
|
7
|
+
class Create < Request::Body
|
8
|
+
data do
|
9
|
+
type 'appStoreVersionReleaseRequests'
|
10
|
+
|
11
|
+
attributes do
|
12
|
+
property :phased_release_state
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
Binary file
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
class BetaBuildLocalizationCreateRequest < Request::Body
|
5
|
+
data do
|
6
|
+
type 'betaBuildLocalizations'
|
7
|
+
|
8
|
+
attributes do
|
9
|
+
property :locale, required: true
|
10
|
+
property :whats_new
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module BuildUpdateRequest
|
7
|
+
class Update < Request::Body
|
8
|
+
data do
|
9
|
+
id
|
10
|
+
type 'builds'
|
11
|
+
|
12
|
+
attributes do
|
13
|
+
property :expired
|
14
|
+
property :uses_non_exempt_encryption
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module CustomerReviewResponse
|
7
|
+
class Create < Request::Body
|
8
|
+
data do
|
9
|
+
type 'customerReviewResponses'
|
10
|
+
|
11
|
+
attributes do
|
12
|
+
property :response_body, required: true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module InAppPurchaseTerritorie
|
7
|
+
class Create < Request::Body
|
8
|
+
data do
|
9
|
+
type 'inAppPurchaseAvailabilities'
|
10
|
+
|
11
|
+
attributes do
|
12
|
+
property :available_in_new_territories, required: true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppStoreDevApi
|
4
|
+
module Requests
|
5
|
+
module V1
|
6
|
+
module InAppPurchaseLocalization
|
7
|
+
class Create < Request::Body
|
8
|
+
data do
|
9
|
+
type 'inAppPurchaseLocalizations'
|
10
|
+
|
11
|
+
attributes do
|
12
|
+
property :description
|
13
|
+
property :locale, required: true
|
14
|
+
property :name, required: true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|