@juhuu/sdk-ts 1.2.291 → 1.2.293
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/dist/index.d.mts +24 -116
- package/dist/index.d.ts +24 -116
- package/dist/index.js +14 -74
- package/dist/index.mjs +14 -74
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5602,96 +5602,27 @@ declare namespace JUHUU {
|
|
|
5602
5602
|
}
|
|
5603
5603
|
}
|
|
5604
5604
|
namespace BenefitCard {
|
|
5605
|
-
type BenefitCardType = "membership" | "loyalty" | "discount" | "cashback" | "premium" | "corporate";
|
|
5606
|
-
type BenefitCardStatus = "active" | "inactive" | "suspended" | "expired" | "pending_activation";
|
|
5607
|
-
type BenefitType = "percentage_discount" | "fixed_discount" | "cashback" | "points" | "free_shipping" | "priority_access";
|
|
5608
|
-
type Benefit = {
|
|
5609
|
-
type: BenefitType;
|
|
5610
|
-
name: string;
|
|
5611
|
-
description: string;
|
|
5612
|
-
value: number;
|
|
5613
|
-
unit: string;
|
|
5614
|
-
conditions: string[];
|
|
5615
|
-
validFrom: string | null;
|
|
5616
|
-
validTo: string | null;
|
|
5617
|
-
usageLimit: number | null;
|
|
5618
|
-
usageCount: number;
|
|
5619
|
-
minimumSpend: number | null;
|
|
5620
|
-
maximumDiscount: number | null;
|
|
5621
|
-
applicableCategories: string[];
|
|
5622
|
-
excludedCategories: string[];
|
|
5623
|
-
};
|
|
5624
|
-
type BenefitCardLimits = {
|
|
5625
|
-
dailyUsageLimit: number | null;
|
|
5626
|
-
monthlyUsageLimit: number | null;
|
|
5627
|
-
yearlyUsageLimit: number | null;
|
|
5628
|
-
lifetimeUsageLimit: number | null;
|
|
5629
|
-
dailySpendLimit: number | null;
|
|
5630
|
-
monthlySpendLimit: number | null;
|
|
5631
|
-
yearlySpendLimit: number | null;
|
|
5632
|
-
perTransactionLimit: number | null;
|
|
5633
|
-
};
|
|
5634
|
-
type BenefitCardMetadata = {
|
|
5635
|
-
issuer: string;
|
|
5636
|
-
brand: string | null;
|
|
5637
|
-
level: "bronze" | "silver" | "gold" | "platinum" | "diamond";
|
|
5638
|
-
renewalDate: string | null;
|
|
5639
|
-
memberSince: string;
|
|
5640
|
-
referralCode: string | null;
|
|
5641
|
-
partnerPrograms: string[];
|
|
5642
|
-
tags: string[];
|
|
5643
|
-
notes: string | null;
|
|
5644
|
-
};
|
|
5645
5605
|
type Object = {
|
|
5646
5606
|
id: string;
|
|
5607
|
+
version: number;
|
|
5647
5608
|
readonly object: "benefitCard";
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
pointsBalance: number;
|
|
5657
|
-
cashbackBalance: number;
|
|
5658
|
-
totalSavings: number;
|
|
5659
|
-
totalSpent: number;
|
|
5660
|
-
transactionCount: number;
|
|
5661
|
-
lastUsedAt: string | null;
|
|
5662
|
-
createdAt: string;
|
|
5663
|
-
updatedAt: string;
|
|
5664
|
-
activatedAt: string | null;
|
|
5665
|
-
expiresAt: string | null;
|
|
5666
|
-
isDigital: boolean;
|
|
5667
|
-
isTransferable: boolean;
|
|
5668
|
-
requiresPin: boolean;
|
|
5669
|
-
pin: string | null;
|
|
5670
|
-
qrCode: string | null;
|
|
5671
|
-
barcode: string | null;
|
|
5609
|
+
readonly objectType: "dto";
|
|
5610
|
+
createdAt: Date;
|
|
5611
|
+
name: string;
|
|
5612
|
+
imageLight: string | null;
|
|
5613
|
+
imageDark: string | null;
|
|
5614
|
+
userId: string | null;
|
|
5615
|
+
propertyId: string;
|
|
5616
|
+
reference: string | null;
|
|
5672
5617
|
};
|
|
5673
5618
|
namespace Create {
|
|
5674
5619
|
type Params = {
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
limits: BenefitCardLimits;
|
|
5682
|
-
metadata: BenefitCardMetadata;
|
|
5683
|
-
pointsBalance?: number;
|
|
5684
|
-
cashbackBalance?: number;
|
|
5685
|
-
totalSavings?: number;
|
|
5686
|
-
totalSpent?: number;
|
|
5687
|
-
transactionCount?: number;
|
|
5688
|
-
expiresAt?: string | null;
|
|
5689
|
-
isDigital?: boolean;
|
|
5690
|
-
isTransferable?: boolean;
|
|
5691
|
-
requiresPin?: boolean;
|
|
5692
|
-
pin?: string | null;
|
|
5693
|
-
qrCode?: string | null;
|
|
5694
|
-
barcode?: string | null;
|
|
5620
|
+
propertyId: string;
|
|
5621
|
+
name: string;
|
|
5622
|
+
imageLight?: string | null;
|
|
5623
|
+
imageDark?: string | null;
|
|
5624
|
+
userId?: string | null;
|
|
5625
|
+
reference?: string | null;
|
|
5695
5626
|
};
|
|
5696
5627
|
type Options = JUHUU.RequestOptions;
|
|
5697
5628
|
type Response = {
|
|
@@ -5709,17 +5640,7 @@ declare namespace JUHUU {
|
|
|
5709
5640
|
}
|
|
5710
5641
|
namespace List {
|
|
5711
5642
|
type Params = {
|
|
5712
|
-
|
|
5713
|
-
cardNumber?: string;
|
|
5714
|
-
cardHolderName?: string;
|
|
5715
|
-
type?: BenefitCardType;
|
|
5716
|
-
status?: BenefitCardStatus;
|
|
5717
|
-
issuer?: string;
|
|
5718
|
-
brand?: string;
|
|
5719
|
-
level?: "bronze" | "silver" | "gold" | "platinum" | "diamond";
|
|
5720
|
-
isDigital?: boolean;
|
|
5721
|
-
isTransferable?: boolean;
|
|
5722
|
-
requiresPin?: boolean;
|
|
5643
|
+
propertyId: string;
|
|
5723
5644
|
};
|
|
5724
5645
|
type Options = {
|
|
5725
5646
|
limit?: number;
|
|
@@ -5734,26 +5655,11 @@ declare namespace JUHUU {
|
|
|
5734
5655
|
namespace Update {
|
|
5735
5656
|
type Params = {
|
|
5736
5657
|
benefitCardId: string;
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
benefits?: Benefit[];
|
|
5743
|
-
limits?: BenefitCardLimits;
|
|
5744
|
-
metadata?: BenefitCardMetadata;
|
|
5745
|
-
pointsBalance?: number;
|
|
5746
|
-
cashbackBalance?: number;
|
|
5747
|
-
totalSavings?: number;
|
|
5748
|
-
totalSpent?: number;
|
|
5749
|
-
transactionCount?: number;
|
|
5750
|
-
expiresAt?: string | null;
|
|
5751
|
-
isDigital?: boolean;
|
|
5752
|
-
isTransferable?: boolean;
|
|
5753
|
-
requiresPin?: boolean;
|
|
5754
|
-
pin?: string | null;
|
|
5755
|
-
qrCode?: string | null;
|
|
5756
|
-
barcode?: string | null;
|
|
5658
|
+
name?: string;
|
|
5659
|
+
imageLight?: string | null;
|
|
5660
|
+
imageDark?: string | null;
|
|
5661
|
+
userId?: string | null;
|
|
5662
|
+
reference?: string | null;
|
|
5757
5663
|
};
|
|
5758
5664
|
type Options = JUHUU.RequestOptions;
|
|
5759
5665
|
type Response = {
|
|
@@ -5765,7 +5671,9 @@ declare namespace JUHUU {
|
|
|
5765
5671
|
benefitCardId: string;
|
|
5766
5672
|
};
|
|
5767
5673
|
type Options = JUHUU.RequestOptions;
|
|
5768
|
-
type Response =
|
|
5674
|
+
type Response = {
|
|
5675
|
+
benefitCard: JUHUU.BenefitCard.Object;
|
|
5676
|
+
};
|
|
5769
5677
|
}
|
|
5770
5678
|
}
|
|
5771
5679
|
namespace Catalog {
|
package/dist/index.d.ts
CHANGED
|
@@ -5602,96 +5602,27 @@ declare namespace JUHUU {
|
|
|
5602
5602
|
}
|
|
5603
5603
|
}
|
|
5604
5604
|
namespace BenefitCard {
|
|
5605
|
-
type BenefitCardType = "membership" | "loyalty" | "discount" | "cashback" | "premium" | "corporate";
|
|
5606
|
-
type BenefitCardStatus = "active" | "inactive" | "suspended" | "expired" | "pending_activation";
|
|
5607
|
-
type BenefitType = "percentage_discount" | "fixed_discount" | "cashback" | "points" | "free_shipping" | "priority_access";
|
|
5608
|
-
type Benefit = {
|
|
5609
|
-
type: BenefitType;
|
|
5610
|
-
name: string;
|
|
5611
|
-
description: string;
|
|
5612
|
-
value: number;
|
|
5613
|
-
unit: string;
|
|
5614
|
-
conditions: string[];
|
|
5615
|
-
validFrom: string | null;
|
|
5616
|
-
validTo: string | null;
|
|
5617
|
-
usageLimit: number | null;
|
|
5618
|
-
usageCount: number;
|
|
5619
|
-
minimumSpend: number | null;
|
|
5620
|
-
maximumDiscount: number | null;
|
|
5621
|
-
applicableCategories: string[];
|
|
5622
|
-
excludedCategories: string[];
|
|
5623
|
-
};
|
|
5624
|
-
type BenefitCardLimits = {
|
|
5625
|
-
dailyUsageLimit: number | null;
|
|
5626
|
-
monthlyUsageLimit: number | null;
|
|
5627
|
-
yearlyUsageLimit: number | null;
|
|
5628
|
-
lifetimeUsageLimit: number | null;
|
|
5629
|
-
dailySpendLimit: number | null;
|
|
5630
|
-
monthlySpendLimit: number | null;
|
|
5631
|
-
yearlySpendLimit: number | null;
|
|
5632
|
-
perTransactionLimit: number | null;
|
|
5633
|
-
};
|
|
5634
|
-
type BenefitCardMetadata = {
|
|
5635
|
-
issuer: string;
|
|
5636
|
-
brand: string | null;
|
|
5637
|
-
level: "bronze" | "silver" | "gold" | "platinum" | "diamond";
|
|
5638
|
-
renewalDate: string | null;
|
|
5639
|
-
memberSince: string;
|
|
5640
|
-
referralCode: string | null;
|
|
5641
|
-
partnerPrograms: string[];
|
|
5642
|
-
tags: string[];
|
|
5643
|
-
notes: string | null;
|
|
5644
|
-
};
|
|
5645
5605
|
type Object = {
|
|
5646
5606
|
id: string;
|
|
5607
|
+
version: number;
|
|
5647
5608
|
readonly object: "benefitCard";
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
pointsBalance: number;
|
|
5657
|
-
cashbackBalance: number;
|
|
5658
|
-
totalSavings: number;
|
|
5659
|
-
totalSpent: number;
|
|
5660
|
-
transactionCount: number;
|
|
5661
|
-
lastUsedAt: string | null;
|
|
5662
|
-
createdAt: string;
|
|
5663
|
-
updatedAt: string;
|
|
5664
|
-
activatedAt: string | null;
|
|
5665
|
-
expiresAt: string | null;
|
|
5666
|
-
isDigital: boolean;
|
|
5667
|
-
isTransferable: boolean;
|
|
5668
|
-
requiresPin: boolean;
|
|
5669
|
-
pin: string | null;
|
|
5670
|
-
qrCode: string | null;
|
|
5671
|
-
barcode: string | null;
|
|
5609
|
+
readonly objectType: "dto";
|
|
5610
|
+
createdAt: Date;
|
|
5611
|
+
name: string;
|
|
5612
|
+
imageLight: string | null;
|
|
5613
|
+
imageDark: string | null;
|
|
5614
|
+
userId: string | null;
|
|
5615
|
+
propertyId: string;
|
|
5616
|
+
reference: string | null;
|
|
5672
5617
|
};
|
|
5673
5618
|
namespace Create {
|
|
5674
5619
|
type Params = {
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
limits: BenefitCardLimits;
|
|
5682
|
-
metadata: BenefitCardMetadata;
|
|
5683
|
-
pointsBalance?: number;
|
|
5684
|
-
cashbackBalance?: number;
|
|
5685
|
-
totalSavings?: number;
|
|
5686
|
-
totalSpent?: number;
|
|
5687
|
-
transactionCount?: number;
|
|
5688
|
-
expiresAt?: string | null;
|
|
5689
|
-
isDigital?: boolean;
|
|
5690
|
-
isTransferable?: boolean;
|
|
5691
|
-
requiresPin?: boolean;
|
|
5692
|
-
pin?: string | null;
|
|
5693
|
-
qrCode?: string | null;
|
|
5694
|
-
barcode?: string | null;
|
|
5620
|
+
propertyId: string;
|
|
5621
|
+
name: string;
|
|
5622
|
+
imageLight?: string | null;
|
|
5623
|
+
imageDark?: string | null;
|
|
5624
|
+
userId?: string | null;
|
|
5625
|
+
reference?: string | null;
|
|
5695
5626
|
};
|
|
5696
5627
|
type Options = JUHUU.RequestOptions;
|
|
5697
5628
|
type Response = {
|
|
@@ -5709,17 +5640,7 @@ declare namespace JUHUU {
|
|
|
5709
5640
|
}
|
|
5710
5641
|
namespace List {
|
|
5711
5642
|
type Params = {
|
|
5712
|
-
|
|
5713
|
-
cardNumber?: string;
|
|
5714
|
-
cardHolderName?: string;
|
|
5715
|
-
type?: BenefitCardType;
|
|
5716
|
-
status?: BenefitCardStatus;
|
|
5717
|
-
issuer?: string;
|
|
5718
|
-
brand?: string;
|
|
5719
|
-
level?: "bronze" | "silver" | "gold" | "platinum" | "diamond";
|
|
5720
|
-
isDigital?: boolean;
|
|
5721
|
-
isTransferable?: boolean;
|
|
5722
|
-
requiresPin?: boolean;
|
|
5643
|
+
propertyId: string;
|
|
5723
5644
|
};
|
|
5724
5645
|
type Options = {
|
|
5725
5646
|
limit?: number;
|
|
@@ -5734,26 +5655,11 @@ declare namespace JUHUU {
|
|
|
5734
5655
|
namespace Update {
|
|
5735
5656
|
type Params = {
|
|
5736
5657
|
benefitCardId: string;
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
benefits?: Benefit[];
|
|
5743
|
-
limits?: BenefitCardLimits;
|
|
5744
|
-
metadata?: BenefitCardMetadata;
|
|
5745
|
-
pointsBalance?: number;
|
|
5746
|
-
cashbackBalance?: number;
|
|
5747
|
-
totalSavings?: number;
|
|
5748
|
-
totalSpent?: number;
|
|
5749
|
-
transactionCount?: number;
|
|
5750
|
-
expiresAt?: string | null;
|
|
5751
|
-
isDigital?: boolean;
|
|
5752
|
-
isTransferable?: boolean;
|
|
5753
|
-
requiresPin?: boolean;
|
|
5754
|
-
pin?: string | null;
|
|
5755
|
-
qrCode?: string | null;
|
|
5756
|
-
barcode?: string | null;
|
|
5658
|
+
name?: string;
|
|
5659
|
+
imageLight?: string | null;
|
|
5660
|
+
imageDark?: string | null;
|
|
5661
|
+
userId?: string | null;
|
|
5662
|
+
reference?: string | null;
|
|
5757
5663
|
};
|
|
5758
5664
|
type Options = JUHUU.RequestOptions;
|
|
5759
5665
|
type Response = {
|
|
@@ -5765,7 +5671,9 @@ declare namespace JUHUU {
|
|
|
5765
5671
|
benefitCardId: string;
|
|
5766
5672
|
};
|
|
5767
5673
|
type Options = JUHUU.RequestOptions;
|
|
5768
|
-
type Response =
|
|
5674
|
+
type Response = {
|
|
5675
|
+
benefitCard: JUHUU.BenefitCard.Object;
|
|
5676
|
+
};
|
|
5769
5677
|
}
|
|
5770
5678
|
}
|
|
5771
5679
|
namespace Catalog {
|
package/dist/index.js
CHANGED
|
@@ -4595,26 +4595,12 @@ var BenefitCardsService = class extends Service {
|
|
|
4595
4595
|
method: "POST",
|
|
4596
4596
|
url: "benefitCards",
|
|
4597
4597
|
body: {
|
|
4598
|
+
propertyId: params.propertyId,
|
|
4599
|
+
name: params.name,
|
|
4600
|
+
imageLight: params.imageLight,
|
|
4601
|
+
imageDark: params.imageDark,
|
|
4598
4602
|
userId: params.userId,
|
|
4599
|
-
|
|
4600
|
-
cardHolderName: params.cardHolderName,
|
|
4601
|
-
type: params.type,
|
|
4602
|
-
status: params.status,
|
|
4603
|
-
benefits: params.benefits,
|
|
4604
|
-
limits: params.limits,
|
|
4605
|
-
metadata: params.metadata,
|
|
4606
|
-
pointsBalance: params.pointsBalance,
|
|
4607
|
-
cashbackBalance: params.cashbackBalance,
|
|
4608
|
-
totalSavings: params.totalSavings,
|
|
4609
|
-
totalSpent: params.totalSpent,
|
|
4610
|
-
transactionCount: params.transactionCount,
|
|
4611
|
-
expiresAt: params.expiresAt,
|
|
4612
|
-
isDigital: params.isDigital,
|
|
4613
|
-
isTransferable: params.isTransferable,
|
|
4614
|
-
requiresPin: params.requiresPin,
|
|
4615
|
-
pin: params.pin,
|
|
4616
|
-
qrCode: params.qrCode,
|
|
4617
|
-
barcode: params.barcode
|
|
4603
|
+
reference: params.reference
|
|
4618
4604
|
},
|
|
4619
4605
|
authenticationNotOptional: true
|
|
4620
4606
|
},
|
|
@@ -4623,38 +4609,8 @@ var BenefitCardsService = class extends Service {
|
|
|
4623
4609
|
}
|
|
4624
4610
|
async list(params, options) {
|
|
4625
4611
|
const queryArray = [];
|
|
4626
|
-
if (params?.
|
|
4627
|
-
queryArray.push("
|
|
4628
|
-
}
|
|
4629
|
-
if (params?.cardNumber !== void 0) {
|
|
4630
|
-
queryArray.push("cardNumber=" + params.cardNumber);
|
|
4631
|
-
}
|
|
4632
|
-
if (params?.cardHolderName !== void 0) {
|
|
4633
|
-
queryArray.push("cardHolderName=" + params.cardHolderName);
|
|
4634
|
-
}
|
|
4635
|
-
if (params?.type !== void 0) {
|
|
4636
|
-
queryArray.push("type=" + params.type);
|
|
4637
|
-
}
|
|
4638
|
-
if (params?.status !== void 0) {
|
|
4639
|
-
queryArray.push("status=" + params.status);
|
|
4640
|
-
}
|
|
4641
|
-
if (params?.issuer !== void 0) {
|
|
4642
|
-
queryArray.push("issuer=" + params.issuer);
|
|
4643
|
-
}
|
|
4644
|
-
if (params?.brand !== void 0) {
|
|
4645
|
-
queryArray.push("brand=" + params.brand);
|
|
4646
|
-
}
|
|
4647
|
-
if (params?.level !== void 0) {
|
|
4648
|
-
queryArray.push("level=" + params.level);
|
|
4649
|
-
}
|
|
4650
|
-
if (params?.isDigital !== void 0) {
|
|
4651
|
-
queryArray.push("isDigital=" + params.isDigital);
|
|
4652
|
-
}
|
|
4653
|
-
if (params?.isTransferable !== void 0) {
|
|
4654
|
-
queryArray.push("isTransferable=" + params.isTransferable);
|
|
4655
|
-
}
|
|
4656
|
-
if (params?.requiresPin !== void 0) {
|
|
4657
|
-
queryArray.push("requiresPin=" + params.requiresPin);
|
|
4612
|
+
if (params?.propertyId !== void 0) {
|
|
4613
|
+
queryArray.push("propertyId=" + params.propertyId);
|
|
4658
4614
|
}
|
|
4659
4615
|
if (options?.limit !== void 0) {
|
|
4660
4616
|
queryArray.push("limit=" + options.limit);
|
|
@@ -4667,19 +4623,18 @@ var BenefitCardsService = class extends Service {
|
|
|
4667
4623
|
method: "GET",
|
|
4668
4624
|
url: "benefitCards?" + queryArray.join("&"),
|
|
4669
4625
|
body: void 0,
|
|
4670
|
-
authenticationNotOptional:
|
|
4626
|
+
authenticationNotOptional: true
|
|
4671
4627
|
},
|
|
4672
4628
|
options
|
|
4673
4629
|
);
|
|
4674
4630
|
}
|
|
4675
4631
|
async retrieve(params, options) {
|
|
4676
|
-
const queryArray = [];
|
|
4677
4632
|
return await super.sendRequest(
|
|
4678
4633
|
{
|
|
4679
4634
|
method: "GET",
|
|
4680
|
-
url: "benefitCards/" + params.benefitCardId
|
|
4635
|
+
url: "benefitCards/" + params.benefitCardId,
|
|
4681
4636
|
body: void 0,
|
|
4682
|
-
authenticationNotOptional:
|
|
4637
|
+
authenticationNotOptional: true
|
|
4683
4638
|
},
|
|
4684
4639
|
options
|
|
4685
4640
|
);
|
|
@@ -4690,26 +4645,11 @@ var BenefitCardsService = class extends Service {
|
|
|
4690
4645
|
method: "PATCH",
|
|
4691
4646
|
url: "benefitCards/" + params.benefitCardId,
|
|
4692
4647
|
body: {
|
|
4648
|
+
name: params.name,
|
|
4649
|
+
imageLight: params.imageLight,
|
|
4650
|
+
imageDark: params.imageDark,
|
|
4693
4651
|
userId: params.userId,
|
|
4694
|
-
|
|
4695
|
-
cardHolderName: params.cardHolderName,
|
|
4696
|
-
type: params.type,
|
|
4697
|
-
status: params.status,
|
|
4698
|
-
benefits: params.benefits,
|
|
4699
|
-
limits: params.limits,
|
|
4700
|
-
metadata: params.metadata,
|
|
4701
|
-
pointsBalance: params.pointsBalance,
|
|
4702
|
-
cashbackBalance: params.cashbackBalance,
|
|
4703
|
-
totalSavings: params.totalSavings,
|
|
4704
|
-
totalSpent: params.totalSpent,
|
|
4705
|
-
transactionCount: params.transactionCount,
|
|
4706
|
-
expiresAt: params.expiresAt,
|
|
4707
|
-
isDigital: params.isDigital,
|
|
4708
|
-
isTransferable: params.isTransferable,
|
|
4709
|
-
requiresPin: params.requiresPin,
|
|
4710
|
-
pin: params.pin,
|
|
4711
|
-
qrCode: params.qrCode,
|
|
4712
|
-
barcode: params.barcode
|
|
4652
|
+
reference: params.reference
|
|
4713
4653
|
},
|
|
4714
4654
|
authenticationNotOptional: true
|
|
4715
4655
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -4551,26 +4551,12 @@ var BenefitCardsService = class extends Service {
|
|
|
4551
4551
|
method: "POST",
|
|
4552
4552
|
url: "benefitCards",
|
|
4553
4553
|
body: {
|
|
4554
|
+
propertyId: params.propertyId,
|
|
4555
|
+
name: params.name,
|
|
4556
|
+
imageLight: params.imageLight,
|
|
4557
|
+
imageDark: params.imageDark,
|
|
4554
4558
|
userId: params.userId,
|
|
4555
|
-
|
|
4556
|
-
cardHolderName: params.cardHolderName,
|
|
4557
|
-
type: params.type,
|
|
4558
|
-
status: params.status,
|
|
4559
|
-
benefits: params.benefits,
|
|
4560
|
-
limits: params.limits,
|
|
4561
|
-
metadata: params.metadata,
|
|
4562
|
-
pointsBalance: params.pointsBalance,
|
|
4563
|
-
cashbackBalance: params.cashbackBalance,
|
|
4564
|
-
totalSavings: params.totalSavings,
|
|
4565
|
-
totalSpent: params.totalSpent,
|
|
4566
|
-
transactionCount: params.transactionCount,
|
|
4567
|
-
expiresAt: params.expiresAt,
|
|
4568
|
-
isDigital: params.isDigital,
|
|
4569
|
-
isTransferable: params.isTransferable,
|
|
4570
|
-
requiresPin: params.requiresPin,
|
|
4571
|
-
pin: params.pin,
|
|
4572
|
-
qrCode: params.qrCode,
|
|
4573
|
-
barcode: params.barcode
|
|
4559
|
+
reference: params.reference
|
|
4574
4560
|
},
|
|
4575
4561
|
authenticationNotOptional: true
|
|
4576
4562
|
},
|
|
@@ -4579,38 +4565,8 @@ var BenefitCardsService = class extends Service {
|
|
|
4579
4565
|
}
|
|
4580
4566
|
async list(params, options) {
|
|
4581
4567
|
const queryArray = [];
|
|
4582
|
-
if (params?.
|
|
4583
|
-
queryArray.push("
|
|
4584
|
-
}
|
|
4585
|
-
if (params?.cardNumber !== void 0) {
|
|
4586
|
-
queryArray.push("cardNumber=" + params.cardNumber);
|
|
4587
|
-
}
|
|
4588
|
-
if (params?.cardHolderName !== void 0) {
|
|
4589
|
-
queryArray.push("cardHolderName=" + params.cardHolderName);
|
|
4590
|
-
}
|
|
4591
|
-
if (params?.type !== void 0) {
|
|
4592
|
-
queryArray.push("type=" + params.type);
|
|
4593
|
-
}
|
|
4594
|
-
if (params?.status !== void 0) {
|
|
4595
|
-
queryArray.push("status=" + params.status);
|
|
4596
|
-
}
|
|
4597
|
-
if (params?.issuer !== void 0) {
|
|
4598
|
-
queryArray.push("issuer=" + params.issuer);
|
|
4599
|
-
}
|
|
4600
|
-
if (params?.brand !== void 0) {
|
|
4601
|
-
queryArray.push("brand=" + params.brand);
|
|
4602
|
-
}
|
|
4603
|
-
if (params?.level !== void 0) {
|
|
4604
|
-
queryArray.push("level=" + params.level);
|
|
4605
|
-
}
|
|
4606
|
-
if (params?.isDigital !== void 0) {
|
|
4607
|
-
queryArray.push("isDigital=" + params.isDigital);
|
|
4608
|
-
}
|
|
4609
|
-
if (params?.isTransferable !== void 0) {
|
|
4610
|
-
queryArray.push("isTransferable=" + params.isTransferable);
|
|
4611
|
-
}
|
|
4612
|
-
if (params?.requiresPin !== void 0) {
|
|
4613
|
-
queryArray.push("requiresPin=" + params.requiresPin);
|
|
4568
|
+
if (params?.propertyId !== void 0) {
|
|
4569
|
+
queryArray.push("propertyId=" + params.propertyId);
|
|
4614
4570
|
}
|
|
4615
4571
|
if (options?.limit !== void 0) {
|
|
4616
4572
|
queryArray.push("limit=" + options.limit);
|
|
@@ -4623,19 +4579,18 @@ var BenefitCardsService = class extends Service {
|
|
|
4623
4579
|
method: "GET",
|
|
4624
4580
|
url: "benefitCards?" + queryArray.join("&"),
|
|
4625
4581
|
body: void 0,
|
|
4626
|
-
authenticationNotOptional:
|
|
4582
|
+
authenticationNotOptional: true
|
|
4627
4583
|
},
|
|
4628
4584
|
options
|
|
4629
4585
|
);
|
|
4630
4586
|
}
|
|
4631
4587
|
async retrieve(params, options) {
|
|
4632
|
-
const queryArray = [];
|
|
4633
4588
|
return await super.sendRequest(
|
|
4634
4589
|
{
|
|
4635
4590
|
method: "GET",
|
|
4636
|
-
url: "benefitCards/" + params.benefitCardId
|
|
4591
|
+
url: "benefitCards/" + params.benefitCardId,
|
|
4637
4592
|
body: void 0,
|
|
4638
|
-
authenticationNotOptional:
|
|
4593
|
+
authenticationNotOptional: true
|
|
4639
4594
|
},
|
|
4640
4595
|
options
|
|
4641
4596
|
);
|
|
@@ -4646,26 +4601,11 @@ var BenefitCardsService = class extends Service {
|
|
|
4646
4601
|
method: "PATCH",
|
|
4647
4602
|
url: "benefitCards/" + params.benefitCardId,
|
|
4648
4603
|
body: {
|
|
4604
|
+
name: params.name,
|
|
4605
|
+
imageLight: params.imageLight,
|
|
4606
|
+
imageDark: params.imageDark,
|
|
4649
4607
|
userId: params.userId,
|
|
4650
|
-
|
|
4651
|
-
cardHolderName: params.cardHolderName,
|
|
4652
|
-
type: params.type,
|
|
4653
|
-
status: params.status,
|
|
4654
|
-
benefits: params.benefits,
|
|
4655
|
-
limits: params.limits,
|
|
4656
|
-
metadata: params.metadata,
|
|
4657
|
-
pointsBalance: params.pointsBalance,
|
|
4658
|
-
cashbackBalance: params.cashbackBalance,
|
|
4659
|
-
totalSavings: params.totalSavings,
|
|
4660
|
-
totalSpent: params.totalSpent,
|
|
4661
|
-
transactionCount: params.transactionCount,
|
|
4662
|
-
expiresAt: params.expiresAt,
|
|
4663
|
-
isDigital: params.isDigital,
|
|
4664
|
-
isTransferable: params.isTransferable,
|
|
4665
|
-
requiresPin: params.requiresPin,
|
|
4666
|
-
pin: params.pin,
|
|
4667
|
-
qrCode: params.qrCode,
|
|
4668
|
-
barcode: params.barcode
|
|
4608
|
+
reference: params.reference
|
|
4669
4609
|
},
|
|
4670
4610
|
authenticationNotOptional: true
|
|
4671
4611
|
},
|