dub 0.12.1 → 0.12.2
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/lib/dub.rb +1 -0
- data/lib/open_api_sdk/bounties.rb +752 -0
- data/lib/open_api_sdk/dub.rb +2 -1
- data/lib/open_api_sdk/models/operations/approvebountysubmission_files.rb +41 -0
- data/lib/open_api_sdk/models/operations/approvebountysubmission_files.rbi +17 -0
- data/lib/open_api_sdk/models/operations/approvebountysubmission_request.rb +41 -0
- data/lib/open_api_sdk/models/operations/approvebountysubmission_request.rbi +17 -0
- data/lib/open_api_sdk/models/operations/approvebountysubmission_requestbody.rb +33 -0
- data/lib/open_api_sdk/models/operations/approvebountysubmission_requestbody.rbi +13 -0
- data/lib/open_api_sdk/models/operations/approvebountysubmission_responsebody.rb +81 -0
- data/lib/open_api_sdk/models/operations/approvebountysubmission_responsebody.rbi +37 -0
- data/lib/open_api_sdk/models/operations/approvebountysubmission_status.rb +24 -0
- data/lib/open_api_sdk/models/operations/approvebountysubmission_status.rbi +11 -0
- data/lib/open_api_sdk/models/operations/files.rb +41 -0
- data/lib/open_api_sdk/models/operations/files.rbi +17 -0
- data/lib/open_api_sdk/models/operations/listbountysubmissions_queryparam_sortby.rb +22 -0
- data/lib/open_api_sdk/models/operations/listbountysubmissions_queryparam_sortby.rbi +11 -0
- data/lib/open_api_sdk/models/operations/listbountysubmissions_queryparam_sortorder.rb +22 -0
- data/lib/open_api_sdk/models/operations/listbountysubmissions_queryparam_sortorder.rbi +11 -0
- data/lib/open_api_sdk/models/operations/listbountysubmissions_queryparam_status.rb +24 -0
- data/lib/open_api_sdk/models/operations/listbountysubmissions_queryparam_status.rbi +11 -0
- data/lib/open_api_sdk/models/operations/listbountysubmissions_request.rb +61 -0
- data/lib/open_api_sdk/models/operations/listbountysubmissions_request.rbi +27 -0
- data/lib/open_api_sdk/models/operations/listbountysubmissions_responsebody.rb +81 -0
- data/lib/open_api_sdk/models/operations/listbountysubmissions_responsebody.rbi +37 -0
- data/lib/open_api_sdk/models/operations/listbountysubmissions_status.rb +24 -0
- data/lib/open_api_sdk/models/operations/listbountysubmissions_status.rbi +11 -0
- data/lib/open_api_sdk/models/operations/rejectbountysubmission_files.rb +41 -0
- data/lib/open_api_sdk/models/operations/rejectbountysubmission_files.rbi +17 -0
- data/lib/open_api_sdk/models/operations/rejectbountysubmission_request.rb +41 -0
- data/lib/open_api_sdk/models/operations/rejectbountysubmission_request.rbi +17 -0
- data/lib/open_api_sdk/models/operations/rejectbountysubmission_requestbody.rb +37 -0
- data/lib/open_api_sdk/models/operations/rejectbountysubmission_requestbody.rbi +15 -0
- data/lib/open_api_sdk/models/operations/rejectbountysubmission_responsebody.rb +81 -0
- data/lib/open_api_sdk/models/operations/rejectbountysubmission_responsebody.rbi +37 -0
- data/lib/open_api_sdk/models/operations/rejectbountysubmission_status.rb +24 -0
- data/lib/open_api_sdk/models/operations/rejectbountysubmission_status.rbi +11 -0
- data/lib/open_api_sdk/models/operations/rejectionreason.rb +25 -0
- data/lib/open_api_sdk/models/operations/rejectionreason.rbi +11 -0
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_requestbody.rb +6 -6
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_requestbody.rbi +2 -2
- data/lib/open_api_sdk/models/operations.rb +18 -0
- data/lib/open_api_sdk/models/shared/commissioncreatedevent_data.rb +6 -2
- data/lib/open_api_sdk/models/shared/commissioncreatedevent_data.rbi +2 -0
- data/lib/open_api_sdk/models/shared/commissioncreatedevent_link.rb +45 -0
- data/lib/open_api_sdk/models/shared/commissioncreatedevent_link.rbi +19 -0
- data/lib/open_api_sdk/models/shared.rb +1 -0
- data/lib/open_api_sdk/sdkconfiguration.rb +2 -2
- metadata +41 -2
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListBountySubmissionsResponseBody
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id'), required: true } }
|
|
18
|
+
|
|
19
|
+
field :bounty_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bountyId'), required: true } }
|
|
20
|
+
|
|
21
|
+
field :partner_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId'), required: true } }
|
|
22
|
+
|
|
23
|
+
field :status, Models::Operations::ListBountySubmissionsStatus, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('status'), required: true, 'decoder': Utils.enum_from_string(Models::Operations::ListBountySubmissionsStatus, false) } }
|
|
24
|
+
|
|
25
|
+
field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt'), required: true } }
|
|
26
|
+
|
|
27
|
+
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description'), required: true } }
|
|
28
|
+
|
|
29
|
+
field :urls, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('urls'), required: true } }
|
|
30
|
+
|
|
31
|
+
field :files, Crystalline::Nilable.new(Crystalline::Array.new(Models::Operations::Files)), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('files'), required: true } }
|
|
32
|
+
|
|
33
|
+
field :performance_count, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('performanceCount'), required: true } }
|
|
34
|
+
|
|
35
|
+
field :completed_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('completedAt'), required: true } }
|
|
36
|
+
|
|
37
|
+
field :reviewed_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('reviewedAt'), required: true } }
|
|
38
|
+
|
|
39
|
+
field :rejection_reason, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rejectionReason'), required: true } }
|
|
40
|
+
|
|
41
|
+
field :rejection_note, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rejectionNote'), required: true } }
|
|
42
|
+
|
|
43
|
+
sig { params(id: ::String, bounty_id: ::String, partner_id: ::String, status: Models::Operations::ListBountySubmissionsStatus, created_at: ::String, description: T.nilable(::String), urls: T.nilable(T::Array[::String]), files: T.nilable(T::Array[Models::Operations::Files]), performance_count: T.nilable(::Float), completed_at: T.nilable(::String), reviewed_at: T.nilable(::String), rejection_reason: T.nilable(::String), rejection_note: T.nilable(::String)).void }
|
|
44
|
+
def initialize(id:, bounty_id:, partner_id:, status:, created_at:, description: nil, urls: nil, files: nil, performance_count: nil, completed_at: nil, reviewed_at: nil, rejection_reason: nil, rejection_note: nil)
|
|
45
|
+
@id = id
|
|
46
|
+
@bounty_id = bounty_id
|
|
47
|
+
@partner_id = partner_id
|
|
48
|
+
@status = status
|
|
49
|
+
@created_at = created_at
|
|
50
|
+
@description = description
|
|
51
|
+
@urls = urls
|
|
52
|
+
@files = files
|
|
53
|
+
@performance_count = performance_count
|
|
54
|
+
@completed_at = completed_at
|
|
55
|
+
@reviewed_at = reviewed_at
|
|
56
|
+
@rejection_reason = rejection_reason
|
|
57
|
+
@rejection_note = rejection_note
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
61
|
+
def ==(other)
|
|
62
|
+
return false unless other.is_a? self.class
|
|
63
|
+
return false unless @id == other.id
|
|
64
|
+
return false unless @bounty_id == other.bounty_id
|
|
65
|
+
return false unless @partner_id == other.partner_id
|
|
66
|
+
return false unless @status == other.status
|
|
67
|
+
return false unless @created_at == other.created_at
|
|
68
|
+
return false unless @description == other.description
|
|
69
|
+
return false unless @urls == other.urls
|
|
70
|
+
return false unless @files == other.files
|
|
71
|
+
return false unless @performance_count == other.performance_count
|
|
72
|
+
return false unless @completed_at == other.completed_at
|
|
73
|
+
return false unless @reviewed_at == other.reviewed_at
|
|
74
|
+
return false unless @rejection_reason == other.rejection_reason
|
|
75
|
+
return false unless @rejection_note == other.rejection_note
|
|
76
|
+
true
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class OpenApiSDK::Models::Operations::ListBountySubmissionsResponseBody
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class OpenApiSDK::Models::Operations::ListBountySubmissionsResponseBody
|
|
11
|
+
def id(); end
|
|
12
|
+
def id=(str_); end
|
|
13
|
+
def bounty_id(); end
|
|
14
|
+
def bounty_id=(str_); end
|
|
15
|
+
def partner_id(); end
|
|
16
|
+
def partner_id=(str_); end
|
|
17
|
+
def status(); end
|
|
18
|
+
def status=(str_); end
|
|
19
|
+
def created_at(); end
|
|
20
|
+
def created_at=(str_); end
|
|
21
|
+
def description(); end
|
|
22
|
+
def description=(str_); end
|
|
23
|
+
def urls(); end
|
|
24
|
+
def urls=(str_); end
|
|
25
|
+
def files(); end
|
|
26
|
+
def files=(str_); end
|
|
27
|
+
def performance_count(); end
|
|
28
|
+
def performance_count=(str_); end
|
|
29
|
+
def completed_at(); end
|
|
30
|
+
def completed_at=(str_); end
|
|
31
|
+
def reviewed_at(); end
|
|
32
|
+
def reviewed_at=(str_); end
|
|
33
|
+
def rejection_reason(); end
|
|
34
|
+
def rejection_reason=(str_); end
|
|
35
|
+
def rejection_note(); end
|
|
36
|
+
def rejection_note=(str_); end
|
|
37
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListBountySubmissionsStatus < T::Enum
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
enums do
|
|
16
|
+
DRAFT = new('draft')
|
|
17
|
+
SUBMITTED = new('submitted')
|
|
18
|
+
APPROVED = new('approved')
|
|
19
|
+
REJECTED = new('rejected')
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class RejectBountySubmissionFiles
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url'), required: true } }
|
|
18
|
+
|
|
19
|
+
field :file_name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('fileName'), required: true } }
|
|
20
|
+
|
|
21
|
+
field :size, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('size'), required: true } }
|
|
22
|
+
|
|
23
|
+
sig { params(url: ::String, file_name: ::String, size: ::Float).void }
|
|
24
|
+
def initialize(url:, file_name:, size:)
|
|
25
|
+
@url = url
|
|
26
|
+
@file_name = file_name
|
|
27
|
+
@size = size
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
31
|
+
def ==(other)
|
|
32
|
+
return false unless other.is_a? self.class
|
|
33
|
+
return false unless @url == other.url
|
|
34
|
+
return false unless @file_name == other.file_name
|
|
35
|
+
return false unless @size == other.size
|
|
36
|
+
true
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class OpenApiSDK::Models::Operations::RejectBountySubmissionFiles
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class OpenApiSDK::Models::Operations::RejectBountySubmissionFiles
|
|
11
|
+
def url(); end
|
|
12
|
+
def url=(str_); end
|
|
13
|
+
def file_name(); end
|
|
14
|
+
def file_name=(str_); end
|
|
15
|
+
def size(); end
|
|
16
|
+
def size=(str_); end
|
|
17
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class RejectBountySubmissionRequest
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
field :bounty_id, ::String, { 'path_param': { 'field_name': 'bountyId', 'style': 'simple', 'explode': false } }
|
|
18
|
+
|
|
19
|
+
field :submission_id, ::String, { 'path_param': { 'field_name': 'submissionId', 'style': 'simple', 'explode': false } }
|
|
20
|
+
|
|
21
|
+
field :request_body, Crystalline::Nilable.new(Models::Operations::RejectBountySubmissionRequestBody), { 'request': { 'media_type': 'application/json' } }
|
|
22
|
+
|
|
23
|
+
sig { params(bounty_id: ::String, submission_id: ::String, request_body: T.nilable(Models::Operations::RejectBountySubmissionRequestBody)).void }
|
|
24
|
+
def initialize(bounty_id:, submission_id:, request_body: nil)
|
|
25
|
+
@bounty_id = bounty_id
|
|
26
|
+
@submission_id = submission_id
|
|
27
|
+
@request_body = request_body
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
31
|
+
def ==(other)
|
|
32
|
+
return false unless other.is_a? self.class
|
|
33
|
+
return false unless @bounty_id == other.bounty_id
|
|
34
|
+
return false unless @submission_id == other.submission_id
|
|
35
|
+
return false unless @request_body == other.request_body
|
|
36
|
+
true
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class OpenApiSDK::Models::Operations::RejectBountySubmissionRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class OpenApiSDK::Models::Operations::RejectBountySubmissionRequest
|
|
11
|
+
def bounty_id(); end
|
|
12
|
+
def bounty_id=(str_); end
|
|
13
|
+
def submission_id(); end
|
|
14
|
+
def submission_id=(str_); end
|
|
15
|
+
def request_body(); end
|
|
16
|
+
def request_body=(str_); end
|
|
17
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class RejectBountySubmissionRequestBody
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
# The reason for rejecting the submission.
|
|
17
|
+
field :rejection_reason, Crystalline::Nilable.new(Models::Operations::RejectionReason), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rejectionReason'), 'decoder': Utils.enum_from_string(Models::Operations::RejectionReason, true) } }
|
|
18
|
+
# The note for rejecting the submission.
|
|
19
|
+
field :rejection_note, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rejectionNote') } }
|
|
20
|
+
|
|
21
|
+
sig { params(rejection_reason: T.nilable(Models::Operations::RejectionReason), rejection_note: T.nilable(::String)).void }
|
|
22
|
+
def initialize(rejection_reason: nil, rejection_note: nil)
|
|
23
|
+
@rejection_reason = rejection_reason
|
|
24
|
+
@rejection_note = rejection_note
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
28
|
+
def ==(other)
|
|
29
|
+
return false unless other.is_a? self.class
|
|
30
|
+
return false unless @rejection_reason == other.rejection_reason
|
|
31
|
+
return false unless @rejection_note == other.rejection_note
|
|
32
|
+
true
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class OpenApiSDK::Models::Operations::RejectBountySubmissionRequestBody
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class OpenApiSDK::Models::Operations::RejectBountySubmissionRequestBody
|
|
11
|
+
def rejection_reason(); end
|
|
12
|
+
def rejection_reason=(str_); end
|
|
13
|
+
def rejection_note(); end
|
|
14
|
+
def rejection_note=(str_); end
|
|
15
|
+
end
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
# The rejected bounty submission.
|
|
12
|
+
class RejectBountySubmissionResponseBody
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id'), required: true } }
|
|
18
|
+
|
|
19
|
+
field :bounty_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bountyId'), required: true } }
|
|
20
|
+
|
|
21
|
+
field :partner_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId'), required: true } }
|
|
22
|
+
|
|
23
|
+
field :status, Models::Operations::RejectBountySubmissionStatus, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('status'), required: true, 'decoder': Utils.enum_from_string(Models::Operations::RejectBountySubmissionStatus, false) } }
|
|
24
|
+
|
|
25
|
+
field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt'), required: true } }
|
|
26
|
+
|
|
27
|
+
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description'), required: true } }
|
|
28
|
+
|
|
29
|
+
field :urls, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('urls'), required: true } }
|
|
30
|
+
|
|
31
|
+
field :files, Crystalline::Nilable.new(Crystalline::Array.new(Models::Operations::RejectBountySubmissionFiles)), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('files'), required: true } }
|
|
32
|
+
|
|
33
|
+
field :performance_count, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('performanceCount'), required: true } }
|
|
34
|
+
|
|
35
|
+
field :completed_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('completedAt'), required: true } }
|
|
36
|
+
|
|
37
|
+
field :reviewed_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('reviewedAt'), required: true } }
|
|
38
|
+
|
|
39
|
+
field :rejection_reason, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rejectionReason'), required: true } }
|
|
40
|
+
|
|
41
|
+
field :rejection_note, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rejectionNote'), required: true } }
|
|
42
|
+
|
|
43
|
+
sig { params(id: ::String, bounty_id: ::String, partner_id: ::String, status: Models::Operations::RejectBountySubmissionStatus, created_at: ::String, description: T.nilable(::String), urls: T.nilable(T::Array[::String]), files: T.nilable(T::Array[Models::Operations::RejectBountySubmissionFiles]), performance_count: T.nilable(::Float), completed_at: T.nilable(::String), reviewed_at: T.nilable(::String), rejection_reason: T.nilable(::String), rejection_note: T.nilable(::String)).void }
|
|
44
|
+
def initialize(id:, bounty_id:, partner_id:, status:, created_at:, description: nil, urls: nil, files: nil, performance_count: nil, completed_at: nil, reviewed_at: nil, rejection_reason: nil, rejection_note: nil)
|
|
45
|
+
@id = id
|
|
46
|
+
@bounty_id = bounty_id
|
|
47
|
+
@partner_id = partner_id
|
|
48
|
+
@status = status
|
|
49
|
+
@created_at = created_at
|
|
50
|
+
@description = description
|
|
51
|
+
@urls = urls
|
|
52
|
+
@files = files
|
|
53
|
+
@performance_count = performance_count
|
|
54
|
+
@completed_at = completed_at
|
|
55
|
+
@reviewed_at = reviewed_at
|
|
56
|
+
@rejection_reason = rejection_reason
|
|
57
|
+
@rejection_note = rejection_note
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
61
|
+
def ==(other)
|
|
62
|
+
return false unless other.is_a? self.class
|
|
63
|
+
return false unless @id == other.id
|
|
64
|
+
return false unless @bounty_id == other.bounty_id
|
|
65
|
+
return false unless @partner_id == other.partner_id
|
|
66
|
+
return false unless @status == other.status
|
|
67
|
+
return false unless @created_at == other.created_at
|
|
68
|
+
return false unless @description == other.description
|
|
69
|
+
return false unless @urls == other.urls
|
|
70
|
+
return false unless @files == other.files
|
|
71
|
+
return false unless @performance_count == other.performance_count
|
|
72
|
+
return false unless @completed_at == other.completed_at
|
|
73
|
+
return false unless @reviewed_at == other.reviewed_at
|
|
74
|
+
return false unless @rejection_reason == other.rejection_reason
|
|
75
|
+
return false unless @rejection_note == other.rejection_note
|
|
76
|
+
true
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class OpenApiSDK::Models::Operations::RejectBountySubmissionResponseBody
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class OpenApiSDK::Models::Operations::RejectBountySubmissionResponseBody
|
|
11
|
+
def id(); end
|
|
12
|
+
def id=(str_); end
|
|
13
|
+
def bounty_id(); end
|
|
14
|
+
def bounty_id=(str_); end
|
|
15
|
+
def partner_id(); end
|
|
16
|
+
def partner_id=(str_); end
|
|
17
|
+
def status(); end
|
|
18
|
+
def status=(str_); end
|
|
19
|
+
def created_at(); end
|
|
20
|
+
def created_at=(str_); end
|
|
21
|
+
def description(); end
|
|
22
|
+
def description=(str_); end
|
|
23
|
+
def urls(); end
|
|
24
|
+
def urls=(str_); end
|
|
25
|
+
def files(); end
|
|
26
|
+
def files=(str_); end
|
|
27
|
+
def performance_count(); end
|
|
28
|
+
def performance_count=(str_); end
|
|
29
|
+
def completed_at(); end
|
|
30
|
+
def completed_at=(str_); end
|
|
31
|
+
def reviewed_at(); end
|
|
32
|
+
def reviewed_at=(str_); end
|
|
33
|
+
def rejection_reason(); end
|
|
34
|
+
def rejection_reason=(str_); end
|
|
35
|
+
def rejection_note(); end
|
|
36
|
+
def rejection_note=(str_); end
|
|
37
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class RejectBountySubmissionStatus < T::Enum
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
enums do
|
|
16
|
+
DRAFT = new('draft')
|
|
17
|
+
SUBMITTED = new('submitted')
|
|
18
|
+
APPROVED = new('approved')
|
|
19
|
+
REJECTED = new('rejected')
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module OpenApiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
# RejectionReason - The reason for rejecting the submission.
|
|
12
|
+
class RejectionReason < T::Enum
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
enums do
|
|
16
|
+
INVALID_PROOF = new('invalidProof')
|
|
17
|
+
DUPLICATE_SUBMISSION = new('duplicateSubmission')
|
|
18
|
+
OUT_OF_TIME_WINDOW = new('outOfTimeWindow')
|
|
19
|
+
DID_NOT_MEET_CRITERIA = new('didNotMeetCriteria')
|
|
20
|
+
OTHER = new('other')
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -13,6 +13,8 @@ module OpenApiSDK
|
|
|
13
13
|
extend T::Sig
|
|
14
14
|
include Crystalline::MetadataFields
|
|
15
15
|
|
|
16
|
+
# The URL to upsert for. Will throw an error if the domain doesn't match the program's default URL domain.
|
|
17
|
+
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url'), required: true } }
|
|
16
18
|
# The short link slug. If not provided, a random 7-character slug will be generated.
|
|
17
19
|
field :key, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
|
|
18
20
|
# Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner.
|
|
@@ -21,29 +23,27 @@ module OpenApiSDK
|
|
|
21
23
|
field :partner_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } }
|
|
22
24
|
# The ID of the partner in your system. If both `partnerId` and `tenantId` are not provided, an error will be thrown.
|
|
23
25
|
field :tenant_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
|
|
24
|
-
# The URL to shorten (if not provided, the program's default URL will be used). Will throw an error if the domain doesn't match the program's default URL domain.
|
|
25
|
-
field :url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
|
26
26
|
# The comments for the short link.
|
|
27
27
|
field :comments, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comments') } }
|
|
28
28
|
|
|
29
|
-
sig { params(key: T.nilable(::String), link_props: T.nilable(Models::Operations::UpsertPartnerLinkLinkProps), partner_id: T.nilable(::String), tenant_id: T.nilable(::String),
|
|
30
|
-
def initialize(key: nil, link_props: nil, partner_id: nil, tenant_id: nil,
|
|
29
|
+
sig { params(url: ::String, key: T.nilable(::String), link_props: T.nilable(Models::Operations::UpsertPartnerLinkLinkProps), partner_id: T.nilable(::String), tenant_id: T.nilable(::String), comments: T.nilable(::String)).void }
|
|
30
|
+
def initialize(url:, key: nil, link_props: nil, partner_id: nil, tenant_id: nil, comments: nil)
|
|
31
|
+
@url = url
|
|
31
32
|
@key = key
|
|
32
33
|
@link_props = link_props
|
|
33
34
|
@partner_id = partner_id
|
|
34
35
|
@tenant_id = tenant_id
|
|
35
|
-
@url = url
|
|
36
36
|
@comments = comments
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
40
40
|
def ==(other)
|
|
41
41
|
return false unless other.is_a? self.class
|
|
42
|
+
return false unless @url == other.url
|
|
42
43
|
return false unless @key == other.key
|
|
43
44
|
return false unless @link_props == other.link_props
|
|
44
45
|
return false unless @partner_id == other.partner_id
|
|
45
46
|
return false unless @tenant_id == other.tenant_id
|
|
46
|
-
return false unless @url == other.url
|
|
47
47
|
return false unless @comments == other.comments
|
|
48
48
|
true
|
|
49
49
|
end
|
|
@@ -8,6 +8,8 @@ end
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class OpenApiSDK::Models::Operations::UpsertPartnerLinkRequestBody
|
|
11
|
+
def url(); end
|
|
12
|
+
def url=(str_); end
|
|
11
13
|
def key(); end
|
|
12
14
|
def key=(str_); end
|
|
13
15
|
def link_props(); end
|
|
@@ -16,8 +18,6 @@ class OpenApiSDK::Models::Operations::UpsertPartnerLinkRequestBody
|
|
|
16
18
|
def partner_id=(str_); end
|
|
17
19
|
def tenant_id(); end
|
|
18
20
|
def tenant_id=(str_); end
|
|
19
|
-
def url(); end
|
|
20
|
-
def url=(str_); end
|
|
21
21
|
def comments(); end
|
|
22
22
|
def comments=(str_); end
|
|
23
23
|
end
|
|
@@ -14,6 +14,11 @@ module OpenApiSDK
|
|
|
14
14
|
autoload :LeadEvent, 'open_api_sdk/models/operations/leadevent.rb'
|
|
15
15
|
autoload :SaleEvent, 'open_api_sdk/models/operations/saleevent.rb'
|
|
16
16
|
autoload :AccessLevel, 'open_api_sdk/models/operations/accesslevel.rb'
|
|
17
|
+
autoload :ApproveBountySubmissionFiles, 'open_api_sdk/models/operations/approvebountysubmission_files.rb'
|
|
18
|
+
autoload :ApproveBountySubmissionRequest, 'open_api_sdk/models/operations/approvebountysubmission_request.rb'
|
|
19
|
+
autoload :ApproveBountySubmissionRequestBody, 'open_api_sdk/models/operations/approvebountysubmission_requestbody.rb'
|
|
20
|
+
autoload :ApproveBountySubmissionResponseBody, 'open_api_sdk/models/operations/approvebountysubmission_responsebody.rb'
|
|
21
|
+
autoload :ApproveBountySubmissionStatus, 'open_api_sdk/models/operations/approvebountysubmission_status.rb'
|
|
17
22
|
autoload :BanPartnerRequestBody, 'open_api_sdk/models/operations/banpartner_requestbody.rb'
|
|
18
23
|
autoload :BanPartnerResponseBody, 'open_api_sdk/models/operations/banpartner_responsebody.rb'
|
|
19
24
|
autoload :BannedReason, 'open_api_sdk/models/operations/bannedreason.rb'
|
|
@@ -67,6 +72,7 @@ module OpenApiSDK
|
|
|
67
72
|
autoload :Discount, 'open_api_sdk/models/operations/discount.rb'
|
|
68
73
|
autoload :Domains, 'open_api_sdk/models/operations/domains.rb'
|
|
69
74
|
autoload :Event, 'open_api_sdk/models/operations/event.rb'
|
|
75
|
+
autoload :Files, 'open_api_sdk/models/operations/files.rb'
|
|
70
76
|
autoload :GetCustomerDiscount, 'open_api_sdk/models/operations/getcustomer_discount.rb'
|
|
71
77
|
autoload :GetCustomerLink, 'open_api_sdk/models/operations/getcustomer_link.rb'
|
|
72
78
|
autoload :GetCustomerPartner, 'open_api_sdk/models/operations/getcustomer_partner.rb'
|
|
@@ -98,6 +104,12 @@ module OpenApiSDK
|
|
|
98
104
|
autoload :Link, 'open_api_sdk/models/operations/link.rb'
|
|
99
105
|
autoload :LinkProps, 'open_api_sdk/models/operations/linkprops.rb'
|
|
100
106
|
autoload :Links, 'open_api_sdk/models/operations/links.rb'
|
|
107
|
+
autoload :ListBountySubmissionsQueryParamSortBy, 'open_api_sdk/models/operations/listbountysubmissions_queryparam_sortby.rb'
|
|
108
|
+
autoload :ListBountySubmissionsQueryParamSortOrder, 'open_api_sdk/models/operations/listbountysubmissions_queryparam_sortorder.rb'
|
|
109
|
+
autoload :ListBountySubmissionsQueryParamStatus, 'open_api_sdk/models/operations/listbountysubmissions_queryparam_status.rb'
|
|
110
|
+
autoload :ListBountySubmissionsRequest, 'open_api_sdk/models/operations/listbountysubmissions_request.rb'
|
|
111
|
+
autoload :ListBountySubmissionsResponseBody, 'open_api_sdk/models/operations/listbountysubmissions_responsebody.rb'
|
|
112
|
+
autoload :ListBountySubmissionsStatus, 'open_api_sdk/models/operations/listbountysubmissions_status.rb'
|
|
101
113
|
autoload :ListCommissionsCustomer, 'open_api_sdk/models/operations/listcommissions_customer.rb'
|
|
102
114
|
autoload :ListCommissionsPartner, 'open_api_sdk/models/operations/listcommissions_partner.rb'
|
|
103
115
|
autoload :ListCommissionsQueryParamInterval, 'open_api_sdk/models/operations/listcommissions_queryparam_interval.rb'
|
|
@@ -148,6 +160,12 @@ module OpenApiSDK
|
|
|
148
160
|
autoload :Reason, 'open_api_sdk/models/operations/reason.rb'
|
|
149
161
|
autoload :RegisterDomainRequestBody, 'open_api_sdk/models/operations/registerdomain_requestbody.rb'
|
|
150
162
|
autoload :RegisterDomainResponseBody, 'open_api_sdk/models/operations/registerdomain_responsebody.rb'
|
|
163
|
+
autoload :RejectBountySubmissionFiles, 'open_api_sdk/models/operations/rejectbountysubmission_files.rb'
|
|
164
|
+
autoload :RejectBountySubmissionRequest, 'open_api_sdk/models/operations/rejectbountysubmission_request.rb'
|
|
165
|
+
autoload :RejectBountySubmissionRequestBody, 'open_api_sdk/models/operations/rejectbountysubmission_requestbody.rb'
|
|
166
|
+
autoload :RejectBountySubmissionResponseBody, 'open_api_sdk/models/operations/rejectbountysubmission_responsebody.rb'
|
|
167
|
+
autoload :RejectBountySubmissionStatus, 'open_api_sdk/models/operations/rejectbountysubmission_status.rb'
|
|
168
|
+
autoload :RejectionReason, 'open_api_sdk/models/operations/rejectionreason.rb'
|
|
151
169
|
autoload :RequestBody, 'open_api_sdk/models/operations/requestbody.rb'
|
|
152
170
|
autoload :ResponseBody, 'open_api_sdk/models/operations/responsebody.rb'
|
|
153
171
|
autoload :ResponseBodyClick, 'open_api_sdk/models/operations/responsebody_click.rb'
|