pingram 1.0.40 → 1.0.41-alpha.1723
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/dist/generated/src/apis/AccountApi.d.ts +77 -9
- package/dist/generated/src/apis/AccountApi.js +164 -4
- package/dist/generated/src/apis/WebhooksApi.d.ts +12 -12
- package/dist/generated/src/apis/WebhooksApi.js +6 -6
- package/dist/generated/src/apis/index.d.ts +1 -1
- package/dist/generated/src/models/AccountGetResponseBillingAlerts.d.ts +1 -1
- package/dist/generated/src/models/AccountPaymentMethods.d.ts +51 -0
- package/dist/generated/src/models/AccountPaymentMethods.js +64 -0
- package/dist/generated/src/models/AccountPaymentMethodsPaymentMethodsInner.d.ts +56 -0
- package/dist/generated/src/models/AccountPaymentMethodsPaymentMethodsInner.js +66 -0
- package/dist/generated/src/models/AssignPaymentMethodRequest.d.ts +47 -0
- package/dist/generated/src/models/AssignPaymentMethodRequest.js +63 -0
- package/dist/generated/src/models/BillingPostResponseBody.d.ts +1 -1
- package/dist/generated/src/models/ConfirmChangeEmailRequest.d.ts +6 -0
- package/dist/generated/src/models/ConfirmChangeEmailRequest.js +4 -2
- package/dist/generated/src/models/ConfirmChangeEmailResponse.d.ts +38 -0
- package/dist/generated/src/models/ConfirmChangeEmailResponse.js +55 -0
- package/dist/generated/src/models/ConfirmPasswordChangeRequest.d.ts +38 -0
- package/dist/generated/src/models/ConfirmPasswordChangeRequest.js +54 -0
- package/dist/generated/src/models/CreatePaymentMethodSetupRequest.d.ts +38 -0
- package/dist/generated/src/models/CreatePaymentMethodSetupRequest.js +54 -0
- package/dist/generated/src/models/ListInvoicesResponseInvoicesInner.d.ts +1 -1
- package/dist/generated/src/models/LogsGetResponseLogsInner.d.ts +6 -0
- package/dist/generated/src/models/LogsGetResponseLogsInner.js +4 -0
- package/dist/generated/src/models/PasswordStatusResponse.d.ts +38 -0
- package/dist/generated/src/models/PasswordStatusResponse.js +54 -0
- package/dist/generated/src/models/PaymentMethodSetup.d.ts +38 -0
- package/dist/generated/src/models/PaymentMethodSetup.js +54 -0
- package/dist/generated/src/models/SignInUsernameRequest.d.ts +32 -0
- package/dist/generated/src/models/SignInUsernameRequest.js +50 -0
- package/dist/generated/src/models/SignInUsernameResponse.d.ts +32 -0
- package/dist/generated/src/models/SignInUsernameResponse.js +50 -0
- package/dist/generated/src/models/StartChangeEmailRequest.d.ts +9 -3
- package/dist/generated/src/models/StartChangeEmailRequest.js +3 -3
- package/dist/generated/src/models/StartPasswordChangeRequest.d.ts +44 -0
- package/dist/generated/src/models/StartPasswordChangeRequest.js +54 -0
- package/dist/generated/src/models/WebhookEndpoint.d.ts +8 -1
- package/dist/generated/src/models/WebhookEndpoint.js +7 -2
- package/dist/generated/src/models/WebhookEndpointBasicAuth.d.ts +38 -0
- package/dist/generated/src/models/WebhookEndpointBasicAuth.js +54 -0
- package/dist/generated/src/models/WebhookEndpointUpsertRequest.d.ts +8 -1
- package/dist/generated/src/models/WebhookEndpointUpsertRequest.js +7 -2
- package/dist/generated/src/models/WebhookEndpointUpsertRequestBasicAuth.d.ts +38 -0
- package/dist/generated/src/models/WebhookEndpointUpsertRequestBasicAuth.js +52 -0
- package/dist/generated/src/models/WebhookEndpointsResponseEndpointsInner.d.ts +8 -1
- package/dist/generated/src/models/WebhookEndpointsResponseEndpointsInner.js +7 -2
- package/dist/generated/src/models/index.d.ts +13 -0
- package/dist/generated/src/models/index.js +13 -0
- package/dist/src/client.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAccountPaymentMethods = instanceOfAccountPaymentMethods;
|
|
17
|
+
exports.AccountPaymentMethodsFromJSON = AccountPaymentMethodsFromJSON;
|
|
18
|
+
exports.AccountPaymentMethodsFromJSONTyped = AccountPaymentMethodsFromJSONTyped;
|
|
19
|
+
exports.AccountPaymentMethodsToJSON = AccountPaymentMethodsToJSON;
|
|
20
|
+
exports.AccountPaymentMethodsToJSONTyped = AccountPaymentMethodsToJSONTyped;
|
|
21
|
+
const AccountPaymentMethodsPaymentMethodsInner_1 = require("./AccountPaymentMethodsPaymentMethodsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AccountPaymentMethods interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAccountPaymentMethods(value) {
|
|
26
|
+
if (!('paymentMethods' in value) || value['paymentMethods'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('sharedAccountCount' in value) ||
|
|
29
|
+
value['sharedAccountCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AccountPaymentMethodsFromJSON(json) {
|
|
34
|
+
return AccountPaymentMethodsFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AccountPaymentMethodsFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
paymentMethods: json['paymentMethods'].map(AccountPaymentMethodsPaymentMethodsInner_1.AccountPaymentMethodsPaymentMethodsInnerFromJSON),
|
|
42
|
+
thisAccountPaymentMethodId: json['thisAccountPaymentMethodId'] == null
|
|
43
|
+
? undefined
|
|
44
|
+
: json['thisAccountPaymentMethodId'],
|
|
45
|
+
defaultForNewAccountsPaymentMethodId: json['defaultForNewAccountsPaymentMethodId'] == null
|
|
46
|
+
? undefined
|
|
47
|
+
: json['defaultForNewAccountsPaymentMethodId'],
|
|
48
|
+
sharedAccountCount: json['sharedAccountCount']
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function AccountPaymentMethodsToJSON(json) {
|
|
52
|
+
return AccountPaymentMethodsToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function AccountPaymentMethodsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
paymentMethods: (value['paymentMethods'] ?? []).map(AccountPaymentMethodsPaymentMethodsInner_1.AccountPaymentMethodsPaymentMethodsInnerToJSON),
|
|
60
|
+
thisAccountPaymentMethodId: value['thisAccountPaymentMethodId'],
|
|
61
|
+
defaultForNewAccountsPaymentMethodId: value['defaultForNewAccountsPaymentMethodId'],
|
|
62
|
+
sharedAccountCount: value['sharedAccountCount']
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Saved card you can assign to this account or other accounts you own.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AccountPaymentMethodsPaymentMethodsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountPaymentMethodsPaymentMethodsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountPaymentMethodsPaymentMethodsInner
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Card brand, such as visa or mastercard.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AccountPaymentMethodsPaymentMethodsInner
|
|
28
|
+
*/
|
|
29
|
+
brand: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AccountPaymentMethodsPaymentMethodsInner
|
|
34
|
+
*/
|
|
35
|
+
last4: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AccountPaymentMethodsPaymentMethodsInner
|
|
40
|
+
*/
|
|
41
|
+
expMonth: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AccountPaymentMethodsPaymentMethodsInner
|
|
46
|
+
*/
|
|
47
|
+
expYear: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AccountPaymentMethodsPaymentMethodsInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAccountPaymentMethodsPaymentMethodsInner(value: object): value is AccountPaymentMethodsPaymentMethodsInner;
|
|
53
|
+
export declare function AccountPaymentMethodsPaymentMethodsInnerFromJSON(json: any): AccountPaymentMethodsPaymentMethodsInner;
|
|
54
|
+
export declare function AccountPaymentMethodsPaymentMethodsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountPaymentMethodsPaymentMethodsInner;
|
|
55
|
+
export declare function AccountPaymentMethodsPaymentMethodsInnerToJSON(json: any): AccountPaymentMethodsPaymentMethodsInner;
|
|
56
|
+
export declare function AccountPaymentMethodsPaymentMethodsInnerToJSONTyped(value?: AccountPaymentMethodsPaymentMethodsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAccountPaymentMethodsPaymentMethodsInner = instanceOfAccountPaymentMethodsPaymentMethodsInner;
|
|
17
|
+
exports.AccountPaymentMethodsPaymentMethodsInnerFromJSON = AccountPaymentMethodsPaymentMethodsInnerFromJSON;
|
|
18
|
+
exports.AccountPaymentMethodsPaymentMethodsInnerFromJSONTyped = AccountPaymentMethodsPaymentMethodsInnerFromJSONTyped;
|
|
19
|
+
exports.AccountPaymentMethodsPaymentMethodsInnerToJSON = AccountPaymentMethodsPaymentMethodsInnerToJSON;
|
|
20
|
+
exports.AccountPaymentMethodsPaymentMethodsInnerToJSONTyped = AccountPaymentMethodsPaymentMethodsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AccountPaymentMethodsPaymentMethodsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAccountPaymentMethodsPaymentMethodsInner(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('brand' in value) || value['brand'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('last4' in value) || value['last4'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('expMonth' in value) || value['expMonth'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('expYear' in value) || value['expYear'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function AccountPaymentMethodsPaymentMethodsInnerFromJSON(json) {
|
|
38
|
+
return AccountPaymentMethodsPaymentMethodsInnerFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function AccountPaymentMethodsPaymentMethodsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
id: json['id'],
|
|
46
|
+
brand: json['brand'],
|
|
47
|
+
last4: json['last4'],
|
|
48
|
+
expMonth: json['expMonth'],
|
|
49
|
+
expYear: json['expYear']
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function AccountPaymentMethodsPaymentMethodsInnerToJSON(json) {
|
|
53
|
+
return AccountPaymentMethodsPaymentMethodsInnerToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function AccountPaymentMethodsPaymentMethodsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
id: value['id'],
|
|
61
|
+
brand: value['brand'],
|
|
62
|
+
last4: value['last4'],
|
|
63
|
+
expMonth: value['expMonth'],
|
|
64
|
+
expYear: value['expYear']
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* POST /account/payment-methods/assign request.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AssignPaymentMethodRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AssignPaymentMethodRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AssignPaymentMethodRequest
|
|
22
|
+
*/
|
|
23
|
+
paymentMethodId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Where to use a saved card. `thisAccount` bills this account only. `newAccounts` is used when you create another account. `allAccounts` bills every account that shares these cards and becomes the default for new accounts.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AssignPaymentMethodRequest
|
|
28
|
+
*/
|
|
29
|
+
assignment: AssignPaymentMethodRequestAssignmentEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const AssignPaymentMethodRequestAssignmentEnum: {
|
|
35
|
+
readonly THIS_ACCOUNT: "thisAccount";
|
|
36
|
+
readonly NEW_ACCOUNTS: "newAccounts";
|
|
37
|
+
readonly ALL_ACCOUNTS: "allAccounts";
|
|
38
|
+
};
|
|
39
|
+
export type AssignPaymentMethodRequestAssignmentEnum = (typeof AssignPaymentMethodRequestAssignmentEnum)[keyof typeof AssignPaymentMethodRequestAssignmentEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the AssignPaymentMethodRequest interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfAssignPaymentMethodRequest(value: object): value is AssignPaymentMethodRequest;
|
|
44
|
+
export declare function AssignPaymentMethodRequestFromJSON(json: any): AssignPaymentMethodRequest;
|
|
45
|
+
export declare function AssignPaymentMethodRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignPaymentMethodRequest;
|
|
46
|
+
export declare function AssignPaymentMethodRequestToJSON(json: any): AssignPaymentMethodRequest;
|
|
47
|
+
export declare function AssignPaymentMethodRequestToJSONTyped(value?: AssignPaymentMethodRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AssignPaymentMethodRequestAssignmentEnum = void 0;
|
|
17
|
+
exports.instanceOfAssignPaymentMethodRequest = instanceOfAssignPaymentMethodRequest;
|
|
18
|
+
exports.AssignPaymentMethodRequestFromJSON = AssignPaymentMethodRequestFromJSON;
|
|
19
|
+
exports.AssignPaymentMethodRequestFromJSONTyped = AssignPaymentMethodRequestFromJSONTyped;
|
|
20
|
+
exports.AssignPaymentMethodRequestToJSON = AssignPaymentMethodRequestToJSON;
|
|
21
|
+
exports.AssignPaymentMethodRequestToJSONTyped = AssignPaymentMethodRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AssignPaymentMethodRequestAssignmentEnum = {
|
|
26
|
+
THIS_ACCOUNT: 'thisAccount',
|
|
27
|
+
NEW_ACCOUNTS: 'newAccounts',
|
|
28
|
+
ALL_ACCOUNTS: 'allAccounts'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AssignPaymentMethodRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfAssignPaymentMethodRequest(value) {
|
|
34
|
+
if (!('paymentMethodId' in value) || value['paymentMethodId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('assignment' in value) || value['assignment'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function AssignPaymentMethodRequestFromJSON(json) {
|
|
41
|
+
return AssignPaymentMethodRequestFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AssignPaymentMethodRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
paymentMethodId: json['paymentMethodId'],
|
|
49
|
+
assignment: json['assignment']
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function AssignPaymentMethodRequestToJSON(json) {
|
|
53
|
+
return AssignPaymentMethodRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function AssignPaymentMethodRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
paymentMethodId: value['paymentMethodId'],
|
|
61
|
+
assignment: value['assignment']
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { AccountGetResponseBillingAlerts } from './AccountGetResponseBillingAlerts';
|
|
13
13
|
/**
|
|
14
|
-
* POST /billing response: account fields
|
|
14
|
+
* POST /billing response: account fields plus a URL when payment is needed.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface BillingPostResponseBody
|
|
17
17
|
*/
|
|
@@ -21,6 +21,12 @@ export interface ConfirmChangeEmailRequest {
|
|
|
21
21
|
* @memberof ConfirmChangeEmailRequest
|
|
22
22
|
*/
|
|
23
23
|
code: string;
|
|
24
|
+
/**
|
|
25
|
+
* The password chosen when a social-only account started the change. Required while the code was sent to the current inbox.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConfirmChangeEmailRequest
|
|
28
|
+
*/
|
|
29
|
+
newPassword?: string;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the ConfirmChangeEmailRequest interface.
|
|
@@ -34,7 +34,8 @@ function ConfirmChangeEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
code: json['code']
|
|
37
|
+
code: json['code'],
|
|
38
|
+
newPassword: json['newPassword'] == null ? undefined : json['newPassword']
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
function ConfirmChangeEmailRequestToJSON(json) {
|
|
@@ -45,6 +46,7 @@ function ConfirmChangeEmailRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
45
46
|
return value;
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
|
-
code: value['code']
|
|
49
|
+
code: value['code'],
|
|
50
|
+
newPassword: value['newPassword']
|
|
49
51
|
};
|
|
50
52
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Result of confirming one step of a login email change.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ConfirmChangeEmailResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface ConfirmChangeEmailResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConfirmChangeEmailResponse
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
* True when the current inbox approved the change and a code was sent to the new address. False when the login email itself was updated.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof ConfirmChangeEmailResponse
|
|
28
|
+
*/
|
|
29
|
+
codeSentToNewEmail: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ConfirmChangeEmailResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfConfirmChangeEmailResponse(value: object): value is ConfirmChangeEmailResponse;
|
|
35
|
+
export declare function ConfirmChangeEmailResponseFromJSON(json: any): ConfirmChangeEmailResponse;
|
|
36
|
+
export declare function ConfirmChangeEmailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmChangeEmailResponse;
|
|
37
|
+
export declare function ConfirmChangeEmailResponseToJSON(json: any): ConfirmChangeEmailResponse;
|
|
38
|
+
export declare function ConfirmChangeEmailResponseToJSONTyped(value?: ConfirmChangeEmailResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfConfirmChangeEmailResponse = instanceOfConfirmChangeEmailResponse;
|
|
17
|
+
exports.ConfirmChangeEmailResponseFromJSON = ConfirmChangeEmailResponseFromJSON;
|
|
18
|
+
exports.ConfirmChangeEmailResponseFromJSONTyped = ConfirmChangeEmailResponseFromJSONTyped;
|
|
19
|
+
exports.ConfirmChangeEmailResponseToJSON = ConfirmChangeEmailResponseToJSON;
|
|
20
|
+
exports.ConfirmChangeEmailResponseToJSONTyped = ConfirmChangeEmailResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ConfirmChangeEmailResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfConfirmChangeEmailResponse(value) {
|
|
25
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('codeSentToNewEmail' in value) ||
|
|
28
|
+
value['codeSentToNewEmail'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ConfirmChangeEmailResponseFromJSON(json) {
|
|
33
|
+
return ConfirmChangeEmailResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ConfirmChangeEmailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
message: json['message'],
|
|
41
|
+
codeSentToNewEmail: json['codeSentToNewEmail']
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function ConfirmChangeEmailResponseToJSON(json) {
|
|
45
|
+
return ConfirmChangeEmailResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ConfirmChangeEmailResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
message: value['message'],
|
|
53
|
+
codeSentToNewEmail: value['codeSentToNewEmail']
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ConfirmPasswordChangeRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ConfirmPasswordChangeRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConfirmPasswordChangeRequest
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
/**
|
|
25
|
+
* The same new password sent when the change started.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConfirmPasswordChangeRequest
|
|
28
|
+
*/
|
|
29
|
+
password: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ConfirmPasswordChangeRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfConfirmPasswordChangeRequest(value: object): value is ConfirmPasswordChangeRequest;
|
|
35
|
+
export declare function ConfirmPasswordChangeRequestFromJSON(json: any): ConfirmPasswordChangeRequest;
|
|
36
|
+
export declare function ConfirmPasswordChangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmPasswordChangeRequest;
|
|
37
|
+
export declare function ConfirmPasswordChangeRequestToJSON(json: any): ConfirmPasswordChangeRequest;
|
|
38
|
+
export declare function ConfirmPasswordChangeRequestToJSONTyped(value?: ConfirmPasswordChangeRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfConfirmPasswordChangeRequest = instanceOfConfirmPasswordChangeRequest;
|
|
17
|
+
exports.ConfirmPasswordChangeRequestFromJSON = ConfirmPasswordChangeRequestFromJSON;
|
|
18
|
+
exports.ConfirmPasswordChangeRequestFromJSONTyped = ConfirmPasswordChangeRequestFromJSONTyped;
|
|
19
|
+
exports.ConfirmPasswordChangeRequestToJSON = ConfirmPasswordChangeRequestToJSON;
|
|
20
|
+
exports.ConfirmPasswordChangeRequestToJSONTyped = ConfirmPasswordChangeRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ConfirmPasswordChangeRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfConfirmPasswordChangeRequest(value) {
|
|
25
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ConfirmPasswordChangeRequestFromJSON(json) {
|
|
32
|
+
return ConfirmPasswordChangeRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ConfirmPasswordChangeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
code: json['code'],
|
|
40
|
+
password: json['password']
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ConfirmPasswordChangeRequestToJSON(json) {
|
|
44
|
+
return ConfirmPasswordChangeRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ConfirmPasswordChangeRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
code: value['code'],
|
|
52
|
+
password: value['password']
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* POST /account/payment-methods/setup request.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreatePaymentMethodSetupRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreatePaymentMethodSetupRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreatePaymentMethodSetupRequest
|
|
22
|
+
*/
|
|
23
|
+
successUrl: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreatePaymentMethodSetupRequest
|
|
28
|
+
*/
|
|
29
|
+
cancelUrl: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreatePaymentMethodSetupRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreatePaymentMethodSetupRequest(value: object): value is CreatePaymentMethodSetupRequest;
|
|
35
|
+
export declare function CreatePaymentMethodSetupRequestFromJSON(json: any): CreatePaymentMethodSetupRequest;
|
|
36
|
+
export declare function CreatePaymentMethodSetupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePaymentMethodSetupRequest;
|
|
37
|
+
export declare function CreatePaymentMethodSetupRequestToJSON(json: any): CreatePaymentMethodSetupRequest;
|
|
38
|
+
export declare function CreatePaymentMethodSetupRequestToJSONTyped(value?: CreatePaymentMethodSetupRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreatePaymentMethodSetupRequest = instanceOfCreatePaymentMethodSetupRequest;
|
|
17
|
+
exports.CreatePaymentMethodSetupRequestFromJSON = CreatePaymentMethodSetupRequestFromJSON;
|
|
18
|
+
exports.CreatePaymentMethodSetupRequestFromJSONTyped = CreatePaymentMethodSetupRequestFromJSONTyped;
|
|
19
|
+
exports.CreatePaymentMethodSetupRequestToJSON = CreatePaymentMethodSetupRequestToJSON;
|
|
20
|
+
exports.CreatePaymentMethodSetupRequestToJSONTyped = CreatePaymentMethodSetupRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreatePaymentMethodSetupRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreatePaymentMethodSetupRequest(value) {
|
|
25
|
+
if (!('successUrl' in value) || value['successUrl'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('cancelUrl' in value) || value['cancelUrl'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function CreatePaymentMethodSetupRequestFromJSON(json) {
|
|
32
|
+
return CreatePaymentMethodSetupRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function CreatePaymentMethodSetupRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
successUrl: json['successUrl'],
|
|
40
|
+
cancelUrl: json['cancelUrl']
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function CreatePaymentMethodSetupRequestToJSON(json) {
|
|
44
|
+
return CreatePaymentMethodSetupRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function CreatePaymentMethodSetupRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
successUrl: value['successUrl'],
|
|
52
|
+
cancelUrl: value['cancelUrl']
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -237,6 +237,12 @@ export interface LogsGetResponseLogsInner {
|
|
|
237
237
|
* @memberof LogsGetResponseLogsInner
|
|
238
238
|
*/
|
|
239
239
|
email_delivered_webhook_res?: string;
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @type {string}
|
|
243
|
+
* @memberof LogsGetResponseLogsInner
|
|
244
|
+
*/
|
|
245
|
+
email_delivered_internal?: string;
|
|
240
246
|
/**
|
|
241
247
|
*
|
|
242
248
|
* @type {string}
|
|
@@ -436,6 +436,9 @@ function LogsGetResponseLogsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
436
436
|
email_delivered_webhook_res: json['email_delivered_webhook_res'] == null
|
|
437
437
|
? undefined
|
|
438
438
|
: json['email_delivered_webhook_res'],
|
|
439
|
+
email_delivered_internal: json['email_delivered_internal'] == null
|
|
440
|
+
? undefined
|
|
441
|
+
: json['email_delivered_internal'],
|
|
439
442
|
email_failed_at: json['email_failed_at'] == null ? undefined : json['email_failed_at'],
|
|
440
443
|
email_failed_code: json['email_failed_code'] == null ? undefined : json['email_failed_code'],
|
|
441
444
|
email_failed_recipient: json['email_failed_recipient'] == null
|
|
@@ -784,6 +787,7 @@ function LogsGetResponseLogsInnerToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
784
787
|
email_delivered_recipients: value['email_delivered_recipients'],
|
|
785
788
|
email_delivered_after: value['email_delivered_after'],
|
|
786
789
|
email_delivered_webhook_res: value['email_delivered_webhook_res'],
|
|
790
|
+
email_delivered_internal: value['email_delivered_internal'],
|
|
787
791
|
email_failed_at: value['email_failed_at'],
|
|
788
792
|
email_failed_code: value['email_failed_code'],
|
|
789
793
|
email_failed_recipient: value['email_failed_recipient'],
|