Class: ShopifyAPI::DisputeFileUpload
- Inherits:
-
Rest::Base
- Object
- Rest::Base
- ShopifyAPI::DisputeFileUpload
- Extended by:
- T::Sig
- Defined in:
- lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb,
lib/shopify_api/rest/resources/2022_10/dispute_file_upload.rb,
lib/shopify_api/rest/resources/2023_01/dispute_file_upload.rb,
lib/shopify_api/rest/resources/2023_04/dispute_file_upload.rb,
lib/shopify_api/rest/resources/2023_07/dispute_file_upload.rb,
lib/shopify_api/rest/resources/2023_10/dispute_file_upload.rb,
lib/shopify_api/rest/resources/2024_01/dispute_file_upload.rb,
lib/shopify_api/rest/resources/2024_04/dispute_file_upload.rb,
lib/shopify_api/rest/resources/2024_07/dispute_file_upload.rb,
lib/shopify_api/rest/resources/2024_10/dispute_file_upload.rb
Instance Attribute Summary collapse
-
#dispute_evidence_id ⇒ Object
readonly
Returns the value of attribute dispute_evidence_id.
-
#dispute_evidence_type ⇒ Object
readonly
Returns the value of attribute dispute_evidence_type.
-
#file_size ⇒ Object
readonly
Returns the value of attribute file_size.
-
#file_type ⇒ Object
readonly
Returns the value of attribute file_type.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#original_filename ⇒ Object
readonly
Returns the value of attribute original_filename.
-
#shop_id ⇒ Object
readonly
Returns the value of attribute shop_id.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Attributes inherited from Rest::Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) ⇒ DisputeFileUpload
constructor
A new instance of DisputeFileUpload.
Methods inherited from Rest::Base
api_call_limit, base_find, class_name, create_instance, create_instances_from_response, #delete, get_path, get_path_ids, has_many?, has_one?, inherited, json_body_name, json_response_body_names, #method_missing, next_page?, next_page_info, prev_page?, prev_page_info, primary_key, read_only_attributes, request, #respond_to_missing?, retry_request_after, #save, #save!, #to_hash
Constructor Details
#initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) ⇒ DisputeFileUpload
Returns a new instance of DisputeFileUpload.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 19 def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) @dispute_evidence_id = T.let(nil, T.nilable(Integer)) @dispute_evidence_type = T.let(nil, T.nilable(String)) @file_size = T.let(nil, T.nilable(Integer)) @file_type = T.let(nil, T.nilable(String)) @filename = T.let(nil, T.nilable(String)) @id = T.let(nil, T.nilable(Integer)) @original_filename = T.let(nil, T.nilable(String)) @shop_id = T.let(nil, T.nilable(Integer)) @url = T.let(nil, T.nilable(String)) super(session: session, from_hash: from_hash) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ShopifyAPI::Rest::Base
Instance Attribute Details
#dispute_evidence_id ⇒ Object (readonly)
Returns the value of attribute dispute_evidence_id.
42 43 44 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 42 def dispute_evidence_id @dispute_evidence_id end |
#dispute_evidence_type ⇒ Object (readonly)
Returns the value of attribute dispute_evidence_type.
44 45 46 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 44 def dispute_evidence_type @dispute_evidence_type end |
#file_size ⇒ Object (readonly)
Returns the value of attribute file_size.
46 47 48 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 46 def file_size @file_size end |
#file_type ⇒ Object (readonly)
Returns the value of attribute file_type.
48 49 50 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 48 def file_type @file_type end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
50 51 52 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 50 def filename @filename end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
52 53 54 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 52 def id @id end |
#original_filename ⇒ Object (readonly)
Returns the value of attribute original_filename.
54 55 56 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 54 def original_filename @original_filename end |
#shop_id ⇒ Object (readonly)
Returns the value of attribute shop_id.
56 57 58 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 56 def shop_id @shop_id end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
58 59 60 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 58 def url @url end |
Class Method Details
.delete(id:, dispute_id: nil, session: ShopifyAPI::Context.active_session) ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 68 def delete( id:, dispute_id: nil, session: ShopifyAPI::Context.active_session ) request( http_method: :delete, operation: :delete, session: session, ids: {id: id, dispute_id: dispute_id}, params: {}, ) end |