diff --git a/src/model/OrganizationDiscount.ts b/src/model/OrganizationDiscount.ts index c069dd2..f8ab4c1 100644 --- a/src/model/OrganizationDiscount.ts +++ b/src/model/OrganizationDiscount.ts @@ -57,6 +57,8 @@ export default class OrganizationDiscount extends Ressource { }; }[]; + code?: unknown; + constructor(discount: APIObject, customUrl?: string) { const { api_url } = getConfig(); @@ -68,6 +70,7 @@ export default class OrganizationDiscount extends Ressource { creatableField ); this.items = discount.items ?? []; + this.code = discount.code; } static async get(params: OrganizationDiscountGetParams, customUrl?: string) { diff --git a/src/model/OrganizationVoucher.ts b/src/model/OrganizationVoucher.ts index 799459f..4648852 100644 --- a/src/model/OrganizationVoucher.ts +++ b/src/model/OrganizationVoucher.ts @@ -21,6 +21,7 @@ export type VoucherResponse = { }; export default class OrganizationVoucher extends Ressource { + code?: unknown; currency: string; discounted_orders: any[]; vouchers: any[]; @@ -38,6 +39,7 @@ export default class OrganizationVoucher extends Ressource { voucher, creatableField ); + this.code = voucher.code; this.currency = voucher.currency; this.discounted_orders = voucher.discounted_orders ?? []; this.vouchers = voucher.vouchers ?? []; diff --git a/src/model/PaymentSource.ts b/src/model/PaymentSource.ts index 1c94f33..87263d6 100644 --- a/src/model/PaymentSource.ts +++ b/src/model/PaymentSource.ts @@ -12,6 +12,8 @@ const creatableField = ["type", "token", "email", "chargeable"]; export default class PaymentSource extends Ressource { id: string; type: string; + token: string; + email?: string; type_label: string; payment_category: string; name: string; @@ -43,8 +45,11 @@ export default class PaymentSource extends Ressource { paymentSource, creatableField ); + this.id = paymentSource.id; this.type = paymentSource.type; + this.token = paymentSource.token; + this.email = paymentSource.email; this.type_label = paymentSource.type_label; this.name = paymentSource.name; this.number = paymentSource.number; diff --git a/src/model/Subscription.ts b/src/model/Subscription.ts index f7e7b4d..70b78a2 100644 --- a/src/model/Subscription.ts +++ b/src/model/Subscription.ts @@ -232,6 +232,9 @@ export default class Subscription extends Ressource { enterprise_tag: string; support_tier: string; continuous_profiling: null | "UPSUN-FEATURE-CONTINUOUS-PROFILING"; + options_url?: unknown; + options_custom?: unknown; + default_branch?: unknown; constructor(subscription: APIObject, customUrl?: string) { const { api_url } = getConfig(); @@ -292,6 +295,9 @@ export default class Subscription extends Ressource { this.observability_suite = subscription.observability_suite; this.environment_options = subscription.environment_options ?? []; this.continuous_profiling = subscription.continuous_profiling ?? null; + this.options_url = subscription.options_url; + this.options_custom = subscription.options_custom; + this.default_branch = subscription.default_branch; } static async get(params: SubscriptionGetParams, customUrl?: string) { diff --git a/src/model/TeamMember.ts b/src/model/TeamMember.ts index 7cab3f2..169866e 100644 --- a/src/model/TeamMember.ts +++ b/src/model/TeamMember.ts @@ -21,6 +21,7 @@ export type TeamMemberQueryParams = { export default class TeamMember extends Ressource { user: string; + role?: unknown; constructor(teamMember: APIObject, url?: string) { const { teamId } = teamMember; @@ -35,6 +36,7 @@ export default class TeamMember extends Ressource { creatableField ); this.user = teamMember.user; + this.role = teamMember.role; } static async get(params: TeamMemberGetParams, customUrl?: string) {