Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
tapioca-braspag / tapioca_braspag / resource_mapping.py
Size: Mime:
# coding: utf-8

MAPPING_CIELLO_COMMERCE = {
    "sales_create": {
        "resource": "1/sales",
        "docs": "https://braspag.github.io//manual/split-de-pagamentos-cielo-e-commerce#transa%C3%A7%C3%A3o-de-cr%C3%A9dito",
        "methods": ["POST"],
    },
    "sales_cancel": {
        "resource": "1/sales/{payment_id}/void",
        "docs": "https://braspag.github.io//manual/split-de-pagamentos-cielo-e-commerce#cancelamento",
        "methods": ["PUT"],
    },
    "sales_capture": {
        "resource": "1/sales/{payment_id}/capture",
        "docs": "https://braspag.github.io//manual/split-de-pagamentos-cielo-e-commerce#captura",
        "methods": ["PUT"],
    },
}
MAPPING_CIELLO_COMMERCE_CONSULT = {
    "sales_consult": {
        "resource": "1/sales/{payment_id}",
        "docs": "https://braspag.github.io//manual/split-de-pagamentos-cielo-e-commerce#consulta",
        "methods": ["GET"],
    }
}


MAPPING_MANAGEMENT_COMPANY = {
    "register": {
        "resource": "api/subordinates",
        "docs": "https://braspag.github.io//manual/manual-api-de-cadastro-de-subordinados#requisi%C3%A7%C3%A3o",
        "methods": ["POST"],
    },
    "consult": {
        "resource": "/api/subordinates/{merchant_id}",
        "docs": "https://braspag.github.io//manual/split-de-pagamentos-cielo-e-commerce#consulta",
        "methods": ["GET"],
    },
}