@pintahub/database-schemas 4.6.0 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/schemas/Payout.js
CHANGED
|
@@ -2,7 +2,7 @@ const {Schema} = require('mongoose')
|
|
|
2
2
|
const MoneyObject = require('./MoneyObject')
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
/** Payment payout from
|
|
5
|
+
/** Payment payout synced from Shopify */
|
|
6
6
|
const Payout = new Schema({
|
|
7
7
|
/** @ref Store */
|
|
8
8
|
store: {
|
|
@@ -11,7 +11,7 @@ const Payout = new Schema({
|
|
|
11
11
|
required: true,
|
|
12
12
|
},
|
|
13
13
|
|
|
14
|
-
/**
|
|
14
|
+
/** Shopify payout ID */
|
|
15
15
|
id: {
|
|
16
16
|
type: String,
|
|
17
17
|
trim: true,
|
|
@@ -44,7 +44,7 @@ const Payout = new Schema({
|
|
|
44
44
|
lowercase: true,
|
|
45
45
|
},
|
|
46
46
|
|
|
47
|
-
/** Last sync from
|
|
47
|
+
/** Last sync from Shopify */
|
|
48
48
|
synced_at: {
|
|
49
49
|
type: Date,
|
|
50
50
|
default: Date.now,
|
package/schemas/Store.js
CHANGED
|
@@ -9,7 +9,7 @@ const Store = new Schema({
|
|
|
9
9
|
trim: true,
|
|
10
10
|
},
|
|
11
11
|
|
|
12
|
-
/**
|
|
12
|
+
/** Shopify subdomain (e.g. 'storeabc' for storeabc.myshopify.com) */
|
|
13
13
|
subdomain: {
|
|
14
14
|
type: String,
|
|
15
15
|
trim: true,
|
|
@@ -30,7 +30,7 @@ const Store = new Schema({
|
|
|
30
30
|
index: true,
|
|
31
31
|
},
|
|
32
32
|
|
|
33
|
-
/**
|
|
33
|
+
/** Shopify checkout domain (e.g. 'checkout.primary_domain.com') */
|
|
34
34
|
checkout_domain: {
|
|
35
35
|
type: String,
|
|
36
36
|
trim: true,
|
|
@@ -59,7 +59,7 @@ const Store = new Schema({
|
|
|
59
59
|
type: Schema.Types.ObjectId,
|
|
60
60
|
},
|
|
61
61
|
|
|
62
|
-
/**
|
|
62
|
+
/** Set to 'on' to enable store maintenance mode */
|
|
63
63
|
maintenance_mode: {
|
|
64
64
|
type: String,
|
|
65
65
|
trim: true
|