Adds klarna payment provider (#79)
This commit is contained in:
1 parent
448dc9ed8f
commit
5e83a7d38a
25 files changed
+6809
No files matched your search
@@ -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 },
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user