Adds klarna payment provider (#79)

This commit is contained in:
Oliver Windall Juhl authored and GitHub committed 2020-07-09 12:30:25 +02:00
1 parent 448dc9ed8f
commit 5e83a7d38a
25 files changed
+6809

No files matched your search

+1
View File
@@ -18,6 +18,7 @@ class OrderModel extends BaseModel {
// awaiting, captured, refunded
payment_status: { type: String, default: "awaiting" },
email: { type: String, required: true },
cart_id: { type: String },
billing_address: { type: AddressSchema, required: true },
shipping_address: { type: AddressSchema, required: true },
items: { type: [LineItemSchema], required: true },
+8
View File
@@ -123,6 +123,14 @@ class OrderService extends BaseService {
return updatedMethods
}
/**
* @param {Object} selector - the query object for find
* @return {Promise} the result of the find operation
*/
list(selector) {
return this.orderModel_.find(selector)
}
/**
* Gets an order by id.
* @param {string} orderId - id of order to retrieve