Skip to content

Commit fda75d1

Browse files
feat: add customer and invoice reference_id; add balances customer action (#43)
Co-authored-by: ProcessOut Fountain <internal@processout.com>
1 parent 848e83f commit fda75d1

36 files changed

Lines changed: 729 additions & 256 deletions

lib/balances.d.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ declare class Balances {
77
* @type {any}
88
*/
99
private vouchers;
10+
/**
11+
* Available balance of the customer
12+
* @type {p.Balance}
13+
*/
14+
private availableBalance;
15+
/**
16+
* Customer action to be performed, such as redirecting to a URL
17+
* @type {p.BalancesCustomerAction}
18+
*/
19+
private customerAction;
1020
/**
1121
* Balances constructor
1222
* @param {ProcessOut} client
@@ -27,6 +37,32 @@ declare class Balances {
2737
* @return {Balances}
2838
*/
2939
setVouchers(val: any): Balances;
40+
/**
41+
* Get AvailableBalance
42+
* Available balance of the customer
43+
* @return {p.Balance}
44+
*/
45+
getAvailableBalance(): p.Balance;
46+
/**
47+
* Set AvailableBalance
48+
* Available balance of the customer
49+
* @param {p.Balance} val
50+
* @return {Balances}
51+
*/
52+
setAvailableBalance(val: p.Balance): Balances;
53+
/**
54+
* Get CustomerAction
55+
* Customer action to be performed, such as redirecting to a URL
56+
* @return {p.BalancesCustomerAction}
57+
*/
58+
getCustomerAction(): p.BalancesCustomerAction;
59+
/**
60+
* Set CustomerAction
61+
* Customer action to be performed, such as redirecting to a URL
62+
* @param {p.BalancesCustomerAction} val
63+
* @return {Balances}
64+
*/
65+
setCustomerAction(val: p.BalancesCustomerAction): Balances;
3066
/**
3167
* Fills the current object with the new values pulled from the data
3268
* @param {array} data

lib/balances.d.ts.map

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

lib/balances.js

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/balances.js.map

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

lib/balancescustomeraction.d.ts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import ProcessOut = require('./processout');
2+
declare class BalancesCustomerAction {
3+
private client;
4+
/**
5+
* Customer action type (such as url)
6+
* @type {string}
7+
*/
8+
private type;
9+
/**
10+
* Value of the customer action. If type is an URL, URL to which you should redirect your customer
11+
* @type {string}
12+
*/
13+
private value;
14+
/**
15+
* BalancesCustomerAction constructor
16+
* @param {ProcessOut} client
17+
* @param {array} prefill (optional)
18+
*/
19+
constructor(client: ProcessOut, prefill: BalancesCustomerAction);
20+
getProcessOutObjectClass(): string;
21+
/**
22+
* Get Type
23+
* Customer action type (such as url)
24+
* @return {string}
25+
*/
26+
getType(): string;
27+
/**
28+
* Set Type
29+
* Customer action type (such as url)
30+
* @param {string} val
31+
* @return {BalancesCustomerAction}
32+
*/
33+
setType(val: string): BalancesCustomerAction;
34+
/**
35+
* Get Value
36+
* Value of the customer action. If type is an URL, URL to which you should redirect your customer
37+
* @return {string}
38+
*/
39+
getValue(): string;
40+
/**
41+
* Set Value
42+
* Value of the customer action. If type is an URL, URL to which you should redirect your customer
43+
* @param {string} val
44+
* @return {BalancesCustomerAction}
45+
*/
46+
setValue(val: string): BalancesCustomerAction;
47+
/**
48+
* Fills the current object with the new values pulled from the data
49+
* @param {array} data
50+
* @return {BalancesCustomerAction}
51+
*/
52+
fillWithData(data: any): BalancesCustomerAction;
53+
/**
54+
* Implements a JSON custom marshaller
55+
* @return {any}
56+
*/
57+
toJSON(): any;
58+
}
59+
export = BalancesCustomerAction;
60+
//# sourceMappingURL=balancescustomeraction.d.ts.map

lib/balancescustomeraction.d.ts.map

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

lib/balancescustomeraction.js

Lines changed: 91 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/balancescustomeraction.js.map

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

0 commit comments

Comments
 (0)