@linqapp/sdk 0.54.0 → 0.55.0
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/resources/payments.d.mts +25 -2
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +25 -2
- package/resources/payments.d.ts.map +1 -1
- package/src/resources/payments.ts +27 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.55.0](https://github.com/linq-team/linq-node/compare/v0.54.0...v0.55.0) (2026-09-01)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add metadata and merchant fields to payment handle response ([768c8d3](https://github.com/linq-team/linq-node/commit/768c8d31e6a6851569cb5e19ee4dfa4182ae9607))
|
|
9
|
+
|
|
3
10
|
## [0.54.0](https://github.com/linq-team/linq-node/compare/v0.53.1...v0.54.0) (2026-09-01)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
package/resources/payments.d.mts
CHANGED
|
@@ -59,18 +59,41 @@ export interface Payment {
|
|
|
59
59
|
id?: string;
|
|
60
60
|
amount_cents?: number;
|
|
61
61
|
/**
|
|
62
|
-
* Present
|
|
62
|
+
* Present on `awaiting_user_action` once a card is on file and the charge needs
|
|
63
|
+
* the customer's passkey. Re-send the create request with the same
|
|
64
|
+
* `Idempotency-Key` to collect the payment after they approve.
|
|
63
65
|
*/
|
|
64
66
|
approval_url?: string;
|
|
65
67
|
/**
|
|
66
|
-
* Present when the customer
|
|
68
|
+
* Present on `awaiting_user_action` when the customer has no card on file yet. A
|
|
69
|
+
* hosted page — open it for them; it stays valid for about 48 hours. Not returned
|
|
70
|
+
* on `needs_connection`: connect the handle first.
|
|
67
71
|
*/
|
|
68
72
|
attach_url?: string;
|
|
69
73
|
currency?: string;
|
|
70
74
|
description?: string;
|
|
71
75
|
handle?: string;
|
|
76
|
+
/**
|
|
77
|
+
* The merchant the card is minted against, echoed from the request.
|
|
78
|
+
*/
|
|
79
|
+
merchant?: Payment.Merchant;
|
|
80
|
+
/**
|
|
81
|
+
* Your own key/values, echoed back from the request.
|
|
82
|
+
*/
|
|
83
|
+
metadata?: {
|
|
84
|
+
[key: string]: string;
|
|
85
|
+
};
|
|
72
86
|
status?: 'needs_connection' | 'connecting' | 'awaiting_user_action' | 'ready' | 'authorized' | 'succeeded' | 'declined' | 'canceled' | 'expired';
|
|
73
87
|
}
|
|
88
|
+
export declare namespace Payment {
|
|
89
|
+
/**
|
|
90
|
+
* The merchant the card is minted against, echoed from the request.
|
|
91
|
+
*/
|
|
92
|
+
interface Merchant {
|
|
93
|
+
name?: string;
|
|
94
|
+
url?: string;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
74
97
|
export interface PaymentCredentialsResponse {
|
|
75
98
|
/**
|
|
76
99
|
* Fetch the card directly from the provider with these — never through Linq.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.d.mts","sourceRoot":"","sources":["../src/resources/payments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIhF;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI1E;;;;;;;OAOG;IAC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AAC;IACnC,UAAiB,QAAQ;QACvB,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/payments.d.ts
CHANGED
|
@@ -59,18 +59,41 @@ export interface Payment {
|
|
|
59
59
|
id?: string;
|
|
60
60
|
amount_cents?: number;
|
|
61
61
|
/**
|
|
62
|
-
* Present
|
|
62
|
+
* Present on `awaiting_user_action` once a card is on file and the charge needs
|
|
63
|
+
* the customer's passkey. Re-send the create request with the same
|
|
64
|
+
* `Idempotency-Key` to collect the payment after they approve.
|
|
63
65
|
*/
|
|
64
66
|
approval_url?: string;
|
|
65
67
|
/**
|
|
66
|
-
* Present when the customer
|
|
68
|
+
* Present on `awaiting_user_action` when the customer has no card on file yet. A
|
|
69
|
+
* hosted page — open it for them; it stays valid for about 48 hours. Not returned
|
|
70
|
+
* on `needs_connection`: connect the handle first.
|
|
67
71
|
*/
|
|
68
72
|
attach_url?: string;
|
|
69
73
|
currency?: string;
|
|
70
74
|
description?: string;
|
|
71
75
|
handle?: string;
|
|
76
|
+
/**
|
|
77
|
+
* The merchant the card is minted against, echoed from the request.
|
|
78
|
+
*/
|
|
79
|
+
merchant?: Payment.Merchant;
|
|
80
|
+
/**
|
|
81
|
+
* Your own key/values, echoed back from the request.
|
|
82
|
+
*/
|
|
83
|
+
metadata?: {
|
|
84
|
+
[key: string]: string;
|
|
85
|
+
};
|
|
72
86
|
status?: 'needs_connection' | 'connecting' | 'awaiting_user_action' | 'ready' | 'authorized' | 'succeeded' | 'declined' | 'canceled' | 'expired';
|
|
73
87
|
}
|
|
88
|
+
export declare namespace Payment {
|
|
89
|
+
/**
|
|
90
|
+
* The merchant the card is minted against, echoed from the request.
|
|
91
|
+
*/
|
|
92
|
+
interface Merchant {
|
|
93
|
+
name?: string;
|
|
94
|
+
url?: string;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
74
97
|
export interface PaymentCredentialsResponse {
|
|
75
98
|
/**
|
|
76
99
|
* Fetch the card directly from the provider with these — never through Linq.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../src/resources/payments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIhF;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI1E;;;;;;;OAOG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIxE;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;CAGjG;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB
|
|
1
|
+
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../src/resources/payments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAA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AAI,CAAC,EAAE,MAAM,CAAC;QAEd,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,0BAA0B,CAAC,OAAO,CAAC;CAC9C;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;OAEG;IACH,UAAiB,OAAO;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;IAErB,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,mBAAmB,CAAC,QAAQ,CAAC;IAExC,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtC;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,QAAQ;QACvB,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -77,12 +77,16 @@ export interface Payment {
|
|
|
77
77
|
amount_cents?: number;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* Present
|
|
80
|
+
* Present on `awaiting_user_action` once a card is on file and the charge needs
|
|
81
|
+
* the customer's passkey. Re-send the create request with the same
|
|
82
|
+
* `Idempotency-Key` to collect the payment after they approve.
|
|
81
83
|
*/
|
|
82
84
|
approval_url?: string;
|
|
83
85
|
|
|
84
86
|
/**
|
|
85
|
-
* Present when the customer
|
|
87
|
+
* Present on `awaiting_user_action` when the customer has no card on file yet. A
|
|
88
|
+
* hosted page — open it for them; it stays valid for about 48 hours. Not returned
|
|
89
|
+
* on `needs_connection`: connect the handle first.
|
|
86
90
|
*/
|
|
87
91
|
attach_url?: string;
|
|
88
92
|
|
|
@@ -92,6 +96,16 @@ export interface Payment {
|
|
|
92
96
|
|
|
93
97
|
handle?: string;
|
|
94
98
|
|
|
99
|
+
/**
|
|
100
|
+
* The merchant the card is minted against, echoed from the request.
|
|
101
|
+
*/
|
|
102
|
+
merchant?: Payment.Merchant;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Your own key/values, echoed back from the request.
|
|
106
|
+
*/
|
|
107
|
+
metadata?: { [key: string]: string };
|
|
108
|
+
|
|
95
109
|
status?:
|
|
96
110
|
| 'needs_connection'
|
|
97
111
|
| 'connecting'
|
|
@@ -104,6 +118,17 @@ export interface Payment {
|
|
|
104
118
|
| 'expired';
|
|
105
119
|
}
|
|
106
120
|
|
|
121
|
+
export namespace Payment {
|
|
122
|
+
/**
|
|
123
|
+
* The merchant the card is minted against, echoed from the request.
|
|
124
|
+
*/
|
|
125
|
+
export interface Merchant {
|
|
126
|
+
name?: string;
|
|
127
|
+
|
|
128
|
+
url?: string;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
107
132
|
export interface PaymentCredentialsResponse {
|
|
108
133
|
/**
|
|
109
134
|
* Fetch the card directly from the provider with these — never through Linq.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.55.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.55.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.55.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.55.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|