Class OrdersChangeStateQuery

    • Constructor Detail

      • OrdersChangeStateQuery

        public OrdersChangeStateQuery​(VkApiClient client,
                                      ServiceActor actor,
                                      int orderId,
                                      ChangeStateAction action)
        Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
        Parameters:
        client - VK API client
        actor - actor with access token
        orderId - value of "order id" parameter. Minimum is 0.
        action - value of "action" parameter.
    • Method Detail

      • orderId

        protected OrdersChangeStateQuery orderId​(int value)
        Order ID.
        Parameters:
        value - value of "order id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • action

        protected OrdersChangeStateQuery action​(ChangeStateAction value)
        Action to be done with the order. Available actions: *cancel — to cancel unconfirmed order. *charge — to confirm unconfirmed order. Applies only if processing of [vk.com/dev/payments_status|order_change_state] notification failed. *refund — to cancel confirmed order.
        Parameters:
        value - value of "action" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • appOrderId

        public OrdersChangeStateQuery appOrderId​(java.lang.Integer value)
        Internal ID of the order in the application.
        Parameters:
        value - value of "app order id" parameter. Minimum is 0.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
      • testMode

        public OrdersChangeStateQuery testMode​(java.lang.Boolean value)
        If this parameter is set to 1, this method returns a list of test mode orders. By default — 0.
        Parameters:
        value - value of "test mode" parameter.
        Returns:
        a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.