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
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) ⇒ DisputeFileUpload
constructor
A new instance of DisputeFileUpload.
Methods inherited from Rest::Base
base_find, class_name, create_instance, create_instances_from_response, #delete, get_path, has_many?, has_one?, 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?, #save, #save!, #to_hash
Constructor Details
#initialize(session: ShopifyAPI::Context.active_session) ⇒ DisputeFileUpload
Returns a new instance of DisputeFileUpload.
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 16 def initialize(session: ShopifyAPI::Context.active_session) super(session: session) @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)) 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.
38 39 40 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 38 def dispute_evidence_id @dispute_evidence_id end |
#dispute_evidence_type ⇒ Object (readonly)
Returns the value of attribute dispute_evidence_type.
40 41 42 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 40 def dispute_evidence_type @dispute_evidence_type end |
#file_size ⇒ Object (readonly)
Returns the value of attribute file_size.
42 43 44 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 42 def file_size @file_size end |
#file_type ⇒ Object (readonly)
Returns the value of attribute file_type.
44 45 46 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 44 def file_type @file_type end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
46 47 48 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 46 def filename @filename end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
48 49 50 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 48 def id @id end |
#original_filename ⇒ Object (readonly)
Returns the value of attribute original_filename.
50 51 52 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 50 def original_filename @original_filename end |
#shop_id ⇒ Object (readonly)
Returns the value of attribute shop_id.
52 53 54 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 52 def shop_id @shop_id end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
54 55 56 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 54 def url @url end |
Class Method Details
.delete(id:, dispute_id: nil, session: ShopifyAPI::Context.active_session) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb', line 64 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 |