app_store_dev_api 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +7 -0
  2. data/.DS_Store +0 -0
  3. data/.gitignore +56 -0
  4. data/CHANGELOG.md +5 -0
  5. data/CODE_OF_CONDUCT.md +84 -0
  6. data/Gemfile +8 -0
  7. data/Gemfile.lock +198 -0
  8. data/LICENSE +21 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +39 -0
  11. data/Rakefile +4 -0
  12. data/app_store_dev_api.gemspec +54 -0
  13. data/bin/.DS_Store +0 -0
  14. data/bin/console +10 -0
  15. data/bin/setup +10 -0
  16. data/lib/.DS_Store +0 -0
  17. data/lib/app_store_dev_api/.DS_Store +0 -0
  18. data/lib/app_store_dev_api/base.rb +83 -0
  19. data/lib/app_store_dev_api/bundle_id_capability_create_request.rb +13 -0
  20. data/lib/app_store_dev_api/bundle_id_create_request.rb +16 -0
  21. data/lib/app_store_dev_api/certificate_create_request.rb +14 -0
  22. data/lib/app_store_dev_api/client/authorization.rb +38 -0
  23. data/lib/app_store_dev_api/client/builder.rb +91 -0
  24. data/lib/app_store_dev_api/client/options.rb +48 -0
  25. data/lib/app_store_dev_api/client/registry.rb +15 -0
  26. data/lib/app_store_dev_api/client/utils.rb +32 -0
  27. data/lib/app_store_dev_api/client.rb +66 -0
  28. data/lib/app_store_dev_api/device_create_request.rb +15 -0
  29. data/lib/app_store_dev_api/object/attributes.rb +47 -0
  30. data/lib/app_store_dev_api/object/data.rb +45 -0
  31. data/lib/app_store_dev_api/object/id.rb +28 -0
  32. data/lib/app_store_dev_api/object/included.rb +27 -0
  33. data/lib/app_store_dev_api/object/properties.rb +23 -0
  34. data/lib/app_store_dev_api/object/type.rb +23 -0
  35. data/lib/app_store_dev_api/profile_create_request.rb +14 -0
  36. data/lib/app_store_dev_api/request/body.rb +26 -0
  37. data/lib/app_store_dev_api/request/builder/create.rb +69 -0
  38. data/lib/app_store_dev_api/request.rb +93 -0
  39. data/lib/app_store_dev_api/requests/.DS_Store +0 -0
  40. data/lib/app_store_dev_api/requests/v1/.DS_Store +0 -0
  41. data/lib/app_store_dev_api/requests/v1/app/.DS_Store +0 -0
  42. data/lib/app_store_dev_api/requests/v1/app/update.rb +27 -0
  43. data/lib/app_store_dev_api/requests/v1/app_availability/.DS_Store +0 -0
  44. data/lib/app_store_dev_api/requests/v1/app_availability/update.rb +21 -0
  45. data/lib/app_store_dev_api/requests/v1/app_info/.DS_Store +0 -0
  46. data/lib/app_store_dev_api/requests/v1/app_info/update.rb +25 -0
  47. data/lib/app_store_dev_api/requests/v1/app_info_localization/create.rb +24 -0
  48. data/lib/app_store_dev_api/requests/v1/app_info_localization/update.rb +25 -0
  49. data/lib/app_store_dev_api/requests/v1/app_price_ schedule/.DS_Store +0 -0
  50. data/lib/app_store_dev_api/requests/v1/app_price_ schedule/update.rb +17 -0
  51. data/lib/app_store_dev_api/requests/v1/app_promoted_purchases/.DS_Store +0 -0
  52. data/lib/app_store_dev_api/requests/v1/app_promoted_purchases/update.rb +16 -0
  53. data/lib/app_store_dev_api/requests/v1/app_store_review_detail/create.rb +27 -0
  54. data/lib/app_store_dev_api/requests/v1/app_store_review_detail/update.rb +25 -0
  55. data/lib/app_store_dev_api/requests/v1/app_store_version/create.rb +23 -0
  56. data/lib/app_store_dev_api/requests/v1/app_store_version/update.rb +25 -0
  57. data/lib/app_store_dev_api/requests/v1/app_store_version_build_linkage_request/.DS_Store +0 -0
  58. data/lib/app_store_dev_api/requests/v1/app_store_version_build_linkage_request/update.rb +17 -0
  59. data/lib/app_store_dev_api/requests/v1/app_store_version_localization/create.rb +25 -0
  60. data/lib/app_store_dev_api/requests/v1/app_store_version_localization/update.rb +25 -0
  61. data/lib/app_store_dev_api/requests/v1/app_store_version_phased_releases/create.rb +20 -0
  62. data/lib/app_store_dev_api/requests/v1/app_store_version_phased_releases/update.rb +20 -0
  63. data/lib/app_store_dev_api/requests/v1/app_store_version_promotion/.DS_Store +0 -0
  64. data/lib/app_store_dev_api/requests/v1/app_store_version_promotion/create.rb +20 -0
  65. data/lib/app_store_dev_api/requests/v1/app_store_version_releases_request/.DS_Store +0 -0
  66. data/lib/app_store_dev_api/requests/v1/app_store_version_releases_request/create.rb +20 -0
  67. data/lib/app_store_dev_api/requests/v1/beta_build_localization/.DS_Store +0 -0
  68. data/lib/app_store_dev_api/requests/v1/beta_build_localization/create.rb +14 -0
  69. data/lib/app_store_dev_api/requests/v1/beta_build_localization/update.rb +13 -0
  70. data/lib/app_store_dev_api/requests/v1/builds/.DS_Store +0 -0
  71. data/lib/app_store_dev_api/requests/v1/builds/update.rb +21 -0
  72. data/lib/app_store_dev_api/requests/v1/customer_review_response/.DS_Store +0 -0
  73. data/lib/app_store_dev_api/requests/v1/customer_review_response/create.rb +19 -0
  74. data/lib/app_store_dev_api/requests/v1/in_app_purchase_ territory/.DS_Store +0 -0
  75. data/lib/app_store_dev_api/requests/v1/in_app_purchase_ territory/create.rb +19 -0
  76. data/lib/app_store_dev_api/requests/v1/in_app_purchase_localization/create.rb +21 -0
  77. data/lib/app_store_dev_api/requests/v1/in_app_purchase_localization/update.rb +21 -0
  78. data/lib/app_store_dev_api/requests/v1/in_app_purchase_price_schedule/create.rb +17 -0
  79. data/lib/app_store_dev_api/requests/v1/in_app_purchase_review_screenshot/create.rb +20 -0
  80. data/lib/app_store_dev_api/requests/v1/in_app_purchase_review_screenshot/update.rb +21 -0
  81. data/lib/app_store_dev_api/requests/v1/in_app_purchase_submission/create.rb +17 -0
  82. data/lib/app_store_dev_api/requests/v1/promoted_purchases/create.rb +20 -0
  83. data/lib/app_store_dev_api/requests/v1/promoted_purchases/update.rb +21 -0
  84. data/lib/app_store_dev_api/requests/v1/promoted_purchases_image/create.rb +20 -0
  85. data/lib/app_store_dev_api/requests/v1/promoted_purchases_image/update.rb +21 -0
  86. data/lib/app_store_dev_api/requests/v1/review_submission/.DS_Store +0 -0
  87. data/lib/app_store_dev_api/requests/v1/review_submission/create.rb +20 -0
  88. data/lib/app_store_dev_api/requests/v1/review_submission/update.rb +22 -0
  89. data/lib/app_store_dev_api/requests/v1/review_submission_item/.DS_Store +0 -0
  90. data/lib/app_store_dev_api/requests/v1/review_submission_item/create.rb +15 -0
  91. data/lib/app_store_dev_api/requests/v1/subscription/create.rb +25 -0
  92. data/lib/app_store_dev_api/requests/v1/subscription/update.rb +25 -0
  93. data/lib/app_store_dev_api/requests/v1/subscription_availability/.DS_Store +0 -0
  94. data/lib/app_store_dev_api/requests/v1/subscription_availability/create.rb +19 -0
  95. data/lib/app_store_dev_api/requests/v1/subscription_grace_period/.DS_Store +0 -0
  96. data/lib/app_store_dev_api/requests/v1/subscription_grace_period/update.rb +23 -0
  97. data/lib/app_store_dev_api/requests/v1/subscription_group/create.rb +20 -0
  98. data/lib/app_store_dev_api/requests/v1/subscription_group/update.rb +21 -0
  99. data/lib/app_store_dev_api/requests/v1/subscription_group_localization/create.rb +22 -0
  100. data/lib/app_store_dev_api/requests/v1/subscription_group_localization/update.rb +24 -0
  101. data/lib/app_store_dev_api/requests/v1/subscription_group_submission/.DS_Store +0 -0
  102. data/lib/app_store_dev_api/requests/v1/subscription_group_submission/create.rb +17 -0
  103. data/lib/app_store_dev_api/requests/v1/subscription_introductory_offer/create.rb +25 -0
  104. data/lib/app_store_dev_api/requests/v1/subscription_introductory_offer/update.rb +22 -0
  105. data/lib/app_store_dev_api/requests/v1/subscription_localization/create.rb +23 -0
  106. data/lib/app_store_dev_api/requests/v1/subscription_localization/update.rb +23 -0
  107. data/lib/app_store_dev_api/requests/v1/subscription_offer_code/create.rb +26 -0
  108. data/lib/app_store_dev_api/requests/v1/subscription_offer_code/update.rb +22 -0
  109. data/lib/app_store_dev_api/requests/v1/subscription_offer_code_cunstom_code/create.rb +23 -0
  110. data/lib/app_store_dev_api/requests/v1/subscription_offer_code_cunstom_code/update.rb +22 -0
  111. data/lib/app_store_dev_api/requests/v1/subscription_offer_code_one_time_use_code/create.rb +22 -0
  112. data/lib/app_store_dev_api/requests/v1/subscription_offer_code_one_time_use_code/update.rb +22 -0
  113. data/lib/app_store_dev_api/requests/v1/subscription_price/.DS_Store +0 -0
  114. data/lib/app_store_dev_api/requests/v1/subscription_price/create.rb +20 -0
  115. data/lib/app_store_dev_api/requests/v1/subscription_promotional_offer/create.rb +25 -0
  116. data/lib/app_store_dev_api/requests/v1/subscription_promotional_offer/update.rb +19 -0
  117. data/lib/app_store_dev_api/requests/v1/subscription_review_screenshot/create.rb +20 -0
  118. data/lib/app_store_dev_api/requests/v1/subscription_review_screenshot/update.rb +21 -0
  119. data/lib/app_store_dev_api/requests/v1/subscription_submission/.DS_Store +0 -0
  120. data/lib/app_store_dev_api/requests/v1/subscription_submission/create.rb +15 -0
  121. data/lib/app_store_dev_api/requests/v2/.DS_Store +0 -0
  122. data/lib/app_store_dev_api/requests/v2/in_app_purchase/create.rb +25 -0
  123. data/lib/app_store_dev_api/requests/v2/in_app_purchase/update.rb +23 -0
  124. data/lib/app_store_dev_api/requests/v2/sandbox_tester/.DS_Store +0 -0
  125. data/lib/app_store_dev_api/requests/v2/sandbox_tester/update.rb +22 -0
  126. data/lib/app_store_dev_api/requests/v2/sandbox_tester_clear_purchase_history/.DS_Store +0 -0
  127. data/lib/app_store_dev_api/requests/v2/sandbox_tester_clear_purchase_history/update.rb +16 -0
  128. data/lib/app_store_dev_api/schema/object.rb +14 -0
  129. data/lib/app_store_dev_api/schema/type.rb +15 -0
  130. data/lib/app_store_dev_api/schema/web_service_endpoint.rb +27 -0
  131. data/lib/app_store_dev_api/schema.rb +24 -0
  132. data/lib/app_store_dev_api/specification/component/schema.rb +25 -0
  133. data/lib/app_store_dev_api/specification.rb +54 -0
  134. data/lib/app_store_dev_api/user_invitation_create_request.rb +18 -0
  135. data/lib/app_store_dev_api/version.rb +5 -0
  136. data/lib/app_store_dev_api.rb +23 -0
  137. data/lib/config/schema.json +1650 -0
  138. data/lib/tasks/build.rake +8 -0
  139. data/lib/tasks/bundle.rake +7 -0
  140. data/lib/tasks/changelog.rake +17 -0
  141. data/lib/tasks/console.rake +9 -0
  142. data/lib/tasks/git.rake +19 -0
  143. data/lib/tasks/push.rake +18 -0
  144. data/lib/tasks/release.rake +17 -0
  145. data/lib/tasks/version.rake +28 -0
  146. data/sig/app_store_connect_api.rbs +4 -0
  147. 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
@@ -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
@@ -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
@@ -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
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AppStoreDevApi
4
+ module Requests
5
+ module V1
6
+ module AppPriceSchedule
7
+ class Update < Request::Body
8
+ data do
9
+
10
+ type 'appPriceSchedules'
11
+
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AppStoreDevApi
4
+ module Requests
5
+ module V1
6
+ module AppPromotedPurchases
7
+ class Update < Request::Body
8
+ data do
9
+ id
10
+ type 'promotedPurchases'
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -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
@@ -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
@@ -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
@@ -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
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AppStoreDevApi
4
+ class BetaBuildLocalizationModifyRequest < Request::Body
5
+ data do
6
+ type 'betaBuildLocalizations'
7
+
8
+ attributes do
9
+ property :whats_new
10
+ end
11
+ end
12
+ end
13
+ end
@@ -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