Skip to content

Commit cdb319c

Browse files
feat(api): add Google WPP to SDKs
docs(api): clarify error 422 for 3DS challenge response feat(api): add IS_AFTER / IS_BEFORE operators to Auth Rule APIs
1 parent 4269638 commit cdb319c

File tree

3 files changed

+79
-39
lines changed

3 files changed

+79
-39
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 176
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-3e50857d2b8f4c85922abf83df7b3c6894f5bd500d6226ff589476029bbb258b.yml
3-
openapi_spec_hash: 6bef8b283eb7292ad6f3f62d40fda699
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-abe6a4f82f696099fa8ecb1cc44f08979e17d56578ae7ea68b0e9182e21df508.yml
3+
openapi_spec_hash: d2ce51592a9a234c6f34a1168a31f91f
44
config_hash: ba3fbfc99a1b8635d9e79e9e49d12952

src/resources/auth-rules/v2/v2.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,8 @@ export type ConditionalOperation =
689689
| 'IS_GREATER_THAN_OR_EQUAL_TO'
690690
| 'IS_LESS_THAN'
691691
| 'IS_LESS_THAN_OR_EQUAL_TO'
692+
| 'IS_AFTER'
693+
| 'IS_BEFORE'
692694
| 'CONTAINS_ANY'
693695
| 'CONTAINS_ALL'
694696
| 'CONTAINS_NONE';
@@ -819,7 +821,7 @@ export namespace ConditionalTokenizationActionParameters {
819821
/**
820822
* A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
821823
*/
822-
export type ConditionalValue = string | number | Array<string>;
824+
export type ConditionalValue = string | number | Array<string> | (string & {});
823825

824826
export interface MerchantLockParameters {
825827
/**

src/resources/cards/cards.ts

Lines changed: 74 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -785,57 +785,77 @@ export interface CardProvisionResponse {
785785
provisioning_payload?: string | ProvisionResponse;
786786
}
787787

788-
export interface CardWebProvisionResponse {
789-
/**
790-
* JWS object required for handoff to Apple's script.
791-
*/
792-
jws?: CardWebProvisionResponse.Jws;
793-
794-
/**
795-
* A unique identifier for the JWS object.
796-
*/
797-
state?: string;
798-
}
788+
export type CardWebProvisionResponse =
789+
| CardWebProvisionResponse.AppleWebPushProvisioningResponse
790+
| CardWebProvisionResponse.GoogleWebPushProvisioningResponse;
799791

800792
export namespace CardWebProvisionResponse {
801-
/**
802-
* JWS object required for handoff to Apple's script.
803-
*/
804-
export interface Jws {
793+
export interface AppleWebPushProvisioningResponse {
805794
/**
806-
* JWS unprotected headers containing header parameters that aren't
807-
* integrity-protected by the JWS signature.
795+
* JWS object required for handoff to Apple's script.
808796
*/
809-
header?: Jws.Header;
797+
jws?: AppleWebPushProvisioningResponse.Jws;
810798

811799
/**
812-
* Base64url encoded JSON object containing the provisioning payload.
800+
* A unique identifier for the JWS object.
813801
*/
814-
payload?: string;
802+
state?: string;
803+
}
815804

805+
export namespace AppleWebPushProvisioningResponse {
816806
/**
817-
* Base64url encoded JWS protected headers containing the header parameters that
818-
* are integrity-protected by the JWS signature.
807+
* JWS object required for handoff to Apple's script.
819808
*/
820-
protected?: string;
809+
export interface Jws {
810+
/**
811+
* JWS unprotected headers containing header parameters that aren't
812+
* integrity-protected by the JWS signature.
813+
*/
814+
header?: Jws.Header;
815+
816+
/**
817+
* Base64url encoded JSON object containing the provisioning payload.
818+
*/
819+
payload?: string;
820+
821+
/**
822+
* Base64url encoded JWS protected headers containing the header parameters that
823+
* are integrity-protected by the JWS signature.
824+
*/
825+
protected?: string;
826+
827+
/**
828+
* Base64url encoded signature of the JWS object.
829+
*/
830+
signature?: string;
831+
}
821832

833+
export namespace Jws {
834+
/**
835+
* JWS unprotected headers containing header parameters that aren't
836+
* integrity-protected by the JWS signature.
837+
*/
838+
export interface Header {
839+
/**
840+
* The ID for the JWS Public Key of the key pair used to generate the signature.
841+
*/
842+
kid?: string;
843+
}
844+
}
845+
}
846+
847+
export interface GoogleWebPushProvisioningResponse {
822848
/**
823-
* Base64url encoded signature of the JWS object.
849+
* A base64 encoded and encrypted payload representing card data for the Google Pay
850+
* UWPP FPAN flow.
824851
*/
825-
signature?: string;
826-
}
852+
google_opc?: string;
827853

828-
export namespace Jws {
829854
/**
830-
* JWS unprotected headers containing header parameters that aren't
831-
* integrity-protected by the JWS signature.
855+
* A base64 encoded and encrypted payload representing card data for the Google Pay
856+
* UWPP tokenization flow.
832857
*/
833-
export interface Header {
834-
/**
835-
* The ID for the JWS Public Key of the key pair used to generate the signature.
836-
*/
837-
kid?: string;
838-
}
858+
tsp_opc?: string;
839859
}
840860
}
841861

@@ -1479,10 +1499,28 @@ export interface CardSearchByPanParams {
14791499
}
14801500

14811501
export interface CardWebProvisionParams {
1502+
/**
1503+
* Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push
1504+
* Provisioning device identifier required for the tokenization flow
1505+
*/
1506+
client_device_id?: string;
1507+
1508+
/**
1509+
* Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push
1510+
* Provisioning wallet account identifier required for the tokenization flow
1511+
*/
1512+
client_wallet_account_id?: string;
1513+
14821514
/**
14831515
* Name of digital wallet provider.
14841516
*/
1485-
digital_wallet?: 'APPLE_PAY';
1517+
digital_wallet?: 'APPLE_PAY' | 'GOOGLE_PAY';
1518+
1519+
/**
1520+
* Only applicable if `digital_wallet` is GOOGLE_PAY. Google Pay Web Push
1521+
* Provisioning session identifier required for the FPAN flow.
1522+
*/
1523+
server_session_id?: string;
14861524
}
14871525

14881526
Cards.AggregateBalances = AggregateBalances;

0 commit comments

Comments
 (0)