This repository was archived by the owner on Jul 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +29
-2
lines changed Expand file tree Collapse file tree 4 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,19 @@ export interface RequestField {
23
23
type : RequestFieldType ;
24
24
iconClass ?: string ;
25
25
}
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
+ }
26
39
export declare type TransactionStatus = "created" | "approved" | "failed" | "pending" | "completed" | "refunded" | "denied" ;
27
40
export interface Transaction {
28
41
id : string ;
@@ -35,6 +48,7 @@ export interface Transaction {
35
48
date : number ;
36
49
statusDate : number ;
37
50
fields : Field [ ] ;
51
+ countries : TransactionCountry [ ] ;
38
52
}
39
53
export interface TransactionRequest {
40
54
title : string ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @dynastic-accounts/core" ,
3
- "version" : " 2.0.4 " ,
3
+ "version" : " 2.0.5 " ,
4
4
"description" : " A core library for interacting with Dynastic Accounts." ,
5
5
"main" : " ./dist/index.cjs.js" ,
6
6
"module" : " ./dist/index.es.js" ,
Original file line number Diff line number Diff line change @@ -28,6 +28,18 @@ export interface RequestField {
28
28
iconClass ?: string ;
29
29
}
30
30
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
+
31
43
export type TransactionStatus = "created" | "approved" | "failed" | "pending" | "completed" | "refunded" | "denied" ;
32
44
33
45
export interface Transaction {
@@ -41,6 +53,7 @@ export interface Transaction {
41
53
date : number ;
42
54
statusDate : number ;
43
55
fields : Field [ ] ;
56
+ countries : TransactionCountry [ ] ;
44
57
}
45
58
46
59
export interface TransactionRequest {
You can’t perform that action at this time.
0 commit comments