rerobe-js-orm 3.9.2 → 3.9.3

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.
@@ -56,6 +56,7 @@ export default class Merchant extends Base {
56
56
  name: string;
57
57
  type: MerchantTypes | string;
58
58
  paymentTier: RibbnPaymentTiers | string;
59
+ transactionFees: TransactionFees;
59
60
  contactEmail: string;
60
61
  senderEmail: string;
61
62
  industry: MerchantIndustryTypes | string | null;
@@ -8,6 +8,7 @@ class Merchant extends Base_1.default {
8
8
  this.name = (props === null || props === void 0 ? void 0 : props.name) || '';
9
9
  this.type = (props === null || props === void 0 ? void 0 : props.type) || Merchant.MERCHANT_TYPES.individual;
10
10
  this.paymentTier = (props === null || props === void 0 ? void 0 : props.paymentTier) || Merchant.PAYMENT_TIERS.starter.id;
11
+ this.transactionFees = (props === null || props === void 0 ? void 0 : props.transactionFees) || { online: 0.01, inStore: 0.01 };
11
12
  this.contactEmail = (props === null || props === void 0 ? void 0 : props.contactEmail) || '';
12
13
  this.senderEmail = (props === null || props === void 0 ? void 0 : props.senderEmail) || '';
13
14
  this.industry = (props === null || props === void 0 ? void 0 : props.industry) || '';
@@ -64,6 +65,7 @@ class Merchant extends Base_1.default {
64
65
  name: this.name,
65
66
  type: this.type,
66
67
  paymentTier: this.paymentTier,
68
+ transactionFees: this.transactionFees,
67
69
  contactEmail: this.contactEmail,
68
70
  senderEmail: this.senderEmail,
69
71
  industry: this.industry,
@@ -27,6 +27,7 @@ type MerchantMutableData = {
27
27
  };
28
28
  type MerchantSystemOnlyMutableData = {
29
29
  paymentTier: RibbnPaymentTiers | string;
30
+ transactionFees: TransactionFees;
30
31
  documentId: string;
31
32
  numCustomers: number;
32
33
  numFiles: number;
@@ -44,6 +45,10 @@ type MerchantSystemOnlyMutableData = {
44
45
  type MerchantObj = MerchantMutableData & MerchantSystemOnlyMutableData;
45
46
  type MerchantTypes = 'INDIVIDUAL' | 'BUSINESS';
46
47
  type RibbnPaymentTiers = 'FREE' | 'TIER_ONE';
48
+ type TransactionFees = {
49
+ online: number;
50
+ inStore: number;
51
+ };
47
52
  type MerchantIndustryTypes = 'BEAUTY' | 'CLOTHING' | 'ELECTRONICS' | 'FURNITURE' | 'HANDCRAFTS' | 'JEWELRY' | 'SPORTS' | 'TOYS' | 'OTHER';
48
53
  type UnitSystemTypes = 'METRIC' | 'IMPERIAL';
49
54
  type MetricWeightTypes = 'KILOGRAM' | 'GRAM';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "3.9.2",
3
+ "version": "3.9.3",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",