Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] Add missing actions to Checkout resource
- Loading branch information
Showing
13 changed files
with
583 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
'use strict'; | ||
|
||
exports.req = require('./req'); | ||
exports.res = require('./res'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"checkout": { | ||
"line_items": [ | ||
{ | ||
"variant_id": 39072856, | ||
"quantity": 5 | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'use strict'; | ||
|
||
exports.create = require('./create'); | ||
exports.update = require('./update'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"checkout": { | ||
"token": "exuw7apwoycchjuwtiqg8nytfhphr62a", | ||
"email": "john.smith@example.com", | ||
"shipping_address": { | ||
"first_name": "John", | ||
"last_name": "Smith", | ||
"address1": "126 York St.", | ||
"city": "Los Angeles", | ||
"province_code": "CA", | ||
"country_code": "US", | ||
"phone": "(123)456-7890", | ||
"zip": "90002" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
{ | ||
"checkout": { | ||
"completed_at": null, | ||
"created_at": "2012-10-12T07:05:27-04:00", | ||
"currency": "USD", | ||
"customer_id": 207119551, | ||
"device_id": null, | ||
"discount_code": null, | ||
"email": "bob.norman@hostmail.com", | ||
"location_id": null, | ||
"name": "#86568385", | ||
"note": "", | ||
"note_attributes": { | ||
"custom engraving": "Happy Birthday", | ||
"colour": "green" | ||
}, | ||
"order_id": null, | ||
"order": null, | ||
"payment_due": "0.00", | ||
"payment_url": "https://app.local/cardserver/sessions", | ||
"payments": [], | ||
"privacy_policy_url": null, | ||
"refund_policy_url": null, | ||
"requires_shipping": false, | ||
"reservation_time_left": 0, | ||
"reservation_time": null, | ||
"source_identifier": null, | ||
"source_name": "web", | ||
"source_url": null, | ||
"subtotal_price": "0.00", | ||
"tax_exempt": false, | ||
"taxes_included": false, | ||
"terms_of_service_url": null, | ||
"token": "b490a9220cd14d7344024f4874f640a6", | ||
"total_price": "0.00", | ||
"total_tax": "0.00", | ||
"updated_at": "2017-03-20T14:02:07-04:00", | ||
"user_id": null, | ||
"web_url": "https://checkout.local/690933842/checkouts/b490a9220cd14d7344024f4874f640a6", | ||
"web_processing_url": "https://checkout.local/690933842/checkouts/b490a9220cd14d7344024f4874f640a6/processing", | ||
"line_items": [ | ||
{ | ||
"id": 49148385, | ||
"key": 49148385, | ||
"product_id": 632910392, | ||
"variant_id": 49148385, | ||
"sku": "IPOD2008RED", | ||
"vendor": "Apple", | ||
"title": "IPod Nano - 8GB", | ||
"variant_title": "Red", | ||
"taxable": true, | ||
"requires_shipping": false, | ||
"price": "0.00", | ||
"compare_at_price": null, | ||
"line_price": "0.00", | ||
"properties": {}, | ||
"quantity": 1, | ||
"grams": 200, | ||
"fulfillment_service": "manual", | ||
"applied_discounts": [] | ||
} | ||
], | ||
"gift_cards": [], | ||
"tax_lines": [], | ||
"tax_manipulations": [], | ||
"shipping_line": null, | ||
"shipping_rate": null, | ||
"shipping_address": { | ||
"id": 550558813, | ||
"first_name": "Bob", | ||
"last_name": "Norman", | ||
"phone": "555-625-1199", | ||
"company": null, | ||
"address1": "Chestnut Street 92", | ||
"address2": "", | ||
"city": "Louisville", | ||
"province": "Kentucky", | ||
"province_code": "KY", | ||
"country": "United States", | ||
"country_code": "US", | ||
"zip": "40202" | ||
}, | ||
"credit_card": null, | ||
"billing_address": { | ||
"id": 550558813, | ||
"first_name": "Bob", | ||
"last_name": "Norman", | ||
"phone": "555-625-1199", | ||
"company": null, | ||
"address1": "Chestnut Street 92", | ||
"address2": "", | ||
"city": "Louisville", | ||
"province": "Kentucky", | ||
"province_code": "KY", | ||
"country": "United States", | ||
"country_code": "US", | ||
"zip": "40202" | ||
}, | ||
"applied_discount": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"checkout": { | ||
"completed_at": null, | ||
"created_at": "2017-03-20T14:02:12-04:00", | ||
"currency": "USD", | ||
"customer_id": null, | ||
"device_id": null, | ||
"discount_code": null, | ||
"email": null, | ||
"location_id": null, | ||
"name": "#1066348318", | ||
"note": "", | ||
"note_attributes": {}, | ||
"order_id": null, | ||
"order": null, | ||
"payment_due": "995.00", | ||
"payment_url": "https://app.local/cardserver/sessions", | ||
"payments": [], | ||
"privacy_policy_url": null, | ||
"refund_policy_url": null, | ||
"requires_shipping": true, | ||
"reservation_time_left": 300, | ||
"reservation_time": 300, | ||
"source_identifier": null, | ||
"source_name": "755357713", | ||
"source_url": null, | ||
"subtotal_price": "995.00", | ||
"tax_exempt": false, | ||
"taxes_included": false, | ||
"terms_of_service_url": null, | ||
"token": "2c63454d64c96cc1e6657aaa6899d8f7", | ||
"total_price": "995.00", | ||
"total_tax": "0.00", | ||
"updated_at": "2017-03-20T14:02:12-04:00", | ||
"user_id": null, | ||
"web_url": "https://checkout.local/690933842/checkouts/2c63454d64c96cc1e6657aaa6899d8f7", | ||
"web_processing_url": "https://checkout.local/690933842/checkouts/2c63454d64c96cc1e6657aaa6899d8f7/processing", | ||
"line_items": [ | ||
{ | ||
"id": "983b87404e074fe98e070c5de624bb54", | ||
"key": "983b87404e074fe98e070c5de624bb54", | ||
"product_id": 632910392, | ||
"variant_id": 39072856, | ||
"sku": "IPOD2008GREEN", | ||
"vendor": "Apple", | ||
"title": "IPod Nano - 8GB", | ||
"variant_title": "Green", | ||
"taxable": true, | ||
"requires_shipping": true, | ||
"price": "199.00", | ||
"compare_at_price": null, | ||
"line_price": "995.00", | ||
"properties": {}, | ||
"quantity": 5, | ||
"grams": 567, | ||
"fulfillment_service": "manual", | ||
"applied_discounts": [] | ||
} | ||
], | ||
"gift_cards": [], | ||
"tax_lines": [], | ||
"tax_manipulations": [], | ||
"shipping_line": null, | ||
"shipping_rate": null, | ||
"shipping_address": null, | ||
"credit_card": null, | ||
"billing_address": null, | ||
"applied_discount": null | ||
} | ||
} |
Oops, something went wrong.