Class: Vk::API::Orders::Methods::ChangeState
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Orders::Methods::ChangeState
- Defined in:
- lib/vk/api/orders/methods/change_state.rb
Overview
Changes order status.
Arguments collapse
-
#action ⇒ String
Action to be done with the order.
-
#app_order_id ⇒ Integer
Internal ID of the order in the application.
-
#order_id ⇒ Integer
Order ID.
-
#test_mode ⇒ Boolean
If this parameter is set to 1, this method returns a list of test mode orders.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Orders::Methods::ChangeState
|
# File 'lib/vk/api/orders/methods/change_state.rb', line 15
|
Instance Method Details
#action ⇒ String
Returns action to be done with the order. ; ; Available actions:; *cancel — to cancel unconfirmed order.; *charge — to confirm unconfirmed order. Applies only if processing of notification failed.; *refund — to cancel confirmed order.;.
28 |
# File 'lib/vk/api/orders/methods/change_state.rb', line 28 attribute :action, API::Types::Coercible::String |
#app_order_id ⇒ Integer
Returns internal ID of the order in the application.
30 |
# File 'lib/vk/api/orders/methods/change_state.rb', line 30 attribute :app_order_id, API::Types::Coercible::Int.optional.default(nil) |