Class: Pago::V2026_04::Models::S3FileUploadPart
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::S3FileUploadPart
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
number: "number",
chunk_start: "chunk_start",
chunk_end: "chunk_end",
checksum_sha256_base64: "checksum_sha256_base64",
url: "url",
expires_at: "expires_at",
headers: "headers"
}.freeze
- REQUIRED_KEYS =
["number", "chunk_start", "chunk_end", "url", "expires_at"].freeze
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(number:, chunk_start:, chunk_end:, checksum_sha256_base64: ::Pago::UNSET, url:, expires_at:, headers: ::Pago::UNSET) ⇒ S3FileUploadPart
Returns a new instance of S3FileUploadPart.
38909
38910
38911
38912
38913
38914
38915
38916
38917
38918
38919
38920
38921
38922
38923
38924
38925
38926
|
# File 'lib/pago/v2026_04/models.rb', line 38909
def initialize(
number:,
chunk_start:,
chunk_end:,
checksum_sha256_base64: ::Pago::UNSET,
url:,
expires_at:,
headers: ::Pago::UNSET
)
super()
assign(:number, number)
assign(:chunk_start, chunk_start)
assign(:chunk_end, chunk_end)
assign(:checksum_sha256_base64, checksum_sha256_base64)
assign(:url, url)
assign(:expires_at, expires_at)
assign(:headers, )
end
|
Instance Attribute Details
#checksum_sha256_base64 ⇒ String?
38898
38899
38900
|
# File 'lib/pago/v2026_04/models.rb', line 38898
def checksum_sha256_base64
@checksum_sha256_base64
end
|
#chunk_end ⇒ Integer
38895
38896
38897
|
# File 'lib/pago/v2026_04/models.rb', line 38895
def chunk_end
@chunk_end
end
|
#chunk_start ⇒ Integer
38892
38893
38894
|
# File 'lib/pago/v2026_04/models.rb', line 38892
def chunk_start
@chunk_start
end
|
#expires_at ⇒ String
38904
38905
38906
|
# File 'lib/pago/v2026_04/models.rb', line 38904
def expires_at
@expires_at
end
|
38907
38908
38909
|
# File 'lib/pago/v2026_04/models.rb', line 38907
def
@headers
end
|
#number ⇒ Integer
38889
38890
38891
|
# File 'lib/pago/v2026_04/models.rb', line 38889
def number
@number
end
|
#url ⇒ String
38901
38902
38903
|
# File 'lib/pago/v2026_04/models.rb', line 38901
def url
@url
end
|
Class Method Details
38930
38931
38932
38933
38934
38935
38936
38937
38938
38939
38940
38941
38942
38943
38944
38945
38946
38947
|
# File 'lib/pago/v2026_04/models.rb', line 38930
def self.from_json(data)
data = ::JSON.parse(data) if data.is_a?(String)
data = ::Pago::Serde.object(data)
return nil if data.nil?
wrap_raw(
new(
number: (data.key?("number") ? data["number"] : ::Pago::UNSET),
chunk_start: (data.key?("chunk_start") ? data["chunk_start"] : ::Pago::UNSET),
chunk_end: (data.key?("chunk_end") ? data["chunk_end"] : ::Pago::UNSET),
checksum_sha256_base64: (data.key?("checksum_sha256_base64") ? data["checksum_sha256_base64"] : ::Pago::UNSET),
url: (data.key?("url") ? data["url"] : ::Pago::UNSET),
expires_at: (data.key?("expires_at") ? data["expires_at"] : ::Pago::UNSET),
headers: (data.key?("headers") ? data["headers"] : ::Pago::UNSET)
),
data
)
end
|