spec/support/fixtures/orders.json in conekta-1.1.3 vs spec/support/fixtures/orders.json in conekta-2.0.0

- old
+ new

@@ -6,31 +6,23 @@ "object": "list", "data": [ { "livemode": false, "amount": 20000, - "status": "created", + "payment_status": "pending_payment", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": { - "charge_id": "58865636dba34dd852000afe", - "payment_method": "OxxoPayment", - "payment_brand": null, - "status": "pending_payment" - }, "customer_info": { "email": "hola@hola.com", "phone": "+5213353319758", "name": "John Constantine", "corporate": null, "account_age": null, "paid_transactions": null, "first_paid_at": 0 }, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth5M3rEuYiegi7R", "metadata": { "test": "extra info" }, @@ -129,44 +121,28 @@ "total": 0, "data": [] } } ] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 20000, - "status": "returned", + "payment_status": "refunded", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": { - "charge_id": "5886562ddba34dd35d000aad", - "payment_method": "CreditCardPayment", - "payment_brand": "VISA", - "status": "paid" - }, "customer_info": { "email": "hola@hola.com", "phone": "+5213353319758", "name": "John Constantine", "corporate": null, "account_age": null, "paid_transactions": null, "first_paid_at": 0 }, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth5EQUZ7UtB9fQT", "metadata": { "test": "extra info" }, @@ -280,63 +256,19 @@ } ] } } ] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 1, - "data": [ - { - "livemode": false, - "amount": 20000, - "currency": "MXN", - "charge_id": "5886562ddba34dd35d000aad", - "reason": "Reason return", - "id": "ord_ret_2fth5KdEjehMzxpTh", - "object": "return", - "created_at": 1485198900, - "parent_id": "ord_2fth5EQUZ7UtB9fQT" - } - ] } }, { "livemode": false, "amount": 20000, - "status": "created", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": null, "customer_info": null, "shipping_contact": null, - "fiscal_entity": { - "tax_id": "AMGH851205MN1", - "company_name": "Test SA de CV", - "phone": "+5213353319758", - "email": "test@conekta.io", - "address": { - "street1": "250 Alexis St", - "street2": null, - "street3": null, - "internal_number": 19, - "external_number": 10, - "city": "Red Deer", - "state": "Alberta", - "zip": "78216", - "country": "mx", - "object": "fiscal_entity_address" - }, - "id": "fis_ent_2fth5Diga4CBE9Q5g", - "object": "fiscal_entity", - "created_at": 1485198892 - }, "object": "order", "id": "ord_2fth5Cys3rdXXRmmH", "metadata": { "test": "extra info" }, @@ -398,31 +330,19 @@ "ending_before": null, "object": "list", "has_more": false, "total": 0, "data": [] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 20000, - "status": "created", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": null, "customer_info": null, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth5CF3Xf4syc56p", "metadata": { "test": "extra info" }, @@ -484,31 +404,19 @@ "ending_before": null, "object": "list", "has_more": false, "total": 0, "data": [] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 20000, - "status": "created", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": null, "customer_info": null, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth5BWE1TWEMLQcN", "metadata": { "test": "extra info" }, @@ -581,31 +489,21 @@ "ending_before": null, "object": "list", "has_more": false, "total": 0, "data": [] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 20066, - "status": "created", "customer_id": null, "currency": "MXN", "capture": true, "last_payment_info": null, "customer_info": null, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth59yZRv6zGdkks", "metadata": { "test": "extra info" }, @@ -684,31 +582,19 @@ "ending_before": null, "object": "list", "has_more": false, "total": 0, "data": [] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 40000, - "status": "created", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": null, "customer_info": null, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth58SfvN6sWdVms", "metadata": { "test": "extra info" }, @@ -788,31 +674,19 @@ "ending_before": null, "object": "list", "has_more": false, "total": 0, "data": [] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 20000, - "status": "created", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": null, "customer_info": null, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth56EDMmQvWQZtr", "metadata": { "test": "extra info" }, @@ -874,31 +748,19 @@ "ending_before": null, "object": "list", "has_more": false, "total": 0, "data": [] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 20000, - "status": "created", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": null, "customer_info": null, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth54kaKNHdPHBKk", "metadata": { "test": "extra info" }, @@ -960,31 +822,19 @@ "ending_before": null, "object": "list", "has_more": false, "total": 0, "data": [] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 60000, - "status": "created", "customer_id": null, "currency": "USD", - "capture": true, - "last_payment_info": null, "customer_info": null, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth5451GKboLvQfW", "metadata": { "test": "extra info" }, @@ -1046,44 +896,28 @@ "ending_before": null, "object": "list", "has_more": false, "total": 0, "data": [] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 20000, - "status": "created", + "payment_status": "pending_payment", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": { - "charge_id": "5886561ddba34dd852000ad8", - "payment_method": "OxxoPayment", - "payment_brand": null, - "status": "pending_payment" - }, "customer_info": { "email": "hola@hola.com", "phone": "+5213353319758", "name": "John Constantine", "corporate": null, "account_age": null, "paid_transactions": null, "first_paid_at": 0 }, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth51uaEsBnzUthh", "metadata": { "test": "extra info" }, @@ -1182,44 +1016,28 @@ "total": 0, "data": [] } } ] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 20000, - "status": "fulfilled", + "payment_status": "paid", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": { - "charge_id": "5886561bedbb6ede090004cf", - "payment_method": "OxxoPayment", - "payment_brand": null, - "status": "pending_payment" - }, "customer_info": { "email": "hola@hola.com", "phone": "+5213353319758", "name": "John Constantine", "corporate": null, "account_age": null, "paid_transactions": null, "first_paid_at": 0 }, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth51Akifd9NDEDA", "metadata": { "test": "extra info" }, @@ -1318,31 +1136,20 @@ "total": 0, "data": [] } } ] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 20000, - "status": "created", + "status": "pending_payment", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": null, "customer_info": null, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth4yh7gGVrC7s6p", "metadata": { "test": "extra info" }, @@ -1404,44 +1211,28 @@ "ending_before": null, "object": "list", "has_more": false, "total": 0, "data": [] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 2000, - "status": "fulfilled", + "status": "paid", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": { - "charge_id": "588655e8c835f06c7b000a13", - "payment_method": "CreditCardPayment", - "payment_brand": "VISA", - "status": "paid" - }, "customer_info": { "email": "logan@x-men.org", "phone": "4033420642", "name": "Arnulfo Quimare", "corporate": false, "account_age": null, "paid_transactions": null, "first_paid_at": 0 }, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth4kLBsbdqQ2UBT", "metadata": {}, "created_at": 1485198824, "updated_at": 1485198850, @@ -1542,44 +1333,28 @@ "total": 0, "data": [] } } ] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 2000, - "status": "fulfilled", + "payment_status": "paid", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": { - "charge_id": "588655d5dba34dd35d000a5d", - "payment_method": "OxxoPayment", - "payment_brand": null, - "status": "paid" - }, "customer_info": { "email": "logan@x-men.org", "phone": "403-342-0642", "name": "Arnulfo Quimare", "corporate": false, "account_age": null, "paid_transactions": null, "first_paid_at": 0 }, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth4kLBsbdqQ2UBQ", "metadata": {}, "created_at": 1485198805, "updated_at": 1485198848, @@ -1673,44 +1448,28 @@ "total": 0, "data": [] } } ] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 2000, - "status": "fulfilled", + "payment_status": "paid", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": { - "charge_id": "588655cedba34dd852000aa9", - "payment_method": "SpeiPayment", - "payment_brand": null, - "status": "paid" - }, "customer_info": { "email": "logan@x-men.org", "phone": "403-342-0642", "name": "Arnulfo Quimare", "corporate": false, "account_age": null, "paid_transactions": null, "first_paid_at": 0 }, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth4kLBsbdqQ2UB9", "metadata": {}, "created_at": 1485198798, "updated_at": 1485198847, @@ -1814,44 +1573,28 @@ "total": 0, "data": [] } } ] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 2000, - "status": "fulfilled", + "payment_status": "paid", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": { - "charge_id": "588655e1dba34dd35d000a6f", - "payment_method": "CreditCardPayment", - "payment_brand": "VISA", - "status": "paid" - }, "customer_info": { "email": "logan@x-men.org", "phone": "4033420642", "name": "Arnulfo Quimare", "corporate": false, "account_age": null, "paid_transactions": null, "first_paid_at": 0 }, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth4kLBsbdqQ2UAx", "metadata": {}, "created_at": 1485198817, "updated_at": 1485198849, @@ -1952,44 +1695,28 @@ "total": 0, "data": [] } } ] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 2000, - "status": "returned", + "payment_status": "refunded", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": { - "charge_id": "588655d9c835f0fde2000aa1", - "payment_method": "CreditCardPayment", - "payment_brand": "VISA", - "status": "refunded" - }, "customer_info": { "email": "logan@x-men.org", "phone": "4033420642", "name": "Arnulfo Quimare", "corporate": false, "account_age": null, "paid_transactions": null, "first_paid_at": 0 }, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth4kLBsbdqQ2UAg", "metadata": {}, "created_at": 1485198809, "updated_at": 1485198848, @@ -2098,56 +1825,28 @@ } ] } } ] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 1, - "data": [ - { - "livemode": false, - "amount": -2000, - "currency": "MXN", - "charge_id": "588655d9c835f0fde2000aa1", - "reason": "unknown", - "id": "ord_ret_2fth4kLBsbdqQ2UAj", - "object": "return", - "created_at": 1485198855, - "parent_id": "ord_2fth4kLBsbdqQ2UAg" - } - ] } }, { "livemode": false, "amount": 2000, - "status": "fulfilled", + "payment_status": "paid", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": { - "charge_id": "588655cddba34dd35d000a49", - "payment_method": "BanortePayment", - "payment_brand": null, - "status": "paid" - }, "customer_info": { "email": "logan@x-men.org", "phone": "403-342-0642", "name": "Arnulfo Quimare", "corporate": false, "account_age": null, "paid_transactions": null, "first_paid_at": 0 }, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth4kLBsbdqQ2UAa", "metadata": {}, "created_at": 1485198797, "updated_at": 1485198846, @@ -2240,44 +1939,28 @@ "total": 0, "data": [] } } ] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } }, { "livemode": false, "amount": 2000, - "status": "fulfilled", + "payment_status": "paid", "customer_id": null, "currency": "MXN", - "capture": true, - "last_payment_info": { - "charge_id": "588655cedba34dd35d000a53", - "payment_method": "CreditCardPayment", - "payment_brand": "VISA", - "status": "paid" - }, "customer_info": { "email": "logan@x-men.org", "phone": "4033420642", "name": "Arnulfo Quimare", "corporate": false, "account_age": null, "paid_transactions": null, "first_paid_at": 0 }, "shipping_contact": null, - "fiscal_entity": null, "object": "order", "id": "ord_2fth4jbNMQ5Bmkofq", "metadata": {}, "created_at": 1485198798, "updated_at": 1485198847, @@ -2378,17 +2061,9 @@ "total": 0, "data": [] } } ] - }, - "returns": { - "starting_after": null, - "ending_before": null, - "object": "list", - "has_more": false, - "total": 0, - "data": [] } } ] -} \ No newline at end of file +}