increase 0.28.0 → 0.29.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 +27 -0
- package/README.md +2 -2
- package/core.d.ts.map +1 -1
- package/core.js +2 -1
- package/core.js.map +1 -1
- package/core.mjs +2 -1
- package/core.mjs.map +1 -1
- package/error.d.ts +5 -5
- package/error.d.ts.map +1 -1
- package/error.js +9 -9
- package/error.js.map +1 -1
- package/error.mjs +6 -6
- package/error.mjs.map +1 -1
- package/index.d.mts +21 -9
- package/index.d.ts +21 -9
- package/index.d.ts.map +1 -1
- package/index.js +10 -7
- package/index.js.map +1 -1
- package/index.mjs +9 -6
- package/index.mjs.map +1 -1
- package/package.json +4 -1
- package/resources/account-numbers.d.ts +13 -14
- package/resources/account-numbers.d.ts.map +1 -1
- package/resources/account-numbers.js.map +1 -1
- package/resources/account-numbers.mjs.map +1 -1
- package/resources/account-transfers.d.ts +11 -12
- package/resources/account-transfers.d.ts.map +1 -1
- package/resources/account-transfers.js.map +1 -1
- package/resources/account-transfers.mjs.map +1 -1
- package/resources/accounts.d.ts +13 -0
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/ach-prenotifications.d.ts +13 -0
- package/resources/ach-prenotifications.d.ts.map +1 -1
- package/resources/ach-prenotifications.js.map +1 -1
- package/resources/ach-prenotifications.mjs.map +1 -1
- package/resources/ach-transfers.d.ts +172 -12
- package/resources/ach-transfers.d.ts.map +1 -1
- package/resources/ach-transfers.js.map +1 -1
- package/resources/ach-transfers.mjs.map +1 -1
- package/resources/bookkeeping-accounts.d.ts +13 -0
- package/resources/bookkeeping-accounts.d.ts.map +1 -1
- package/resources/bookkeeping-accounts.js.map +1 -1
- package/resources/bookkeeping-accounts.mjs.map +1 -1
- package/resources/bookkeeping-entry-sets.d.ts +13 -0
- package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
- package/resources/bookkeeping-entry-sets.js.map +1 -1
- package/resources/bookkeeping-entry-sets.mjs.map +1 -1
- package/resources/card-disputes.d.ts +13 -0
- package/resources/card-disputes.d.ts.map +1 -1
- package/resources/card-disputes.js.map +1 -1
- package/resources/card-disputes.mjs.map +1 -1
- package/resources/cards.d.ts +17 -4
- package/resources/cards.d.ts.map +1 -1
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs.map +1 -1
- package/resources/check-deposits.d.ts +16 -2
- package/resources/check-deposits.d.ts.map +1 -1
- package/resources/check-deposits.js.map +1 -1
- package/resources/check-deposits.mjs.map +1 -1
- package/resources/check-transfers.d.ts +11 -12
- package/resources/check-transfers.d.ts.map +1 -1
- package/resources/check-transfers.js.map +1 -1
- package/resources/check-transfers.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +4 -1
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/declined-transactions.js.map +1 -1
- package/resources/declined-transactions.mjs.map +1 -1
- package/resources/digital-card-profiles.d.ts +268 -0
- package/resources/digital-card-profiles.d.ts.map +1 -0
- package/resources/digital-card-profiles.js +71 -0
- package/resources/digital-card-profiles.js.map +1 -0
- package/resources/digital-card-profiles.mjs +43 -0
- package/resources/digital-card-profiles.mjs.map +1 -0
- package/resources/entities/entities.d.ts +19 -0
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/entities/supplemental-documents.d.ts +13 -0
- package/resources/entities/supplemental-documents.d.ts.map +1 -1
- package/resources/entities/supplemental-documents.js.map +1 -1
- package/resources/entities/supplemental-documents.mjs.map +1 -1
- package/resources/event-subscriptions.d.ts +13 -0
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/event-subscriptions.js.map +1 -1
- package/resources/event-subscriptions.mjs.map +1 -1
- package/resources/exports.d.ts +6 -0
- package/resources/exports.d.ts.map +1 -1
- package/resources/exports.js.map +1 -1
- package/resources/exports.mjs.map +1 -1
- package/resources/external-accounts.d.ts +36 -0
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/external-accounts.js.map +1 -1
- package/resources/external-accounts.mjs.map +1 -1
- package/resources/files.d.ts +13 -0
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js.map +1 -1
- package/resources/files.mjs.map +1 -1
- package/resources/inbound-ach-transfers.d.ts +4 -0
- package/resources/inbound-ach-transfers.d.ts.map +1 -1
- package/resources/inbound-ach-transfers.js.map +1 -1
- package/resources/inbound-ach-transfers.mjs.map +1 -1
- package/resources/inbound-wire-transfers.d.ts +4 -0
- package/resources/inbound-wire-transfers.d.ts.map +1 -1
- package/resources/inbound-wire-transfers.js.map +1 -1
- package/resources/inbound-wire-transfers.mjs.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +8 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/intrafi/account-enrollments.d.ts +13 -0
- package/resources/intrafi/account-enrollments.d.ts.map +1 -1
- package/resources/intrafi/account-enrollments.js.map +1 -1
- package/resources/intrafi/account-enrollments.mjs.map +1 -1
- package/resources/intrafi/exclusions.d.ts +13 -0
- package/resources/intrafi/exclusions.d.ts.map +1 -1
- package/resources/intrafi/exclusions.js.map +1 -1
- package/resources/intrafi/exclusions.mjs.map +1 -1
- package/resources/physical-card-profiles.d.ts +166 -0
- package/resources/physical-card-profiles.d.ts.map +1 -0
- package/resources/{card-profiles.js → physical-card-profiles.js} +27 -18
- package/resources/physical-card-profiles.js.map +1 -0
- package/resources/physical-card-profiles.mjs +46 -0
- package/resources/physical-card-profiles.mjs.map +1 -0
- package/resources/physical-cards.d.ts +17 -4
- package/resources/physical-cards.d.ts.map +1 -1
- package/resources/physical-cards.js.map +1 -1
- package/resources/physical-cards.mjs.map +1 -1
- package/resources/programs.d.ts +4 -0
- package/resources/programs.d.ts.map +1 -1
- package/resources/programs.js.map +1 -1
- package/resources/programs.mjs.map +1 -1
- package/resources/proof-of-authorization-request-submissions.d.ts +13 -0
- package/resources/proof-of-authorization-request-submissions.d.ts.map +1 -1
- package/resources/proof-of-authorization-request-submissions.js.map +1 -1
- package/resources/proof-of-authorization-request-submissions.mjs.map +1 -1
- package/resources/real-time-decisions.d.ts +6 -1
- package/resources/real-time-decisions.d.ts.map +1 -1
- package/resources/real-time-decisions.js.map +1 -1
- package/resources/real-time-decisions.mjs.map +1 -1
- package/resources/real-time-payments-request-for-payments.d.ts +13 -0
- package/resources/real-time-payments-request-for-payments.d.ts.map +1 -1
- package/resources/real-time-payments-request-for-payments.js.map +1 -1
- package/resources/real-time-payments-request-for-payments.mjs.map +1 -1
- package/resources/real-time-payments-transfers.d.ts +11 -12
- package/resources/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/real-time-payments-transfers.js.map +1 -1
- package/resources/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/cards.d.ts +4 -1
- package/resources/simulations/cards.d.ts.map +1 -1
- package/resources/simulations/cards.js.map +1 -1
- package/resources/simulations/cards.mjs.map +1 -1
- package/resources/simulations/index.d.ts +2 -3
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +1 -3
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +2 -3
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/interest-payments.d.ts +2 -2745
- package/resources/simulations/interest-payments.d.ts.map +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/real-time-payments-transfers.d.ts +6 -2
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/simulations.d.ts +74 -4
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +30 -3
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +30 -3
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/transactions.d.ts +2 -1
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/wire-drawdown-requests.d.ts +6 -0
- package/resources/wire-drawdown-requests.d.ts.map +1 -1
- package/resources/wire-drawdown-requests.js.map +1 -1
- package/resources/wire-drawdown-requests.mjs.map +1 -1
- package/resources/wire-transfers.d.ts +11 -12
- package/resources/wire-transfers.d.ts.map +1 -1
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/core.ts +3 -1
- package/src/error.ts +11 -11
- package/src/index.ts +23 -10
- package/src/resources/account-numbers.ts +15 -17
- package/src/resources/account-transfers.ts +12 -14
- package/src/resources/accounts.ts +15 -0
- package/src/resources/ach-prenotifications.ts +15 -0
- package/src/resources/ach-transfers.ts +190 -13
- package/src/resources/bookkeeping-accounts.ts +16 -1
- package/src/resources/bookkeeping-entry-sets.ts +15 -0
- package/src/resources/card-disputes.ts +15 -0
- package/src/resources/cards.ts +20 -5
- package/src/resources/check-deposits.ts +18 -1
- package/src/resources/check-transfers.ts +12 -14
- package/src/resources/declined-transactions.ts +6 -1
- package/src/resources/digital-card-profiles.ts +348 -0
- package/src/resources/entities/entities.ts +22 -0
- package/src/resources/entities/supplemental-documents.ts +15 -0
- package/src/resources/event-subscriptions.ts +16 -1
- package/src/resources/exports.ts +7 -0
- package/src/resources/external-accounts.ts +41 -0
- package/src/resources/files.ts +15 -0
- package/src/resources/inbound-ach-transfers.ts +5 -0
- package/src/resources/inbound-wire-transfers.ts +5 -0
- package/src/resources/index.ts +23 -8
- package/src/resources/intrafi/account-enrollments.ts +15 -0
- package/src/resources/intrafi/exclusions.ts +15 -0
- package/src/resources/physical-card-profiles.ts +241 -0
- package/src/resources/physical-cards.ts +20 -5
- package/src/resources/programs.ts +5 -0
- package/src/resources/proof-of-authorization-request-submissions.ts +15 -0
- package/src/resources/real-time-decisions.ts +7 -1
- package/src/resources/real-time-payments-request-for-payments.ts +15 -0
- package/src/resources/real-time-payments-transfers.ts +12 -14
- package/src/resources/simulations/cards.ts +6 -1
- package/src/resources/simulations/index.ts +8 -7
- package/src/resources/simulations/interest-payments.ts +2 -3453
- package/src/resources/simulations/real-time-payments-transfers.ts +8 -1
- package/src/resources/simulations/simulations.ts +106 -4
- package/src/resources/transactions.ts +2 -0
- package/src/resources/wire-drawdown-requests.ts +7 -0
- package/src/resources/wire-transfers.ts +12 -14
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/card-profiles.d.ts +0 -287
- package/resources/card-profiles.d.ts.map +0 -1
- package/resources/card-profiles.js.map +0 -1
- package/resources/card-profiles.mjs +0 -37
- package/resources/card-profiles.mjs.map +0 -1
- package/resources/simulations/card-profiles.d.ts +0 -14
- package/resources/simulations/card-profiles.d.ts.map +0 -1
- package/resources/simulations/card-profiles.js +0 -19
- package/resources/simulations/card-profiles.js.map +0 -1
- package/resources/simulations/card-profiles.mjs +0 -15
- package/resources/simulations/card-profiles.mjs.map +0 -1
- package/src/resources/card-profiles.ts +0 -365
- package/src/resources/simulations/card-profiles.ts +0 -21
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.CardProfiles = void 0;
|
|
5
|
-
const resource_1 = require("increase/resource");
|
|
6
|
-
class CardProfiles extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* After a [Card Profile](#card-profile) is created in production, the images will
|
|
9
|
-
* be uploaded to Visa within one day. Since Card Profiles are not uploaded to Visa
|
|
10
|
-
* in sandbox, this endpoint simulates that step. Invoking this simulation triggers
|
|
11
|
-
* the webhooks Increase sends when the Card Profile is approved and updates the
|
|
12
|
-
* status of the Card Profile.
|
|
13
|
-
*/
|
|
14
|
-
approve(cardProfileId, options) {
|
|
15
|
-
return this._client.post(`/simulations/card_profiles/${cardProfileId}/approve`, options);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.CardProfiles = CardProfiles;
|
|
19
|
-
//# sourceMappingURL=card-profiles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-profiles.js","sourceRoot":"","sources":["../../src/resources/simulations/card-profiles.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,gDAAgD;AAGhD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;OAMG;IACH,OAAO,CACL,aAAqB,EACrB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,aAAa,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF;AAdD,oCAcC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
import { APIResource } from 'increase/resource';
|
|
3
|
-
export class CardProfiles extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* After a [Card Profile](#card-profile) is created in production, the images will
|
|
6
|
-
* be uploaded to Visa within one day. Since Card Profiles are not uploaded to Visa
|
|
7
|
-
* in sandbox, this endpoint simulates that step. Invoking this simulation triggers
|
|
8
|
-
* the webhooks Increase sends when the Card Profile is approved and updates the
|
|
9
|
-
* status of the Card Profile.
|
|
10
|
-
*/
|
|
11
|
-
approve(cardProfileId, options) {
|
|
12
|
-
return this._client.post(`/simulations/card_profiles/${cardProfileId}/approve`, options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=card-profiles.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-profiles.mjs","sourceRoot":"","sources":["../../src/resources/simulations/card-profiles.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;AAG/C,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;OAMG;IACH,OAAO,CACL,aAAqB,EACrB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,aAAa,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
|
|
3
|
-
import * as Core from "../core";
|
|
4
|
-
import { APIResource } from "../resource";
|
|
5
|
-
import { isRequestOptions } from "../core";
|
|
6
|
-
import * as CardProfilesAPI from "./card-profiles";
|
|
7
|
-
import { Page, type PageParams } from "../pagination";
|
|
8
|
-
|
|
9
|
-
export class CardProfiles extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create a Card Profile
|
|
12
|
-
*/
|
|
13
|
-
create(body: CardProfileCreateParams, options?: Core.RequestOptions): Core.APIPromise<CardProfile> {
|
|
14
|
-
return this._client.post('/card_profiles', { body, ...options });
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Retrieve a Card Profile
|
|
19
|
-
*/
|
|
20
|
-
retrieve(cardProfileId: string, options?: Core.RequestOptions): Core.APIPromise<CardProfile> {
|
|
21
|
-
return this._client.get(`/card_profiles/${cardProfileId}`, options);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* List Card Profiles
|
|
26
|
-
*/
|
|
27
|
-
list(
|
|
28
|
-
query?: CardProfileListParams,
|
|
29
|
-
options?: Core.RequestOptions,
|
|
30
|
-
): Core.PagePromise<CardProfilesPage, CardProfile>;
|
|
31
|
-
list(options?: Core.RequestOptions): Core.PagePromise<CardProfilesPage, CardProfile>;
|
|
32
|
-
list(
|
|
33
|
-
query: CardProfileListParams | Core.RequestOptions = {},
|
|
34
|
-
options?: Core.RequestOptions,
|
|
35
|
-
): Core.PagePromise<CardProfilesPage, CardProfile> {
|
|
36
|
-
if (isRequestOptions(query)) {
|
|
37
|
-
return this.list({}, query);
|
|
38
|
-
}
|
|
39
|
-
return this._client.getAPIList('/card_profiles', CardProfilesPage, { query, ...options });
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Archive an Card Profile
|
|
44
|
-
*/
|
|
45
|
-
archive(cardProfileId: string, options?: Core.RequestOptions): Core.APIPromise<CardProfile> {
|
|
46
|
-
return this._client.post(`/card_profiles/${cardProfileId}/archive`, options);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export class CardProfilesPage extends Page<CardProfile> {}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* This contains artwork and metadata relating to a Card's appearance in digital
|
|
54
|
-
* wallet apps like Apple Pay and Google Pay. For more information, see our guide
|
|
55
|
-
* on [digital card artwork](https://increase.com/documentation/card-art).
|
|
56
|
-
*/
|
|
57
|
-
export interface CardProfile {
|
|
58
|
-
/**
|
|
59
|
-
* The Card Profile identifier.
|
|
60
|
-
*/
|
|
61
|
-
id: string;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
65
|
-
* the Card Dispute was created.
|
|
66
|
-
*/
|
|
67
|
-
created_at: string;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* A description you can use to identify the Card Profile.
|
|
71
|
-
*/
|
|
72
|
-
description: string;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* How Cards should appear in digital wallets such as Apple Pay. Different wallets
|
|
76
|
-
* will use these values to render card artwork appropriately for their app.
|
|
77
|
-
*/
|
|
78
|
-
digital_wallets: CardProfile.DigitalWallets;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Whether this Card Profile is the default for all cards in its Increase group.
|
|
82
|
-
*/
|
|
83
|
-
is_default: boolean;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* How physical cards should be designed and shipped.
|
|
87
|
-
*/
|
|
88
|
-
physical_cards: CardProfile.PhysicalCards | null;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* The status of the Card Profile.
|
|
92
|
-
*
|
|
93
|
-
* - `pending` - The Card Profile is awaiting review from Increase and/or
|
|
94
|
-
* processing by card networks.
|
|
95
|
-
* - `rejected` - There is an issue with the Card Profile preventing it from use.
|
|
96
|
-
* - `active` - The Card Profile can be assigned to Cards.
|
|
97
|
-
* - `archived` - The Card Profile is no longer in use.
|
|
98
|
-
*/
|
|
99
|
-
status: 'pending' | 'rejected' | 'active' | 'archived';
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* A constant representing the object's type. For this resource it will always be
|
|
103
|
-
* `card_profile`.
|
|
104
|
-
*/
|
|
105
|
-
type: 'card_profile';
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export namespace CardProfile {
|
|
109
|
-
/**
|
|
110
|
-
* How Cards should appear in digital wallets such as Apple Pay. Different wallets
|
|
111
|
-
* will use these values to render card artwork appropriately for their app.
|
|
112
|
-
*/
|
|
113
|
-
export interface DigitalWallets {
|
|
114
|
-
/**
|
|
115
|
-
* The identifier of the File containing the card's icon image.
|
|
116
|
-
*/
|
|
117
|
-
app_icon_file_id: string;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* The identifier of the File containing the card's front image.
|
|
121
|
-
*/
|
|
122
|
-
background_image_file_id: string;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* A user-facing description for the card itself.
|
|
126
|
-
*/
|
|
127
|
-
card_description: string;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* An email address the user can contact to receive support for their card.
|
|
131
|
-
*/
|
|
132
|
-
contact_email: string | null;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* A phone number the user can contact to receive support for their card.
|
|
136
|
-
*/
|
|
137
|
-
contact_phone: string | null;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* A website the user can visit to view and receive support for their card.
|
|
141
|
-
*/
|
|
142
|
-
contact_website: string | null;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* A user-facing description for whoever is issuing the card.
|
|
146
|
-
*/
|
|
147
|
-
issuer_name: string;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* The Card's text color, specified as an RGB triple.
|
|
151
|
-
*/
|
|
152
|
-
text_color: DigitalWallets.TextColor;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export namespace DigitalWallets {
|
|
156
|
-
/**
|
|
157
|
-
* The Card's text color, specified as an RGB triple.
|
|
158
|
-
*/
|
|
159
|
-
export interface TextColor {
|
|
160
|
-
/**
|
|
161
|
-
* The value of the blue channel in the RGB color.
|
|
162
|
-
*/
|
|
163
|
-
blue: number;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* The value of the green channel in the RGB color.
|
|
167
|
-
*/
|
|
168
|
-
green: number;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* The value of the red channel in the RGB color.
|
|
172
|
-
*/
|
|
173
|
-
red: number;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* How physical cards should be designed and shipped.
|
|
179
|
-
*/
|
|
180
|
-
export interface PhysicalCards {
|
|
181
|
-
/**
|
|
182
|
-
* The identifier of the File containing the physical card's back image.
|
|
183
|
-
*/
|
|
184
|
-
back_image_file_id: string | null;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* The identifier of the File containing the physical card's carrier image.
|
|
188
|
-
*/
|
|
189
|
-
carrier_image_file_id: string | null;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* A phone number the user can contact to receive support for their card.
|
|
193
|
-
*/
|
|
194
|
-
contact_phone: string | null;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* The identifier of the File containing the physical card's front image.
|
|
198
|
-
*/
|
|
199
|
-
front_image_file_id: string | null;
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* The status of the Physical Card Profile.
|
|
203
|
-
*
|
|
204
|
-
* - `not_eligible` - The Card Profile is not eligible for physical cards.
|
|
205
|
-
* - `rejected` - There is an issue with the Physical Card Profile preventing it
|
|
206
|
-
* from use.
|
|
207
|
-
* - `pending_creating` - The Card Profile has not yet been processed by Increase.
|
|
208
|
-
* - `pending_reviewing` - The card profile is awaiting review by Increase.
|
|
209
|
-
* - `pending_submitting` - The card profile is awaiting submission to the
|
|
210
|
-
* fulfillment provider.
|
|
211
|
-
* - `active` - The Physical Card Profile has been submitted to the fulfillment
|
|
212
|
-
* provider and is ready to use.
|
|
213
|
-
*/
|
|
214
|
-
status:
|
|
215
|
-
| 'not_eligible'
|
|
216
|
-
| 'rejected'
|
|
217
|
-
| 'pending_creating'
|
|
218
|
-
| 'pending_reviewing'
|
|
219
|
-
| 'pending_submitting'
|
|
220
|
-
| 'active';
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export interface CardProfileCreateParams {
|
|
225
|
-
/**
|
|
226
|
-
* A description you can use to identify the Card Profile.
|
|
227
|
-
*/
|
|
228
|
-
description: string;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* How Cards should appear in digital wallets such as Apple Pay. Different wallets
|
|
232
|
-
* will use these values to render card artwork appropriately for their app.
|
|
233
|
-
*/
|
|
234
|
-
digital_wallets: CardProfileCreateParams.DigitalWallets;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* How physical cards should be designed and shipped.
|
|
238
|
-
*/
|
|
239
|
-
physical_cards?: CardProfileCreateParams.PhysicalCards;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
export namespace CardProfileCreateParams {
|
|
243
|
-
/**
|
|
244
|
-
* How Cards should appear in digital wallets such as Apple Pay. Different wallets
|
|
245
|
-
* will use these values to render card artwork appropriately for their app.
|
|
246
|
-
*/
|
|
247
|
-
export interface DigitalWallets {
|
|
248
|
-
/**
|
|
249
|
-
* The identifier of the File containing the card's icon image.
|
|
250
|
-
*/
|
|
251
|
-
app_icon_file_id: string;
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* The identifier of the File containing the card's front image.
|
|
255
|
-
*/
|
|
256
|
-
background_image_file_id: string;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* A user-facing description for the card itself.
|
|
260
|
-
*/
|
|
261
|
-
card_description: string;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* A user-facing description for whoever is issuing the card.
|
|
265
|
-
*/
|
|
266
|
-
issuer_name: string;
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* An email address the user can contact to receive support for their card.
|
|
270
|
-
*/
|
|
271
|
-
contact_email?: string;
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* A phone number the user can contact to receive support for their card.
|
|
275
|
-
*/
|
|
276
|
-
contact_phone?: string;
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* A website the user can visit to view and receive support for their card.
|
|
280
|
-
*/
|
|
281
|
-
contact_website?: string;
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* The Card's text color, specified as an RGB triple. The default is white.
|
|
285
|
-
*/
|
|
286
|
-
text_color?: DigitalWallets.TextColor;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
export namespace DigitalWallets {
|
|
290
|
-
/**
|
|
291
|
-
* The Card's text color, specified as an RGB triple. The default is white.
|
|
292
|
-
*/
|
|
293
|
-
export interface TextColor {
|
|
294
|
-
/**
|
|
295
|
-
* The value of the blue channel in the RGB color.
|
|
296
|
-
*/
|
|
297
|
-
blue: number;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* The value of the green channel in the RGB color.
|
|
301
|
-
*/
|
|
302
|
-
green: number;
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* The value of the red channel in the RGB color.
|
|
306
|
-
*/
|
|
307
|
-
red: number;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* How physical cards should be designed and shipped.
|
|
313
|
-
*/
|
|
314
|
-
export interface PhysicalCards {
|
|
315
|
-
/**
|
|
316
|
-
* The identifier of the File containing the physical card's carrier image.
|
|
317
|
-
*/
|
|
318
|
-
carrier_image_file_id: string;
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* A phone number the user can contact to receive support for their card.
|
|
322
|
-
*/
|
|
323
|
-
contact_phone: string;
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* The identifier of the File containing the physical card's front image.
|
|
327
|
-
*/
|
|
328
|
-
front_image_file_id: string;
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
export interface CardProfileListParams extends PageParams {
|
|
333
|
-
physical_cards_status?: CardProfileListParams.PhysicalCardsStatus;
|
|
334
|
-
|
|
335
|
-
status?: CardProfileListParams.Status;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
export namespace CardProfileListParams {
|
|
339
|
-
export interface PhysicalCardsStatus {
|
|
340
|
-
/**
|
|
341
|
-
* Filter Card Profiles for those with the specified physical card status or
|
|
342
|
-
* statuses. For GET requests, this should be encoded as a comma-delimited string,
|
|
343
|
-
* such as `?in=one,two,three`.
|
|
344
|
-
*/
|
|
345
|
-
in?: Array<
|
|
346
|
-
'not_eligible' | 'rejected' | 'pending_creating' | 'pending_reviewing' | 'pending_submitting' | 'active'
|
|
347
|
-
>;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
export interface Status {
|
|
351
|
-
/**
|
|
352
|
-
* Filter Card Profiles for those with the specified digital wallet status or
|
|
353
|
-
* statuses. For GET requests, this should be encoded as a comma-delimited string,
|
|
354
|
-
* such as `?in=one,two,three`.
|
|
355
|
-
*/
|
|
356
|
-
in?: Array<'pending' | 'rejected' | 'active' | 'archived'>;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
export namespace CardProfiles {
|
|
361
|
-
export import CardProfile = CardProfilesAPI.CardProfile;
|
|
362
|
-
export import CardProfilesPage = CardProfilesAPI.CardProfilesPage;
|
|
363
|
-
export import CardProfileCreateParams = CardProfilesAPI.CardProfileCreateParams;
|
|
364
|
-
export import CardProfileListParams = CardProfilesAPI.CardProfileListParams;
|
|
365
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
|
|
3
|
-
import * as Core from "../../core";
|
|
4
|
-
import { APIResource } from "../../resource";
|
|
5
|
-
import * as CardProfilesAPI from "../card-profiles";
|
|
6
|
-
|
|
7
|
-
export class CardProfiles extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* After a [Card Profile](#card-profile) is created in production, the images will
|
|
10
|
-
* be uploaded to Visa within one day. Since Card Profiles are not uploaded to Visa
|
|
11
|
-
* in sandbox, this endpoint simulates that step. Invoking this simulation triggers
|
|
12
|
-
* the webhooks Increase sends when the Card Profile is approved and updates the
|
|
13
|
-
* status of the Card Profile.
|
|
14
|
-
*/
|
|
15
|
-
approve(
|
|
16
|
-
cardProfileId: string,
|
|
17
|
-
options?: Core.RequestOptions,
|
|
18
|
-
): Core.APIPromise<CardProfilesAPI.CardProfile> {
|
|
19
|
-
return this._client.post(`/simulations/card_profiles/${cardProfileId}/approve`, options);
|
|
20
|
-
}
|
|
21
|
-
}
|