prism-node
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -164,3 +164,3 @@ import { Configuration, Customer, CustomersApiRetrieveRequest, CustomersApiCreateRequest, Fee, FeesApiCreateRequest, FeesApiRetrieveRequest, InvoicesApiCreateRequest, Invoice, InvoicesApiRetrieveRequest, InvoicesApiListRequest, LogsApiRetrieveRequest, ListProductsResponse, LogsApiListRequest, FeesApiListRequest, CustomersApiListRequest, Log, ProductsApiCreateRequest, ProductsApiRetrieveRequest, Product, ProductsApiListRequest, WalletsApiCreateRequest, WalletsApiRetrieveRequest, WalletsApiListRequest, WebhooksApiCreateRequest, WebhooksApiRetrieveRequest, WebhooksApiListRequest, Wallet, ListCustomersResponse, ListInvoicesResponse, ListLogsResponse, ListWebhooksResponse, ListWalletsResponse, ListFeesResponse, WalletsApiUpdateRequest, WebhooksApiUpdateRequest, CustomersApiUpdateRequest, InvoicesApiUpdateRequest, ProductsApiUpdateRequest, TransfersApiCreateRequest, Transfer, TransfersApiRetrieveRequest, TransfersApiListRequest, ListTransfersResponse, PayoutWalletsApiCreateRequest, PayoutWallet, PayoutWalletsApiRetrieveRequest, PayoutWalletsApiUpdateRequest, PayoutWalletsApiListRequest, AccountsApiRetrieveRequest, AccountsApiCreateRequest, Account, ListAccountsResponse, AccountsApiListRequest, AccountsApiUpdateRequest, PaymentIntentsApiCreateRequest, Price, PricesApiCreateRequest, PricesApiRetrieveRequest, PricesApiListRequest, ListPricesResponse, Subscription, SubscriptionsApiCreateRequest, SubscriptionsApiRetrieveRequest, SubscriptionsApiUpdateRequest, SubscriptionsApiListRequest, ListSubscriptionsResponse, FeesApiDeleteRequest, PayoutWalletsApiDeleteRequest, ProductsApiDeleteRequest, WalletsApiDeleteRequest, WebhooksApiDeleteRequest, PricesApiDeleteRequest, PricesApiUpdateRequest, PaymentIntentsApiRetrieveRequest, ListPaymentIntentsResponse, PaymentIntentsApiListRequest, PaymentIntent, PaymentIntentsApiUpdateHashRequest, PaymentIntentsApiPollRequest, SubscriptionsApiCancelRequest, PaymentIntentsApiCancelRequest } from './openapi/index'; | ||
}): Promise<Subscription>; | ||
update(id: string, data: SubscriptionsApiUpdateRequest['update_subscription_body'], options?: { | ||
update(id: string, data: SubscriptionsApiUpdateRequest['subscription'], options?: { | ||
prismAccount: string; | ||
@@ -167,0 +167,0 @@ }): Promise<Subscription>; |
@@ -288,3 +288,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.api.update(Object.assign(Object.assign({ id }, convertCasing_1.default(options)), { update_subscription_body: data })); | ||
return this.api.update(Object.assign(Object.assign({ id }, convertCasing_1.default(options)), { subscription: data })); | ||
}); | ||
@@ -291,0 +291,0 @@ } |
@@ -6,3 +6,2 @@ import { BaseAPIRequestFactory } from './baseapi'; | ||
import { Subscription } from '../models/Subscription'; | ||
import { UpdateSubscriptionBody } from '../models/UpdateSubscriptionBody'; | ||
export declare class SubscriptionsApiRequestFactory extends BaseAPIRequestFactory { | ||
@@ -13,3 +12,3 @@ cancel(id: string, prism_account?: string, _options?: Configuration): Promise<RequestContext>; | ||
retrieve(id: string, expand?: string, prism_account?: string, _options?: Configuration): Promise<RequestContext>; | ||
update(id: string, prism_account?: string, update_subscription_body?: UpdateSubscriptionBody, _options?: Configuration): Promise<RequestContext>; | ||
update(id: string, prism_account?: string, subscription?: Subscription, _options?: Configuration): Promise<RequestContext>; | ||
} | ||
@@ -16,0 +15,0 @@ export declare class SubscriptionsApiResponseProcessor { |
@@ -116,3 +116,3 @@ "use strict"; | ||
} | ||
update(id, prism_account, update_subscription_body, _options) { | ||
update(id, prism_account, subscription, _options) { | ||
var _a, _b, _c; | ||
@@ -135,3 +135,3 @@ return __awaiter(this, void 0, void 0, function* () { | ||
requestContext.setHeaderParam("Content-Type", contentType); | ||
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(update_subscription_body, "UpdateSubscriptionBody", ""), contentType); | ||
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(subscription, "Subscription", ""), contentType); | ||
requestContext.setBody(serializedBody); | ||
@@ -138,0 +138,0 @@ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default); |
@@ -14,4 +14,4 @@ import { AccountAllOfBranding } from './AccountAllOfBranding'; | ||
'parent_account'?: string | Account; | ||
'payout_wallets'?: Array<PayoutWallet>; | ||
'platform_account': string; | ||
'payout_wallets'?: Array<PayoutWallet>; | ||
'settings'?: AccountsSettings; | ||
@@ -18,0 +18,0 @@ static readonly discriminator: string | undefined; |
@@ -69,2 +69,8 @@ "use strict"; | ||
{ | ||
"name": "payout_wallets", | ||
"baseName": "payout_wallets", | ||
"type": "Array<PayoutWallet>", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "platform_account", | ||
@@ -76,8 +82,2 @@ "baseName": "platform_account", | ||
{ | ||
"name": "payout_wallets", | ||
"baseName": "payout_wallets", | ||
"type": "Array<PayoutWallet>", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "settings", | ||
@@ -84,0 +84,0 @@ "baseName": "settings", |
@@ -11,4 +11,4 @@ import { Account } from './Account'; | ||
'parent_account'?: string | Account; | ||
'payout_wallets'?: Array<PayoutWallet>; | ||
'platform_account': string; | ||
'payout_wallets'?: Array<PayoutWallet>; | ||
'settings'?: AccountsSettings; | ||
@@ -15,0 +15,0 @@ static readonly discriminator: string | undefined; |
@@ -45,2 +45,8 @@ "use strict"; | ||
{ | ||
"name": "payout_wallets", | ||
"baseName": "payout_wallets", | ||
"type": "Array<PayoutWallet>", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "platform_account", | ||
@@ -52,8 +58,2 @@ "baseName": "platform_account", | ||
{ | ||
"name": "payout_wallets", | ||
"baseName": "payout_wallets", | ||
"type": "Array<PayoutWallet>", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "settings", | ||
@@ -60,0 +60,0 @@ "baseName": "settings", |
export declare class AccountsSettings { | ||
'past_due_period_duration'?: number; | ||
'retry_period_duration'?: number; | ||
'past_due_period_duration'?: number; | ||
static readonly discriminator: string | undefined; | ||
@@ -5,0 +5,0 @@ static readonly attributeTypeMap: Array<{ |
@@ -15,4 +15,4 @@ "use strict"; | ||
{ | ||
"name": "retry_period_duration", | ||
"baseName": "retry_period_duration", | ||
"name": "past_due_period_duration", | ||
"baseName": "past_due_period_duration", | ||
"type": "number", | ||
@@ -22,4 +22,4 @@ "format": "" | ||
{ | ||
"name": "past_due_period_duration", | ||
"baseName": "past_due_period_duration", | ||
"name": "retry_period_duration", | ||
"baseName": "retry_period_duration", | ||
"type": "number", | ||
@@ -26,0 +26,0 @@ "format": "" |
@@ -66,3 +66,2 @@ export * from './Account'; | ||
export * from './UpdateProductBody'; | ||
export * from './UpdateSubscriptionBody'; | ||
export * from './UpdateWalletBody'; | ||
@@ -69,0 +68,0 @@ export * from './UpdateWebhookBody'; |
@@ -78,3 +78,2 @@ "use strict"; | ||
__exportStar(require("./UpdateProductBody"), exports); | ||
__exportStar(require("./UpdateSubscriptionBody"), exports); | ||
__exportStar(require("./UpdateWalletBody"), exports); | ||
@@ -81,0 +80,0 @@ __exportStar(require("./UpdateWebhookBody"), exports); |
export declare class CreateProductBody { | ||
'description'?: string; | ||
'name': string; | ||
'description'?: string; | ||
static readonly discriminator: string | undefined; | ||
@@ -5,0 +5,0 @@ static readonly attributeTypeMap: Array<{ |
@@ -15,4 +15,4 @@ "use strict"; | ||
{ | ||
"name": "name", | ||
"baseName": "name", | ||
"name": "description", | ||
"baseName": "description", | ||
"type": "string", | ||
@@ -22,4 +22,4 @@ "format": "" | ||
{ | ||
"name": "description", | ||
"baseName": "description", | ||
"name": "name", | ||
"baseName": "name", | ||
"type": "string", | ||
@@ -26,0 +26,0 @@ "format": "" |
@@ -10,2 +10,3 @@ import { Account } from './Account'; | ||
'account': string | Account; | ||
'currency': string; | ||
'description'?: string; | ||
@@ -12,0 +13,0 @@ 'internal'?: boolean; |
@@ -45,2 +45,8 @@ "use strict"; | ||
{ | ||
"name": "currency", | ||
"baseName": "currency", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "description", | ||
@@ -47,0 +53,0 @@ "baseName": "description", |
@@ -6,2 +6,3 @@ import { Account } from './Account'; | ||
'account': string | Account; | ||
'currency': string; | ||
'description'?: string; | ||
@@ -8,0 +9,0 @@ 'internal'?: boolean; |
@@ -21,2 +21,8 @@ "use strict"; | ||
{ | ||
"name": "currency", | ||
"baseName": "currency", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "description", | ||
@@ -23,0 +29,0 @@ "baseName": "description", |
export declare class InlineResponse400Error { | ||
'message'?: string; | ||
'param'?: string; | ||
'message'?: string; | ||
'type'?: string; | ||
@@ -5,0 +5,0 @@ static readonly discriminator: string | undefined; |
@@ -15,4 +15,4 @@ "use strict"; | ||
{ | ||
"name": "param", | ||
"baseName": "param", | ||
"name": "message", | ||
"baseName": "message", | ||
"type": "string", | ||
@@ -22,4 +22,4 @@ "format": "" | ||
{ | ||
"name": "message", | ||
"baseName": "message", | ||
"name": "param", | ||
"baseName": "param", | ||
"type": "string", | ||
@@ -26,0 +26,0 @@ "format": "" |
@@ -12,17 +12,17 @@ import { Account } from './Account'; | ||
'account': string | Account; | ||
'platform_account'?: string | Account; | ||
'status': InvoiceStatusEnum; | ||
'number': string; | ||
'price': string | Price; | ||
'amount': number; | ||
'chain': InvoiceChainEnum; | ||
'customer': string | Customer; | ||
'due': number; | ||
'line_items'?: Array<InvoiceAllOfLineItems>; | ||
'trial_period_duration'?: number; | ||
'subscription'?: string | Subscription; | ||
'metadata'?: any; | ||
'number': string; | ||
'period_end': number; | ||
'period_start': number; | ||
'period_end': number; | ||
'chain': InvoiceChainEnum; | ||
'amount': number; | ||
'platform_account'?: string | Account; | ||
'price': string | Price; | ||
'send_reminders'?: boolean; | ||
'due': number; | ||
'metadata'?: any; | ||
'status': InvoiceStatusEnum; | ||
'subscription'?: string | Subscription; | ||
'trial_period_duration'?: number; | ||
static readonly discriminator: string | undefined; | ||
@@ -43,3 +43,3 @@ static readonly attributeTypeMap: Array<{ | ||
} | ||
export declare type InvoiceChainEnum = "eth" | "sol"; | ||
export declare type InvoiceStatusEnum = "open" | "paid" | "void" | "past_due" | "uncollectible"; | ||
export declare type InvoiceChainEnum = "eth" | "sol"; |
@@ -45,32 +45,26 @@ "use strict"; | ||
{ | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"name": "amount", | ||
"baseName": "amount", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "status", | ||
"baseName": "status", | ||
"type": "InvoiceStatusEnum", | ||
"name": "chain", | ||
"baseName": "chain", | ||
"type": "InvoiceChainEnum", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "number", | ||
"baseName": "number", | ||
"type": "string", | ||
"name": "customer", | ||
"baseName": "customer", | ||
"type": "string | Customer", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "price", | ||
"baseName": "price", | ||
"type": "string | Price", | ||
"name": "due", | ||
"baseName": "due", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "customer", | ||
"baseName": "customer", | ||
"type": "string | Customer", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "line_items", | ||
@@ -82,16 +76,16 @@ "baseName": "line_items", | ||
{ | ||
"name": "trial_period_duration", | ||
"baseName": "trial_period_duration", | ||
"type": "number", | ||
"name": "metadata", | ||
"baseName": "metadata", | ||
"type": "any", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "subscription", | ||
"baseName": "subscription", | ||
"type": "string | Subscription", | ||
"name": "number", | ||
"baseName": "number", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "period_start", | ||
"baseName": "period_start", | ||
"name": "period_end", | ||
"baseName": "period_end", | ||
"type": "number", | ||
@@ -101,4 +95,4 @@ "format": "" | ||
{ | ||
"name": "period_end", | ||
"baseName": "period_end", | ||
"name": "period_start", | ||
"baseName": "period_start", | ||
"type": "number", | ||
@@ -108,11 +102,11 @@ "format": "" | ||
{ | ||
"name": "chain", | ||
"baseName": "chain", | ||
"type": "InvoiceChainEnum", | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "amount", | ||
"baseName": "amount", | ||
"type": "number", | ||
"name": "price", | ||
"baseName": "price", | ||
"type": "string | Price", | ||
"format": "" | ||
@@ -127,14 +121,20 @@ }, | ||
{ | ||
"name": "due", | ||
"baseName": "due", | ||
"type": "number", | ||
"name": "status", | ||
"baseName": "status", | ||
"type": "InvoiceStatusEnum", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "metadata", | ||
"baseName": "metadata", | ||
"type": "any", | ||
"name": "subscription", | ||
"baseName": "subscription", | ||
"type": "string | Subscription", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "trial_period_duration", | ||
"baseName": "trial_period_duration", | ||
"type": "number", | ||
"format": "" | ||
} | ||
]; | ||
//# sourceMappingURL=Invoice.js.map |
@@ -8,17 +8,17 @@ import { Account } from './Account'; | ||
'account': string | Account; | ||
'platform_account'?: string | Account; | ||
'status': InvoiceAllOfStatusEnum; | ||
'number': string; | ||
'price': string | Price; | ||
'amount': number; | ||
'chain': InvoiceAllOfChainEnum; | ||
'customer': string | Customer; | ||
'due': number; | ||
'line_items'?: Array<InvoiceAllOfLineItems>; | ||
'trial_period_duration'?: number; | ||
'subscription'?: string | Subscription; | ||
'metadata'?: any; | ||
'number': string; | ||
'period_end': number; | ||
'period_start': number; | ||
'period_end': number; | ||
'chain': InvoiceAllOfChainEnum; | ||
'amount': number; | ||
'platform_account'?: string | Account; | ||
'price': string | Price; | ||
'send_reminders'?: boolean; | ||
'due': number; | ||
'metadata'?: any; | ||
'status': InvoiceAllOfStatusEnum; | ||
'subscription'?: string | Subscription; | ||
'trial_period_duration'?: number; | ||
static readonly discriminator: string | undefined; | ||
@@ -39,3 +39,3 @@ static readonly attributeTypeMap: Array<{ | ||
} | ||
export declare type InvoiceAllOfChainEnum = "eth" | "sol"; | ||
export declare type InvoiceAllOfStatusEnum = "open" | "paid" | "void" | "past_due" | "uncollectible"; | ||
export declare type InvoiceAllOfChainEnum = "eth" | "sol"; |
@@ -21,32 +21,26 @@ "use strict"; | ||
{ | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"name": "amount", | ||
"baseName": "amount", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "status", | ||
"baseName": "status", | ||
"type": "InvoiceAllOfStatusEnum", | ||
"name": "chain", | ||
"baseName": "chain", | ||
"type": "InvoiceAllOfChainEnum", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "number", | ||
"baseName": "number", | ||
"type": "string", | ||
"name": "customer", | ||
"baseName": "customer", | ||
"type": "string | Customer", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "price", | ||
"baseName": "price", | ||
"type": "string | Price", | ||
"name": "due", | ||
"baseName": "due", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "customer", | ||
"baseName": "customer", | ||
"type": "string | Customer", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "line_items", | ||
@@ -58,16 +52,16 @@ "baseName": "line_items", | ||
{ | ||
"name": "trial_period_duration", | ||
"baseName": "trial_period_duration", | ||
"type": "number", | ||
"name": "metadata", | ||
"baseName": "metadata", | ||
"type": "any", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "subscription", | ||
"baseName": "subscription", | ||
"type": "string | Subscription", | ||
"name": "number", | ||
"baseName": "number", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "period_start", | ||
"baseName": "period_start", | ||
"name": "period_end", | ||
"baseName": "period_end", | ||
"type": "number", | ||
@@ -77,4 +71,4 @@ "format": "" | ||
{ | ||
"name": "period_end", | ||
"baseName": "period_end", | ||
"name": "period_start", | ||
"baseName": "period_start", | ||
"type": "number", | ||
@@ -84,11 +78,11 @@ "format": "" | ||
{ | ||
"name": "chain", | ||
"baseName": "chain", | ||
"type": "InvoiceAllOfChainEnum", | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "amount", | ||
"baseName": "amount", | ||
"type": "number", | ||
"name": "price", | ||
"baseName": "price", | ||
"type": "string | Price", | ||
"format": "" | ||
@@ -103,14 +97,20 @@ }, | ||
{ | ||
"name": "due", | ||
"baseName": "due", | ||
"type": "number", | ||
"name": "status", | ||
"baseName": "status", | ||
"type": "InvoiceAllOfStatusEnum", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "metadata", | ||
"baseName": "metadata", | ||
"type": "any", | ||
"name": "subscription", | ||
"baseName": "subscription", | ||
"type": "string | Subscription", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "trial_period_duration", | ||
"baseName": "trial_period_duration", | ||
"type": "number", | ||
"format": "" | ||
} | ||
]; | ||
//# sourceMappingURL=InvoiceAllOf.js.map |
@@ -8,5 +8,5 @@ import { Account } from './Account'; | ||
'account': string | Account; | ||
'type': NotificationTypeEnum; | ||
'data': string; | ||
'emails'?: Array<string>; | ||
'type': NotificationTypeEnum; | ||
static readonly discriminator: string | undefined; | ||
@@ -13,0 +13,0 @@ static readonly attributeTypeMap: Array<{ |
@@ -45,8 +45,2 @@ "use strict"; | ||
{ | ||
"name": "type", | ||
"baseName": "type", | ||
"type": "NotificationTypeEnum", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "data", | ||
@@ -62,4 +56,10 @@ "baseName": "data", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "type", | ||
"baseName": "type", | ||
"type": "NotificationTypeEnum", | ||
"format": "" | ||
} | ||
]; | ||
//# sourceMappingURL=Notification.js.map |
import { Account } from './Account'; | ||
export declare class NotificationAllOf { | ||
'account': string | Account; | ||
'type': NotificationAllOfTypeEnum; | ||
'data': string; | ||
'emails'?: Array<string>; | ||
'type': NotificationAllOfTypeEnum; | ||
static readonly discriminator: string | undefined; | ||
@@ -8,0 +8,0 @@ static readonly attributeTypeMap: Array<{ |
@@ -21,8 +21,2 @@ "use strict"; | ||
{ | ||
"name": "type", | ||
"baseName": "type", | ||
"type": "NotificationAllOfTypeEnum", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "data", | ||
@@ -38,4 +32,10 @@ "baseName": "data", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "type", | ||
"baseName": "type", | ||
"type": "NotificationAllOfTypeEnum", | ||
"format": "" | ||
} | ||
]; | ||
//# sourceMappingURL=NotificationAllOf.js.map |
@@ -66,3 +66,2 @@ export * from './Account'; | ||
export * from './UpdateProductBody'; | ||
export * from './UpdateSubscriptionBody'; | ||
export * from './UpdateWalletBody'; | ||
@@ -69,0 +68,0 @@ export * from './UpdateWebhookBody'; |
@@ -79,3 +79,2 @@ "use strict"; | ||
__exportStar(require("./UpdateProductBody"), exports); | ||
__exportStar(require("./UpdateSubscriptionBody"), exports); | ||
__exportStar(require("./UpdateWalletBody"), exports); | ||
@@ -152,3 +151,2 @@ __exportStar(require("./UpdateWebhookBody"), exports); | ||
const UpdateProductBody_1 = require("./UpdateProductBody"); | ||
const UpdateSubscriptionBody_1 = require("./UpdateSubscriptionBody"); | ||
const UpdateWalletBody_1 = require("./UpdateWalletBody"); | ||
@@ -178,6 +176,6 @@ const UpdateWebhookBody_1 = require("./UpdateWebhookBody"); | ||
"ApiKeyAllOfTypeEnum", | ||
"InvoiceChainEnum", | ||
"InvoiceStatusEnum", | ||
"InvoiceChainEnum", | ||
"InvoiceAllOfChainEnum", | ||
"InvoiceAllOfStatusEnum", | ||
"InvoiceAllOfChainEnum", | ||
"LogMethodEnum", | ||
@@ -187,8 +185,8 @@ "LogAllOfMethodEnum", | ||
"NotificationAllOfTypeEnum", | ||
"PaymentIntentStatusEnum", | ||
"PaymentIntentChainEnum", | ||
"PaymentIntentCurrencyEnum", | ||
"PaymentIntentAllOfStatusEnum", | ||
"PaymentIntentStatusEnum", | ||
"PaymentIntentAllOfChainEnum", | ||
"PaymentIntentAllOfCurrencyEnum", | ||
"PaymentIntentAllOfStatusEnum", | ||
"PayoutWalletChainEnum", | ||
@@ -267,3 +265,2 @@ "PayoutWalletAllOfChainEnum", | ||
"UpdateProductBody": UpdateProductBody_1.UpdateProductBody, | ||
"UpdateSubscriptionBody": UpdateSubscriptionBody_1.UpdateSubscriptionBody, | ||
"UpdateWalletBody": UpdateWalletBody_1.UpdateWalletBody, | ||
@@ -270,0 +267,0 @@ "UpdateWebhookBody": UpdateWebhookBody_1.UpdateWebhookBody, |
@@ -16,21 +16,21 @@ import { Account } from './Account'; | ||
'account'?: string | Account; | ||
'platform_account'?: string | Account; | ||
'hash'?: string; | ||
'invoice': string | Invoice; | ||
'status': PaymentIntentStatusEnum; | ||
'amount': number; | ||
'application_fee_percent'?: number; | ||
'chain': PaymentIntentChainEnum; | ||
'currency': PaymentIntentCurrencyEnum; | ||
'amount': number; | ||
'subscription'?: string | Subscription; | ||
'price'?: string | Price; | ||
'line_items'?: Array<InvoiceAllOfLineItems>; | ||
'customer'?: string | Customer; | ||
'wallet'?: string | Wallet; | ||
'usd_amount'?: number; | ||
'exchange_rate'?: number; | ||
'application_fee_percent'?: number; | ||
'fees': Array<Fee>; | ||
'hash'?: string; | ||
'invoice': string | Invoice; | ||
'last_payment_error'?: string; | ||
'fees': Array<Fee>; | ||
'line_items'?: Array<InvoiceAllOfLineItems>; | ||
'metadata'?: any; | ||
'platform_account'?: string | Account; | ||
'price'?: string | Price; | ||
'status': PaymentIntentStatusEnum; | ||
'subscription'?: string | Subscription; | ||
'transfers': Array<Transfer>; | ||
'metadata'?: any; | ||
'usd_amount'?: number; | ||
'wallet'?: string | Wallet; | ||
static readonly discriminator: string | undefined; | ||
@@ -51,4 +51,4 @@ static readonly attributeTypeMap: Array<{ | ||
} | ||
export declare type PaymentIntentStatusEnum = "pending" | "failed" | "succeeded" | "canceled"; | ||
export declare type PaymentIntentChainEnum = "eth" | "sol"; | ||
export declare type PaymentIntentCurrencyEnum = "eth" | "sol"; | ||
export declare type PaymentIntentStatusEnum = "pending" | "failed" | "succeeded" | "canceled"; |
@@ -45,26 +45,14 @@ "use strict"; | ||
{ | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"name": "amount", | ||
"baseName": "amount", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "hash", | ||
"baseName": "hash", | ||
"type": "string", | ||
"name": "application_fee_percent", | ||
"baseName": "application_fee_percent", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "invoice", | ||
"baseName": "invoice", | ||
"type": "string | Invoice", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "status", | ||
"baseName": "status", | ||
"type": "PaymentIntentStatusEnum", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "chain", | ||
@@ -82,4 +70,10 @@ "baseName": "chain", | ||
{ | ||
"name": "amount", | ||
"baseName": "amount", | ||
"name": "customer", | ||
"baseName": "customer", | ||
"type": "string | Customer", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "exchange_rate", | ||
"baseName": "exchange_rate", | ||
"type": "number", | ||
@@ -89,59 +83,59 @@ "format": "" | ||
{ | ||
"name": "subscription", | ||
"baseName": "subscription", | ||
"type": "string | Subscription", | ||
"name": "fees", | ||
"baseName": "fees", | ||
"type": "Array<Fee>", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "price", | ||
"baseName": "price", | ||
"type": "string | Price", | ||
"name": "hash", | ||
"baseName": "hash", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "line_items", | ||
"baseName": "line_items", | ||
"type": "Array<InvoiceAllOfLineItems>", | ||
"name": "invoice", | ||
"baseName": "invoice", | ||
"type": "string | Invoice", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "customer", | ||
"baseName": "customer", | ||
"type": "string | Customer", | ||
"name": "last_payment_error", | ||
"baseName": "last_payment_error", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "wallet", | ||
"baseName": "wallet", | ||
"type": "string | Wallet", | ||
"name": "line_items", | ||
"baseName": "line_items", | ||
"type": "Array<InvoiceAllOfLineItems>", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "usd_amount", | ||
"baseName": "usd_amount", | ||
"type": "number", | ||
"name": "metadata", | ||
"baseName": "metadata", | ||
"type": "any", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "exchange_rate", | ||
"baseName": "exchange_rate", | ||
"type": "number", | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "application_fee_percent", | ||
"baseName": "application_fee_percent", | ||
"type": "number", | ||
"name": "price", | ||
"baseName": "price", | ||
"type": "string | Price", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "last_payment_error", | ||
"baseName": "last_payment_error", | ||
"type": "string", | ||
"name": "status", | ||
"baseName": "status", | ||
"type": "PaymentIntentStatusEnum", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "fees", | ||
"baseName": "fees", | ||
"type": "Array<Fee>", | ||
"name": "subscription", | ||
"baseName": "subscription", | ||
"type": "string | Subscription", | ||
"format": "" | ||
@@ -156,8 +150,14 @@ }, | ||
{ | ||
"name": "metadata", | ||
"baseName": "metadata", | ||
"type": "any", | ||
"name": "usd_amount", | ||
"baseName": "usd_amount", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "wallet", | ||
"baseName": "wallet", | ||
"type": "string | Wallet", | ||
"format": "" | ||
} | ||
]; | ||
//# sourceMappingURL=PaymentIntent.js.map |
@@ -12,21 +12,21 @@ import { Account } from './Account'; | ||
'account'?: string | Account; | ||
'platform_account'?: string | Account; | ||
'hash'?: string; | ||
'invoice': string | Invoice; | ||
'status': PaymentIntentAllOfStatusEnum; | ||
'amount': number; | ||
'application_fee_percent'?: number; | ||
'chain': PaymentIntentAllOfChainEnum; | ||
'currency': PaymentIntentAllOfCurrencyEnum; | ||
'amount': number; | ||
'subscription'?: string | Subscription; | ||
'price'?: string | Price; | ||
'line_items'?: Array<InvoiceAllOfLineItems>; | ||
'customer'?: string | Customer; | ||
'wallet'?: string | Wallet; | ||
'usd_amount'?: number; | ||
'exchange_rate'?: number; | ||
'application_fee_percent'?: number; | ||
'fees': Array<Fee>; | ||
'hash'?: string; | ||
'invoice': string | Invoice; | ||
'last_payment_error'?: string; | ||
'fees': Array<Fee>; | ||
'line_items'?: Array<InvoiceAllOfLineItems>; | ||
'metadata'?: any; | ||
'platform_account'?: string | Account; | ||
'price'?: string | Price; | ||
'status': PaymentIntentAllOfStatusEnum; | ||
'subscription'?: string | Subscription; | ||
'transfers': Array<Transfer>; | ||
'metadata'?: any; | ||
'usd_amount'?: number; | ||
'wallet'?: string | Wallet; | ||
static readonly discriminator: string | undefined; | ||
@@ -47,4 +47,4 @@ static readonly attributeTypeMap: Array<{ | ||
} | ||
export declare type PaymentIntentAllOfStatusEnum = "pending" | "failed" | "succeeded" | "canceled"; | ||
export declare type PaymentIntentAllOfChainEnum = "eth" | "sol"; | ||
export declare type PaymentIntentAllOfCurrencyEnum = "eth" | "sol"; | ||
export declare type PaymentIntentAllOfStatusEnum = "pending" | "failed" | "succeeded" | "canceled"; |
@@ -21,26 +21,14 @@ "use strict"; | ||
{ | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"name": "amount", | ||
"baseName": "amount", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "hash", | ||
"baseName": "hash", | ||
"type": "string", | ||
"name": "application_fee_percent", | ||
"baseName": "application_fee_percent", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "invoice", | ||
"baseName": "invoice", | ||
"type": "string | Invoice", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "status", | ||
"baseName": "status", | ||
"type": "PaymentIntentAllOfStatusEnum", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "chain", | ||
@@ -58,4 +46,10 @@ "baseName": "chain", | ||
{ | ||
"name": "amount", | ||
"baseName": "amount", | ||
"name": "customer", | ||
"baseName": "customer", | ||
"type": "string | Customer", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "exchange_rate", | ||
"baseName": "exchange_rate", | ||
"type": "number", | ||
@@ -65,59 +59,59 @@ "format": "" | ||
{ | ||
"name": "subscription", | ||
"baseName": "subscription", | ||
"type": "string | Subscription", | ||
"name": "fees", | ||
"baseName": "fees", | ||
"type": "Array<Fee>", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "price", | ||
"baseName": "price", | ||
"type": "string | Price", | ||
"name": "hash", | ||
"baseName": "hash", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "line_items", | ||
"baseName": "line_items", | ||
"type": "Array<InvoiceAllOfLineItems>", | ||
"name": "invoice", | ||
"baseName": "invoice", | ||
"type": "string | Invoice", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "customer", | ||
"baseName": "customer", | ||
"type": "string | Customer", | ||
"name": "last_payment_error", | ||
"baseName": "last_payment_error", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "wallet", | ||
"baseName": "wallet", | ||
"type": "string | Wallet", | ||
"name": "line_items", | ||
"baseName": "line_items", | ||
"type": "Array<InvoiceAllOfLineItems>", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "usd_amount", | ||
"baseName": "usd_amount", | ||
"type": "number", | ||
"name": "metadata", | ||
"baseName": "metadata", | ||
"type": "any", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "exchange_rate", | ||
"baseName": "exchange_rate", | ||
"type": "number", | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "application_fee_percent", | ||
"baseName": "application_fee_percent", | ||
"type": "number", | ||
"name": "price", | ||
"baseName": "price", | ||
"type": "string | Price", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "last_payment_error", | ||
"baseName": "last_payment_error", | ||
"type": "string", | ||
"name": "status", | ||
"baseName": "status", | ||
"type": "PaymentIntentAllOfStatusEnum", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "fees", | ||
"baseName": "fees", | ||
"type": "Array<Fee>", | ||
"name": "subscription", | ||
"baseName": "subscription", | ||
"type": "string | Subscription", | ||
"format": "" | ||
@@ -132,8 +126,14 @@ }, | ||
{ | ||
"name": "metadata", | ||
"baseName": "metadata", | ||
"type": "any", | ||
"name": "usd_amount", | ||
"baseName": "usd_amount", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "wallet", | ||
"baseName": "wallet", | ||
"type": "string | Wallet", | ||
"format": "" | ||
} | ||
]; | ||
//# sourceMappingURL=PaymentIntentAllOf.js.map |
@@ -10,11 +10,11 @@ import { Account } from './Account'; | ||
'account': string | Account; | ||
'platform_account'?: string | Account; | ||
'amount': number; | ||
'currency': string; | ||
'chain': string; | ||
'product'?: string | Product; | ||
'application_fee_percent'?: number; | ||
'base_price'?: PriceAllOfBasePrice; | ||
'billing_period_duration'?: number; | ||
'application_fee_percent'?: number; | ||
'chain': string; | ||
'currency': string; | ||
'metadata'?: any; | ||
'platform_account'?: string | Account; | ||
'product'?: string | Product; | ||
static readonly discriminator: string | undefined; | ||
@@ -21,0 +21,0 @@ static readonly attributeTypeMap: Array<{ |
@@ -45,8 +45,2 @@ "use strict"; | ||
{ | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "amount", | ||
@@ -58,20 +52,8 @@ "baseName": "amount", | ||
{ | ||
"name": "currency", | ||
"baseName": "currency", | ||
"type": "string", | ||
"name": "application_fee_percent", | ||
"baseName": "application_fee_percent", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "chain", | ||
"baseName": "chain", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "product", | ||
"baseName": "product", | ||
"type": "string | Product", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "base_price", | ||
@@ -89,8 +71,14 @@ "baseName": "base_price", | ||
{ | ||
"name": "application_fee_percent", | ||
"baseName": "application_fee_percent", | ||
"type": "number", | ||
"name": "chain", | ||
"baseName": "chain", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "currency", | ||
"baseName": "currency", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "metadata", | ||
@@ -100,4 +88,16 @@ "baseName": "metadata", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "product", | ||
"baseName": "product", | ||
"type": "string | Product", | ||
"format": "" | ||
} | ||
]; | ||
//# sourceMappingURL=Price.js.map |
@@ -6,11 +6,11 @@ import { Account } from './Account'; | ||
'account': string | Account; | ||
'platform_account'?: string | Account; | ||
'amount': number; | ||
'currency': string; | ||
'chain': string; | ||
'product'?: string | Product; | ||
'application_fee_percent'?: number; | ||
'base_price'?: PriceAllOfBasePrice; | ||
'billing_period_duration'?: number; | ||
'application_fee_percent'?: number; | ||
'chain': string; | ||
'currency': string; | ||
'metadata'?: any; | ||
'platform_account'?: string | Account; | ||
'product'?: string | Product; | ||
static readonly discriminator: string | undefined; | ||
@@ -17,0 +17,0 @@ static readonly attributeTypeMap: Array<{ |
@@ -21,8 +21,2 @@ "use strict"; | ||
{ | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "amount", | ||
@@ -34,20 +28,8 @@ "baseName": "amount", | ||
{ | ||
"name": "currency", | ||
"baseName": "currency", | ||
"type": "string", | ||
"name": "application_fee_percent", | ||
"baseName": "application_fee_percent", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "chain", | ||
"baseName": "chain", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "product", | ||
"baseName": "product", | ||
"type": "string | Product", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "base_price", | ||
@@ -65,8 +47,14 @@ "baseName": "base_price", | ||
{ | ||
"name": "application_fee_percent", | ||
"baseName": "application_fee_percent", | ||
"type": "number", | ||
"name": "chain", | ||
"baseName": "chain", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "currency", | ||
"baseName": "currency", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "metadata", | ||
@@ -76,4 +64,16 @@ "baseName": "metadata", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "product", | ||
"baseName": "product", | ||
"type": "string | Product", | ||
"format": "" | ||
} | ||
]; | ||
//# sourceMappingURL=PriceAllOf.js.map |
@@ -9,4 +9,4 @@ import { Account } from './Account'; | ||
'account': string | Account; | ||
'description'?: string; | ||
'name': string; | ||
'description'?: string; | ||
'prices'?: Array<Price>; | ||
@@ -13,0 +13,0 @@ static readonly discriminator: string | undefined; |
@@ -45,4 +45,4 @@ "use strict"; | ||
{ | ||
"name": "name", | ||
"baseName": "name", | ||
"name": "description", | ||
"baseName": "description", | ||
"type": "string", | ||
@@ -52,4 +52,4 @@ "format": "" | ||
{ | ||
"name": "description", | ||
"baseName": "description", | ||
"name": "name", | ||
"baseName": "name", | ||
"type": "string", | ||
@@ -56,0 +56,0 @@ "format": "" |
@@ -5,4 +5,4 @@ import { Account } from './Account'; | ||
'account': string | Account; | ||
'description'?: string; | ||
'name': string; | ||
'description'?: string; | ||
'prices'?: Array<Price>; | ||
@@ -9,0 +9,0 @@ static readonly discriminator: string | undefined; |
@@ -21,4 +21,4 @@ "use strict"; | ||
{ | ||
"name": "name", | ||
"baseName": "name", | ||
"name": "description", | ||
"baseName": "description", | ||
"type": "string", | ||
@@ -28,4 +28,4 @@ "format": "" | ||
{ | ||
"name": "description", | ||
"baseName": "description", | ||
"name": "name", | ||
"baseName": "name", | ||
"type": "string", | ||
@@ -32,0 +32,0 @@ "format": "" |
@@ -12,15 +12,15 @@ import { Account } from './Account'; | ||
'account': string | Account; | ||
'cancel_at'?: number; | ||
'cancel_at_period_end': boolean; | ||
'canceled_at'?: number; | ||
'current_period_end': number; | ||
'current_period_start': number; | ||
'customer': string | Customer; | ||
'latest_invoice'?: Invoice; | ||
'line_items'?: Array<InvoiceAllOfLineItems>; | ||
'pause_collection': boolean; | ||
'platform_account'?: string | Account; | ||
'price': string | Price; | ||
'customer': string | Customer; | ||
'latest_invoice'?: Invoice; | ||
'status': SubscriptionStatusEnum; | ||
'pause_collection': boolean; | ||
'canceled_at'?: number; | ||
'trial_period_duration'?: number; | ||
'line_items'?: Array<InvoiceAllOfLineItems>; | ||
'current_period_start': number; | ||
'current_period_end': number; | ||
'cancel_at_period_end': boolean; | ||
'cancel_at'?: number; | ||
static readonly discriminator: string | undefined; | ||
@@ -27,0 +27,0 @@ static readonly attributeTypeMap: Array<{ |
@@ -45,14 +45,32 @@ "use strict"; | ||
{ | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"name": "cancel_at", | ||
"baseName": "cancel_at", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "price", | ||
"baseName": "price", | ||
"type": "string | Price", | ||
"name": "cancel_at_period_end", | ||
"baseName": "cancel_at_period_end", | ||
"type": "boolean", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "canceled_at", | ||
"baseName": "canceled_at", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "current_period_end", | ||
"baseName": "current_period_end", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "current_period_start", | ||
"baseName": "current_period_start", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "customer", | ||
@@ -70,5 +88,5 @@ "baseName": "customer", | ||
{ | ||
"name": "status", | ||
"baseName": "status", | ||
"type": "SubscriptionStatusEnum", | ||
"name": "line_items", | ||
"baseName": "line_items", | ||
"type": "Array<InvoiceAllOfLineItems>", | ||
"format": "" | ||
@@ -83,44 +101,26 @@ }, | ||
{ | ||
"name": "canceled_at", | ||
"baseName": "canceled_at", | ||
"type": "number", | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "trial_period_duration", | ||
"baseName": "trial_period_duration", | ||
"type": "number", | ||
"name": "price", | ||
"baseName": "price", | ||
"type": "string | Price", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "line_items", | ||
"baseName": "line_items", | ||
"type": "Array<InvoiceAllOfLineItems>", | ||
"name": "status", | ||
"baseName": "status", | ||
"type": "SubscriptionStatusEnum", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "current_period_start", | ||
"baseName": "current_period_start", | ||
"name": "trial_period_duration", | ||
"baseName": "trial_period_duration", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "current_period_end", | ||
"baseName": "current_period_end", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "cancel_at_period_end", | ||
"baseName": "cancel_at_period_end", | ||
"type": "boolean", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "cancel_at", | ||
"baseName": "cancel_at", | ||
"type": "number", | ||
"format": "" | ||
} | ||
]; | ||
//# sourceMappingURL=Subscription.js.map |
@@ -8,15 +8,15 @@ import { Account } from './Account'; | ||
'account': string | Account; | ||
'cancel_at'?: number; | ||
'cancel_at_period_end': boolean; | ||
'canceled_at'?: number; | ||
'current_period_end': number; | ||
'current_period_start': number; | ||
'customer': string | Customer; | ||
'latest_invoice'?: Invoice; | ||
'line_items'?: Array<InvoiceAllOfLineItems>; | ||
'pause_collection': boolean; | ||
'platform_account'?: string | Account; | ||
'price': string | Price; | ||
'customer': string | Customer; | ||
'latest_invoice'?: Invoice; | ||
'status': SubscriptionAllOfStatusEnum; | ||
'pause_collection': boolean; | ||
'canceled_at'?: number; | ||
'trial_period_duration'?: number; | ||
'line_items'?: Array<InvoiceAllOfLineItems>; | ||
'current_period_start': number; | ||
'current_period_end': number; | ||
'cancel_at_period_end': boolean; | ||
'cancel_at'?: number; | ||
static readonly discriminator: string | undefined; | ||
@@ -23,0 +23,0 @@ static readonly attributeTypeMap: Array<{ |
@@ -21,14 +21,32 @@ "use strict"; | ||
{ | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"name": "cancel_at", | ||
"baseName": "cancel_at", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "price", | ||
"baseName": "price", | ||
"type": "string | Price", | ||
"name": "cancel_at_period_end", | ||
"baseName": "cancel_at_period_end", | ||
"type": "boolean", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "canceled_at", | ||
"baseName": "canceled_at", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "current_period_end", | ||
"baseName": "current_period_end", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "current_period_start", | ||
"baseName": "current_period_start", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "customer", | ||
@@ -46,5 +64,5 @@ "baseName": "customer", | ||
{ | ||
"name": "status", | ||
"baseName": "status", | ||
"type": "SubscriptionAllOfStatusEnum", | ||
"name": "line_items", | ||
"baseName": "line_items", | ||
"type": "Array<InvoiceAllOfLineItems>", | ||
"format": "" | ||
@@ -59,44 +77,26 @@ }, | ||
{ | ||
"name": "canceled_at", | ||
"baseName": "canceled_at", | ||
"type": "number", | ||
"name": "platform_account", | ||
"baseName": "platform_account", | ||
"type": "string | Account", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "trial_period_duration", | ||
"baseName": "trial_period_duration", | ||
"type": "number", | ||
"name": "price", | ||
"baseName": "price", | ||
"type": "string | Price", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "line_items", | ||
"baseName": "line_items", | ||
"type": "Array<InvoiceAllOfLineItems>", | ||
"name": "status", | ||
"baseName": "status", | ||
"type": "SubscriptionAllOfStatusEnum", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "current_period_start", | ||
"baseName": "current_period_start", | ||
"name": "trial_period_duration", | ||
"baseName": "trial_period_duration", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "current_period_end", | ||
"baseName": "current_period_end", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "cancel_at_period_end", | ||
"baseName": "cancel_at_period_end", | ||
"type": "boolean", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "cancel_at", | ||
"baseName": "cancel_at", | ||
"type": "number", | ||
"format": "" | ||
} | ||
]; | ||
//# sourceMappingURL=SubscriptionAllOf.js.map |
@@ -13,4 +13,4 @@ import { Account } from './Account'; | ||
'invoice': string | Invoice; | ||
'payment_intent': string | PaymentIntent; | ||
'percent': number; | ||
'payment_intent': string | PaymentIntent; | ||
'wallet': string | PayoutWallet; | ||
@@ -17,0 +17,0 @@ static readonly discriminator: string | undefined; |
@@ -57,2 +57,8 @@ "use strict"; | ||
{ | ||
"name": "payment_intent", | ||
"baseName": "payment_intent", | ||
"type": "string | PaymentIntent", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "percent", | ||
@@ -64,8 +70,2 @@ "baseName": "percent", | ||
{ | ||
"name": "payment_intent", | ||
"baseName": "payment_intent", | ||
"type": "string | PaymentIntent", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "wallet", | ||
@@ -72,0 +72,0 @@ "baseName": "wallet", |
@@ -9,4 +9,4 @@ import { Account } from './Account'; | ||
'invoice': string | Invoice; | ||
'payment_intent': string | PaymentIntent; | ||
'percent': number; | ||
'payment_intent': string | PaymentIntent; | ||
'wallet': string | PayoutWallet; | ||
@@ -13,0 +13,0 @@ static readonly discriminator: string | undefined; |
@@ -33,2 +33,8 @@ "use strict"; | ||
{ | ||
"name": "payment_intent", | ||
"baseName": "payment_intent", | ||
"type": "string | PaymentIntent", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "percent", | ||
@@ -40,8 +46,2 @@ "baseName": "percent", | ||
{ | ||
"name": "payment_intent", | ||
"baseName": "payment_intent", | ||
"type": "string | PaymentIntent", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "wallet", | ||
@@ -48,0 +48,0 @@ "baseName": "wallet", |
export declare class UpdateInvoiceBody { | ||
'application_fee_percent'?: number; | ||
'chain'?: string; | ||
'currency'?: string; | ||
'due'?: string; | ||
'application_fee_percent'?: number; | ||
'metadata'?: any; | ||
'send_reminders'?: string; | ||
'status'?: string; | ||
'trial_period_duration'?: number; | ||
'send_reminders'?: string; | ||
'metadata'?: any; | ||
static readonly discriminator: string | undefined; | ||
@@ -11,0 +11,0 @@ static readonly attributeTypeMap: Array<{ |
@@ -15,2 +15,8 @@ "use strict"; | ||
{ | ||
"name": "application_fee_percent", | ||
"baseName": "application_fee_percent", | ||
"type": "number", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "chain", | ||
@@ -34,8 +40,14 @@ "baseName": "chain", | ||
{ | ||
"name": "application_fee_percent", | ||
"baseName": "application_fee_percent", | ||
"type": "number", | ||
"name": "metadata", | ||
"baseName": "metadata", | ||
"type": "any", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "send_reminders", | ||
"baseName": "send_reminders", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "status", | ||
@@ -51,16 +63,4 @@ "baseName": "status", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "send_reminders", | ||
"baseName": "send_reminders", | ||
"type": "string", | ||
"format": "" | ||
}, | ||
{ | ||
"name": "metadata", | ||
"baseName": "metadata", | ||
"type": "any", | ||
"format": "" | ||
} | ||
]; | ||
//# sourceMappingURL=UpdateInvoiceBody.js.map |
export declare class UpdateProductBody { | ||
'description'?: string; | ||
'name'?: string; | ||
'description'?: string; | ||
static readonly discriminator: string | undefined; | ||
@@ -5,0 +5,0 @@ static readonly attributeTypeMap: Array<{ |
@@ -15,4 +15,4 @@ "use strict"; | ||
{ | ||
"name": "name", | ||
"baseName": "name", | ||
"name": "description", | ||
"baseName": "description", | ||
"type": "string", | ||
@@ -22,4 +22,4 @@ "format": "" | ||
{ | ||
"name": "description", | ||
"baseName": "description", | ||
"name": "name", | ||
"baseName": "name", | ||
"type": "string", | ||
@@ -26,0 +26,0 @@ "format": "" |
@@ -39,3 +39,2 @@ import { Configuration } from '../configuration'; | ||
import { UpdateProductBody } from '../models/UpdateProductBody'; | ||
import { UpdateSubscriptionBody } from '../models/UpdateSubscriptionBody'; | ||
import { UpdateWalletBody } from '../models/UpdateWalletBody'; | ||
@@ -355,3 +354,3 @@ import { UpdateWebhookBody } from '../models/UpdateWebhookBody'; | ||
prism_account?: string; | ||
update_subscription_body?: UpdateSubscriptionBody; | ||
subscription?: Subscription; | ||
} | ||
@@ -358,0 +357,0 @@ export declare class ObjectSubscriptionsApi { |
@@ -202,3 +202,3 @@ "use strict"; | ||
update(param, options) { | ||
return this.api.update(param.id, param.prism_account, param.update_subscription_body, options).toPromise(); | ||
return this.api.update(param.id, param.prism_account, param.subscription, options).toPromise(); | ||
} | ||
@@ -205,0 +205,0 @@ } |
@@ -40,3 +40,2 @@ import { Configuration } from '../configuration'; | ||
import { UpdateProductBody } from '../models/UpdateProductBody'; | ||
import { UpdateSubscriptionBody } from '../models/UpdateSubscriptionBody'; | ||
import { UpdateWalletBody } from '../models/UpdateWalletBody'; | ||
@@ -158,3 +157,3 @@ import { UpdateWebhookBody } from '../models/UpdateWebhookBody'; | ||
retrieve(id: string, expand?: string, prism_account?: string, _options?: Configuration): Observable<Subscription>; | ||
update(id: string, prism_account?: string, update_subscription_body?: UpdateSubscriptionBody, _options?: Configuration): Observable<Subscription>; | ||
update(id: string, prism_account?: string, subscription?: Subscription, _options?: Configuration): Observable<Subscription>; | ||
} | ||
@@ -161,0 +160,0 @@ import { TransfersApiRequestFactory, TransfersApiResponseProcessor } from "../apis/TransfersApi"; |
@@ -39,3 +39,2 @@ import { Configuration } from '../configuration'; | ||
import { UpdateProductBody } from '../models/UpdateProductBody'; | ||
import { UpdateSubscriptionBody } from '../models/UpdateSubscriptionBody'; | ||
import { UpdateWalletBody } from '../models/UpdateWalletBody'; | ||
@@ -137,3 +136,3 @@ import { UpdateWebhookBody } from '../models/UpdateWebhookBody'; | ||
retrieve(id: string, expand?: string, prism_account?: string, _options?: Configuration): Promise<Subscription>; | ||
update(id: string, prism_account?: string, update_subscription_body?: UpdateSubscriptionBody, _options?: Configuration): Promise<Subscription>; | ||
update(id: string, prism_account?: string, subscription?: Subscription, _options?: Configuration): Promise<Subscription>; | ||
} | ||
@@ -140,0 +139,0 @@ import { TransfersApiRequestFactory, TransfersApiResponseProcessor } from "../apis/TransfersApi"; |
@@ -244,4 +244,4 @@ "use strict"; | ||
} | ||
update(id, prism_account, update_subscription_body, _options) { | ||
const result = this.api.update(id, prism_account, update_subscription_body, _options); | ||
update(id, prism_account, subscription, _options) { | ||
const result = this.api.update(id, prism_account, subscription, _options); | ||
return result.toPromise(); | ||
@@ -248,0 +248,0 @@ } |
{ | ||
"name": "prism-node", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15339
1025722