Class Orders

    • Constructor Detail

      • Orders

        public Orders​(VkApiClient client)
        Constructor
        Parameters:
        client - vk api client
    • Method Detail

      • cancelSubscription

        public OrdersCancelSubscriptionQuery cancelSubscription​(ServiceActor actor,
                                                                int userId,
                                                                int subscriptionId)
        Parameters:
        actor - vk actor
        userId -
        subscriptionId -
        Returns:
        query
      • changeState

        public OrdersChangeStateQuery changeState​(ServiceActor actor,
                                                  int orderId,
                                                  ChangeStateAction action)
        Changes order status.
        Parameters:
        actor - vk actor
        orderId - order ID.
        action - 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.
        Returns:
        query
      • getAmount

        public OrdersGetAmountQuery getAmount​(UserActor actor,
                                              int userId,
                                              java.lang.String... votes)
        Parameters:
        actor - vk actor
        userId -
        votes -
        Returns:
        query
      • getAmount

        public OrdersGetAmountQuery getAmount​(UserActor actor,
                                              int userId,
                                              java.util.List<java.lang.String> votes)
        Parameters:
        actor - vk actor
        userId -
        votes -
        Returns:
        query
      • getById

        public OrdersGetByIdQuery getById​(ServiceActor actor)
        Returns information about orders by their IDs.
        Parameters:
        actor - vk actor
        Returns:
        query
      • updateSubscription

        public OrdersUpdateSubscriptionQuery updateSubscription​(ServiceActor actor,
                                                                int userId,
                                                                int subscriptionId,
                                                                int price)
        Parameters:
        actor - vk actor
        userId -
        subscriptionId -
        price -
        Returns:
        query