GithubHelp home page GithubHelp logo

checkout_api's Introduction

Checkout API python wrapper

https://travis-ci.org/Krukov/checkout_api.svg?branch=master Supported Python versions Downloads Latest Version

Python wrapper for Chechout API (http://www.checkout.ru/, https://platform.checkout.ru/files/Checkout.API.1.9.7.pdf)

WORK in PROGRESS

Installation

# pip install checkout_api - coming soon

Usage

Main:

from checkout_api import CheckoutApi

api = CheckoutApi('api-key')

api.calculation(place, price, weight, count, assessed, data)  # Расчет стоимости и сроков доставки

api.cancel_order(order_id)  # Перевод заказа в статус отмены

api.change_status_to_created(order_id)  # Если заказ в статусе отмены то его можно перевести в статус создан

api.create_order(goods, delivery, user, comment, order_id, payment_method, delivery_cost=None)  # Создние заказа
api.edit_order(same as create)  # Редактирование заказа
api.get_order_info(order_id)  # История смены статуса заказа и информация о  заказе

api.get_place_by_postcode(code)  # Получение населного пункта по почтовму индексу

api.get_places(query)  # Получение списка населных пунктов

api.get_postcode(street, house, housing, building, data)  # Получение почтового индекса

api.get_status_history(order_id)  # История статуса заказа

api.get_streets(place, query)  # Получение списка улиц

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.