@happyvertical/smrt-commerce 0.55.0 → 0.55.2
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/AGENTS.md +12 -0
- package/agents/commercial-ui.md +8 -0
- package/agents/customer-vendor-ui.md +15 -0
- package/dist/chunks/{calculations-DPuldr1J.js → calculations-DwBf83UE.js} +7 -30
- package/dist/chunks/calculations-DwBf83UE.js.map +1 -0
- package/dist/chunks/{units-CJcAOQm1.js → units-BhVZswof.js} +2 -2
- package/dist/chunks/{units-CJcAOQm1.js.map → units-BhVZswof.js.map} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +139 -115
- package/dist/index.js.map +1 -1
- package/dist/invoices.js +1 -1
- package/dist/manifest.json +1293 -186
- package/dist/models/Contract.d.ts.map +1 -1
- package/dist/models/Customer.d.ts.map +1 -1
- package/dist/models/Vendor.d.ts.map +1 -1
- package/dist/recipes.d.ts +106 -0
- package/dist/recipes.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +509 -165
- package/dist/svelte/components/CustomerDirectory.svelte +28 -2
- package/dist/svelte/components/CustomerDirectory.svelte.d.ts +9 -1
- package/dist/svelte/components/CustomerDirectory.svelte.d.ts.map +1 -1
- package/dist/svelte/components/InvoiceCard.svelte +57 -7
- package/dist/svelte/components/InvoiceCard.svelte.d.ts +14 -1
- package/dist/svelte/components/InvoiceCard.svelte.d.ts.map +1 -1
- package/dist/svelte/components/InvoiceHeader.svelte +34 -14
- package/dist/svelte/components/InvoiceHeader.svelte.d.ts +9 -1
- package/dist/svelte/components/InvoiceHeader.svelte.d.ts.map +1 -1
- package/dist/svelte/components/InvoiceLineItems.svelte +60 -12
- package/dist/svelte/components/InvoiceLineItems.svelte.d.ts +14 -1
- package/dist/svelte/components/InvoiceLineItems.svelte.d.ts.map +1 -1
- package/dist/svelte/components/InvoiceTotals.svelte +44 -13
- package/dist/svelte/components/InvoiceTotals.svelte.d.ts +14 -1
- package/dist/svelte/components/InvoiceTotals.svelte.d.ts.map +1 -1
- package/dist/svelte/components/VendorDirectory.svelte +28 -2
- package/dist/svelte/components/VendorDirectory.svelte.d.ts +9 -1
- package/dist/svelte/components/VendorDirectory.svelte.d.ts.map +1 -1
- package/dist/svelte/i18n.d.ts +2 -0
- package/dist/svelte/i18n.d.ts.map +1 -1
- package/dist/svelte/i18n.js +2 -0
- package/dist/svelte/index.d.ts +3 -1
- package/dist/svelte/index.d.ts.map +1 -1
- package/dist/svelte/index.js +1 -0
- package/dist/svelte/invoice-display.d.ts +98 -0
- package/dist/svelte/invoice-display.d.ts.map +1 -0
- package/dist/svelte/invoice-display.js +21 -0
- package/dist/svelte/invoices/currency.d.ts +3 -1
- package/dist/svelte/invoices/currency.d.ts.map +1 -1
- package/dist/svelte/invoices/currency.js +11 -38
- package/dist/svelte/party-types.d.ts +2 -0
- package/dist/svelte/party-types.d.ts.map +1 -1
- package/package.json +11 -11
- package/dist/chunks/calculations-DPuldr1J.js.map +0 -1
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-commerce",
|
|
5
|
-
"packageVersion": "0.55.
|
|
5
|
+
"packageVersion": "0.55.2",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-commerce:ContractCollection": {
|
|
8
8
|
"name": "contractcollection",
|
|
@@ -3901,73 +3901,146 @@
|
|
|
3901
3901
|
},
|
|
3902
3902
|
"contractType": {
|
|
3903
3903
|
"type": "text",
|
|
3904
|
-
"required": false
|
|
3904
|
+
"required": false,
|
|
3905
|
+
"enum": [
|
|
3906
|
+
"estimate",
|
|
3907
|
+
"order",
|
|
3908
|
+
"lease",
|
|
3909
|
+
"agreement",
|
|
3910
|
+
"purchase_order",
|
|
3911
|
+
"wholesale_order",
|
|
3912
|
+
"production_order",
|
|
3913
|
+
"cart",
|
|
3914
|
+
"license_sale"
|
|
3915
|
+
]
|
|
3905
3916
|
},
|
|
3906
3917
|
"status": {
|
|
3907
3918
|
"type": "text",
|
|
3908
|
-
"required": false
|
|
3919
|
+
"required": false,
|
|
3920
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed.",
|
|
3921
|
+
"_meta": {
|
|
3922
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed."
|
|
3923
|
+
},
|
|
3924
|
+
"enum": [
|
|
3925
|
+
"draft",
|
|
3926
|
+
"sent",
|
|
3927
|
+
"accepted",
|
|
3928
|
+
"declined",
|
|
3929
|
+
"completed",
|
|
3930
|
+
"cancelled"
|
|
3931
|
+
]
|
|
3909
3932
|
},
|
|
3910
3933
|
"customerId": {
|
|
3911
3934
|
"type": "foreignKey",
|
|
3912
3935
|
"required": false,
|
|
3913
|
-
"related": "Customer"
|
|
3936
|
+
"related": "Customer",
|
|
3937
|
+
"_meta": {
|
|
3938
|
+
"description": "The customer a sales order or agreement is for."
|
|
3939
|
+
}
|
|
3914
3940
|
},
|
|
3915
3941
|
"vendorId": {
|
|
3916
3942
|
"type": "foreignKey",
|
|
3917
3943
|
"required": false,
|
|
3918
|
-
"related": "Vendor"
|
|
3944
|
+
"related": "Vendor",
|
|
3945
|
+
"_meta": {
|
|
3946
|
+
"description": "The vendor a purchase order is placed with."
|
|
3947
|
+
}
|
|
3919
3948
|
},
|
|
3920
3949
|
"subtotal": {
|
|
3921
3950
|
"type": "integer",
|
|
3922
3951
|
"required": false,
|
|
3923
|
-
"default": 0
|
|
3952
|
+
"default": 0,
|
|
3953
|
+
"description": "The amount before tax.",
|
|
3954
|
+
"_meta": {
|
|
3955
|
+
"description": "The amount before tax."
|
|
3956
|
+
}
|
|
3924
3957
|
},
|
|
3925
3958
|
"taxAmount": {
|
|
3926
3959
|
"type": "integer",
|
|
3927
3960
|
"required": false,
|
|
3928
|
-
"default": 0
|
|
3961
|
+
"default": 0,
|
|
3962
|
+
"description": "The tax charged.",
|
|
3963
|
+
"_meta": {
|
|
3964
|
+
"description": "The tax charged."
|
|
3965
|
+
}
|
|
3929
3966
|
},
|
|
3930
3967
|
"totalAmount": {
|
|
3931
3968
|
"type": "integer",
|
|
3932
3969
|
"required": false,
|
|
3933
|
-
"default": 0
|
|
3970
|
+
"default": 0,
|
|
3971
|
+
"description": "The full amount, tax included.",
|
|
3972
|
+
"_meta": {
|
|
3973
|
+
"description": "The full amount, tax included."
|
|
3974
|
+
}
|
|
3934
3975
|
},
|
|
3935
3976
|
"currency": {
|
|
3936
3977
|
"type": "text",
|
|
3937
3978
|
"required": false,
|
|
3938
|
-
"default": "USD"
|
|
3979
|
+
"default": "USD",
|
|
3980
|
+
"description": "The currency of the amounts.",
|
|
3981
|
+
"_meta": {
|
|
3982
|
+
"description": "The currency of the amounts."
|
|
3983
|
+
}
|
|
3939
3984
|
},
|
|
3940
3985
|
"issueDate": {
|
|
3941
3986
|
"type": "datetime",
|
|
3942
|
-
"required": false
|
|
3987
|
+
"required": false,
|
|
3988
|
+
"description": "The date it was issued or placed.",
|
|
3989
|
+
"_meta": {
|
|
3990
|
+
"description": "The date it was issued or placed."
|
|
3991
|
+
}
|
|
3943
3992
|
},
|
|
3944
3993
|
"dueDate": {
|
|
3945
3994
|
"type": "datetime",
|
|
3946
|
-
"required": false
|
|
3995
|
+
"required": false,
|
|
3996
|
+
"description": "The date payment or delivery is due.",
|
|
3997
|
+
"_meta": {
|
|
3998
|
+
"description": "The date payment or delivery is due."
|
|
3999
|
+
}
|
|
3947
4000
|
},
|
|
3948
4001
|
"expiryDate": {
|
|
3949
4002
|
"type": "datetime",
|
|
3950
|
-
"required": false
|
|
4003
|
+
"required": false,
|
|
4004
|
+
"description": "The last day the price or offer is good for.",
|
|
4005
|
+
"_meta": {
|
|
4006
|
+
"description": "The last day the price or offer is good for."
|
|
4007
|
+
}
|
|
3951
4008
|
},
|
|
3952
4009
|
"reference": {
|
|
3953
4010
|
"type": "text",
|
|
3954
4011
|
"required": false,
|
|
3955
|
-
"default": ""
|
|
4012
|
+
"default": "",
|
|
4013
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number.",
|
|
4014
|
+
"_meta": {
|
|
4015
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number."
|
|
4016
|
+
}
|
|
3956
4017
|
},
|
|
3957
4018
|
"notes": {
|
|
3958
4019
|
"type": "text",
|
|
3959
4020
|
"required": false,
|
|
3960
|
-
"default": ""
|
|
4021
|
+
"default": "",
|
|
4022
|
+
"description": "Anything worth remembering about this.",
|
|
4023
|
+
"_meta": {
|
|
4024
|
+
"description": "Anything worth remembering about this."
|
|
4025
|
+
}
|
|
3961
4026
|
},
|
|
3962
4027
|
"terms": {
|
|
3963
4028
|
"type": "text",
|
|
3964
4029
|
"required": false,
|
|
3965
|
-
"default": ""
|
|
4030
|
+
"default": "",
|
|
4031
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions.",
|
|
4032
|
+
"_meta": {
|
|
4033
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions."
|
|
4034
|
+
}
|
|
3966
4035
|
},
|
|
3967
4036
|
"channelId": {
|
|
3968
4037
|
"type": "text",
|
|
3969
4038
|
"required": false,
|
|
3970
|
-
"default": ""
|
|
4039
|
+
"default": "",
|
|
4040
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call.",
|
|
4041
|
+
"_meta": {
|
|
4042
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call."
|
|
4043
|
+
}
|
|
3971
4044
|
}
|
|
3972
4045
|
},
|
|
3973
4046
|
"methods": {
|
|
@@ -4271,73 +4344,146 @@
|
|
|
4271
4344
|
},
|
|
4272
4345
|
"contractType": {
|
|
4273
4346
|
"type": "text",
|
|
4274
|
-
"required": false
|
|
4347
|
+
"required": false,
|
|
4348
|
+
"enum": [
|
|
4349
|
+
"estimate",
|
|
4350
|
+
"order",
|
|
4351
|
+
"lease",
|
|
4352
|
+
"agreement",
|
|
4353
|
+
"purchase_order",
|
|
4354
|
+
"wholesale_order",
|
|
4355
|
+
"production_order",
|
|
4356
|
+
"cart",
|
|
4357
|
+
"license_sale"
|
|
4358
|
+
]
|
|
4275
4359
|
},
|
|
4276
4360
|
"status": {
|
|
4277
4361
|
"type": "text",
|
|
4278
|
-
"required": false
|
|
4362
|
+
"required": false,
|
|
4363
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed.",
|
|
4364
|
+
"_meta": {
|
|
4365
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed."
|
|
4366
|
+
},
|
|
4367
|
+
"enum": [
|
|
4368
|
+
"draft",
|
|
4369
|
+
"sent",
|
|
4370
|
+
"accepted",
|
|
4371
|
+
"declined",
|
|
4372
|
+
"completed",
|
|
4373
|
+
"cancelled"
|
|
4374
|
+
]
|
|
4279
4375
|
},
|
|
4280
4376
|
"customerId": {
|
|
4281
4377
|
"type": "foreignKey",
|
|
4282
4378
|
"required": false,
|
|
4283
|
-
"related": "Customer"
|
|
4379
|
+
"related": "Customer",
|
|
4380
|
+
"_meta": {
|
|
4381
|
+
"description": "The customer a sales order or agreement is for."
|
|
4382
|
+
}
|
|
4284
4383
|
},
|
|
4285
4384
|
"vendorId": {
|
|
4286
4385
|
"type": "foreignKey",
|
|
4287
4386
|
"required": false,
|
|
4288
|
-
"related": "Vendor"
|
|
4387
|
+
"related": "Vendor",
|
|
4388
|
+
"_meta": {
|
|
4389
|
+
"description": "The vendor a purchase order is placed with."
|
|
4390
|
+
}
|
|
4289
4391
|
},
|
|
4290
4392
|
"subtotal": {
|
|
4291
4393
|
"type": "integer",
|
|
4292
4394
|
"required": false,
|
|
4293
|
-
"default": 0
|
|
4395
|
+
"default": 0,
|
|
4396
|
+
"description": "The amount before tax.",
|
|
4397
|
+
"_meta": {
|
|
4398
|
+
"description": "The amount before tax."
|
|
4399
|
+
}
|
|
4294
4400
|
},
|
|
4295
4401
|
"taxAmount": {
|
|
4296
4402
|
"type": "integer",
|
|
4297
4403
|
"required": false,
|
|
4298
|
-
"default": 0
|
|
4404
|
+
"default": 0,
|
|
4405
|
+
"description": "The tax charged.",
|
|
4406
|
+
"_meta": {
|
|
4407
|
+
"description": "The tax charged."
|
|
4408
|
+
}
|
|
4299
4409
|
},
|
|
4300
4410
|
"totalAmount": {
|
|
4301
4411
|
"type": "integer",
|
|
4302
4412
|
"required": false,
|
|
4303
|
-
"default": 0
|
|
4413
|
+
"default": 0,
|
|
4414
|
+
"description": "The full amount, tax included.",
|
|
4415
|
+
"_meta": {
|
|
4416
|
+
"description": "The full amount, tax included."
|
|
4417
|
+
}
|
|
4304
4418
|
},
|
|
4305
4419
|
"currency": {
|
|
4306
4420
|
"type": "text",
|
|
4307
4421
|
"required": false,
|
|
4308
|
-
"default": "USD"
|
|
4422
|
+
"default": "USD",
|
|
4423
|
+
"description": "The currency of the amounts.",
|
|
4424
|
+
"_meta": {
|
|
4425
|
+
"description": "The currency of the amounts."
|
|
4426
|
+
}
|
|
4309
4427
|
},
|
|
4310
4428
|
"issueDate": {
|
|
4311
4429
|
"type": "datetime",
|
|
4312
|
-
"required": false
|
|
4430
|
+
"required": false,
|
|
4431
|
+
"description": "The date it was issued or placed.",
|
|
4432
|
+
"_meta": {
|
|
4433
|
+
"description": "The date it was issued or placed."
|
|
4434
|
+
}
|
|
4313
4435
|
},
|
|
4314
4436
|
"dueDate": {
|
|
4315
4437
|
"type": "datetime",
|
|
4316
|
-
"required": false
|
|
4438
|
+
"required": false,
|
|
4439
|
+
"description": "The date payment or delivery is due.",
|
|
4440
|
+
"_meta": {
|
|
4441
|
+
"description": "The date payment or delivery is due."
|
|
4442
|
+
}
|
|
4317
4443
|
},
|
|
4318
4444
|
"expiryDate": {
|
|
4319
4445
|
"type": "datetime",
|
|
4320
|
-
"required": false
|
|
4446
|
+
"required": false,
|
|
4447
|
+
"description": "The last day the price or offer is good for.",
|
|
4448
|
+
"_meta": {
|
|
4449
|
+
"description": "The last day the price or offer is good for."
|
|
4450
|
+
}
|
|
4321
4451
|
},
|
|
4322
4452
|
"reference": {
|
|
4323
4453
|
"type": "text",
|
|
4324
4454
|
"required": false,
|
|
4325
|
-
"default": ""
|
|
4455
|
+
"default": "",
|
|
4456
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number.",
|
|
4457
|
+
"_meta": {
|
|
4458
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number."
|
|
4459
|
+
}
|
|
4326
4460
|
},
|
|
4327
4461
|
"notes": {
|
|
4328
4462
|
"type": "text",
|
|
4329
4463
|
"required": false,
|
|
4330
|
-
"default": ""
|
|
4464
|
+
"default": "",
|
|
4465
|
+
"description": "Anything worth remembering about this.",
|
|
4466
|
+
"_meta": {
|
|
4467
|
+
"description": "Anything worth remembering about this."
|
|
4468
|
+
}
|
|
4331
4469
|
},
|
|
4332
4470
|
"terms": {
|
|
4333
4471
|
"type": "text",
|
|
4334
4472
|
"required": false,
|
|
4335
|
-
"default": ""
|
|
4473
|
+
"default": "",
|
|
4474
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions.",
|
|
4475
|
+
"_meta": {
|
|
4476
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions."
|
|
4477
|
+
}
|
|
4336
4478
|
},
|
|
4337
4479
|
"channelId": {
|
|
4338
4480
|
"type": "text",
|
|
4339
4481
|
"required": false,
|
|
4340
|
-
"default": ""
|
|
4482
|
+
"default": "",
|
|
4483
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call.",
|
|
4484
|
+
"_meta": {
|
|
4485
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call."
|
|
4486
|
+
}
|
|
4341
4487
|
}
|
|
4342
4488
|
},
|
|
4343
4489
|
"methods": {
|
|
@@ -4619,73 +4765,146 @@
|
|
|
4619
4765
|
},
|
|
4620
4766
|
"contractType": {
|
|
4621
4767
|
"type": "text",
|
|
4622
|
-
"required": false
|
|
4768
|
+
"required": false,
|
|
4769
|
+
"enum": [
|
|
4770
|
+
"estimate",
|
|
4771
|
+
"order",
|
|
4772
|
+
"lease",
|
|
4773
|
+
"agreement",
|
|
4774
|
+
"purchase_order",
|
|
4775
|
+
"wholesale_order",
|
|
4776
|
+
"production_order",
|
|
4777
|
+
"cart",
|
|
4778
|
+
"license_sale"
|
|
4779
|
+
]
|
|
4623
4780
|
},
|
|
4624
4781
|
"status": {
|
|
4625
4782
|
"type": "text",
|
|
4626
|
-
"required": false
|
|
4783
|
+
"required": false,
|
|
4784
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed.",
|
|
4785
|
+
"_meta": {
|
|
4786
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed."
|
|
4787
|
+
},
|
|
4788
|
+
"enum": [
|
|
4789
|
+
"draft",
|
|
4790
|
+
"sent",
|
|
4791
|
+
"accepted",
|
|
4792
|
+
"declined",
|
|
4793
|
+
"completed",
|
|
4794
|
+
"cancelled"
|
|
4795
|
+
]
|
|
4627
4796
|
},
|
|
4628
4797
|
"customerId": {
|
|
4629
4798
|
"type": "foreignKey",
|
|
4630
4799
|
"required": false,
|
|
4631
|
-
"related": "Customer"
|
|
4800
|
+
"related": "Customer",
|
|
4801
|
+
"_meta": {
|
|
4802
|
+
"description": "The customer a sales order or agreement is for."
|
|
4803
|
+
}
|
|
4632
4804
|
},
|
|
4633
4805
|
"vendorId": {
|
|
4634
4806
|
"type": "foreignKey",
|
|
4635
4807
|
"required": false,
|
|
4636
|
-
"related": "Vendor"
|
|
4808
|
+
"related": "Vendor",
|
|
4809
|
+
"_meta": {
|
|
4810
|
+
"description": "The vendor a purchase order is placed with."
|
|
4811
|
+
}
|
|
4637
4812
|
},
|
|
4638
4813
|
"subtotal": {
|
|
4639
4814
|
"type": "integer",
|
|
4640
4815
|
"required": false,
|
|
4641
|
-
"default": 0
|
|
4816
|
+
"default": 0,
|
|
4817
|
+
"description": "The amount before tax.",
|
|
4818
|
+
"_meta": {
|
|
4819
|
+
"description": "The amount before tax."
|
|
4820
|
+
}
|
|
4642
4821
|
},
|
|
4643
4822
|
"taxAmount": {
|
|
4644
4823
|
"type": "integer",
|
|
4645
4824
|
"required": false,
|
|
4646
|
-
"default": 0
|
|
4825
|
+
"default": 0,
|
|
4826
|
+
"description": "The tax charged.",
|
|
4827
|
+
"_meta": {
|
|
4828
|
+
"description": "The tax charged."
|
|
4829
|
+
}
|
|
4647
4830
|
},
|
|
4648
4831
|
"totalAmount": {
|
|
4649
4832
|
"type": "integer",
|
|
4650
4833
|
"required": false,
|
|
4651
|
-
"default": 0
|
|
4834
|
+
"default": 0,
|
|
4835
|
+
"description": "The full amount, tax included.",
|
|
4836
|
+
"_meta": {
|
|
4837
|
+
"description": "The full amount, tax included."
|
|
4838
|
+
}
|
|
4652
4839
|
},
|
|
4653
4840
|
"currency": {
|
|
4654
4841
|
"type": "text",
|
|
4655
4842
|
"required": false,
|
|
4656
|
-
"default": "USD"
|
|
4843
|
+
"default": "USD",
|
|
4844
|
+
"description": "The currency of the amounts.",
|
|
4845
|
+
"_meta": {
|
|
4846
|
+
"description": "The currency of the amounts."
|
|
4847
|
+
}
|
|
4657
4848
|
},
|
|
4658
4849
|
"issueDate": {
|
|
4659
4850
|
"type": "datetime",
|
|
4660
|
-
"required": false
|
|
4851
|
+
"required": false,
|
|
4852
|
+
"description": "The date it was issued or placed.",
|
|
4853
|
+
"_meta": {
|
|
4854
|
+
"description": "The date it was issued or placed."
|
|
4855
|
+
}
|
|
4661
4856
|
},
|
|
4662
4857
|
"dueDate": {
|
|
4663
4858
|
"type": "datetime",
|
|
4664
|
-
"required": false
|
|
4859
|
+
"required": false,
|
|
4860
|
+
"description": "The date payment or delivery is due.",
|
|
4861
|
+
"_meta": {
|
|
4862
|
+
"description": "The date payment or delivery is due."
|
|
4863
|
+
}
|
|
4665
4864
|
},
|
|
4666
4865
|
"expiryDate": {
|
|
4667
4866
|
"type": "datetime",
|
|
4668
|
-
"required": false
|
|
4867
|
+
"required": false,
|
|
4868
|
+
"description": "The last day the price or offer is good for.",
|
|
4869
|
+
"_meta": {
|
|
4870
|
+
"description": "The last day the price or offer is good for."
|
|
4871
|
+
}
|
|
4669
4872
|
},
|
|
4670
4873
|
"reference": {
|
|
4671
4874
|
"type": "text",
|
|
4672
4875
|
"required": false,
|
|
4673
|
-
"default": ""
|
|
4876
|
+
"default": "",
|
|
4877
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number.",
|
|
4878
|
+
"_meta": {
|
|
4879
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number."
|
|
4880
|
+
}
|
|
4674
4881
|
},
|
|
4675
4882
|
"notes": {
|
|
4676
4883
|
"type": "text",
|
|
4677
4884
|
"required": false,
|
|
4678
|
-
"default": ""
|
|
4885
|
+
"default": "",
|
|
4886
|
+
"description": "Anything worth remembering about this.",
|
|
4887
|
+
"_meta": {
|
|
4888
|
+
"description": "Anything worth remembering about this."
|
|
4889
|
+
}
|
|
4679
4890
|
},
|
|
4680
4891
|
"terms": {
|
|
4681
4892
|
"type": "text",
|
|
4682
4893
|
"required": false,
|
|
4683
|
-
"default": ""
|
|
4894
|
+
"default": "",
|
|
4895
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions.",
|
|
4896
|
+
"_meta": {
|
|
4897
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions."
|
|
4898
|
+
}
|
|
4684
4899
|
},
|
|
4685
4900
|
"channelId": {
|
|
4686
4901
|
"type": "text",
|
|
4687
4902
|
"required": false,
|
|
4688
|
-
"default": ""
|
|
4903
|
+
"default": "",
|
|
4904
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call.",
|
|
4905
|
+
"_meta": {
|
|
4906
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call."
|
|
4907
|
+
}
|
|
4689
4908
|
}
|
|
4690
4909
|
},
|
|
4691
4910
|
"methods": {
|
|
@@ -4967,73 +5186,146 @@
|
|
|
4967
5186
|
},
|
|
4968
5187
|
"contractType": {
|
|
4969
5188
|
"type": "text",
|
|
4970
|
-
"required": false
|
|
5189
|
+
"required": false,
|
|
5190
|
+
"enum": [
|
|
5191
|
+
"estimate",
|
|
5192
|
+
"order",
|
|
5193
|
+
"lease",
|
|
5194
|
+
"agreement",
|
|
5195
|
+
"purchase_order",
|
|
5196
|
+
"wholesale_order",
|
|
5197
|
+
"production_order",
|
|
5198
|
+
"cart",
|
|
5199
|
+
"license_sale"
|
|
5200
|
+
]
|
|
4971
5201
|
},
|
|
4972
5202
|
"status": {
|
|
4973
5203
|
"type": "text",
|
|
4974
|
-
"required": false
|
|
5204
|
+
"required": false,
|
|
5205
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed.",
|
|
5206
|
+
"_meta": {
|
|
5207
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed."
|
|
5208
|
+
},
|
|
5209
|
+
"enum": [
|
|
5210
|
+
"draft",
|
|
5211
|
+
"sent",
|
|
5212
|
+
"accepted",
|
|
5213
|
+
"declined",
|
|
5214
|
+
"completed",
|
|
5215
|
+
"cancelled"
|
|
5216
|
+
]
|
|
4975
5217
|
},
|
|
4976
5218
|
"customerId": {
|
|
4977
5219
|
"type": "foreignKey",
|
|
4978
5220
|
"required": false,
|
|
4979
|
-
"related": "Customer"
|
|
5221
|
+
"related": "Customer",
|
|
5222
|
+
"_meta": {
|
|
5223
|
+
"description": "The customer a sales order or agreement is for."
|
|
5224
|
+
}
|
|
4980
5225
|
},
|
|
4981
5226
|
"vendorId": {
|
|
4982
5227
|
"type": "foreignKey",
|
|
4983
5228
|
"required": false,
|
|
4984
|
-
"related": "Vendor"
|
|
5229
|
+
"related": "Vendor",
|
|
5230
|
+
"_meta": {
|
|
5231
|
+
"description": "The vendor a purchase order is placed with."
|
|
5232
|
+
}
|
|
4985
5233
|
},
|
|
4986
5234
|
"subtotal": {
|
|
4987
5235
|
"type": "integer",
|
|
4988
5236
|
"required": false,
|
|
4989
|
-
"default": 0
|
|
5237
|
+
"default": 0,
|
|
5238
|
+
"description": "The amount before tax.",
|
|
5239
|
+
"_meta": {
|
|
5240
|
+
"description": "The amount before tax."
|
|
5241
|
+
}
|
|
4990
5242
|
},
|
|
4991
5243
|
"taxAmount": {
|
|
4992
5244
|
"type": "integer",
|
|
4993
5245
|
"required": false,
|
|
4994
|
-
"default": 0
|
|
5246
|
+
"default": 0,
|
|
5247
|
+
"description": "The tax charged.",
|
|
5248
|
+
"_meta": {
|
|
5249
|
+
"description": "The tax charged."
|
|
5250
|
+
}
|
|
4995
5251
|
},
|
|
4996
5252
|
"totalAmount": {
|
|
4997
5253
|
"type": "integer",
|
|
4998
5254
|
"required": false,
|
|
4999
|
-
"default": 0
|
|
5255
|
+
"default": 0,
|
|
5256
|
+
"description": "The full amount, tax included.",
|
|
5257
|
+
"_meta": {
|
|
5258
|
+
"description": "The full amount, tax included."
|
|
5259
|
+
}
|
|
5000
5260
|
},
|
|
5001
5261
|
"currency": {
|
|
5002
5262
|
"type": "text",
|
|
5003
5263
|
"required": false,
|
|
5004
|
-
"default": "USD"
|
|
5264
|
+
"default": "USD",
|
|
5265
|
+
"description": "The currency of the amounts.",
|
|
5266
|
+
"_meta": {
|
|
5267
|
+
"description": "The currency of the amounts."
|
|
5268
|
+
}
|
|
5005
5269
|
},
|
|
5006
5270
|
"issueDate": {
|
|
5007
5271
|
"type": "datetime",
|
|
5008
|
-
"required": false
|
|
5272
|
+
"required": false,
|
|
5273
|
+
"description": "The date it was issued or placed.",
|
|
5274
|
+
"_meta": {
|
|
5275
|
+
"description": "The date it was issued or placed."
|
|
5276
|
+
}
|
|
5009
5277
|
},
|
|
5010
5278
|
"dueDate": {
|
|
5011
5279
|
"type": "datetime",
|
|
5012
|
-
"required": false
|
|
5280
|
+
"required": false,
|
|
5281
|
+
"description": "The date payment or delivery is due.",
|
|
5282
|
+
"_meta": {
|
|
5283
|
+
"description": "The date payment or delivery is due."
|
|
5284
|
+
}
|
|
5013
5285
|
},
|
|
5014
5286
|
"expiryDate": {
|
|
5015
5287
|
"type": "datetime",
|
|
5016
|
-
"required": false
|
|
5288
|
+
"required": false,
|
|
5289
|
+
"description": "The last day the price or offer is good for.",
|
|
5290
|
+
"_meta": {
|
|
5291
|
+
"description": "The last day the price or offer is good for."
|
|
5292
|
+
}
|
|
5017
5293
|
},
|
|
5018
5294
|
"reference": {
|
|
5019
5295
|
"type": "text",
|
|
5020
5296
|
"required": false,
|
|
5021
|
-
"default": ""
|
|
5297
|
+
"default": "",
|
|
5298
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number.",
|
|
5299
|
+
"_meta": {
|
|
5300
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number."
|
|
5301
|
+
}
|
|
5022
5302
|
},
|
|
5023
5303
|
"notes": {
|
|
5024
5304
|
"type": "text",
|
|
5025
5305
|
"required": false,
|
|
5026
|
-
"default": ""
|
|
5306
|
+
"default": "",
|
|
5307
|
+
"description": "Anything worth remembering about this.",
|
|
5308
|
+
"_meta": {
|
|
5309
|
+
"description": "Anything worth remembering about this."
|
|
5310
|
+
}
|
|
5027
5311
|
},
|
|
5028
5312
|
"terms": {
|
|
5029
5313
|
"type": "text",
|
|
5030
5314
|
"required": false,
|
|
5031
|
-
"default": ""
|
|
5315
|
+
"default": "",
|
|
5316
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions.",
|
|
5317
|
+
"_meta": {
|
|
5318
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions."
|
|
5319
|
+
}
|
|
5032
5320
|
},
|
|
5033
5321
|
"channelId": {
|
|
5034
5322
|
"type": "text",
|
|
5035
5323
|
"required": false,
|
|
5036
|
-
"default": ""
|
|
5324
|
+
"default": "",
|
|
5325
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call.",
|
|
5326
|
+
"_meta": {
|
|
5327
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call."
|
|
5328
|
+
}
|
|
5037
5329
|
}
|
|
5038
5330
|
},
|
|
5039
5331
|
"methods": {
|
|
@@ -5315,73 +5607,146 @@
|
|
|
5315
5607
|
},
|
|
5316
5608
|
"contractType": {
|
|
5317
5609
|
"type": "text",
|
|
5318
|
-
"required": false
|
|
5610
|
+
"required": false,
|
|
5611
|
+
"enum": [
|
|
5612
|
+
"estimate",
|
|
5613
|
+
"order",
|
|
5614
|
+
"lease",
|
|
5615
|
+
"agreement",
|
|
5616
|
+
"purchase_order",
|
|
5617
|
+
"wholesale_order",
|
|
5618
|
+
"production_order",
|
|
5619
|
+
"cart",
|
|
5620
|
+
"license_sale"
|
|
5621
|
+
]
|
|
5319
5622
|
},
|
|
5320
5623
|
"status": {
|
|
5321
5624
|
"type": "text",
|
|
5322
|
-
"required": false
|
|
5625
|
+
"required": false,
|
|
5626
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed.",
|
|
5627
|
+
"_meta": {
|
|
5628
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed."
|
|
5629
|
+
},
|
|
5630
|
+
"enum": [
|
|
5631
|
+
"draft",
|
|
5632
|
+
"sent",
|
|
5633
|
+
"accepted",
|
|
5634
|
+
"declined",
|
|
5635
|
+
"completed",
|
|
5636
|
+
"cancelled"
|
|
5637
|
+
]
|
|
5323
5638
|
},
|
|
5324
5639
|
"customerId": {
|
|
5325
5640
|
"type": "foreignKey",
|
|
5326
5641
|
"required": false,
|
|
5327
|
-
"related": "Customer"
|
|
5642
|
+
"related": "Customer",
|
|
5643
|
+
"_meta": {
|
|
5644
|
+
"description": "The customer a sales order or agreement is for."
|
|
5645
|
+
}
|
|
5328
5646
|
},
|
|
5329
5647
|
"vendorId": {
|
|
5330
5648
|
"type": "foreignKey",
|
|
5331
5649
|
"required": false,
|
|
5332
|
-
"related": "Vendor"
|
|
5650
|
+
"related": "Vendor",
|
|
5651
|
+
"_meta": {
|
|
5652
|
+
"description": "The vendor a purchase order is placed with."
|
|
5653
|
+
}
|
|
5333
5654
|
},
|
|
5334
5655
|
"subtotal": {
|
|
5335
5656
|
"type": "integer",
|
|
5336
5657
|
"required": false,
|
|
5337
|
-
"default": 0
|
|
5658
|
+
"default": 0,
|
|
5659
|
+
"description": "The amount before tax.",
|
|
5660
|
+
"_meta": {
|
|
5661
|
+
"description": "The amount before tax."
|
|
5662
|
+
}
|
|
5338
5663
|
},
|
|
5339
5664
|
"taxAmount": {
|
|
5340
5665
|
"type": "integer",
|
|
5341
5666
|
"required": false,
|
|
5342
|
-
"default": 0
|
|
5667
|
+
"default": 0,
|
|
5668
|
+
"description": "The tax charged.",
|
|
5669
|
+
"_meta": {
|
|
5670
|
+
"description": "The tax charged."
|
|
5671
|
+
}
|
|
5343
5672
|
},
|
|
5344
5673
|
"totalAmount": {
|
|
5345
5674
|
"type": "integer",
|
|
5346
5675
|
"required": false,
|
|
5347
|
-
"default": 0
|
|
5676
|
+
"default": 0,
|
|
5677
|
+
"description": "The full amount, tax included.",
|
|
5678
|
+
"_meta": {
|
|
5679
|
+
"description": "The full amount, tax included."
|
|
5680
|
+
}
|
|
5348
5681
|
},
|
|
5349
5682
|
"currency": {
|
|
5350
5683
|
"type": "text",
|
|
5351
5684
|
"required": false,
|
|
5352
|
-
"default": "USD"
|
|
5685
|
+
"default": "USD",
|
|
5686
|
+
"description": "The currency of the amounts.",
|
|
5687
|
+
"_meta": {
|
|
5688
|
+
"description": "The currency of the amounts."
|
|
5689
|
+
}
|
|
5353
5690
|
},
|
|
5354
5691
|
"issueDate": {
|
|
5355
5692
|
"type": "datetime",
|
|
5356
|
-
"required": false
|
|
5693
|
+
"required": false,
|
|
5694
|
+
"description": "The date it was issued or placed.",
|
|
5695
|
+
"_meta": {
|
|
5696
|
+
"description": "The date it was issued or placed."
|
|
5697
|
+
}
|
|
5357
5698
|
},
|
|
5358
5699
|
"dueDate": {
|
|
5359
5700
|
"type": "datetime",
|
|
5360
|
-
"required": false
|
|
5701
|
+
"required": false,
|
|
5702
|
+
"description": "The date payment or delivery is due.",
|
|
5703
|
+
"_meta": {
|
|
5704
|
+
"description": "The date payment or delivery is due."
|
|
5705
|
+
}
|
|
5361
5706
|
},
|
|
5362
5707
|
"expiryDate": {
|
|
5363
5708
|
"type": "datetime",
|
|
5364
|
-
"required": false
|
|
5709
|
+
"required": false,
|
|
5710
|
+
"description": "The last day the price or offer is good for.",
|
|
5711
|
+
"_meta": {
|
|
5712
|
+
"description": "The last day the price or offer is good for."
|
|
5713
|
+
}
|
|
5365
5714
|
},
|
|
5366
5715
|
"reference": {
|
|
5367
5716
|
"type": "text",
|
|
5368
5717
|
"required": false,
|
|
5369
|
-
"default": ""
|
|
5718
|
+
"default": "",
|
|
5719
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number.",
|
|
5720
|
+
"_meta": {
|
|
5721
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number."
|
|
5722
|
+
}
|
|
5370
5723
|
},
|
|
5371
5724
|
"notes": {
|
|
5372
5725
|
"type": "text",
|
|
5373
5726
|
"required": false,
|
|
5374
|
-
"default": ""
|
|
5727
|
+
"default": "",
|
|
5728
|
+
"description": "Anything worth remembering about this.",
|
|
5729
|
+
"_meta": {
|
|
5730
|
+
"description": "Anything worth remembering about this."
|
|
5731
|
+
}
|
|
5375
5732
|
},
|
|
5376
5733
|
"terms": {
|
|
5377
5734
|
"type": "text",
|
|
5378
5735
|
"required": false,
|
|
5379
|
-
"default": ""
|
|
5736
|
+
"default": "",
|
|
5737
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions.",
|
|
5738
|
+
"_meta": {
|
|
5739
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions."
|
|
5740
|
+
}
|
|
5380
5741
|
},
|
|
5381
5742
|
"channelId": {
|
|
5382
5743
|
"type": "text",
|
|
5383
5744
|
"required": false,
|
|
5384
|
-
"default": ""
|
|
5745
|
+
"default": "",
|
|
5746
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call.",
|
|
5747
|
+
"_meta": {
|
|
5748
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call."
|
|
5749
|
+
}
|
|
5385
5750
|
}
|
|
5386
5751
|
},
|
|
5387
5752
|
"methods": {
|
|
@@ -5663,73 +6028,146 @@
|
|
|
5663
6028
|
},
|
|
5664
6029
|
"contractType": {
|
|
5665
6030
|
"type": "text",
|
|
5666
|
-
"required": false
|
|
6031
|
+
"required": false,
|
|
6032
|
+
"enum": [
|
|
6033
|
+
"estimate",
|
|
6034
|
+
"order",
|
|
6035
|
+
"lease",
|
|
6036
|
+
"agreement",
|
|
6037
|
+
"purchase_order",
|
|
6038
|
+
"wholesale_order",
|
|
6039
|
+
"production_order",
|
|
6040
|
+
"cart",
|
|
6041
|
+
"license_sale"
|
|
6042
|
+
]
|
|
5667
6043
|
},
|
|
5668
6044
|
"status": {
|
|
5669
6045
|
"type": "text",
|
|
5670
|
-
"required": false
|
|
6046
|
+
"required": false,
|
|
6047
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed.",
|
|
6048
|
+
"_meta": {
|
|
6049
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed."
|
|
6050
|
+
},
|
|
6051
|
+
"enum": [
|
|
6052
|
+
"draft",
|
|
6053
|
+
"sent",
|
|
6054
|
+
"accepted",
|
|
6055
|
+
"declined",
|
|
6056
|
+
"completed",
|
|
6057
|
+
"cancelled"
|
|
6058
|
+
]
|
|
5671
6059
|
},
|
|
5672
6060
|
"customerId": {
|
|
5673
6061
|
"type": "foreignKey",
|
|
5674
6062
|
"required": false,
|
|
5675
|
-
"related": "Customer"
|
|
6063
|
+
"related": "Customer",
|
|
6064
|
+
"_meta": {
|
|
6065
|
+
"description": "The customer a sales order or agreement is for."
|
|
6066
|
+
}
|
|
5676
6067
|
},
|
|
5677
6068
|
"vendorId": {
|
|
5678
6069
|
"type": "foreignKey",
|
|
5679
6070
|
"required": false,
|
|
5680
|
-
"related": "Vendor"
|
|
6071
|
+
"related": "Vendor",
|
|
6072
|
+
"_meta": {
|
|
6073
|
+
"description": "The vendor a purchase order is placed with."
|
|
6074
|
+
}
|
|
5681
6075
|
},
|
|
5682
6076
|
"subtotal": {
|
|
5683
6077
|
"type": "integer",
|
|
5684
6078
|
"required": false,
|
|
5685
|
-
"default": 0
|
|
6079
|
+
"default": 0,
|
|
6080
|
+
"description": "The amount before tax.",
|
|
6081
|
+
"_meta": {
|
|
6082
|
+
"description": "The amount before tax."
|
|
6083
|
+
}
|
|
5686
6084
|
},
|
|
5687
6085
|
"taxAmount": {
|
|
5688
6086
|
"type": "integer",
|
|
5689
6087
|
"required": false,
|
|
5690
|
-
"default": 0
|
|
6088
|
+
"default": 0,
|
|
6089
|
+
"description": "The tax charged.",
|
|
6090
|
+
"_meta": {
|
|
6091
|
+
"description": "The tax charged."
|
|
6092
|
+
}
|
|
5691
6093
|
},
|
|
5692
6094
|
"totalAmount": {
|
|
5693
6095
|
"type": "integer",
|
|
5694
6096
|
"required": false,
|
|
5695
|
-
"default": 0
|
|
6097
|
+
"default": 0,
|
|
6098
|
+
"description": "The full amount, tax included.",
|
|
6099
|
+
"_meta": {
|
|
6100
|
+
"description": "The full amount, tax included."
|
|
6101
|
+
}
|
|
5696
6102
|
},
|
|
5697
6103
|
"currency": {
|
|
5698
6104
|
"type": "text",
|
|
5699
6105
|
"required": false,
|
|
5700
|
-
"default": "USD"
|
|
6106
|
+
"default": "USD",
|
|
6107
|
+
"description": "The currency of the amounts.",
|
|
6108
|
+
"_meta": {
|
|
6109
|
+
"description": "The currency of the amounts."
|
|
6110
|
+
}
|
|
5701
6111
|
},
|
|
5702
6112
|
"issueDate": {
|
|
5703
6113
|
"type": "datetime",
|
|
5704
|
-
"required": false
|
|
6114
|
+
"required": false,
|
|
6115
|
+
"description": "The date it was issued or placed.",
|
|
6116
|
+
"_meta": {
|
|
6117
|
+
"description": "The date it was issued or placed."
|
|
6118
|
+
}
|
|
5705
6119
|
},
|
|
5706
6120
|
"dueDate": {
|
|
5707
6121
|
"type": "datetime",
|
|
5708
|
-
"required": false
|
|
6122
|
+
"required": false,
|
|
6123
|
+
"description": "The date payment or delivery is due.",
|
|
6124
|
+
"_meta": {
|
|
6125
|
+
"description": "The date payment or delivery is due."
|
|
6126
|
+
}
|
|
5709
6127
|
},
|
|
5710
6128
|
"expiryDate": {
|
|
5711
6129
|
"type": "datetime",
|
|
5712
|
-
"required": false
|
|
6130
|
+
"required": false,
|
|
6131
|
+
"description": "The last day the price or offer is good for.",
|
|
6132
|
+
"_meta": {
|
|
6133
|
+
"description": "The last day the price or offer is good for."
|
|
6134
|
+
}
|
|
5713
6135
|
},
|
|
5714
6136
|
"reference": {
|
|
5715
6137
|
"type": "text",
|
|
5716
6138
|
"required": false,
|
|
5717
|
-
"default": ""
|
|
6139
|
+
"default": "",
|
|
6140
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number.",
|
|
6141
|
+
"_meta": {
|
|
6142
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number."
|
|
6143
|
+
}
|
|
5718
6144
|
},
|
|
5719
6145
|
"notes": {
|
|
5720
6146
|
"type": "text",
|
|
5721
6147
|
"required": false,
|
|
5722
|
-
"default": ""
|
|
6148
|
+
"default": "",
|
|
6149
|
+
"description": "Anything worth remembering about this.",
|
|
6150
|
+
"_meta": {
|
|
6151
|
+
"description": "Anything worth remembering about this."
|
|
6152
|
+
}
|
|
5723
6153
|
},
|
|
5724
6154
|
"terms": {
|
|
5725
6155
|
"type": "text",
|
|
5726
6156
|
"required": false,
|
|
5727
|
-
"default": ""
|
|
6157
|
+
"default": "",
|
|
6158
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions.",
|
|
6159
|
+
"_meta": {
|
|
6160
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions."
|
|
6161
|
+
}
|
|
5728
6162
|
},
|
|
5729
6163
|
"channelId": {
|
|
5730
6164
|
"type": "text",
|
|
5731
6165
|
"required": false,
|
|
5732
|
-
"default": ""
|
|
6166
|
+
"default": "",
|
|
6167
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call.",
|
|
6168
|
+
"_meta": {
|
|
6169
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call."
|
|
6170
|
+
}
|
|
5733
6171
|
}
|
|
5734
6172
|
},
|
|
5735
6173
|
"methods": {
|
|
@@ -6011,73 +6449,146 @@
|
|
|
6011
6449
|
},
|
|
6012
6450
|
"contractType": {
|
|
6013
6451
|
"type": "text",
|
|
6014
|
-
"required": false
|
|
6452
|
+
"required": false,
|
|
6453
|
+
"enum": [
|
|
6454
|
+
"estimate",
|
|
6455
|
+
"order",
|
|
6456
|
+
"lease",
|
|
6457
|
+
"agreement",
|
|
6458
|
+
"purchase_order",
|
|
6459
|
+
"wholesale_order",
|
|
6460
|
+
"production_order",
|
|
6461
|
+
"cart",
|
|
6462
|
+
"license_sale"
|
|
6463
|
+
]
|
|
6015
6464
|
},
|
|
6016
6465
|
"status": {
|
|
6017
6466
|
"type": "text",
|
|
6018
|
-
"required": false
|
|
6467
|
+
"required": false,
|
|
6468
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed.",
|
|
6469
|
+
"_meta": {
|
|
6470
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed."
|
|
6471
|
+
},
|
|
6472
|
+
"enum": [
|
|
6473
|
+
"draft",
|
|
6474
|
+
"sent",
|
|
6475
|
+
"accepted",
|
|
6476
|
+
"declined",
|
|
6477
|
+
"completed",
|
|
6478
|
+
"cancelled"
|
|
6479
|
+
]
|
|
6019
6480
|
},
|
|
6020
6481
|
"customerId": {
|
|
6021
6482
|
"type": "foreignKey",
|
|
6022
6483
|
"required": false,
|
|
6023
|
-
"related": "Customer"
|
|
6484
|
+
"related": "Customer",
|
|
6485
|
+
"_meta": {
|
|
6486
|
+
"description": "The customer a sales order or agreement is for."
|
|
6487
|
+
}
|
|
6024
6488
|
},
|
|
6025
6489
|
"vendorId": {
|
|
6026
6490
|
"type": "foreignKey",
|
|
6027
6491
|
"required": false,
|
|
6028
|
-
"related": "Vendor"
|
|
6492
|
+
"related": "Vendor",
|
|
6493
|
+
"_meta": {
|
|
6494
|
+
"description": "The vendor a purchase order is placed with."
|
|
6495
|
+
}
|
|
6029
6496
|
},
|
|
6030
6497
|
"subtotal": {
|
|
6031
6498
|
"type": "integer",
|
|
6032
6499
|
"required": false,
|
|
6033
|
-
"default": 0
|
|
6500
|
+
"default": 0,
|
|
6501
|
+
"description": "The amount before tax.",
|
|
6502
|
+
"_meta": {
|
|
6503
|
+
"description": "The amount before tax."
|
|
6504
|
+
}
|
|
6034
6505
|
},
|
|
6035
6506
|
"taxAmount": {
|
|
6036
6507
|
"type": "integer",
|
|
6037
6508
|
"required": false,
|
|
6038
|
-
"default": 0
|
|
6509
|
+
"default": 0,
|
|
6510
|
+
"description": "The tax charged.",
|
|
6511
|
+
"_meta": {
|
|
6512
|
+
"description": "The tax charged."
|
|
6513
|
+
}
|
|
6039
6514
|
},
|
|
6040
6515
|
"totalAmount": {
|
|
6041
6516
|
"type": "integer",
|
|
6042
6517
|
"required": false,
|
|
6043
|
-
"default": 0
|
|
6518
|
+
"default": 0,
|
|
6519
|
+
"description": "The full amount, tax included.",
|
|
6520
|
+
"_meta": {
|
|
6521
|
+
"description": "The full amount, tax included."
|
|
6522
|
+
}
|
|
6044
6523
|
},
|
|
6045
6524
|
"currency": {
|
|
6046
6525
|
"type": "text",
|
|
6047
6526
|
"required": false,
|
|
6048
|
-
"default": "USD"
|
|
6527
|
+
"default": "USD",
|
|
6528
|
+
"description": "The currency of the amounts.",
|
|
6529
|
+
"_meta": {
|
|
6530
|
+
"description": "The currency of the amounts."
|
|
6531
|
+
}
|
|
6049
6532
|
},
|
|
6050
6533
|
"issueDate": {
|
|
6051
6534
|
"type": "datetime",
|
|
6052
|
-
"required": false
|
|
6535
|
+
"required": false,
|
|
6536
|
+
"description": "The date it was issued or placed.",
|
|
6537
|
+
"_meta": {
|
|
6538
|
+
"description": "The date it was issued or placed."
|
|
6539
|
+
}
|
|
6053
6540
|
},
|
|
6054
6541
|
"dueDate": {
|
|
6055
6542
|
"type": "datetime",
|
|
6056
|
-
"required": false
|
|
6543
|
+
"required": false,
|
|
6544
|
+
"description": "The date payment or delivery is due.",
|
|
6545
|
+
"_meta": {
|
|
6546
|
+
"description": "The date payment or delivery is due."
|
|
6547
|
+
}
|
|
6057
6548
|
},
|
|
6058
6549
|
"expiryDate": {
|
|
6059
6550
|
"type": "datetime",
|
|
6060
|
-
"required": false
|
|
6551
|
+
"required": false,
|
|
6552
|
+
"description": "The last day the price or offer is good for.",
|
|
6553
|
+
"_meta": {
|
|
6554
|
+
"description": "The last day the price or offer is good for."
|
|
6555
|
+
}
|
|
6061
6556
|
},
|
|
6062
6557
|
"reference": {
|
|
6063
6558
|
"type": "text",
|
|
6064
6559
|
"required": false,
|
|
6065
|
-
"default": ""
|
|
6560
|
+
"default": "",
|
|
6561
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number.",
|
|
6562
|
+
"_meta": {
|
|
6563
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number."
|
|
6564
|
+
}
|
|
6066
6565
|
},
|
|
6067
6566
|
"notes": {
|
|
6068
6567
|
"type": "text",
|
|
6069
6568
|
"required": false,
|
|
6070
|
-
"default": ""
|
|
6569
|
+
"default": "",
|
|
6570
|
+
"description": "Anything worth remembering about this.",
|
|
6571
|
+
"_meta": {
|
|
6572
|
+
"description": "Anything worth remembering about this."
|
|
6573
|
+
}
|
|
6071
6574
|
},
|
|
6072
6575
|
"terms": {
|
|
6073
6576
|
"type": "text",
|
|
6074
6577
|
"required": false,
|
|
6075
|
-
"default": ""
|
|
6578
|
+
"default": "",
|
|
6579
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions.",
|
|
6580
|
+
"_meta": {
|
|
6581
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions."
|
|
6582
|
+
}
|
|
6076
6583
|
},
|
|
6077
6584
|
"channelId": {
|
|
6078
6585
|
"type": "text",
|
|
6079
6586
|
"required": false,
|
|
6080
|
-
"default": ""
|
|
6587
|
+
"default": "",
|
|
6588
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call.",
|
|
6589
|
+
"_meta": {
|
|
6590
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call."
|
|
6591
|
+
}
|
|
6081
6592
|
}
|
|
6082
6593
|
},
|
|
6083
6594
|
"methods": {
|
|
@@ -6359,73 +6870,146 @@
|
|
|
6359
6870
|
},
|
|
6360
6871
|
"contractType": {
|
|
6361
6872
|
"type": "text",
|
|
6362
|
-
"required": false
|
|
6873
|
+
"required": false,
|
|
6874
|
+
"enum": [
|
|
6875
|
+
"estimate",
|
|
6876
|
+
"order",
|
|
6877
|
+
"lease",
|
|
6878
|
+
"agreement",
|
|
6879
|
+
"purchase_order",
|
|
6880
|
+
"wholesale_order",
|
|
6881
|
+
"production_order",
|
|
6882
|
+
"cart",
|
|
6883
|
+
"license_sale"
|
|
6884
|
+
]
|
|
6363
6885
|
},
|
|
6364
6886
|
"status": {
|
|
6365
6887
|
"type": "text",
|
|
6366
|
-
"required": false
|
|
6888
|
+
"required": false,
|
|
6889
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed.",
|
|
6890
|
+
"_meta": {
|
|
6891
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed."
|
|
6892
|
+
},
|
|
6893
|
+
"enum": [
|
|
6894
|
+
"draft",
|
|
6895
|
+
"sent",
|
|
6896
|
+
"accepted",
|
|
6897
|
+
"declined",
|
|
6898
|
+
"completed",
|
|
6899
|
+
"cancelled"
|
|
6900
|
+
]
|
|
6367
6901
|
},
|
|
6368
6902
|
"customerId": {
|
|
6369
6903
|
"type": "foreignKey",
|
|
6370
6904
|
"required": false,
|
|
6371
|
-
"related": "Customer"
|
|
6905
|
+
"related": "Customer",
|
|
6906
|
+
"_meta": {
|
|
6907
|
+
"description": "The customer a sales order or agreement is for."
|
|
6908
|
+
}
|
|
6372
6909
|
},
|
|
6373
6910
|
"vendorId": {
|
|
6374
6911
|
"type": "foreignKey",
|
|
6375
6912
|
"required": false,
|
|
6376
|
-
"related": "Vendor"
|
|
6913
|
+
"related": "Vendor",
|
|
6914
|
+
"_meta": {
|
|
6915
|
+
"description": "The vendor a purchase order is placed with."
|
|
6916
|
+
}
|
|
6377
6917
|
},
|
|
6378
6918
|
"subtotal": {
|
|
6379
6919
|
"type": "integer",
|
|
6380
6920
|
"required": false,
|
|
6381
|
-
"default": 0
|
|
6921
|
+
"default": 0,
|
|
6922
|
+
"description": "The amount before tax.",
|
|
6923
|
+
"_meta": {
|
|
6924
|
+
"description": "The amount before tax."
|
|
6925
|
+
}
|
|
6382
6926
|
},
|
|
6383
6927
|
"taxAmount": {
|
|
6384
6928
|
"type": "integer",
|
|
6385
6929
|
"required": false,
|
|
6386
|
-
"default": 0
|
|
6930
|
+
"default": 0,
|
|
6931
|
+
"description": "The tax charged.",
|
|
6932
|
+
"_meta": {
|
|
6933
|
+
"description": "The tax charged."
|
|
6934
|
+
}
|
|
6387
6935
|
},
|
|
6388
6936
|
"totalAmount": {
|
|
6389
6937
|
"type": "integer",
|
|
6390
6938
|
"required": false,
|
|
6391
|
-
"default": 0
|
|
6939
|
+
"default": 0,
|
|
6940
|
+
"description": "The full amount, tax included.",
|
|
6941
|
+
"_meta": {
|
|
6942
|
+
"description": "The full amount, tax included."
|
|
6943
|
+
}
|
|
6392
6944
|
},
|
|
6393
6945
|
"currency": {
|
|
6394
6946
|
"type": "text",
|
|
6395
6947
|
"required": false,
|
|
6396
|
-
"default": "USD"
|
|
6948
|
+
"default": "USD",
|
|
6949
|
+
"description": "The currency of the amounts.",
|
|
6950
|
+
"_meta": {
|
|
6951
|
+
"description": "The currency of the amounts."
|
|
6952
|
+
}
|
|
6397
6953
|
},
|
|
6398
6954
|
"issueDate": {
|
|
6399
6955
|
"type": "datetime",
|
|
6400
|
-
"required": false
|
|
6956
|
+
"required": false,
|
|
6957
|
+
"description": "The date it was issued or placed.",
|
|
6958
|
+
"_meta": {
|
|
6959
|
+
"description": "The date it was issued or placed."
|
|
6960
|
+
}
|
|
6401
6961
|
},
|
|
6402
6962
|
"dueDate": {
|
|
6403
6963
|
"type": "datetime",
|
|
6404
|
-
"required": false
|
|
6964
|
+
"required": false,
|
|
6965
|
+
"description": "The date payment or delivery is due.",
|
|
6966
|
+
"_meta": {
|
|
6967
|
+
"description": "The date payment or delivery is due."
|
|
6968
|
+
}
|
|
6405
6969
|
},
|
|
6406
6970
|
"expiryDate": {
|
|
6407
6971
|
"type": "datetime",
|
|
6408
|
-
"required": false
|
|
6972
|
+
"required": false,
|
|
6973
|
+
"description": "The last day the price or offer is good for.",
|
|
6974
|
+
"_meta": {
|
|
6975
|
+
"description": "The last day the price or offer is good for."
|
|
6976
|
+
}
|
|
6409
6977
|
},
|
|
6410
6978
|
"reference": {
|
|
6411
6979
|
"type": "text",
|
|
6412
6980
|
"required": false,
|
|
6413
|
-
"default": ""
|
|
6981
|
+
"default": "",
|
|
6982
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number.",
|
|
6983
|
+
"_meta": {
|
|
6984
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number."
|
|
6985
|
+
}
|
|
6414
6986
|
},
|
|
6415
6987
|
"notes": {
|
|
6416
6988
|
"type": "text",
|
|
6417
6989
|
"required": false,
|
|
6418
|
-
"default": ""
|
|
6990
|
+
"default": "",
|
|
6991
|
+
"description": "Anything worth remembering about this.",
|
|
6992
|
+
"_meta": {
|
|
6993
|
+
"description": "Anything worth remembering about this."
|
|
6994
|
+
}
|
|
6419
6995
|
},
|
|
6420
6996
|
"terms": {
|
|
6421
6997
|
"type": "text",
|
|
6422
6998
|
"required": false,
|
|
6423
|
-
"default": ""
|
|
6999
|
+
"default": "",
|
|
7000
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions.",
|
|
7001
|
+
"_meta": {
|
|
7002
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions."
|
|
7003
|
+
}
|
|
6424
7004
|
},
|
|
6425
7005
|
"channelId": {
|
|
6426
7006
|
"type": "text",
|
|
6427
7007
|
"required": false,
|
|
6428
|
-
"default": ""
|
|
7008
|
+
"default": "",
|
|
7009
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call.",
|
|
7010
|
+
"_meta": {
|
|
7011
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call."
|
|
7012
|
+
}
|
|
6429
7013
|
},
|
|
6430
7014
|
"productId": {
|
|
6431
7015
|
"type": "meta",
|
|
@@ -6723,73 +7307,146 @@
|
|
|
6723
7307
|
},
|
|
6724
7308
|
"contractType": {
|
|
6725
7309
|
"type": "text",
|
|
6726
|
-
"required": false
|
|
7310
|
+
"required": false,
|
|
7311
|
+
"enum": [
|
|
7312
|
+
"estimate",
|
|
7313
|
+
"order",
|
|
7314
|
+
"lease",
|
|
7315
|
+
"agreement",
|
|
7316
|
+
"purchase_order",
|
|
7317
|
+
"wholesale_order",
|
|
7318
|
+
"production_order",
|
|
7319
|
+
"cart",
|
|
7320
|
+
"license_sale"
|
|
7321
|
+
]
|
|
6727
7322
|
},
|
|
6728
7323
|
"status": {
|
|
6729
7324
|
"type": "text",
|
|
6730
|
-
"required": false
|
|
7325
|
+
"required": false,
|
|
7326
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed.",
|
|
7327
|
+
"_meta": {
|
|
7328
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed."
|
|
7329
|
+
},
|
|
7330
|
+
"enum": [
|
|
7331
|
+
"draft",
|
|
7332
|
+
"sent",
|
|
7333
|
+
"accepted",
|
|
7334
|
+
"declined",
|
|
7335
|
+
"completed",
|
|
7336
|
+
"cancelled"
|
|
7337
|
+
]
|
|
6731
7338
|
},
|
|
6732
7339
|
"customerId": {
|
|
6733
7340
|
"type": "foreignKey",
|
|
6734
7341
|
"required": false,
|
|
6735
|
-
"related": "Customer"
|
|
7342
|
+
"related": "Customer",
|
|
7343
|
+
"_meta": {
|
|
7344
|
+
"description": "The customer a sales order or agreement is for."
|
|
7345
|
+
}
|
|
6736
7346
|
},
|
|
6737
7347
|
"vendorId": {
|
|
6738
7348
|
"type": "foreignKey",
|
|
6739
7349
|
"required": false,
|
|
6740
|
-
"related": "Vendor"
|
|
7350
|
+
"related": "Vendor",
|
|
7351
|
+
"_meta": {
|
|
7352
|
+
"description": "The vendor a purchase order is placed with."
|
|
7353
|
+
}
|
|
6741
7354
|
},
|
|
6742
7355
|
"subtotal": {
|
|
6743
7356
|
"type": "integer",
|
|
6744
7357
|
"required": false,
|
|
6745
|
-
"default": 0
|
|
7358
|
+
"default": 0,
|
|
7359
|
+
"description": "The amount before tax.",
|
|
7360
|
+
"_meta": {
|
|
7361
|
+
"description": "The amount before tax."
|
|
7362
|
+
}
|
|
6746
7363
|
},
|
|
6747
7364
|
"taxAmount": {
|
|
6748
7365
|
"type": "integer",
|
|
6749
7366
|
"required": false,
|
|
6750
|
-
"default": 0
|
|
7367
|
+
"default": 0,
|
|
7368
|
+
"description": "The tax charged.",
|
|
7369
|
+
"_meta": {
|
|
7370
|
+
"description": "The tax charged."
|
|
7371
|
+
}
|
|
6751
7372
|
},
|
|
6752
7373
|
"totalAmount": {
|
|
6753
7374
|
"type": "integer",
|
|
6754
7375
|
"required": false,
|
|
6755
|
-
"default": 0
|
|
7376
|
+
"default": 0,
|
|
7377
|
+
"description": "The full amount, tax included.",
|
|
7378
|
+
"_meta": {
|
|
7379
|
+
"description": "The full amount, tax included."
|
|
7380
|
+
}
|
|
6756
7381
|
},
|
|
6757
7382
|
"currency": {
|
|
6758
7383
|
"type": "text",
|
|
6759
7384
|
"required": false,
|
|
6760
|
-
"default": "USD"
|
|
7385
|
+
"default": "USD",
|
|
7386
|
+
"description": "The currency of the amounts.",
|
|
7387
|
+
"_meta": {
|
|
7388
|
+
"description": "The currency of the amounts."
|
|
7389
|
+
}
|
|
6761
7390
|
},
|
|
6762
7391
|
"issueDate": {
|
|
6763
7392
|
"type": "datetime",
|
|
6764
|
-
"required": false
|
|
7393
|
+
"required": false,
|
|
7394
|
+
"description": "The date it was issued or placed.",
|
|
7395
|
+
"_meta": {
|
|
7396
|
+
"description": "The date it was issued or placed."
|
|
7397
|
+
}
|
|
6765
7398
|
},
|
|
6766
7399
|
"dueDate": {
|
|
6767
7400
|
"type": "datetime",
|
|
6768
|
-
"required": false
|
|
7401
|
+
"required": false,
|
|
7402
|
+
"description": "The date payment or delivery is due.",
|
|
7403
|
+
"_meta": {
|
|
7404
|
+
"description": "The date payment or delivery is due."
|
|
7405
|
+
}
|
|
6769
7406
|
},
|
|
6770
7407
|
"expiryDate": {
|
|
6771
7408
|
"type": "datetime",
|
|
6772
|
-
"required": false
|
|
7409
|
+
"required": false,
|
|
7410
|
+
"description": "The last day the price or offer is good for.",
|
|
7411
|
+
"_meta": {
|
|
7412
|
+
"description": "The last day the price or offer is good for."
|
|
7413
|
+
}
|
|
6773
7414
|
},
|
|
6774
7415
|
"reference": {
|
|
6775
7416
|
"type": "text",
|
|
6776
7417
|
"required": false,
|
|
6777
|
-
"default": ""
|
|
7418
|
+
"default": "",
|
|
7419
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number.",
|
|
7420
|
+
"_meta": {
|
|
7421
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number."
|
|
7422
|
+
}
|
|
6778
7423
|
},
|
|
6779
7424
|
"notes": {
|
|
6780
7425
|
"type": "text",
|
|
6781
7426
|
"required": false,
|
|
6782
|
-
"default": ""
|
|
7427
|
+
"default": "",
|
|
7428
|
+
"description": "Anything worth remembering about this.",
|
|
7429
|
+
"_meta": {
|
|
7430
|
+
"description": "Anything worth remembering about this."
|
|
7431
|
+
}
|
|
6783
7432
|
},
|
|
6784
7433
|
"terms": {
|
|
6785
7434
|
"type": "text",
|
|
6786
7435
|
"required": false,
|
|
6787
|
-
"default": ""
|
|
7436
|
+
"default": "",
|
|
7437
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions.",
|
|
7438
|
+
"_meta": {
|
|
7439
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions."
|
|
7440
|
+
}
|
|
6788
7441
|
},
|
|
6789
7442
|
"channelId": {
|
|
6790
7443
|
"type": "text",
|
|
6791
7444
|
"required": false,
|
|
6792
|
-
"default": ""
|
|
7445
|
+
"default": "",
|
|
7446
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call.",
|
|
7447
|
+
"_meta": {
|
|
7448
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call."
|
|
7449
|
+
}
|
|
6793
7450
|
}
|
|
6794
7451
|
},
|
|
6795
7452
|
"methods": {
|
|
@@ -7071,73 +7728,146 @@
|
|
|
7071
7728
|
},
|
|
7072
7729
|
"contractType": {
|
|
7073
7730
|
"type": "text",
|
|
7074
|
-
"required": false
|
|
7731
|
+
"required": false,
|
|
7732
|
+
"enum": [
|
|
7733
|
+
"estimate",
|
|
7734
|
+
"order",
|
|
7735
|
+
"lease",
|
|
7736
|
+
"agreement",
|
|
7737
|
+
"purchase_order",
|
|
7738
|
+
"wholesale_order",
|
|
7739
|
+
"production_order",
|
|
7740
|
+
"cart",
|
|
7741
|
+
"license_sale"
|
|
7742
|
+
]
|
|
7075
7743
|
},
|
|
7076
7744
|
"status": {
|
|
7077
7745
|
"type": "text",
|
|
7078
|
-
"required": false
|
|
7746
|
+
"required": false,
|
|
7747
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed.",
|
|
7748
|
+
"_meta": {
|
|
7749
|
+
"description": "Where the order or agreement stands, for example draft, sent, accepted or completed."
|
|
7750
|
+
},
|
|
7751
|
+
"enum": [
|
|
7752
|
+
"draft",
|
|
7753
|
+
"sent",
|
|
7754
|
+
"accepted",
|
|
7755
|
+
"declined",
|
|
7756
|
+
"completed",
|
|
7757
|
+
"cancelled"
|
|
7758
|
+
]
|
|
7079
7759
|
},
|
|
7080
7760
|
"customerId": {
|
|
7081
7761
|
"type": "foreignKey",
|
|
7082
7762
|
"required": false,
|
|
7083
|
-
"related": "Customer"
|
|
7763
|
+
"related": "Customer",
|
|
7764
|
+
"_meta": {
|
|
7765
|
+
"description": "The customer a sales order or agreement is for."
|
|
7766
|
+
}
|
|
7084
7767
|
},
|
|
7085
7768
|
"vendorId": {
|
|
7086
7769
|
"type": "foreignKey",
|
|
7087
7770
|
"required": false,
|
|
7088
|
-
"related": "Vendor"
|
|
7771
|
+
"related": "Vendor",
|
|
7772
|
+
"_meta": {
|
|
7773
|
+
"description": "The vendor a purchase order is placed with."
|
|
7774
|
+
}
|
|
7089
7775
|
},
|
|
7090
7776
|
"subtotal": {
|
|
7091
7777
|
"type": "integer",
|
|
7092
7778
|
"required": false,
|
|
7093
|
-
"default": 0
|
|
7779
|
+
"default": 0,
|
|
7780
|
+
"description": "The amount before tax.",
|
|
7781
|
+
"_meta": {
|
|
7782
|
+
"description": "The amount before tax."
|
|
7783
|
+
}
|
|
7094
7784
|
},
|
|
7095
7785
|
"taxAmount": {
|
|
7096
7786
|
"type": "integer",
|
|
7097
7787
|
"required": false,
|
|
7098
|
-
"default": 0
|
|
7788
|
+
"default": 0,
|
|
7789
|
+
"description": "The tax charged.",
|
|
7790
|
+
"_meta": {
|
|
7791
|
+
"description": "The tax charged."
|
|
7792
|
+
}
|
|
7099
7793
|
},
|
|
7100
7794
|
"totalAmount": {
|
|
7101
7795
|
"type": "integer",
|
|
7102
7796
|
"required": false,
|
|
7103
|
-
"default": 0
|
|
7797
|
+
"default": 0,
|
|
7798
|
+
"description": "The full amount, tax included.",
|
|
7799
|
+
"_meta": {
|
|
7800
|
+
"description": "The full amount, tax included."
|
|
7801
|
+
}
|
|
7104
7802
|
},
|
|
7105
7803
|
"currency": {
|
|
7106
7804
|
"type": "text",
|
|
7107
7805
|
"required": false,
|
|
7108
|
-
"default": "USD"
|
|
7806
|
+
"default": "USD",
|
|
7807
|
+
"description": "The currency of the amounts.",
|
|
7808
|
+
"_meta": {
|
|
7809
|
+
"description": "The currency of the amounts."
|
|
7810
|
+
}
|
|
7109
7811
|
},
|
|
7110
7812
|
"issueDate": {
|
|
7111
7813
|
"type": "datetime",
|
|
7112
|
-
"required": false
|
|
7814
|
+
"required": false,
|
|
7815
|
+
"description": "The date it was issued or placed.",
|
|
7816
|
+
"_meta": {
|
|
7817
|
+
"description": "The date it was issued or placed."
|
|
7818
|
+
}
|
|
7113
7819
|
},
|
|
7114
7820
|
"dueDate": {
|
|
7115
7821
|
"type": "datetime",
|
|
7116
|
-
"required": false
|
|
7822
|
+
"required": false,
|
|
7823
|
+
"description": "The date payment or delivery is due.",
|
|
7824
|
+
"_meta": {
|
|
7825
|
+
"description": "The date payment or delivery is due."
|
|
7826
|
+
}
|
|
7117
7827
|
},
|
|
7118
7828
|
"expiryDate": {
|
|
7119
7829
|
"type": "datetime",
|
|
7120
|
-
"required": false
|
|
7830
|
+
"required": false,
|
|
7831
|
+
"description": "The last day the price or offer is good for.",
|
|
7832
|
+
"_meta": {
|
|
7833
|
+
"description": "The last day the price or offer is good for."
|
|
7834
|
+
}
|
|
7121
7835
|
},
|
|
7122
7836
|
"reference": {
|
|
7123
7837
|
"type": "text",
|
|
7124
7838
|
"required": false,
|
|
7125
|
-
"default": ""
|
|
7839
|
+
"default": "",
|
|
7840
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number.",
|
|
7841
|
+
"_meta": {
|
|
7842
|
+
"description": "Your own number or note for finding this later, such as a purchase order or quote number."
|
|
7843
|
+
}
|
|
7126
7844
|
},
|
|
7127
7845
|
"notes": {
|
|
7128
7846
|
"type": "text",
|
|
7129
7847
|
"required": false,
|
|
7130
|
-
"default": ""
|
|
7848
|
+
"default": "",
|
|
7849
|
+
"description": "Anything worth remembering about this.",
|
|
7850
|
+
"_meta": {
|
|
7851
|
+
"description": "Anything worth remembering about this."
|
|
7852
|
+
}
|
|
7131
7853
|
},
|
|
7132
7854
|
"terms": {
|
|
7133
7855
|
"type": "text",
|
|
7134
7856
|
"required": false,
|
|
7135
|
-
"default": ""
|
|
7857
|
+
"default": "",
|
|
7858
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions.",
|
|
7859
|
+
"_meta": {
|
|
7860
|
+
"description": "The conditions agreed, such as deposits, payment or delivery conditions."
|
|
7861
|
+
}
|
|
7136
7862
|
},
|
|
7137
7863
|
"channelId": {
|
|
7138
7864
|
"type": "text",
|
|
7139
7865
|
"required": false,
|
|
7140
|
-
"default": ""
|
|
7866
|
+
"default": "",
|
|
7867
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call.",
|
|
7868
|
+
"_meta": {
|
|
7869
|
+
"description": "Where it came from, for example your shop, a marketplace or a phone call."
|
|
7870
|
+
}
|
|
7141
7871
|
},
|
|
7142
7872
|
"skuId": {
|
|
7143
7873
|
"type": "meta",
|
|
@@ -7859,52 +8589,99 @@
|
|
|
7859
8589
|
"profileId": {
|
|
7860
8590
|
"type": "crossPackageRef",
|
|
7861
8591
|
"required": false,
|
|
7862
|
-
"related": "@happyvertical/smrt-profiles:Profile"
|
|
8592
|
+
"related": "@happyvertical/smrt-profiles:Profile",
|
|
8593
|
+
"_meta": {
|
|
8594
|
+
"description": "Links this customer to their profile record, where their name and contact details are kept."
|
|
8595
|
+
}
|
|
7863
8596
|
},
|
|
7864
8597
|
"creditLimit": {
|
|
7865
8598
|
"type": "integer",
|
|
7866
8599
|
"required": false,
|
|
7867
|
-
"default": 0
|
|
8600
|
+
"default": 0,
|
|
8601
|
+
"description": "The most this customer may owe you at one time. Leave it at zero if you do not set limits.",
|
|
8602
|
+
"_meta": {
|
|
8603
|
+
"description": "The most this customer may owe you at one time. Leave it at zero if you do not set limits."
|
|
8604
|
+
}
|
|
7868
8605
|
},
|
|
7869
8606
|
"paymentTerms": {
|
|
7870
8607
|
"type": "text",
|
|
7871
8608
|
"required": false,
|
|
7872
|
-
"default": ""
|
|
8609
|
+
"default": "",
|
|
8610
|
+
"description": "How long the customer has to pay, written the way you would say it, for example \"Net 30\".",
|
|
8611
|
+
"_meta": {
|
|
8612
|
+
"description": "How long the customer has to pay, written the way you would say it, for example \"Net 30\"."
|
|
8613
|
+
}
|
|
7873
8614
|
},
|
|
7874
8615
|
"taxExempt": {
|
|
7875
8616
|
"type": "boolean",
|
|
7876
8617
|
"required": false,
|
|
7877
|
-
"default": false
|
|
8618
|
+
"default": false,
|
|
8619
|
+
"description": "Turn this on if you do not charge this customer sales tax.",
|
|
8620
|
+
"_meta": {
|
|
8621
|
+
"description": "Turn this on if you do not charge this customer sales tax."
|
|
8622
|
+
}
|
|
7878
8623
|
},
|
|
7879
8624
|
"taxId": {
|
|
7880
8625
|
"type": "text",
|
|
7881
8626
|
"required": false,
|
|
7882
8627
|
"default": "",
|
|
8628
|
+
"description": "The tax or VAT number of the customer, kept on file for tax-exempt sales.",
|
|
7883
8629
|
"_meta": {
|
|
7884
|
-
"sensitive": true
|
|
8630
|
+
"sensitive": true,
|
|
8631
|
+
"description": "The tax or VAT number of the customer, kept on file for tax-exempt sales."
|
|
7885
8632
|
},
|
|
7886
8633
|
"sensitive": true
|
|
7887
8634
|
},
|
|
7888
8635
|
"defaultShippingAddress": {
|
|
7889
8636
|
"type": "json",
|
|
7890
|
-
"required": false
|
|
8637
|
+
"required": false,
|
|
8638
|
+
"description": "Where you usually send goods to this customer, so you do not retype it on every order.",
|
|
8639
|
+
"_meta": {
|
|
8640
|
+
"description": "Where you usually send goods to this customer, so you do not retype it on every order."
|
|
8641
|
+
}
|
|
7891
8642
|
},
|
|
7892
8643
|
"defaultBillingAddress": {
|
|
7893
8644
|
"type": "json",
|
|
7894
|
-
"required": false
|
|
8645
|
+
"required": false,
|
|
8646
|
+
"description": "Where you send invoices to this customer.",
|
|
8647
|
+
"_meta": {
|
|
8648
|
+
"description": "Where you send invoices to this customer."
|
|
8649
|
+
}
|
|
7895
8650
|
},
|
|
7896
8651
|
"status": {
|
|
7897
8652
|
"type": "text",
|
|
7898
|
-
"required": false
|
|
8653
|
+
"required": false,
|
|
8654
|
+
"description": "Whether you are still dealing with this customer: active, inactive or suspended.",
|
|
8655
|
+
"_meta": {
|
|
8656
|
+
"description": "Whether you are still dealing with this customer: active, inactive or suspended."
|
|
8657
|
+
},
|
|
8658
|
+
"enum": [
|
|
8659
|
+
"active",
|
|
8660
|
+
"inactive",
|
|
8661
|
+
"suspended"
|
|
8662
|
+
]
|
|
7899
8663
|
},
|
|
7900
8664
|
"customerType": {
|
|
7901
8665
|
"type": "text",
|
|
7902
|
-
"required": false
|
|
8666
|
+
"required": false,
|
|
8667
|
+
"description": "The kind of customer: a direct shopper, a wholesale buyer or a retail customer.",
|
|
8668
|
+
"_meta": {
|
|
8669
|
+
"description": "The kind of customer: a direct shopper, a wholesale buyer or a retail customer."
|
|
8670
|
+
},
|
|
8671
|
+
"enum": [
|
|
8672
|
+
"dtc",
|
|
8673
|
+
"wholesale",
|
|
8674
|
+
"retail"
|
|
8675
|
+
]
|
|
7903
8676
|
},
|
|
7904
8677
|
"notes": {
|
|
7905
8678
|
"type": "text",
|
|
7906
8679
|
"required": false,
|
|
7907
|
-
"default": ""
|
|
8680
|
+
"default": "",
|
|
8681
|
+
"description": "Anything worth remembering about this customer.",
|
|
8682
|
+
"_meta": {
|
|
8683
|
+
"description": "Anything worth remembering about this customer."
|
|
8684
|
+
}
|
|
7908
8685
|
}
|
|
7909
8686
|
},
|
|
7910
8687
|
"methods": {
|
|
@@ -8131,11 +8908,25 @@
|
|
|
8131
8908
|
},
|
|
8132
8909
|
"fulfillmentType": {
|
|
8133
8910
|
"type": "text",
|
|
8134
|
-
"required": false
|
|
8911
|
+
"required": false,
|
|
8912
|
+
"enum": [
|
|
8913
|
+
"shipment",
|
|
8914
|
+
"delivery",
|
|
8915
|
+
"pickup",
|
|
8916
|
+
"digital",
|
|
8917
|
+
"service"
|
|
8918
|
+
]
|
|
8135
8919
|
},
|
|
8136
8920
|
"status": {
|
|
8137
8921
|
"type": "text",
|
|
8138
|
-
"required": false
|
|
8922
|
+
"required": false,
|
|
8923
|
+
"enum": [
|
|
8924
|
+
"pending",
|
|
8925
|
+
"processing",
|
|
8926
|
+
"shipped",
|
|
8927
|
+
"delivered",
|
|
8928
|
+
"cancelled"
|
|
8929
|
+
]
|
|
8139
8930
|
},
|
|
8140
8931
|
"trackingNumber": {
|
|
8141
8932
|
"type": "text",
|
|
@@ -8684,7 +9475,17 @@
|
|
|
8684
9475
|
},
|
|
8685
9476
|
"status": {
|
|
8686
9477
|
"type": "text",
|
|
8687
|
-
"required": false
|
|
9478
|
+
"required": false,
|
|
9479
|
+
"enum": [
|
|
9480
|
+
"draft",
|
|
9481
|
+
"sent",
|
|
9482
|
+
"viewed",
|
|
9483
|
+
"partial",
|
|
9484
|
+
"paid",
|
|
9485
|
+
"overdue",
|
|
9486
|
+
"cancelled",
|
|
9487
|
+
"written_off"
|
|
9488
|
+
]
|
|
8688
9489
|
},
|
|
8689
9490
|
"arJournalId": {
|
|
8690
9491
|
"type": "crossPackageRef",
|
|
@@ -8718,7 +9519,12 @@
|
|
|
8718
9519
|
"collectionMethod": {
|
|
8719
9520
|
"type": "text",
|
|
8720
9521
|
"required": false,
|
|
8721
|
-
"default": ""
|
|
9522
|
+
"default": "",
|
|
9523
|
+
"enum": [
|
|
9524
|
+
"",
|
|
9525
|
+
"send_invoice",
|
|
9526
|
+
"charge_automatically"
|
|
9527
|
+
]
|
|
8722
9528
|
},
|
|
8723
9529
|
"sentAt": {
|
|
8724
9530
|
"type": "datetime",
|
|
@@ -9636,11 +10442,26 @@
|
|
|
9636
10442
|
},
|
|
9637
10443
|
"method": {
|
|
9638
10444
|
"type": "text",
|
|
9639
|
-
"required": false
|
|
10445
|
+
"required": false,
|
|
10446
|
+
"enum": [
|
|
10447
|
+
"cash",
|
|
10448
|
+
"check",
|
|
10449
|
+
"credit_card",
|
|
10450
|
+
"bank_transfer",
|
|
10451
|
+
"crypto",
|
|
10452
|
+
"other"
|
|
10453
|
+
]
|
|
9640
10454
|
},
|
|
9641
10455
|
"status": {
|
|
9642
10456
|
"type": "text",
|
|
9643
|
-
"required": false
|
|
10457
|
+
"required": false,
|
|
10458
|
+
"enum": [
|
|
10459
|
+
"pending",
|
|
10460
|
+
"completed",
|
|
10461
|
+
"failed",
|
|
10462
|
+
"refunded",
|
|
10463
|
+
"cancelled"
|
|
10464
|
+
]
|
|
9644
10465
|
},
|
|
9645
10466
|
"transactionId": {
|
|
9646
10467
|
"type": "text",
|
|
@@ -10351,7 +11172,12 @@
|
|
|
10351
11172
|
},
|
|
10352
11173
|
"status": {
|
|
10353
11174
|
"type": "text",
|
|
10354
|
-
"required": false
|
|
11175
|
+
"required": false,
|
|
11176
|
+
"enum": [
|
|
11177
|
+
"active",
|
|
11178
|
+
"expired",
|
|
11179
|
+
"removed"
|
|
11180
|
+
]
|
|
10355
11181
|
}
|
|
10356
11182
|
},
|
|
10357
11183
|
"methods": {
|
|
@@ -10640,7 +11466,15 @@
|
|
|
10640
11466
|
},
|
|
10641
11467
|
"status": {
|
|
10642
11468
|
"type": "text",
|
|
10643
|
-
"required": false
|
|
11469
|
+
"required": false,
|
|
11470
|
+
"enum": [
|
|
11471
|
+
"awaiting_payment",
|
|
11472
|
+
"paid",
|
|
11473
|
+
"issued",
|
|
11474
|
+
"retired",
|
|
11475
|
+
"expired",
|
|
11476
|
+
"cancelled"
|
|
11477
|
+
]
|
|
10644
11478
|
},
|
|
10645
11479
|
"idempotencyKey": {
|
|
10646
11480
|
"type": "text",
|
|
@@ -11148,7 +11982,13 @@
|
|
|
11148
11982
|
},
|
|
11149
11983
|
"status": {
|
|
11150
11984
|
"type": "text",
|
|
11151
|
-
"required": false
|
|
11985
|
+
"required": false,
|
|
11986
|
+
"enum": [
|
|
11987
|
+
"pending",
|
|
11988
|
+
"sent",
|
|
11989
|
+
"confirmed",
|
|
11990
|
+
"failed"
|
|
11991
|
+
]
|
|
11152
11992
|
},
|
|
11153
11993
|
"sentAt": {
|
|
11154
11994
|
"type": "datetime",
|
|
@@ -11486,53 +12326,95 @@
|
|
|
11486
12326
|
"profileId": {
|
|
11487
12327
|
"type": "crossPackageRef",
|
|
11488
12328
|
"required": false,
|
|
11489
|
-
"related": "@happyvertical/smrt-profiles:Profile"
|
|
12329
|
+
"related": "@happyvertical/smrt-profiles:Profile",
|
|
12330
|
+
"_meta": {
|
|
12331
|
+
"description": "Links this vendor to their profile record, where their name and contact details are kept."
|
|
12332
|
+
}
|
|
11490
12333
|
},
|
|
11491
12334
|
"leadTimeDays": {
|
|
11492
12335
|
"type": "integer",
|
|
11493
12336
|
"required": false,
|
|
11494
|
-
"default": 0
|
|
12337
|
+
"default": 0,
|
|
12338
|
+
"description": "How many days the vendor usually takes between your order and delivery.",
|
|
12339
|
+
"_meta": {
|
|
12340
|
+
"description": "How many days the vendor usually takes between your order and delivery."
|
|
12341
|
+
}
|
|
11495
12342
|
},
|
|
11496
12343
|
"minimumOrderAmount": {
|
|
11497
12344
|
"type": "integer",
|
|
11498
12345
|
"required": false,
|
|
11499
|
-
"default": 0
|
|
12346
|
+
"default": 0,
|
|
12347
|
+
"description": "The smallest order the vendor will accept.",
|
|
12348
|
+
"_meta": {
|
|
12349
|
+
"description": "The smallest order the vendor will accept."
|
|
12350
|
+
}
|
|
11500
12351
|
},
|
|
11501
12352
|
"paymentTerms": {
|
|
11502
12353
|
"type": "text",
|
|
11503
12354
|
"required": false,
|
|
11504
|
-
"default": ""
|
|
12355
|
+
"default": "",
|
|
12356
|
+
"description": "How long you have to pay this vendor, written the way you would say it, for example \"Net 30\".",
|
|
12357
|
+
"_meta": {
|
|
12358
|
+
"description": "How long you have to pay this vendor, written the way you would say it, for example \"Net 30\"."
|
|
12359
|
+
}
|
|
11505
12360
|
},
|
|
11506
12361
|
"currency": {
|
|
11507
12362
|
"type": "text",
|
|
11508
12363
|
"required": false,
|
|
11509
|
-
"default": "USD"
|
|
12364
|
+
"default": "USD",
|
|
12365
|
+
"description": "The currency this vendor bills you in.",
|
|
12366
|
+
"_meta": {
|
|
12367
|
+
"description": "The currency this vendor bills you in."
|
|
12368
|
+
}
|
|
11510
12369
|
},
|
|
11511
12370
|
"defaultContactEmail": {
|
|
11512
12371
|
"type": "text",
|
|
11513
12372
|
"required": false,
|
|
11514
|
-
"default": ""
|
|
12373
|
+
"default": "",
|
|
12374
|
+
"description": "The email address you normally use to reach this vendor.",
|
|
12375
|
+
"_meta": {
|
|
12376
|
+
"description": "The email address you normally use to reach this vendor."
|
|
12377
|
+
}
|
|
11515
12378
|
},
|
|
11516
12379
|
"defaultContactPhone": {
|
|
11517
12380
|
"type": "text",
|
|
11518
12381
|
"required": false,
|
|
11519
|
-
"default": ""
|
|
12382
|
+
"default": "",
|
|
12383
|
+
"description": "The phone number you normally use to reach this vendor.",
|
|
12384
|
+
"_meta": {
|
|
12385
|
+
"description": "The phone number you normally use to reach this vendor."
|
|
12386
|
+
}
|
|
11520
12387
|
},
|
|
11521
12388
|
"status": {
|
|
11522
12389
|
"type": "text",
|
|
11523
|
-
"required": false
|
|
12390
|
+
"required": false,
|
|
12391
|
+
"description": "Whether you still buy from this vendor: active, inactive or suspended.",
|
|
12392
|
+
"_meta": {
|
|
12393
|
+
"description": "Whether you still buy from this vendor: active, inactive or suspended."
|
|
12394
|
+
},
|
|
12395
|
+
"enum": [
|
|
12396
|
+
"active",
|
|
12397
|
+
"inactive",
|
|
12398
|
+
"suspended"
|
|
12399
|
+
]
|
|
11524
12400
|
},
|
|
11525
12401
|
"notes": {
|
|
11526
12402
|
"type": "text",
|
|
11527
12403
|
"required": false,
|
|
11528
|
-
"default": ""
|
|
12404
|
+
"default": "",
|
|
12405
|
+
"description": "Anything worth remembering about this vendor.",
|
|
12406
|
+
"_meta": {
|
|
12407
|
+
"description": "Anything worth remembering about this vendor."
|
|
12408
|
+
}
|
|
11529
12409
|
},
|
|
11530
12410
|
"payoutAddresses": {
|
|
11531
12411
|
"type": "json",
|
|
11532
12412
|
"required": false,
|
|
11533
12413
|
"default": {},
|
|
12414
|
+
"description": "Where payments to this vendor should be sent.",
|
|
11534
12415
|
"_meta": {
|
|
11535
|
-
"sensitive": true
|
|
12416
|
+
"sensitive": true,
|
|
12417
|
+
"description": "Where payments to this vendor should be sent."
|
|
11536
12418
|
},
|
|
11537
12419
|
"sensitive": true
|
|
11538
12420
|
}
|
|
@@ -11853,7 +12735,12 @@
|
|
|
11853
12735
|
"standing": {
|
|
11854
12736
|
"type": "text",
|
|
11855
12737
|
"required": false,
|
|
11856
|
-
"default": "current"
|
|
12738
|
+
"default": "current",
|
|
12739
|
+
"enum": [
|
|
12740
|
+
"current",
|
|
12741
|
+
"past_due",
|
|
12742
|
+
"uncollectible"
|
|
12743
|
+
]
|
|
11857
12744
|
},
|
|
11858
12745
|
"billingAnchorAt": {
|
|
11859
12746
|
"type": "datetime",
|
|
@@ -11882,6 +12769,7 @@
|
|
|
11882
12769
|
"extends": "SmrtObject",
|
|
11883
12770
|
"exportName": "BillingAccount",
|
|
11884
12771
|
"collectionExportName": "BillingAccountCollection",
|
|
12772
|
+
"displayLabelField": "name",
|
|
11885
12773
|
"validationRules": [
|
|
11886
12774
|
{
|
|
11887
12775
|
"field": "sellerTenantId",
|
|
@@ -12065,7 +12953,11 @@
|
|
|
12065
12953
|
"kind": {
|
|
12066
12954
|
"type": "text",
|
|
12067
12955
|
"required": false,
|
|
12068
|
-
"default": "provider"
|
|
12956
|
+
"default": "provider",
|
|
12957
|
+
"enum": [
|
|
12958
|
+
"provider",
|
|
12959
|
+
"reseller"
|
|
12960
|
+
]
|
|
12069
12961
|
},
|
|
12070
12962
|
"payerTenantId": {
|
|
12071
12963
|
"type": "crossPackageRef",
|
|
@@ -12096,7 +12988,15 @@
|
|
|
12096
12988
|
"status": {
|
|
12097
12989
|
"type": "text",
|
|
12098
12990
|
"required": false,
|
|
12099
|
-
"default": "collecting"
|
|
12991
|
+
"default": "collecting",
|
|
12992
|
+
"enum": [
|
|
12993
|
+
"collecting",
|
|
12994
|
+
"invoiced",
|
|
12995
|
+
"pushed",
|
|
12996
|
+
"sent",
|
|
12997
|
+
"completed",
|
|
12998
|
+
"carried_forward"
|
|
12999
|
+
]
|
|
12100
13000
|
},
|
|
12101
13001
|
"invoiceId": {
|
|
12102
13002
|
"type": "foreignKey",
|
|
@@ -12429,7 +13329,14 @@
|
|
|
12429
13329
|
"sourceType": {
|
|
12430
13330
|
"type": "text",
|
|
12431
13331
|
"required": false,
|
|
12432
|
-
"default": "client_charge"
|
|
13332
|
+
"default": "client_charge",
|
|
13333
|
+
"enum": [
|
|
13334
|
+
"client_charge",
|
|
13335
|
+
"billing_adjustment",
|
|
13336
|
+
"retail_charge",
|
|
13337
|
+
"subscription_period",
|
|
13338
|
+
"credit_carry_forward"
|
|
13339
|
+
]
|
|
12433
13340
|
},
|
|
12434
13341
|
"sourceId": {
|
|
12435
13342
|
"type": "text",
|
|
@@ -12701,7 +13608,11 @@
|
|
|
12701
13608
|
"purpose": {
|
|
12702
13609
|
"type": "text",
|
|
12703
13610
|
"required": false,
|
|
12704
|
-
"default": "credit_purchase"
|
|
13611
|
+
"default": "credit_purchase",
|
|
13612
|
+
"enum": [
|
|
13613
|
+
"credit_purchase",
|
|
13614
|
+
"invoice_payment"
|
|
13615
|
+
]
|
|
12705
13616
|
},
|
|
12706
13617
|
"invoiceId": {
|
|
12707
13618
|
"type": "text",
|
|
@@ -12741,7 +13652,18 @@
|
|
|
12741
13652
|
"flag": {
|
|
12742
13653
|
"type": "text",
|
|
12743
13654
|
"required": false,
|
|
12744
|
-
"default": ""
|
|
13655
|
+
"default": "",
|
|
13656
|
+
"enum": [
|
|
13657
|
+
"",
|
|
13658
|
+
"overpaid",
|
|
13659
|
+
"underpaid",
|
|
13660
|
+
"paid_late",
|
|
13661
|
+
"manually_marked",
|
|
13662
|
+
"invalidated_after_settlement",
|
|
13663
|
+
"invoice_already_paid",
|
|
13664
|
+
"amount_mismatch",
|
|
13665
|
+
"out_of_band_without_settlement"
|
|
13666
|
+
]
|
|
12745
13667
|
},
|
|
12746
13668
|
"amount": {
|
|
12747
13669
|
"type": "integer",
|
|
@@ -14057,6 +14979,191 @@
|
|
|
14057
14979
|
}
|
|
14058
14980
|
},
|
|
14059
14981
|
"moduleType": "smrt",
|
|
14982
|
+
"recipes": [
|
|
14983
|
+
{
|
|
14984
|
+
"id": "commerce.customers",
|
|
14985
|
+
"className": "CustomersRecipe",
|
|
14986
|
+
"label": "Customers",
|
|
14987
|
+
"summary": "Keep a list of the customers you sell to.",
|
|
14988
|
+
"synonyms": [
|
|
14989
|
+
"clients",
|
|
14990
|
+
"buyers",
|
|
14991
|
+
"accounts"
|
|
14992
|
+
],
|
|
14993
|
+
"models": [
|
|
14994
|
+
"@happyvertical/smrt-commerce:Customer"
|
|
14995
|
+
],
|
|
14996
|
+
"nav": [
|
|
14997
|
+
{
|
|
14998
|
+
"label": "Customers",
|
|
14999
|
+
"model": "@happyvertical/smrt-commerce:Customer"
|
|
15000
|
+
}
|
|
15001
|
+
],
|
|
15002
|
+
"requires": [],
|
|
15003
|
+
"help": {
|
|
15004
|
+
"markdown": "## Overview\n\nCustomers is your address book for the people and businesses you sell to. Keep\none record for each customer so you can see who they are, how they like to pay\nand what you have agreed with them, then refer back to them whenever you take an\norder.\n\n## Tasks\n\n### Add a new customer\n\n1. Choose the **New** button above the list.\n2. Describe the customer with **{field:customerType}**: a direct shopper, a\n wholesale buyer or a retail customer. Note in **{field:status}** whether you\n are still dealing with them.\n3. Fill in the **{field:defaultShippingAddress}** and\n **{field:defaultBillingAddress}** so you do not have to type them again on\n every order.\n4. Add **{field:paymentTerms}**, for example \"Net 30\", if you give this\n customer time to pay.\n5. Save. The customer is now on your list and ready to use on a sales order.\n\n### Keep track of what a customer can owe\n\n1. Open the customer from the list and choose Edit.\n2. Set **{field:creditLimit}** to the most you are comfortable letting them owe\n you at one time.\n3. If you do not charge them sales tax, turn on **{field:taxExempt}**, and keep\n their tax number on file.\n4. Use **{field:notes}** for anything the next person who deals with this\n customer should know.\n\n### Find a customer\n\nScan the list for the customer you want, or open a record to see everything you\nhave on file. To stop dealing with someone without losing their history, change\ntheir **{field:status}** to inactive instead of deleting them.\n",
|
|
15005
|
+
"fieldRefs": [
|
|
15006
|
+
"creditLimit",
|
|
15007
|
+
"customerType",
|
|
15008
|
+
"defaultBillingAddress",
|
|
15009
|
+
"defaultShippingAddress",
|
|
15010
|
+
"notes",
|
|
15011
|
+
"paymentTerms",
|
|
15012
|
+
"status",
|
|
15013
|
+
"taxExempt"
|
|
15014
|
+
]
|
|
15015
|
+
}
|
|
15016
|
+
},
|
|
15017
|
+
{
|
|
15018
|
+
"id": "commerce.purchases",
|
|
15019
|
+
"className": "PurchasesRecipe",
|
|
15020
|
+
"label": "Purchases",
|
|
15021
|
+
"summary": "Place orders with vendors and track them.",
|
|
15022
|
+
"synonyms": [
|
|
15023
|
+
"purchase orders",
|
|
15024
|
+
"buying",
|
|
15025
|
+
"procurement"
|
|
15026
|
+
],
|
|
15027
|
+
"models": [
|
|
15028
|
+
"@happyvertical/smrt-commerce:PurchaseOrder"
|
|
15029
|
+
],
|
|
15030
|
+
"nav": [
|
|
15031
|
+
{
|
|
15032
|
+
"label": "Purchase Orders",
|
|
15033
|
+
"model": "@happyvertical/smrt-commerce:PurchaseOrder"
|
|
15034
|
+
}
|
|
15035
|
+
],
|
|
15036
|
+
"requires": [
|
|
15037
|
+
"commerce.vendors"
|
|
15038
|
+
],
|
|
15039
|
+
"options": {
|
|
15040
|
+
"@happyvertical/smrt-commerce:PurchaseOrder": {
|
|
15041
|
+
"fields": {
|
|
15042
|
+
"contractType": {
|
|
15043
|
+
"default": "purchase_order",
|
|
15044
|
+
"visibility": "hidden",
|
|
15045
|
+
"locked": true
|
|
15046
|
+
},
|
|
15047
|
+
"customerId": {
|
|
15048
|
+
"visibility": "hidden",
|
|
15049
|
+
"locked": true
|
|
15050
|
+
},
|
|
15051
|
+
"vendorId": {
|
|
15052
|
+
"label": "Vendor",
|
|
15053
|
+
"order": 1
|
|
15054
|
+
}
|
|
15055
|
+
}
|
|
15056
|
+
}
|
|
15057
|
+
},
|
|
15058
|
+
"help": {
|
|
15059
|
+
"markdown": "## Overview\n\nPurchases is where you order from your vendors and keep track of what you have\nbought. Every purchase order belongs to one of your vendors and records the\namounts, the dates and where the order stands.\n\n## Tasks\n\n### Place a purchase order\n\n1. Choose the **New** button above the list.\n2. Enter the **{field:vendorId}** you are buying from. Add them under Vendors\n first so they are on your list.\n3. Enter the **{field:subtotal}** and **{field:taxAmount}**, then the\n **{field:totalAmount}** you expect to pay.\n4. Set the **{field:issueDate}**, and the **{field:dueDate}** for when the\n goods or the payment are due.\n5. Add your own **{field:reference}**, such as the vendor's quote number, so\n you can match it to their paperwork.\n6. Save.\n\n### Follow an order until it arrives\n\n1. Open the purchase order from the list and choose Edit.\n2. Update **{field:status}** as the order moves along, for example from draft to\n sent, accepted and completed.\n3. Use **{field:notes}** to record what the vendor told you, such as delays or\n partial shipments.\n\n### Record the agreement\n\n1. Open the purchase order and choose Edit.\n2. Write down the **{field:terms}** you agreed with the vendor, such as payment\n or delivery conditions.\n3. Set **{field:expiryDate}** if the vendor's offer is only good until a certain\n day.\n",
|
|
15060
|
+
"fieldRefs": [
|
|
15061
|
+
"dueDate",
|
|
15062
|
+
"expiryDate",
|
|
15063
|
+
"issueDate",
|
|
15064
|
+
"notes",
|
|
15065
|
+
"reference",
|
|
15066
|
+
"status",
|
|
15067
|
+
"subtotal",
|
|
15068
|
+
"taxAmount",
|
|
15069
|
+
"terms",
|
|
15070
|
+
"totalAmount",
|
|
15071
|
+
"vendorId"
|
|
15072
|
+
]
|
|
15073
|
+
}
|
|
15074
|
+
},
|
|
15075
|
+
{
|
|
15076
|
+
"id": "commerce.sales",
|
|
15077
|
+
"className": "SalesRecipe",
|
|
15078
|
+
"label": "Sales",
|
|
15079
|
+
"summary": "Take customer orders and track them.",
|
|
15080
|
+
"synonyms": [
|
|
15081
|
+
"sales orders",
|
|
15082
|
+
"orders",
|
|
15083
|
+
"customer orders"
|
|
15084
|
+
],
|
|
15085
|
+
"models": [
|
|
15086
|
+
"@happyvertical/smrt-commerce:Order"
|
|
15087
|
+
],
|
|
15088
|
+
"nav": [
|
|
15089
|
+
{
|
|
15090
|
+
"label": "Sales Orders",
|
|
15091
|
+
"model": "@happyvertical/smrt-commerce:Order"
|
|
15092
|
+
}
|
|
15093
|
+
],
|
|
15094
|
+
"requires": [
|
|
15095
|
+
"commerce.customers"
|
|
15096
|
+
],
|
|
15097
|
+
"options": {
|
|
15098
|
+
"@happyvertical/smrt-commerce:Order": {
|
|
15099
|
+
"fields": {
|
|
15100
|
+
"contractType": {
|
|
15101
|
+
"default": "order",
|
|
15102
|
+
"visibility": "hidden",
|
|
15103
|
+
"locked": true
|
|
15104
|
+
},
|
|
15105
|
+
"vendorId": {
|
|
15106
|
+
"visibility": "hidden",
|
|
15107
|
+
"locked": true
|
|
15108
|
+
},
|
|
15109
|
+
"customerId": {
|
|
15110
|
+
"label": "Customer",
|
|
15111
|
+
"order": 1
|
|
15112
|
+
}
|
|
15113
|
+
}
|
|
15114
|
+
}
|
|
15115
|
+
},
|
|
15116
|
+
"help": {
|
|
15117
|
+
"markdown": "## Overview\n\nSales is where you take orders from your customers and see where each one\nstands. Every order belongs to one of your customers, carries its amounts and\ndates, and keeps a status so you always know what is still open.\n\n## Tasks\n\n### Take an order\n\n1. Choose the **New** button above the list.\n2. Enter the **{field:customerId}** the order is for. Add them under Customers\n first so they are on your list.\n3. Enter the **{field:subtotal}** and **{field:taxAmount}**, then the\n **{field:totalAmount}** the customer will pay.\n4. Set the **{field:issueDate}**, and the **{field:dueDate}** if you expect\n payment by a certain day.\n5. Add your own **{field:reference}**, such as a purchase order number the\n customer gave you, so you can find the order later.\n6. Save.\n\n### Follow an order through to the end\n\n1. Open the order from the list and choose Edit.\n2. Update **{field:status}** as the order moves along, for example from draft to\n sent, accepted and completed.\n3. Check the **{field:dueDate}** against today to spot orders that are overdue.\n4. Use **{field:notes}** to record calls, changes and anything promised.\n\n### Make a quote with an expiry\n\n1. Create the order as usual and set its **{field:status}** to show it is still\n a draft.\n2. Set **{field:expiryDate}** to the last day the price is good for.\n3. Put your conditions, such as deposits or delivery, in **{field:terms}**.\n",
|
|
15118
|
+
"fieldRefs": [
|
|
15119
|
+
"customerId",
|
|
15120
|
+
"dueDate",
|
|
15121
|
+
"expiryDate",
|
|
15122
|
+
"issueDate",
|
|
15123
|
+
"notes",
|
|
15124
|
+
"reference",
|
|
15125
|
+
"status",
|
|
15126
|
+
"subtotal",
|
|
15127
|
+
"taxAmount",
|
|
15128
|
+
"terms",
|
|
15129
|
+
"totalAmount"
|
|
15130
|
+
]
|
|
15131
|
+
}
|
|
15132
|
+
},
|
|
15133
|
+
{
|
|
15134
|
+
"id": "commerce.vendors",
|
|
15135
|
+
"className": "VendorsRecipe",
|
|
15136
|
+
"label": "Vendors",
|
|
15137
|
+
"summary": "Keep a list of the vendors and suppliers you buy from.",
|
|
15138
|
+
"synonyms": [
|
|
15139
|
+
"suppliers",
|
|
15140
|
+
"sellers"
|
|
15141
|
+
],
|
|
15142
|
+
"models": [
|
|
15143
|
+
"@happyvertical/smrt-commerce:Vendor"
|
|
15144
|
+
],
|
|
15145
|
+
"nav": [
|
|
15146
|
+
{
|
|
15147
|
+
"label": "Vendors",
|
|
15148
|
+
"model": "@happyvertical/smrt-commerce:Vendor"
|
|
15149
|
+
}
|
|
15150
|
+
],
|
|
15151
|
+
"requires": [],
|
|
15152
|
+
"help": {
|
|
15153
|
+
"markdown": "## Overview\n\nVendors is your list of the suppliers you buy from. Each record holds who they\nare, how to reach them and the terms you have agreed, so you can order from them\nquickly and keep track of what you have bought.\n\n## Tasks\n\n### Add a vendor\n\n1. Choose the **New** button above the list.\n2. Enter **{field:defaultContactEmail}** and **{field:defaultContactPhone}** for\n the person you normally deal with.\n3. Set the **{field:currency}** they bill you in and your **{field:paymentTerms}**,\n for example \"Net 30\".\n4. Save. The vendor is now on your list and ready to use on a purchase order.\n\n### Note how a vendor likes to work\n\n1. Open the vendor from the list and choose Edit.\n2. Enter **{field:leadTimeDays}**, the number of days they usually need between\n your order and delivery, so you can plan ahead.\n3. Enter **{field:minimumOrderAmount}** if they will not accept small orders.\n4. Use **{field:notes}** for anything else worth remembering, such as the best\n time to call.\n\n### Keep payment details in one place\n\n1. Open the vendor and choose Edit.\n2. Record where payments to this vendor should be sent, so it is all in one\n place.\n3. Set **{field:status}** to show whether you still buy from them: active,\n inactive or suspended.\n",
|
|
15154
|
+
"fieldRefs": [
|
|
15155
|
+
"currency",
|
|
15156
|
+
"defaultContactEmail",
|
|
15157
|
+
"defaultContactPhone",
|
|
15158
|
+
"leadTimeDays",
|
|
15159
|
+
"minimumOrderAmount",
|
|
15160
|
+
"notes",
|
|
15161
|
+
"paymentTerms",
|
|
15162
|
+
"status"
|
|
15163
|
+
]
|
|
15164
|
+
}
|
|
15165
|
+
}
|
|
15166
|
+
],
|
|
14060
15167
|
"smrtDependencies": [
|
|
14061
15168
|
"@happyvertical/smrt-core",
|
|
14062
15169
|
"@happyvertical/smrt-jobs",
|