@seamapi/types 1.1176.0 → 1.1178.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/lib/seam/connect/models/devices/device-provider.d.ts +2 -2
- package/lib/seam/connect/models/devices/device-provider.js +13 -1
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/openapi.js +292 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +73 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device-provider.ts +13 -1
- package/src/lib/seam/connect/openapi.ts +294 -0
- package/src/lib/seam/connect/route-types.ts +73 -0
|
@@ -82,9 +82,9 @@ export declare const ALL_DEVICE_PROVIDERS: [
|
|
|
82
82
|
];
|
|
83
83
|
export type ProviderCategory = keyof typeof PROVIDER_CATEGORY_MAP;
|
|
84
84
|
export declare const PROVIDER_CATEGORY_MAP: {
|
|
85
|
-
readonly stable: readonly ["august", "brivo", "schlage", "smartthings", "yale", "nuki", "salto_ks", "salto_space", "minut", "my_2n", "kwikset", "ttlock", "noiseaware", "igloohome", "ecobee", "lockly", "wyze", "nest", "tedee", "honeywell_resideo", "first_alert", "visionline", "assa_abloy_credential_service", "dormakaba_ambiance", "latch", "akiles", "sensi", "assa_abloy_vostio", "avigilon_alta", "kisi", "keynest", "hotek", "ultraloq", "dormakaba_oracode", "ring", "korelock", "keyincode", "omnitec", "dusaw", "thirty_three_lock", "yacan"];
|
|
85
|
+
readonly stable: readonly ["august", "brivo", "schlage", "smartthings", "yale", "nuki", "salto_ks", "salto_space", "minut", "my_2n", "kwikset", "ttlock", "noiseaware", "igloohome", "ecobee", "lockly", "wyze", "nest", "tedee", "honeywell_resideo", "first_alert", "visionline", "assa_abloy_credential_service", "dormakaba_ambiance", "latch", "akiles", "sensi", "assa_abloy_vostio", "avigilon_alta", "kisi", "keynest", "hotek", "ultraloq", "dormakaba_oracode", "ring", "tapo", "arlo", "reolink", "unifi_protect", "korelock", "keyincode", "omnitec", "dusaw", "thirty_three_lock", "yacan"];
|
|
86
86
|
readonly consumer_smartlocks: readonly ["akiles", "august", "schlage", "yale", "smartthings", "nuki", "ttlock", "kwikset", "igloohome", "wyze", "lockly", "tedee", "ultraloq", "dormakaba_oracode", "korelock", "dusaw", "keyincode", "thirty_three_lock", "yacan"];
|
|
87
|
-
readonly beta: readonly ["salto_ks_accept", "aqara", "tapo", "arlo", "sifely"];
|
|
87
|
+
readonly beta: readonly ["salto_ks_accept", "aqara", "tapo", "arlo", "sifely", "reolink", "unifi_protect"];
|
|
88
88
|
readonly thermostats: readonly ["ecobee", "nest", "sensi", "honeywell_resideo", "first_alert"];
|
|
89
89
|
readonly noise_sensors: readonly ["minut", "noiseaware"];
|
|
90
90
|
readonly access_control_systems: readonly ["brivo", "visionline", "assa_abloy_credential_service", "latch", "salto_ks", "assa_abloy_vostio", "salto_space", "dormakaba_ambiance", "dormakaba_community", "legic_connect", "hotek"];
|
|
@@ -113,6 +113,10 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
113
113
|
'ultraloq',
|
|
114
114
|
'dormakaba_oracode',
|
|
115
115
|
'ring',
|
|
116
|
+
'tapo',
|
|
117
|
+
'arlo',
|
|
118
|
+
'reolink',
|
|
119
|
+
'unifi_protect',
|
|
116
120
|
'korelock',
|
|
117
121
|
'keyincode',
|
|
118
122
|
'omnitec',
|
|
@@ -141,7 +145,15 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
141
145
|
'thirty_three_lock',
|
|
142
146
|
'yacan',
|
|
143
147
|
],
|
|
144
|
-
beta: [
|
|
148
|
+
beta: [
|
|
149
|
+
'salto_ks_accept',
|
|
150
|
+
'aqara',
|
|
151
|
+
'tapo',
|
|
152
|
+
'arlo',
|
|
153
|
+
'sifely',
|
|
154
|
+
'reolink',
|
|
155
|
+
'unifi_protect',
|
|
156
|
+
],
|
|
145
157
|
thermostats: ['ecobee', 'nest', 'sensi', 'honeywell_resideo', 'first_alert'],
|
|
146
158
|
noise_sensors: ['minut', 'noiseaware'],
|
|
147
159
|
access_control_systems: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-provider.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/devices/device-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAG3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,mBAAmB,EAAE,qBAAqB;IAC1C,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,eAAe;IAC9B,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,eAAe,EAAE,iBAAiB;IAClC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,cAAc;IAC5B,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;IAC1B,iBAAiB,EAAE,mBAAmB;IACtC,qBAAqB,EAAE,uBAAuB;IAC9C,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,aAAa,EA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AQ;QACR,QAAQ;QACR,MAAM;QACN,MAAM;QACN,OAAO;QACP,mBAAmB;QACnB,aAAa;QACb,YAAY;QACZ,+BAA+B;QAC/B,oBAAoB;QACpB,OAAO;QACP,QAAQ;QACR,OAAO;QACP,mBAAmB;QACnB,eAAe;QACf,MAAM;QACN,SAAS;QACT,OAAO;QACP,UAAU;QACV,mBAAmB;QACnB,MAAM;QACN,UAAU;QACV,WAAW;QACX,SAAS;QACT,OAAO;QACP,mBAAmB;QACnB,OAAO;KACR;IAED,mBAAmB,EAAE;QACnB,QAAQ;QACR,QAAQ;QACR,SAAS;QACT,MAAM;QACN,aAAa;QACb,MAAM;QACN,QAAQ;QACR,SAAS;QACT,WAAW;QACX,MAAM;QACN,QAAQ;QACR,OAAO;QACP,UAAU;QACV,mBAAmB;QACnB,UAAU;QACV,OAAO;QACP,WAAW;QACX,mBAAmB;QACnB,OAAO;KACR;IAED,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"device-provider.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/devices/device-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAG3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,mBAAmB,EAAE,qBAAqB;IAC1C,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,eAAe;IAC9B,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;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CAAC,MAAM,gCAAgC,GAGzC;IACF,MAAM,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAgB,CAAC;IAChE,mBAAmB,EAAE,CAAC,MAAM,CAAC;IAC7B,IAAI,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,QAAQ,CAAC;IACxE,WAAW,EAAE,CAAC,YAAY,CAAC;IAC3B,aAAa,EAAE,CAAC,cAAc,CAAC;IAC/B,sBAAsB,EAAE,CAAC,gBAAgB,CAAC;IAC1C,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,UAAU,EAAE,EAAE;IACd,aAAa,EAAE;QACb,MAAM;QACN,YAAY;QACZ,cAAc;QACd,gBAAgB;QAChB,QAAQ;QACR,SAAS;KACV;CACF,CAAA"}
|
|
@@ -56198,6 +56198,22 @@ const openapi = {
|
|
|
56198
56198
|
nullable: true,
|
|
56199
56199
|
type: 'string',
|
|
56200
56200
|
},
|
|
56201
|
+
payment_failure: {
|
|
56202
|
+
nullable: true,
|
|
56203
|
+
properties: {
|
|
56204
|
+
amount_due_cents: {
|
|
56205
|
+
format: 'float',
|
|
56206
|
+
nullable: true,
|
|
56207
|
+
type: 'number',
|
|
56208
|
+
},
|
|
56209
|
+
grace_ends_at: {
|
|
56210
|
+
format: 'date-time',
|
|
56211
|
+
type: 'string',
|
|
56212
|
+
},
|
|
56213
|
+
},
|
|
56214
|
+
required: ['grace_ends_at', 'amount_due_cents'],
|
|
56215
|
+
type: 'object',
|
|
56216
|
+
},
|
|
56201
56217
|
pending_upgrade: {
|
|
56202
56218
|
nullable: true,
|
|
56203
56219
|
properties: {
|
|
@@ -56242,6 +56258,7 @@ const openapi = {
|
|
|
56242
56258
|
'current_period_started_at',
|
|
56243
56259
|
'current_period_ends_at',
|
|
56244
56260
|
'past_due_since',
|
|
56261
|
+
'payment_failure',
|
|
56245
56262
|
'canceled_at',
|
|
56246
56263
|
'scheduled_package_quantity',
|
|
56247
56264
|
'scheduled_price_cents',
|
|
@@ -56648,6 +56665,213 @@ const openapi = {
|
|
|
56648
56665
|
'x-undocumented': 'Internal endpoint for Console',
|
|
56649
56666
|
},
|
|
56650
56667
|
},
|
|
56668
|
+
'/seam/console/v1/credits/payment_method/confirm': {
|
|
56669
|
+
post: {
|
|
56670
|
+
description: "Finishes a payment method update after the Stripe Checkout returns: saves the card as the default, retries the open credit invoices and refreshes the subscription's payment status. Safe to call more than once.",
|
|
56671
|
+
operationId: 'seamConsoleV1CreditsPaymentMethodConfirmPost',
|
|
56672
|
+
requestBody: {
|
|
56673
|
+
content: {
|
|
56674
|
+
'application/json': {
|
|
56675
|
+
schema: {
|
|
56676
|
+
properties: {
|
|
56677
|
+
checkout_session_id: { minLength: 1, type: 'string' },
|
|
56678
|
+
organization_id: { format: 'uuid', type: 'string' },
|
|
56679
|
+
},
|
|
56680
|
+
required: ['organization_id', 'checkout_session_id'],
|
|
56681
|
+
type: 'object',
|
|
56682
|
+
},
|
|
56683
|
+
},
|
|
56684
|
+
},
|
|
56685
|
+
},
|
|
56686
|
+
responses: {
|
|
56687
|
+
'200': {
|
|
56688
|
+
content: {
|
|
56689
|
+
'application/json': {
|
|
56690
|
+
schema: {
|
|
56691
|
+
properties: {
|
|
56692
|
+
credit_subscription: {
|
|
56693
|
+
nullable: true,
|
|
56694
|
+
properties: {
|
|
56695
|
+
canceled_at: {
|
|
56696
|
+
format: 'date-time',
|
|
56697
|
+
nullable: true,
|
|
56698
|
+
type: 'string',
|
|
56699
|
+
},
|
|
56700
|
+
credit_subscription_id: {
|
|
56701
|
+
format: 'uuid',
|
|
56702
|
+
type: 'string',
|
|
56703
|
+
},
|
|
56704
|
+
current_period_ends_at: {
|
|
56705
|
+
format: 'date-time',
|
|
56706
|
+
nullable: true,
|
|
56707
|
+
type: 'string',
|
|
56708
|
+
},
|
|
56709
|
+
current_period_started_at: {
|
|
56710
|
+
format: 'date-time',
|
|
56711
|
+
nullable: true,
|
|
56712
|
+
type: 'string',
|
|
56713
|
+
},
|
|
56714
|
+
package_quantity: { format: 'float', type: 'number' },
|
|
56715
|
+
past_due_since: {
|
|
56716
|
+
format: 'date-time',
|
|
56717
|
+
nullable: true,
|
|
56718
|
+
type: 'string',
|
|
56719
|
+
},
|
|
56720
|
+
payment_failure: {
|
|
56721
|
+
nullable: true,
|
|
56722
|
+
properties: {
|
|
56723
|
+
amount_due_cents: {
|
|
56724
|
+
format: 'float',
|
|
56725
|
+
nullable: true,
|
|
56726
|
+
type: 'number',
|
|
56727
|
+
},
|
|
56728
|
+
grace_ends_at: {
|
|
56729
|
+
format: 'date-time',
|
|
56730
|
+
type: 'string',
|
|
56731
|
+
},
|
|
56732
|
+
},
|
|
56733
|
+
required: ['grace_ends_at', 'amount_due_cents'],
|
|
56734
|
+
type: 'object',
|
|
56735
|
+
},
|
|
56736
|
+
pending_upgrade: {
|
|
56737
|
+
nullable: true,
|
|
56738
|
+
properties: {
|
|
56739
|
+
hosted_invoice_url: {
|
|
56740
|
+
nullable: true,
|
|
56741
|
+
type: 'string',
|
|
56742
|
+
},
|
|
56743
|
+
package_quantity: {
|
|
56744
|
+
format: 'float',
|
|
56745
|
+
type: 'number',
|
|
56746
|
+
},
|
|
56747
|
+
},
|
|
56748
|
+
required: ['package_quantity', 'hosted_invoice_url'],
|
|
56749
|
+
type: 'object',
|
|
56750
|
+
},
|
|
56751
|
+
price_cents: { format: 'float', type: 'number' },
|
|
56752
|
+
scheduled_change_at: {
|
|
56753
|
+
format: 'date-time',
|
|
56754
|
+
nullable: true,
|
|
56755
|
+
type: 'string',
|
|
56756
|
+
},
|
|
56757
|
+
scheduled_package_quantity: {
|
|
56758
|
+
format: 'float',
|
|
56759
|
+
nullable: true,
|
|
56760
|
+
type: 'number',
|
|
56761
|
+
},
|
|
56762
|
+
scheduled_price_cents: {
|
|
56763
|
+
format: 'float',
|
|
56764
|
+
nullable: true,
|
|
56765
|
+
type: 'number',
|
|
56766
|
+
},
|
|
56767
|
+
status: { type: 'string' },
|
|
56768
|
+
},
|
|
56769
|
+
required: [
|
|
56770
|
+
'credit_subscription_id',
|
|
56771
|
+
'status',
|
|
56772
|
+
'package_quantity',
|
|
56773
|
+
'price_cents',
|
|
56774
|
+
'current_period_started_at',
|
|
56775
|
+
'current_period_ends_at',
|
|
56776
|
+
'past_due_since',
|
|
56777
|
+
'payment_failure',
|
|
56778
|
+
'canceled_at',
|
|
56779
|
+
'scheduled_package_quantity',
|
|
56780
|
+
'scheduled_price_cents',
|
|
56781
|
+
'scheduled_change_at',
|
|
56782
|
+
'pending_upgrade',
|
|
56783
|
+
],
|
|
56784
|
+
type: 'object',
|
|
56785
|
+
},
|
|
56786
|
+
ok: { type: 'boolean' },
|
|
56787
|
+
paid_invoice_count: { format: 'float', type: 'number' },
|
|
56788
|
+
unpaid_invoice_count: { format: 'float', type: 'number' },
|
|
56789
|
+
},
|
|
56790
|
+
required: [
|
|
56791
|
+
'credit_subscription',
|
|
56792
|
+
'paid_invoice_count',
|
|
56793
|
+
'unpaid_invoice_count',
|
|
56794
|
+
'ok',
|
|
56795
|
+
],
|
|
56796
|
+
type: 'object',
|
|
56797
|
+
},
|
|
56798
|
+
},
|
|
56799
|
+
},
|
|
56800
|
+
description: 'OK',
|
|
56801
|
+
},
|
|
56802
|
+
'400': { description: 'Bad Request' },
|
|
56803
|
+
'401': { description: 'Unauthorized' },
|
|
56804
|
+
},
|
|
56805
|
+
security: [{ console_session_without_workspace: [] }],
|
|
56806
|
+
summary: '/seam/console/v1/credits/payment_method/confirm',
|
|
56807
|
+
tags: [],
|
|
56808
|
+
'x-fern-sdk-group-name': [
|
|
56809
|
+
'seam',
|
|
56810
|
+
'console',
|
|
56811
|
+
'v1',
|
|
56812
|
+
'credits',
|
|
56813
|
+
'payment_method',
|
|
56814
|
+
],
|
|
56815
|
+
'x-fern-sdk-method-name': 'confirm',
|
|
56816
|
+
'x-response-key': null,
|
|
56817
|
+
'x-title': 'Confirm a Credit Payment Method Update',
|
|
56818
|
+
'x-undocumented': 'Internal endpoint for Console',
|
|
56819
|
+
},
|
|
56820
|
+
},
|
|
56821
|
+
'/seam/console/v1/credits/payment_method/update': {
|
|
56822
|
+
post: {
|
|
56823
|
+
description: "Starts a Stripe Checkout that saves a new default card for the organization's credit subscription. Open credit invoices are retried once the card is confirmed.",
|
|
56824
|
+
operationId: 'seamConsoleV1CreditsPaymentMethodUpdatePost',
|
|
56825
|
+
requestBody: {
|
|
56826
|
+
content: {
|
|
56827
|
+
'application/json': {
|
|
56828
|
+
schema: {
|
|
56829
|
+
properties: {
|
|
56830
|
+
cancel_url: { format: 'uri', type: 'string' },
|
|
56831
|
+
organization_id: { format: 'uuid', type: 'string' },
|
|
56832
|
+
success_url: { format: 'uri', type: 'string' },
|
|
56833
|
+
},
|
|
56834
|
+
required: ['organization_id', 'success_url', 'cancel_url'],
|
|
56835
|
+
type: 'object',
|
|
56836
|
+
},
|
|
56837
|
+
},
|
|
56838
|
+
},
|
|
56839
|
+
},
|
|
56840
|
+
responses: {
|
|
56841
|
+
'200': {
|
|
56842
|
+
content: {
|
|
56843
|
+
'application/json': {
|
|
56844
|
+
schema: {
|
|
56845
|
+
properties: {
|
|
56846
|
+
checkout_url: { format: 'uri', type: 'string' },
|
|
56847
|
+
ok: { type: 'boolean' },
|
|
56848
|
+
},
|
|
56849
|
+
required: ['checkout_url', 'ok'],
|
|
56850
|
+
type: 'object',
|
|
56851
|
+
},
|
|
56852
|
+
},
|
|
56853
|
+
},
|
|
56854
|
+
description: 'OK',
|
|
56855
|
+
},
|
|
56856
|
+
'400': { description: 'Bad Request' },
|
|
56857
|
+
'401': { description: 'Unauthorized' },
|
|
56858
|
+
},
|
|
56859
|
+
security: [{ console_session_without_workspace: [] }],
|
|
56860
|
+
summary: '/seam/console/v1/credits/payment_method/update',
|
|
56861
|
+
tags: [],
|
|
56862
|
+
'x-fern-sdk-group-name': [
|
|
56863
|
+
'seam',
|
|
56864
|
+
'console',
|
|
56865
|
+
'v1',
|
|
56866
|
+
'credits',
|
|
56867
|
+
'payment_method',
|
|
56868
|
+
],
|
|
56869
|
+
'x-fern-sdk-method-name': 'update',
|
|
56870
|
+
'x-response-key': null,
|
|
56871
|
+
'x-title': 'Start a Credit Payment Method Update',
|
|
56872
|
+
'x-undocumented': 'Internal endpoint for Console',
|
|
56873
|
+
},
|
|
56874
|
+
},
|
|
56651
56875
|
'/seam/console/v1/credits/purchases/get': {
|
|
56652
56876
|
post: {
|
|
56653
56877
|
description: 'Advances a pending credit subscription purchase and returns its status, including whether its Stripe Checkout was left unfinished.',
|
|
@@ -56774,6 +56998,22 @@ const openapi = {
|
|
|
56774
56998
|
nullable: true,
|
|
56775
56999
|
type: 'string',
|
|
56776
57000
|
},
|
|
57001
|
+
payment_failure: {
|
|
57002
|
+
nullable: true,
|
|
57003
|
+
properties: {
|
|
57004
|
+
amount_due_cents: {
|
|
57005
|
+
format: 'float',
|
|
57006
|
+
nullable: true,
|
|
57007
|
+
type: 'number',
|
|
57008
|
+
},
|
|
57009
|
+
grace_ends_at: {
|
|
57010
|
+
format: 'date-time',
|
|
57011
|
+
type: 'string',
|
|
57012
|
+
},
|
|
57013
|
+
},
|
|
57014
|
+
required: ['grace_ends_at', 'amount_due_cents'],
|
|
57015
|
+
type: 'object',
|
|
57016
|
+
},
|
|
56777
57017
|
pending_upgrade: {
|
|
56778
57018
|
nullable: true,
|
|
56779
57019
|
properties: {
|
|
@@ -56815,6 +57055,7 @@ const openapi = {
|
|
|
56815
57055
|
'current_period_started_at',
|
|
56816
57056
|
'current_period_ends_at',
|
|
56817
57057
|
'past_due_since',
|
|
57058
|
+
'payment_failure',
|
|
56818
57059
|
'canceled_at',
|
|
56819
57060
|
'scheduled_package_quantity',
|
|
56820
57061
|
'scheduled_price_cents',
|
|
@@ -56936,6 +57177,22 @@ const openapi = {
|
|
|
56936
57177
|
nullable: true,
|
|
56937
57178
|
type: 'string',
|
|
56938
57179
|
},
|
|
57180
|
+
payment_failure: {
|
|
57181
|
+
nullable: true,
|
|
57182
|
+
properties: {
|
|
57183
|
+
amount_due_cents: {
|
|
57184
|
+
format: 'float',
|
|
57185
|
+
nullable: true,
|
|
57186
|
+
type: 'number',
|
|
57187
|
+
},
|
|
57188
|
+
grace_ends_at: {
|
|
57189
|
+
format: 'date-time',
|
|
57190
|
+
type: 'string',
|
|
57191
|
+
},
|
|
57192
|
+
},
|
|
57193
|
+
required: ['grace_ends_at', 'amount_due_cents'],
|
|
57194
|
+
type: 'object',
|
|
57195
|
+
},
|
|
56939
57196
|
pending_upgrade: {
|
|
56940
57197
|
nullable: true,
|
|
56941
57198
|
properties: {
|
|
@@ -56977,6 +57234,7 @@ const openapi = {
|
|
|
56977
57234
|
'current_period_started_at',
|
|
56978
57235
|
'current_period_ends_at',
|
|
56979
57236
|
'past_due_since',
|
|
57237
|
+
'payment_failure',
|
|
56980
57238
|
'canceled_at',
|
|
56981
57239
|
'scheduled_package_quantity',
|
|
56982
57240
|
'scheduled_price_cents',
|
|
@@ -57063,6 +57321,22 @@ const openapi = {
|
|
|
57063
57321
|
nullable: true,
|
|
57064
57322
|
type: 'string',
|
|
57065
57323
|
},
|
|
57324
|
+
payment_failure: {
|
|
57325
|
+
nullable: true,
|
|
57326
|
+
properties: {
|
|
57327
|
+
amount_due_cents: {
|
|
57328
|
+
format: 'float',
|
|
57329
|
+
nullable: true,
|
|
57330
|
+
type: 'number',
|
|
57331
|
+
},
|
|
57332
|
+
grace_ends_at: {
|
|
57333
|
+
format: 'date-time',
|
|
57334
|
+
type: 'string',
|
|
57335
|
+
},
|
|
57336
|
+
},
|
|
57337
|
+
required: ['grace_ends_at', 'amount_due_cents'],
|
|
57338
|
+
type: 'object',
|
|
57339
|
+
},
|
|
57066
57340
|
pending_upgrade: {
|
|
57067
57341
|
nullable: true,
|
|
57068
57342
|
properties: {
|
|
@@ -57104,6 +57378,7 @@ const openapi = {
|
|
|
57104
57378
|
'current_period_started_at',
|
|
57105
57379
|
'current_period_ends_at',
|
|
57106
57380
|
'past_due_since',
|
|
57381
|
+
'payment_failure',
|
|
57107
57382
|
'canceled_at',
|
|
57108
57383
|
'scheduled_package_quantity',
|
|
57109
57384
|
'scheduled_price_cents',
|
|
@@ -57191,6 +57466,22 @@ const openapi = {
|
|
|
57191
57466
|
nullable: true,
|
|
57192
57467
|
type: 'string',
|
|
57193
57468
|
},
|
|
57469
|
+
payment_failure: {
|
|
57470
|
+
nullable: true,
|
|
57471
|
+
properties: {
|
|
57472
|
+
amount_due_cents: {
|
|
57473
|
+
format: 'float',
|
|
57474
|
+
nullable: true,
|
|
57475
|
+
type: 'number',
|
|
57476
|
+
},
|
|
57477
|
+
grace_ends_at: {
|
|
57478
|
+
format: 'date-time',
|
|
57479
|
+
type: 'string',
|
|
57480
|
+
},
|
|
57481
|
+
},
|
|
57482
|
+
required: ['grace_ends_at', 'amount_due_cents'],
|
|
57483
|
+
type: 'object',
|
|
57484
|
+
},
|
|
57194
57485
|
pending_upgrade: {
|
|
57195
57486
|
nullable: true,
|
|
57196
57487
|
properties: {
|
|
@@ -57232,6 +57523,7 @@ const openapi = {
|
|
|
57232
57523
|
'current_period_started_at',
|
|
57233
57524
|
'current_period_ends_at',
|
|
57234
57525
|
'past_due_since',
|
|
57526
|
+
'payment_failure',
|
|
57235
57527
|
'canceled_at',
|
|
57236
57528
|
'scheduled_package_quantity',
|
|
57237
57529
|
'scheduled_price_cents',
|