Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IPL-145] Cliente de creación de ordenes #4

Merged
merged 4 commits into from
Aug 10, 2022

Conversation

afalla-conekta
Copy link

@afalla-conekta afalla-conekta commented Aug 8, 2022

Abstracción del servicio de creación de la orden IPL-145

Este servicio Implementa los objetos de request y de response propuesto por conekta en si Dev-Center.

  • Evidencia en proyecto de prueba:
    image

Curl

curl --location --request POST 'https://internal-services.sb.conekta.io/ct-java-libraries-testing/orders' \
--header 'Content-Type: application/json' \
--data-raw '{
    "currency": "MXN",
    "customer_info": {
        "email": "andres.falla@conekta.com",
        "phone": "5556581111",
        "name": "Andres Mauricio Falla Castañeda",
        "corporate": false,
        "customer_id": "cus_2rYuZoAh4cSWMpjP3",
        "object": "customer_info"
    },
    "line_items": [
        {
            "name": "It is fine dog cup",
            "unit_price": 80000,
            "quantity": 1,
            "tags": [
                "physical goods"
            ]
        }
    ],
    "shipping_lines": [
        {
            "amount": 0,
            "carrier": "Fedex",
            "method": "Airplane",
            "tracking_number": "TRACK000000000123",
            "object": "shipping_line"
        }
    ],
    "checkout": {
        "name": "Concepto quemado",
        "allowed_payment_methods": [
            "cash",
            "card",
            "bank_transfer"
        ],
        "type": "HostedPayment",
        "force_3ds_flow": true,
        "success_url": "https://www.google.com/payment/",
        "failure_url": "https://www.mysite.com/payment/",
        "monthly_installments_enabled": true,
        "monthly_installments_options": [
            3,
            6,
            9,
            12
        ]
    },
    "shipping_contact": {
        "phone": "5556581111",
        "receiver": "Monse Torres",
        "address": {
            "street1": "Av. Jardín",
            "country": "MX",
            "postal_code": "02970"
        }
    },
    "tax_lines": [
        {
            "description": "IVA MX 16 ",
            "amount": 1568,
            "object": "tax_line"
        }
    ]
}'

@afalla-conekta afalla-conekta changed the title Clinte de creacion de ordenes Cliente de creación de ordenes Aug 10, 2022
@afalla-conekta afalla-conekta marked this pull request as ready for review August 10, 2022 14:06
@afalla-conekta afalla-conekta changed the title Cliente de creación de ordenes [IPL-145] Cliente de creación de ordenes Aug 10, 2022
@afalla-conekta afalla-conekta self-assigned this Aug 10, 2022
Copy link

@matiasrosemberg matiasrosemberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En líneas generales esta todo bien, pregunte y marque pequeñas cuestiones para tener mas contexto o ver si se puede ahorrar codigo.

@afalla-conekta afalla-conekta merged commit d13c9e7 into develop Aug 10, 2022
@afalla-conekta afalla-conekta deleted the feature/IPL-145-Creating-an-order branch August 10, 2022 18:54
afalla-conekta pushed a commit that referenced this pull request Aug 18, 2022
* [IPL-145] Cliente de creación de ordenes (#4)
* [IPL-146] Inclusion de método update (#5)
* [IPL-151] retrieve order implementation
* [IPL-152] Inclusion de servicio de getOrderCharges (#7)
matiasrosemberg added a commit that referenced this pull request Aug 24, 2022
* [IPL-145] Cliente de creación de ordenes (#4)
* [IPL-146] Inclusion de método update (#5)
* [IPL-151] retrieve order implementation
* [IPL-152] Inclusion de servicio de getOrderCharges (#7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants