Class: ShopifyAPI::Dispute
- Inherits:
-
Rest::Base
- Object
- Rest::Base
- ShopifyAPI::Dispute
- Extended by:
- T::Sig
- Defined in:
- lib/shopify_api/rest/resources/2022_04/dispute.rb,
lib/shopify_api/rest/resources/2022_07/dispute.rb,
lib/shopify_api/rest/resources/2022_10/dispute.rb,
lib/shopify_api/rest/resources/2023_01/dispute.rb,
lib/shopify_api/rest/resources/2023_04/dispute.rb,
lib/shopify_api/rest/resources/2023_07/dispute.rb,
lib/shopify_api/rest/resources/2023_10/dispute.rb,
lib/shopify_api/rest/resources/2024_01/dispute.rb,
lib/shopify_api/rest/resources/2024_04/dispute.rb,
lib/shopify_api/rest/resources/2024_07/dispute.rb,
lib/shopify_api/rest/resources/2024_10/dispute.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#evidence_due_by ⇒ Object
readonly
Returns the value of attribute evidence_due_by.
-
#evidence_sent_on ⇒ Object
readonly
Returns the value of attribute evidence_sent_on.
-
#finalized_on ⇒ Object
readonly
Returns the value of attribute finalized_on.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#network_reason_code ⇒ Object
readonly
Returns the value of attribute network_reason_code.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Rest::Base
Class Method Summary collapse
- .all(since_id: nil, last_id: nil, status: nil, initiated_at: nil, session: ShopifyAPI::Context.active_session, **kwargs) ⇒ Object
- .find(id:, session: ShopifyAPI::Context.active_session) ⇒ Object
Instance Method Summary collapse
-
#initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) ⇒ Dispute
constructor
A new instance of Dispute.
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) ⇒ Dispute
Returns a new instance of Dispute.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/shopify_api/rest/resources/2022_04/dispute.rb', line 19 def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) @amount = T.let(nil, T.nilable(String)) @currency = T.let(nil, T.nilable(String)) @evidence_due_by = T.let(nil, T.nilable(String)) @evidence_sent_on = T.let(nil, T.nilable(String)) @finalized_on = T.let(nil, T.nilable(String)) @id = T.let(nil, T.nilable(Integer)) @network_reason_code = T.let(nil, T.nilable(String)) @order_id = T.let(nil, T.nilable(Integer)) @reason = T.let(nil, T.nilable(String)) @status = T.let(nil, T.nilable(String)) @type = 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
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
44 45 46 |
# File 'lib/shopify_api/rest/resources/2022_04/dispute.rb', line 44 def amount @amount end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
46 47 48 |
# File 'lib/shopify_api/rest/resources/2022_04/dispute.rb', line 46 def currency @currency end |
#evidence_due_by ⇒ Object (readonly)
Returns the value of attribute evidence_due_by.
48 49 50 |
# File 'lib/shopify_api/rest/resources/2022_04/dispute.rb', line 48 def evidence_due_by @evidence_due_by end |
#evidence_sent_on ⇒ Object (readonly)
Returns the value of attribute evidence_sent_on.
50 51 52 |
# File 'lib/shopify_api/rest/resources/2022_04/dispute.rb', line 50 def evidence_sent_on @evidence_sent_on end |
#finalized_on ⇒ Object (readonly)
Returns the value of attribute finalized_on.
52 53 54 |
# File 'lib/shopify_api/rest/resources/2022_04/dispute.rb', line 52 def finalized_on @finalized_on end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
54 55 56 |
# File 'lib/shopify_api/rest/resources/2022_04/dispute.rb', line 54 def id @id end |
#network_reason_code ⇒ Object (readonly)
Returns the value of attribute network_reason_code.
56 57 58 |
# File 'lib/shopify_api/rest/resources/2022_04/dispute.rb', line 56 def network_reason_code @network_reason_code end |
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
58 59 60 |
# File 'lib/shopify_api/rest/resources/2022_04/dispute.rb', line 58 def order_id @order_id end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
60 61 62 |
# File 'lib/shopify_api/rest/resources/2022_04/dispute.rb', line 60 def reason @reason end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
62 63 64 |
# File 'lib/shopify_api/rest/resources/2022_04/dispute.rb', line 62 def status @status end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
64 65 66 |
# File 'lib/shopify_api/rest/resources/2022_04/dispute.rb', line 64 def type @type end |
Class Method Details
.all(since_id: nil, last_id: nil, status: nil, initiated_at: nil, session: ShopifyAPI::Context.active_session, **kwargs) ⇒ Object
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/shopify_api/rest/resources/2022_04/dispute.rb', line 95 def all( since_id: nil, last_id: nil, status: nil, initiated_at: nil, session: ShopifyAPI::Context.active_session, **kwargs ) response = base_find( session: session, ids: {}, params: {since_id: since_id, last_id: last_id, status: status, initiated_at: initiated_at}.merge(kwargs).compact, ) T.cast(response, T::Array[Dispute]) end |
.find(id:, session: ShopifyAPI::Context.active_session) ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/shopify_api/rest/resources/2022_04/dispute.rb', line 73 def find( id:, session: ShopifyAPI::Context.active_session ) result = base_find( session: session, ids: {id: id}, params: {}, ) T.cast(result[0], T.nilable(Dispute)) end |