@lydianpay/sdk-web 3.18.7 → 3.18.8

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.
@@ -136,6 +136,11 @@ export type CustomerKYCValidationStatusResponse = {
136
136
  customerUUID: string;
137
137
  kycValidated: boolean;
138
138
  };
139
+ export type CustomerDateOfBirth = {
140
+ year: number;
141
+ month: number;
142
+ day: number;
143
+ };
139
144
  export type RedactedCustomerPIIResponse = {
140
145
  customerUUID: string;
141
146
  firstName: string;
@@ -146,10 +151,10 @@ export type RedactedCustomerPIIResponse = {
146
151
  address2: string;
147
152
  stateProvince: string;
148
153
  city: string;
149
- subdivision: string;
150
154
  country: string;
151
155
  postalCode: string;
152
156
  cityOfBirth: string;
157
+ dateOfBirth: CustomerDateOfBirth;
153
158
  };
154
159
  export type PlaceCountry = {
155
160
  name: string;
@@ -4,9 +4,10 @@ import type { RedactedCustomerPIIResponse } from '../types';
4
4
  export type KycPartsOnFile = Partial<Record<KycFieldPart, string>>;
5
5
  export declare const NO_KYC_PARTS_ON_FILE: KycPartsOnFile;
6
6
  export declare function getKycPartsOnFile(onFile: RedactedCustomerPIIResponse): KycPartsOnFile;
7
- export declare function getRestoredKycDraft({ draft, partsOnFile, email, country, }: {
7
+ export declare function getStoredDateOfBirth({ dateOfBirth }: RedactedCustomerPIIResponse): string;
8
+ export declare function getRestoredKycDraft({ draft, onFile, email, country, }: {
8
9
  draft: KycDraft | null;
9
- partsOnFile: KycPartsOnFile;
10
+ onFile: RedactedCustomerPIIResponse;
10
11
  email: string;
11
12
  country: string;
12
13
  }): KycDraft;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lydianpay/sdk-web",
3
- "version": "3.18.7",
3
+ "version": "3.18.8",
4
4
  "description": "Drop-in crypto payment checkout for the web — a <lydian-checkout> web component and window.Lydian API across 20+ chains and major stablecoins.",
5
5
  "license": "MIT",
6
6
  "repository": {