@juhuu/sdk-ts 1.2.290 → 1.2.292
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 -120
- package/dist/index.d.ts +24 -120
- package/dist/index.js +12 -74
- package/dist/index.mjs +12 -74
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -11,6 +11,7 @@ type ProximityStrategy = {
|
|
|
11
11
|
type: "location";
|
|
12
12
|
radius: number | null;
|
|
13
13
|
};
|
|
14
|
+
type KitStatus = "setupComplete" | "waitingForSetup";
|
|
14
15
|
type Platform = "ios" | "android" | "windows" | "macos" | "web";
|
|
15
16
|
type DeviceStatus = "running" | "sleeping" | "shutdown";
|
|
16
17
|
type PushToken = {
|
|
@@ -5601,96 +5602,25 @@ declare namespace JUHUU {
|
|
|
5601
5602
|
}
|
|
5602
5603
|
}
|
|
5603
5604
|
namespace BenefitCard {
|
|
5604
|
-
type BenefitCardType = "membership" | "loyalty" | "discount" | "cashback" | "premium" | "corporate";
|
|
5605
|
-
type BenefitCardStatus = "active" | "inactive" | "suspended" | "expired" | "pending_activation";
|
|
5606
|
-
type BenefitType = "percentage_discount" | "fixed_discount" | "cashback" | "points" | "free_shipping" | "priority_access";
|
|
5607
|
-
type Benefit = {
|
|
5608
|
-
type: BenefitType;
|
|
5609
|
-
name: string;
|
|
5610
|
-
description: string;
|
|
5611
|
-
value: number;
|
|
5612
|
-
unit: string;
|
|
5613
|
-
conditions: string[];
|
|
5614
|
-
validFrom: string | null;
|
|
5615
|
-
validTo: string | null;
|
|
5616
|
-
usageLimit: number | null;
|
|
5617
|
-
usageCount: number;
|
|
5618
|
-
minimumSpend: number | null;
|
|
5619
|
-
maximumDiscount: number | null;
|
|
5620
|
-
applicableCategories: string[];
|
|
5621
|
-
excludedCategories: string[];
|
|
5622
|
-
};
|
|
5623
|
-
type BenefitCardLimits = {
|
|
5624
|
-
dailyUsageLimit: number | null;
|
|
5625
|
-
monthlyUsageLimit: number | null;
|
|
5626
|
-
yearlyUsageLimit: number | null;
|
|
5627
|
-
lifetimeUsageLimit: number | null;
|
|
5628
|
-
dailySpendLimit: number | null;
|
|
5629
|
-
monthlySpendLimit: number | null;
|
|
5630
|
-
yearlySpendLimit: number | null;
|
|
5631
|
-
perTransactionLimit: number | null;
|
|
5632
|
-
};
|
|
5633
|
-
type BenefitCardMetadata = {
|
|
5634
|
-
issuer: string;
|
|
5635
|
-
brand: string | null;
|
|
5636
|
-
level: "bronze" | "silver" | "gold" | "platinum" | "diamond";
|
|
5637
|
-
renewalDate: string | null;
|
|
5638
|
-
memberSince: string;
|
|
5639
|
-
referralCode: string | null;
|
|
5640
|
-
partnerPrograms: string[];
|
|
5641
|
-
tags: string[];
|
|
5642
|
-
notes: string | null;
|
|
5643
|
-
};
|
|
5644
5605
|
type Object = {
|
|
5645
5606
|
id: string;
|
|
5607
|
+
version: number;
|
|
5646
5608
|
readonly object: "benefitCard";
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
metadata: BenefitCardMetadata;
|
|
5655
|
-
pointsBalance: number;
|
|
5656
|
-
cashbackBalance: number;
|
|
5657
|
-
totalSavings: number;
|
|
5658
|
-
totalSpent: number;
|
|
5659
|
-
transactionCount: number;
|
|
5660
|
-
lastUsedAt: string | null;
|
|
5661
|
-
createdAt: string;
|
|
5662
|
-
updatedAt: string;
|
|
5663
|
-
activatedAt: string | null;
|
|
5664
|
-
expiresAt: string | null;
|
|
5665
|
-
isDigital: boolean;
|
|
5666
|
-
isTransferable: boolean;
|
|
5667
|
-
requiresPin: boolean;
|
|
5668
|
-
pin: string | null;
|
|
5669
|
-
qrCode: string | null;
|
|
5670
|
-
barcode: string | null;
|
|
5609
|
+
readonly objectType: "dto";
|
|
5610
|
+
createdAt: Date;
|
|
5611
|
+
imageLight: string | null;
|
|
5612
|
+
imageDark: string | null;
|
|
5613
|
+
userId: string | null;
|
|
5614
|
+
propertyId: string;
|
|
5615
|
+
reference: string | null;
|
|
5671
5616
|
};
|
|
5672
5617
|
namespace Create {
|
|
5673
5618
|
type Params = {
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
benefits: Benefit[];
|
|
5680
|
-
limits: BenefitCardLimits;
|
|
5681
|
-
metadata: BenefitCardMetadata;
|
|
5682
|
-
pointsBalance?: number;
|
|
5683
|
-
cashbackBalance?: number;
|
|
5684
|
-
totalSavings?: number;
|
|
5685
|
-
totalSpent?: number;
|
|
5686
|
-
transactionCount?: number;
|
|
5687
|
-
expiresAt?: string | null;
|
|
5688
|
-
isDigital?: boolean;
|
|
5689
|
-
isTransferable?: boolean;
|
|
5690
|
-
requiresPin?: boolean;
|
|
5691
|
-
pin?: string | null;
|
|
5692
|
-
qrCode?: string | null;
|
|
5693
|
-
barcode?: string | null;
|
|
5619
|
+
propertyId: string;
|
|
5620
|
+
imageLight?: string | null;
|
|
5621
|
+
imageDark?: string | null;
|
|
5622
|
+
userId?: string | null;
|
|
5623
|
+
reference?: string | null;
|
|
5694
5624
|
};
|
|
5695
5625
|
type Options = JUHUU.RequestOptions;
|
|
5696
5626
|
type Response = {
|
|
@@ -5708,17 +5638,7 @@ declare namespace JUHUU {
|
|
|
5708
5638
|
}
|
|
5709
5639
|
namespace List {
|
|
5710
5640
|
type Params = {
|
|
5711
|
-
|
|
5712
|
-
cardNumber?: string;
|
|
5713
|
-
cardHolderName?: string;
|
|
5714
|
-
type?: BenefitCardType;
|
|
5715
|
-
status?: BenefitCardStatus;
|
|
5716
|
-
issuer?: string;
|
|
5717
|
-
brand?: string;
|
|
5718
|
-
level?: "bronze" | "silver" | "gold" | "platinum" | "diamond";
|
|
5719
|
-
isDigital?: boolean;
|
|
5720
|
-
isTransferable?: boolean;
|
|
5721
|
-
requiresPin?: boolean;
|
|
5641
|
+
propertyId: string;
|
|
5722
5642
|
};
|
|
5723
5643
|
type Options = {
|
|
5724
5644
|
limit?: number;
|
|
@@ -5733,26 +5653,10 @@ declare namespace JUHUU {
|
|
|
5733
5653
|
namespace Update {
|
|
5734
5654
|
type Params = {
|
|
5735
5655
|
benefitCardId: string;
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
status?: BenefitCardStatus;
|
|
5741
|
-
benefits?: Benefit[];
|
|
5742
|
-
limits?: BenefitCardLimits;
|
|
5743
|
-
metadata?: BenefitCardMetadata;
|
|
5744
|
-
pointsBalance?: number;
|
|
5745
|
-
cashbackBalance?: number;
|
|
5746
|
-
totalSavings?: number;
|
|
5747
|
-
totalSpent?: number;
|
|
5748
|
-
transactionCount?: number;
|
|
5749
|
-
expiresAt?: string | null;
|
|
5750
|
-
isDigital?: boolean;
|
|
5751
|
-
isTransferable?: boolean;
|
|
5752
|
-
requiresPin?: boolean;
|
|
5753
|
-
pin?: string | null;
|
|
5754
|
-
qrCode?: string | null;
|
|
5755
|
-
barcode?: string | null;
|
|
5656
|
+
imageLight?: string | null;
|
|
5657
|
+
imageDark?: string | null;
|
|
5658
|
+
userId?: string | null;
|
|
5659
|
+
reference?: string | null;
|
|
5756
5660
|
};
|
|
5757
5661
|
type Options = JUHUU.RequestOptions;
|
|
5758
5662
|
type Response = {
|
|
@@ -5764,7 +5668,9 @@ declare namespace JUHUU {
|
|
|
5764
5668
|
benefitCardId: string;
|
|
5765
5669
|
};
|
|
5766
5670
|
type Options = JUHUU.RequestOptions;
|
|
5767
|
-
type Response =
|
|
5671
|
+
type Response = {
|
|
5672
|
+
benefitCard: JUHUU.BenefitCard.Object;
|
|
5673
|
+
};
|
|
5768
5674
|
}
|
|
5769
5675
|
}
|
|
5770
5676
|
namespace Catalog {
|
|
@@ -6208,8 +6114,6 @@ declare namespace JUHUU {
|
|
|
6208
6114
|
}
|
|
6209
6115
|
}
|
|
6210
6116
|
namespace Kit {
|
|
6211
|
-
type KitType = "controlKitV1" | "tapkeyV1" | "emzV1";
|
|
6212
|
-
type KitStatus = "setupComplete" | "waitingForSetup";
|
|
6213
6117
|
type BaseKit = {
|
|
6214
6118
|
id: string;
|
|
6215
6119
|
readonly object: "kit";
|
|
@@ -6285,7 +6189,7 @@ declare namespace JUHUU {
|
|
|
6285
6189
|
type Params = {
|
|
6286
6190
|
name?: string;
|
|
6287
6191
|
propertyId?: string;
|
|
6288
|
-
type?:
|
|
6192
|
+
type?: JUHUU.Kit.Object["type"];
|
|
6289
6193
|
};
|
|
6290
6194
|
type Options = {
|
|
6291
6195
|
limit?: number;
|
|
@@ -6641,4 +6545,4 @@ declare namespace JUHUU {
|
|
|
6641
6545
|
}
|
|
6642
6546
|
}
|
|
6643
6547
|
|
|
6644
|
-
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BlockExecutor, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type ConstBooleanBlock, type ConstNumberBlock, type ConstTextBlock, type ControlEdgeConnection, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DataEdgeConnection, type DeepNullable, type DevicePermission, type DeviceRetrieveBlock, type DeviceRetrieveBlockInputs, type DeviceStatus, type DeviceType, type DeviceUpdateBlock, type DeviceUpdateBlockInputs, type EndCustomBlock, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowBlockInput, type FlowControlEdge, type FlowDataEdge, type FlowEdge, type FlowExecuteBlock, type FlowExecuteBlockInputs, type FlowExecutionEnvironment, type FlowLog, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, type HttpDeleteBlock, type HttpDeleteBlockInputs, type HttpGetBlock, type HttpGetBlockInputs, type HttpPatchBlock, type HttpPostBlock, type HttpPostBlockInputs, type HttpPutBlock, type HttpPutBlockInputs, type HttpsPatchBlockInputs, type IfBlock, type IncidentCreateBlock, type IncidentCreateBlockInputs, type IncidentRetrieveBlock, type IncidentRetrieveBlockInputs, JUHUU, type JsonLogic, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapConstructBlock, type MapConstructBlockInputs, type MapDestructureBlock, type MapDestructureBlockInputs, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type MathDivideBlock, type MathDivideBlockInputs, type MathMultiplyBlock, type MathMultiplyBlockInputs, type MathSubtractBlock, type MathSubtractBlockInputs, type Modality, type MqttSendBlock, type MqttSendBlockInputs, Offer, type OfferTime, type PanelDisplay, type ParamDefinition, type ParamType, type ParameterRetrieveBlock, type ParameterRetrieveBlockInputs, type ParameterUpdateBlock, type ParameterUpdateBlockInputs, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type PropertyRetrieveBlock, type PropertyRetrieveBlockInputs, type PropertyUpdateBlock, type PropertyUpdateBlockInputs, type ProximityStrategy, type Purpose, type PushToken, type QuickAction, type QuickView, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionRetrieveBlock, type SessionRetrieveBlockInputs, type SessionSettings, type SessionStatus, type SessionTerminateBlock, type SessionTerminateBlockInputs, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type StartCustomBlock, type StartLocationUpdateBlock, type StartParameterUpdateBlock, type StartQuickActionLocationBlock, type StartSessionUpdateBlock, type SwitchBlock, type SystemLogBlock, type SystemLogBlockInputs, type TarifType, type TaxCode, type TimeZone, type UiNavigateScreenBlock, type UiNavigateScreenBlockInputs, type Unit, type UserCreateBlock, type UserCreateBlockInputs, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VariableGetBlock, type VariableGetBlockInputs, type VariableSetBlock, type VariableSetBlockInputs, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
|
6548
|
+
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BlockExecutor, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type ConstBooleanBlock, type ConstNumberBlock, type ConstTextBlock, type ControlEdgeConnection, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DataEdgeConnection, type DeepNullable, type DevicePermission, type DeviceRetrieveBlock, type DeviceRetrieveBlockInputs, type DeviceStatus, type DeviceType, type DeviceUpdateBlock, type DeviceUpdateBlockInputs, type EndCustomBlock, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowBlockInput, type FlowControlEdge, type FlowDataEdge, type FlowEdge, type FlowExecuteBlock, type FlowExecuteBlockInputs, type FlowExecutionEnvironment, type FlowLog, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, type HttpDeleteBlock, type HttpDeleteBlockInputs, type HttpGetBlock, type HttpGetBlockInputs, type HttpPatchBlock, type HttpPostBlock, type HttpPostBlockInputs, type HttpPutBlock, type HttpPutBlockInputs, type HttpsPatchBlockInputs, type IfBlock, type IncidentCreateBlock, type IncidentCreateBlockInputs, type IncidentRetrieveBlock, type IncidentRetrieveBlockInputs, JUHUU, type JsonLogic, Juhuu, type KitStatus, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapConstructBlock, type MapConstructBlockInputs, type MapDestructureBlock, type MapDestructureBlockInputs, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type MathDivideBlock, type MathDivideBlockInputs, type MathMultiplyBlock, type MathMultiplyBlockInputs, type MathSubtractBlock, type MathSubtractBlockInputs, type Modality, type MqttSendBlock, type MqttSendBlockInputs, Offer, type OfferTime, type PanelDisplay, type ParamDefinition, type ParamType, type ParameterRetrieveBlock, type ParameterRetrieveBlockInputs, type ParameterUpdateBlock, type ParameterUpdateBlockInputs, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type PropertyRetrieveBlock, type PropertyRetrieveBlockInputs, type PropertyUpdateBlock, type PropertyUpdateBlockInputs, type ProximityStrategy, type Purpose, type PushToken, type QuickAction, type QuickView, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionRetrieveBlock, type SessionRetrieveBlockInputs, type SessionSettings, type SessionStatus, type SessionTerminateBlock, type SessionTerminateBlockInputs, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type StartCustomBlock, type StartLocationUpdateBlock, type StartParameterUpdateBlock, type StartQuickActionLocationBlock, type StartSessionUpdateBlock, type SwitchBlock, type SystemLogBlock, type SystemLogBlockInputs, type TarifType, type TaxCode, type TimeZone, type UiNavigateScreenBlock, type UiNavigateScreenBlockInputs, type Unit, type UserCreateBlock, type UserCreateBlockInputs, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VariableGetBlock, type VariableGetBlockInputs, type VariableSetBlock, type VariableSetBlockInputs, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ type ProximityStrategy = {
|
|
|
11
11
|
type: "location";
|
|
12
12
|
radius: number | null;
|
|
13
13
|
};
|
|
14
|
+
type KitStatus = "setupComplete" | "waitingForSetup";
|
|
14
15
|
type Platform = "ios" | "android" | "windows" | "macos" | "web";
|
|
15
16
|
type DeviceStatus = "running" | "sleeping" | "shutdown";
|
|
16
17
|
type PushToken = {
|
|
@@ -5601,96 +5602,25 @@ declare namespace JUHUU {
|
|
|
5601
5602
|
}
|
|
5602
5603
|
}
|
|
5603
5604
|
namespace BenefitCard {
|
|
5604
|
-
type BenefitCardType = "membership" | "loyalty" | "discount" | "cashback" | "premium" | "corporate";
|
|
5605
|
-
type BenefitCardStatus = "active" | "inactive" | "suspended" | "expired" | "pending_activation";
|
|
5606
|
-
type BenefitType = "percentage_discount" | "fixed_discount" | "cashback" | "points" | "free_shipping" | "priority_access";
|
|
5607
|
-
type Benefit = {
|
|
5608
|
-
type: BenefitType;
|
|
5609
|
-
name: string;
|
|
5610
|
-
description: string;
|
|
5611
|
-
value: number;
|
|
5612
|
-
unit: string;
|
|
5613
|
-
conditions: string[];
|
|
5614
|
-
validFrom: string | null;
|
|
5615
|
-
validTo: string | null;
|
|
5616
|
-
usageLimit: number | null;
|
|
5617
|
-
usageCount: number;
|
|
5618
|
-
minimumSpend: number | null;
|
|
5619
|
-
maximumDiscount: number | null;
|
|
5620
|
-
applicableCategories: string[];
|
|
5621
|
-
excludedCategories: string[];
|
|
5622
|
-
};
|
|
5623
|
-
type BenefitCardLimits = {
|
|
5624
|
-
dailyUsageLimit: number | null;
|
|
5625
|
-
monthlyUsageLimit: number | null;
|
|
5626
|
-
yearlyUsageLimit: number | null;
|
|
5627
|
-
lifetimeUsageLimit: number | null;
|
|
5628
|
-
dailySpendLimit: number | null;
|
|
5629
|
-
monthlySpendLimit: number | null;
|
|
5630
|
-
yearlySpendLimit: number | null;
|
|
5631
|
-
perTransactionLimit: number | null;
|
|
5632
|
-
};
|
|
5633
|
-
type BenefitCardMetadata = {
|
|
5634
|
-
issuer: string;
|
|
5635
|
-
brand: string | null;
|
|
5636
|
-
level: "bronze" | "silver" | "gold" | "platinum" | "diamond";
|
|
5637
|
-
renewalDate: string | null;
|
|
5638
|
-
memberSince: string;
|
|
5639
|
-
referralCode: string | null;
|
|
5640
|
-
partnerPrograms: string[];
|
|
5641
|
-
tags: string[];
|
|
5642
|
-
notes: string | null;
|
|
5643
|
-
};
|
|
5644
5605
|
type Object = {
|
|
5645
5606
|
id: string;
|
|
5607
|
+
version: number;
|
|
5646
5608
|
readonly object: "benefitCard";
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
metadata: BenefitCardMetadata;
|
|
5655
|
-
pointsBalance: number;
|
|
5656
|
-
cashbackBalance: number;
|
|
5657
|
-
totalSavings: number;
|
|
5658
|
-
totalSpent: number;
|
|
5659
|
-
transactionCount: number;
|
|
5660
|
-
lastUsedAt: string | null;
|
|
5661
|
-
createdAt: string;
|
|
5662
|
-
updatedAt: string;
|
|
5663
|
-
activatedAt: string | null;
|
|
5664
|
-
expiresAt: string | null;
|
|
5665
|
-
isDigital: boolean;
|
|
5666
|
-
isTransferable: boolean;
|
|
5667
|
-
requiresPin: boolean;
|
|
5668
|
-
pin: string | null;
|
|
5669
|
-
qrCode: string | null;
|
|
5670
|
-
barcode: string | null;
|
|
5609
|
+
readonly objectType: "dto";
|
|
5610
|
+
createdAt: Date;
|
|
5611
|
+
imageLight: string | null;
|
|
5612
|
+
imageDark: string | null;
|
|
5613
|
+
userId: string | null;
|
|
5614
|
+
propertyId: string;
|
|
5615
|
+
reference: string | null;
|
|
5671
5616
|
};
|
|
5672
5617
|
namespace Create {
|
|
5673
5618
|
type Params = {
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
benefits: Benefit[];
|
|
5680
|
-
limits: BenefitCardLimits;
|
|
5681
|
-
metadata: BenefitCardMetadata;
|
|
5682
|
-
pointsBalance?: number;
|
|
5683
|
-
cashbackBalance?: number;
|
|
5684
|
-
totalSavings?: number;
|
|
5685
|
-
totalSpent?: number;
|
|
5686
|
-
transactionCount?: number;
|
|
5687
|
-
expiresAt?: string | null;
|
|
5688
|
-
isDigital?: boolean;
|
|
5689
|
-
isTransferable?: boolean;
|
|
5690
|
-
requiresPin?: boolean;
|
|
5691
|
-
pin?: string | null;
|
|
5692
|
-
qrCode?: string | null;
|
|
5693
|
-
barcode?: string | null;
|
|
5619
|
+
propertyId: string;
|
|
5620
|
+
imageLight?: string | null;
|
|
5621
|
+
imageDark?: string | null;
|
|
5622
|
+
userId?: string | null;
|
|
5623
|
+
reference?: string | null;
|
|
5694
5624
|
};
|
|
5695
5625
|
type Options = JUHUU.RequestOptions;
|
|
5696
5626
|
type Response = {
|
|
@@ -5708,17 +5638,7 @@ declare namespace JUHUU {
|
|
|
5708
5638
|
}
|
|
5709
5639
|
namespace List {
|
|
5710
5640
|
type Params = {
|
|
5711
|
-
|
|
5712
|
-
cardNumber?: string;
|
|
5713
|
-
cardHolderName?: string;
|
|
5714
|
-
type?: BenefitCardType;
|
|
5715
|
-
status?: BenefitCardStatus;
|
|
5716
|
-
issuer?: string;
|
|
5717
|
-
brand?: string;
|
|
5718
|
-
level?: "bronze" | "silver" | "gold" | "platinum" | "diamond";
|
|
5719
|
-
isDigital?: boolean;
|
|
5720
|
-
isTransferable?: boolean;
|
|
5721
|
-
requiresPin?: boolean;
|
|
5641
|
+
propertyId: string;
|
|
5722
5642
|
};
|
|
5723
5643
|
type Options = {
|
|
5724
5644
|
limit?: number;
|
|
@@ -5733,26 +5653,10 @@ declare namespace JUHUU {
|
|
|
5733
5653
|
namespace Update {
|
|
5734
5654
|
type Params = {
|
|
5735
5655
|
benefitCardId: string;
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
status?: BenefitCardStatus;
|
|
5741
|
-
benefits?: Benefit[];
|
|
5742
|
-
limits?: BenefitCardLimits;
|
|
5743
|
-
metadata?: BenefitCardMetadata;
|
|
5744
|
-
pointsBalance?: number;
|
|
5745
|
-
cashbackBalance?: number;
|
|
5746
|
-
totalSavings?: number;
|
|
5747
|
-
totalSpent?: number;
|
|
5748
|
-
transactionCount?: number;
|
|
5749
|
-
expiresAt?: string | null;
|
|
5750
|
-
isDigital?: boolean;
|
|
5751
|
-
isTransferable?: boolean;
|
|
5752
|
-
requiresPin?: boolean;
|
|
5753
|
-
pin?: string | null;
|
|
5754
|
-
qrCode?: string | null;
|
|
5755
|
-
barcode?: string | null;
|
|
5656
|
+
imageLight?: string | null;
|
|
5657
|
+
imageDark?: string | null;
|
|
5658
|
+
userId?: string | null;
|
|
5659
|
+
reference?: string | null;
|
|
5756
5660
|
};
|
|
5757
5661
|
type Options = JUHUU.RequestOptions;
|
|
5758
5662
|
type Response = {
|
|
@@ -5764,7 +5668,9 @@ declare namespace JUHUU {
|
|
|
5764
5668
|
benefitCardId: string;
|
|
5765
5669
|
};
|
|
5766
5670
|
type Options = JUHUU.RequestOptions;
|
|
5767
|
-
type Response =
|
|
5671
|
+
type Response = {
|
|
5672
|
+
benefitCard: JUHUU.BenefitCard.Object;
|
|
5673
|
+
};
|
|
5768
5674
|
}
|
|
5769
5675
|
}
|
|
5770
5676
|
namespace Catalog {
|
|
@@ -6208,8 +6114,6 @@ declare namespace JUHUU {
|
|
|
6208
6114
|
}
|
|
6209
6115
|
}
|
|
6210
6116
|
namespace Kit {
|
|
6211
|
-
type KitType = "controlKitV1" | "tapkeyV1" | "emzV1";
|
|
6212
|
-
type KitStatus = "setupComplete" | "waitingForSetup";
|
|
6213
6117
|
type BaseKit = {
|
|
6214
6118
|
id: string;
|
|
6215
6119
|
readonly object: "kit";
|
|
@@ -6285,7 +6189,7 @@ declare namespace JUHUU {
|
|
|
6285
6189
|
type Params = {
|
|
6286
6190
|
name?: string;
|
|
6287
6191
|
propertyId?: string;
|
|
6288
|
-
type?:
|
|
6192
|
+
type?: JUHUU.Kit.Object["type"];
|
|
6289
6193
|
};
|
|
6290
6194
|
type Options = {
|
|
6291
6195
|
limit?: number;
|
|
@@ -6641,4 +6545,4 @@ declare namespace JUHUU {
|
|
|
6641
6545
|
}
|
|
6642
6546
|
}
|
|
6643
6547
|
|
|
6644
|
-
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BlockExecutor, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type ConstBooleanBlock, type ConstNumberBlock, type ConstTextBlock, type ControlEdgeConnection, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DataEdgeConnection, type DeepNullable, type DevicePermission, type DeviceRetrieveBlock, type DeviceRetrieveBlockInputs, type DeviceStatus, type DeviceType, type DeviceUpdateBlock, type DeviceUpdateBlockInputs, type EndCustomBlock, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowBlockInput, type FlowControlEdge, type FlowDataEdge, type FlowEdge, type FlowExecuteBlock, type FlowExecuteBlockInputs, type FlowExecutionEnvironment, type FlowLog, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, type HttpDeleteBlock, type HttpDeleteBlockInputs, type HttpGetBlock, type HttpGetBlockInputs, type HttpPatchBlock, type HttpPostBlock, type HttpPostBlockInputs, type HttpPutBlock, type HttpPutBlockInputs, type HttpsPatchBlockInputs, type IfBlock, type IncidentCreateBlock, type IncidentCreateBlockInputs, type IncidentRetrieveBlock, type IncidentRetrieveBlockInputs, JUHUU, type JsonLogic, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapConstructBlock, type MapConstructBlockInputs, type MapDestructureBlock, type MapDestructureBlockInputs, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type MathDivideBlock, type MathDivideBlockInputs, type MathMultiplyBlock, type MathMultiplyBlockInputs, type MathSubtractBlock, type MathSubtractBlockInputs, type Modality, type MqttSendBlock, type MqttSendBlockInputs, Offer, type OfferTime, type PanelDisplay, type ParamDefinition, type ParamType, type ParameterRetrieveBlock, type ParameterRetrieveBlockInputs, type ParameterUpdateBlock, type ParameterUpdateBlockInputs, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type PropertyRetrieveBlock, type PropertyRetrieveBlockInputs, type PropertyUpdateBlock, type PropertyUpdateBlockInputs, type ProximityStrategy, type Purpose, type PushToken, type QuickAction, type QuickView, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionRetrieveBlock, type SessionRetrieveBlockInputs, type SessionSettings, type SessionStatus, type SessionTerminateBlock, type SessionTerminateBlockInputs, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type StartCustomBlock, type StartLocationUpdateBlock, type StartParameterUpdateBlock, type StartQuickActionLocationBlock, type StartSessionUpdateBlock, type SwitchBlock, type SystemLogBlock, type SystemLogBlockInputs, type TarifType, type TaxCode, type TimeZone, type UiNavigateScreenBlock, type UiNavigateScreenBlockInputs, type Unit, type UserCreateBlock, type UserCreateBlockInputs, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VariableGetBlock, type VariableGetBlockInputs, type VariableSetBlock, type VariableSetBlockInputs, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
|
6548
|
+
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BaseBlock, type BlockExecutor, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type ConstBooleanBlock, type ConstNumberBlock, type ConstTextBlock, type ControlEdgeConnection, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DataEdgeConnection, type DeepNullable, type DevicePermission, type DeviceRetrieveBlock, type DeviceRetrieveBlockInputs, type DeviceStatus, type DeviceType, type DeviceUpdateBlock, type DeviceUpdateBlockInputs, type EndCustomBlock, type Environment, type EnvironmentSettings, type ExtractType, type FlowBlock, type FlowBlockInput, type FlowControlEdge, type FlowDataEdge, type FlowEdge, type FlowExecuteBlock, type FlowExecuteBlockInputs, type FlowExecutionEnvironment, type FlowLog, type FlowStatus, type Frontend, type GeneralSettings, type GeoPoint, type GraphNode, type HttpDeleteBlock, type HttpDeleteBlockInputs, type HttpGetBlock, type HttpGetBlockInputs, type HttpPatchBlock, type HttpPostBlock, type HttpPostBlockInputs, type HttpPutBlock, type HttpPutBlockInputs, type HttpsPatchBlockInputs, type IfBlock, type IncidentCreateBlock, type IncidentCreateBlockInputs, type IncidentRetrieveBlock, type IncidentRetrieveBlockInputs, JUHUU, type JsonLogic, Juhuu, type KitStatus, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type LocationRetrieveBlock, type LocationRetrieveBlockInputs, type LocationUpdateBlock, type LocationUpdateBlockInputs, type MapConstructBlock, type MapConstructBlockInputs, type MapDestructureBlock, type MapDestructureBlockInputs, type MapFilter, type MathAddBlock, type MathAddBlockInputs, type MathDivideBlock, type MathDivideBlockInputs, type MathMultiplyBlock, type MathMultiplyBlockInputs, type MathSubtractBlock, type MathSubtractBlockInputs, type Modality, type MqttSendBlock, type MqttSendBlockInputs, Offer, type OfferTime, type PanelDisplay, type ParamDefinition, type ParamType, type ParameterRetrieveBlock, type ParameterRetrieveBlockInputs, type ParameterUpdateBlock, type ParameterUpdateBlockInputs, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type PropertyRetrieveBlock, type PropertyRetrieveBlockInputs, type PropertyUpdateBlock, type PropertyUpdateBlockInputs, type ProximityStrategy, type Purpose, type PushToken, type QuickAction, type QuickView, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionRetrieveBlock, type SessionRetrieveBlockInputs, type SessionSettings, type SessionStatus, type SessionTerminateBlock, type SessionTerminateBlockInputs, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type StartCustomBlock, type StartLocationUpdateBlock, type StartParameterUpdateBlock, type StartQuickActionLocationBlock, type StartSessionUpdateBlock, type SwitchBlock, type SystemLogBlock, type SystemLogBlockInputs, type TarifType, type TaxCode, type TimeZone, type UiNavigateScreenBlock, type UiNavigateScreenBlockInputs, type Unit, type UserCreateBlock, type UserCreateBlockInputs, type UserGroup, type UserRetrieveBlock, type UserRetrieveBlockInputs, type UserType, type Utilization, type VariableGetBlock, type VariableGetBlockInputs, type VariableSetBlock, type VariableSetBlockInputs, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
package/dist/index.js
CHANGED
|
@@ -4595,26 +4595,11 @@ var BenefitCardsService = class extends Service {
|
|
|
4595
4595
|
method: "POST",
|
|
4596
4596
|
url: "benefitCards",
|
|
4597
4597
|
body: {
|
|
4598
|
+
propertyId: params.propertyId,
|
|
4599
|
+
imageLight: params.imageLight,
|
|
4600
|
+
imageDark: params.imageDark,
|
|
4598
4601
|
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
|
|
4602
|
+
reference: params.reference
|
|
4618
4603
|
},
|
|
4619
4604
|
authenticationNotOptional: true
|
|
4620
4605
|
},
|
|
@@ -4623,38 +4608,8 @@ var BenefitCardsService = class extends Service {
|
|
|
4623
4608
|
}
|
|
4624
4609
|
async list(params, options) {
|
|
4625
4610
|
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);
|
|
4611
|
+
if (params?.propertyId !== void 0) {
|
|
4612
|
+
queryArray.push("propertyId=" + params.propertyId);
|
|
4658
4613
|
}
|
|
4659
4614
|
if (options?.limit !== void 0) {
|
|
4660
4615
|
queryArray.push("limit=" + options.limit);
|
|
@@ -4667,19 +4622,18 @@ var BenefitCardsService = class extends Service {
|
|
|
4667
4622
|
method: "GET",
|
|
4668
4623
|
url: "benefitCards?" + queryArray.join("&"),
|
|
4669
4624
|
body: void 0,
|
|
4670
|
-
authenticationNotOptional:
|
|
4625
|
+
authenticationNotOptional: true
|
|
4671
4626
|
},
|
|
4672
4627
|
options
|
|
4673
4628
|
);
|
|
4674
4629
|
}
|
|
4675
4630
|
async retrieve(params, options) {
|
|
4676
|
-
const queryArray = [];
|
|
4677
4631
|
return await super.sendRequest(
|
|
4678
4632
|
{
|
|
4679
4633
|
method: "GET",
|
|
4680
|
-
url: "benefitCards/" + params.benefitCardId
|
|
4634
|
+
url: "benefitCards/" + params.benefitCardId,
|
|
4681
4635
|
body: void 0,
|
|
4682
|
-
authenticationNotOptional:
|
|
4636
|
+
authenticationNotOptional: true
|
|
4683
4637
|
},
|
|
4684
4638
|
options
|
|
4685
4639
|
);
|
|
@@ -4690,26 +4644,10 @@ var BenefitCardsService = class extends Service {
|
|
|
4690
4644
|
method: "PATCH",
|
|
4691
4645
|
url: "benefitCards/" + params.benefitCardId,
|
|
4692
4646
|
body: {
|
|
4647
|
+
imageLight: params.imageLight,
|
|
4648
|
+
imageDark: params.imageDark,
|
|
4693
4649
|
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
|
|
4650
|
+
reference: params.reference
|
|
4713
4651
|
},
|
|
4714
4652
|
authenticationNotOptional: true
|
|
4715
4653
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -4551,26 +4551,11 @@ var BenefitCardsService = class extends Service {
|
|
|
4551
4551
|
method: "POST",
|
|
4552
4552
|
url: "benefitCards",
|
|
4553
4553
|
body: {
|
|
4554
|
+
propertyId: params.propertyId,
|
|
4555
|
+
imageLight: params.imageLight,
|
|
4556
|
+
imageDark: params.imageDark,
|
|
4554
4557
|
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
|
|
4558
|
+
reference: params.reference
|
|
4574
4559
|
},
|
|
4575
4560
|
authenticationNotOptional: true
|
|
4576
4561
|
},
|
|
@@ -4579,38 +4564,8 @@ var BenefitCardsService = class extends Service {
|
|
|
4579
4564
|
}
|
|
4580
4565
|
async list(params, options) {
|
|
4581
4566
|
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);
|
|
4567
|
+
if (params?.propertyId !== void 0) {
|
|
4568
|
+
queryArray.push("propertyId=" + params.propertyId);
|
|
4614
4569
|
}
|
|
4615
4570
|
if (options?.limit !== void 0) {
|
|
4616
4571
|
queryArray.push("limit=" + options.limit);
|
|
@@ -4623,19 +4578,18 @@ var BenefitCardsService = class extends Service {
|
|
|
4623
4578
|
method: "GET",
|
|
4624
4579
|
url: "benefitCards?" + queryArray.join("&"),
|
|
4625
4580
|
body: void 0,
|
|
4626
|
-
authenticationNotOptional:
|
|
4581
|
+
authenticationNotOptional: true
|
|
4627
4582
|
},
|
|
4628
4583
|
options
|
|
4629
4584
|
);
|
|
4630
4585
|
}
|
|
4631
4586
|
async retrieve(params, options) {
|
|
4632
|
-
const queryArray = [];
|
|
4633
4587
|
return await super.sendRequest(
|
|
4634
4588
|
{
|
|
4635
4589
|
method: "GET",
|
|
4636
|
-
url: "benefitCards/" + params.benefitCardId
|
|
4590
|
+
url: "benefitCards/" + params.benefitCardId,
|
|
4637
4591
|
body: void 0,
|
|
4638
|
-
authenticationNotOptional:
|
|
4592
|
+
authenticationNotOptional: true
|
|
4639
4593
|
},
|
|
4640
4594
|
options
|
|
4641
4595
|
);
|
|
@@ -4646,26 +4600,10 @@ var BenefitCardsService = class extends Service {
|
|
|
4646
4600
|
method: "PATCH",
|
|
4647
4601
|
url: "benefitCards/" + params.benefitCardId,
|
|
4648
4602
|
body: {
|
|
4603
|
+
imageLight: params.imageLight,
|
|
4604
|
+
imageDark: params.imageDark,
|
|
4649
4605
|
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
|
|
4606
|
+
reference: params.reference
|
|
4669
4607
|
},
|
|
4670
4608
|
authenticationNotOptional: true
|
|
4671
4609
|
},
|