Skip to content
This repository was archived by the owner on Jul 2, 2023. It is now read-only.

Commit 5566fff

Browse files
committed
update spec
1 parent fc0eebb commit 5566fff

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

dist/spec0.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ export interface RequestField {
2323
type: RequestFieldType;
2424
iconClass?: string;
2525
}
26+
export interface TransactionCountry {
27+
name: string;
28+
code: string;
29+
requiresZip?: boolean;
30+
regionInfo?: TransactionRegionInfo;
31+
}
32+
export interface TransactionRegionInfo {
33+
localisedName: string;
34+
values: {
35+
name: string;
36+
code: string;
37+
}[];
38+
}
2639
export declare type TransactionStatus = "created" | "approved" | "failed" | "pending" | "completed" | "refunded" | "denied";
2740
export interface Transaction {
2841
id: string;
@@ -35,6 +48,7 @@ export interface Transaction {
3548
date: number;
3649
statusDate: number;
3750
fields: Field[];
51+
countries: TransactionCountry[];
3852
}
3953
export interface TransactionRequest {
4054
title: string;

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dynastic-accounts/core",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"description": "A core library for interacting with Dynastic Accounts.",
55
"main": "./dist/index.cjs.js",
66
"module": "./dist/index.es.js",

src/spec0.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ export interface RequestField {
2828
iconClass?: string;
2929
}
3030

31+
export interface TransactionCountry {
32+
name: string;
33+
code: string;
34+
requiresZip?: boolean;
35+
regionInfo?: TransactionRegionInfo;
36+
}
37+
38+
export interface TransactionRegionInfo {
39+
localisedName: string;
40+
values: { name: string, code: string }[];
41+
}
42+
3143
export type TransactionStatus = "created" | "approved" | "failed" | "pending" | "completed" | "refunded" | "denied";
3244

3345
export interface Transaction {
@@ -41,6 +53,7 @@ export interface Transaction {
4153
date: number;
4254
statusDate: number;
4355
fields: Field[];
56+
countries: TransactionCountry[];
4457
}
4558

4659
export interface TransactionRequest {

0 commit comments

Comments
 (0)