@vertracloud/api-types 0.2.5 → 0.3.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/v1.mjs CHANGED
@@ -405,9 +405,32 @@ var API_ERROR_CODES = {
405
405
  APP_NOT_FOUND_IN_WORKSPACE: "APP_NOT_FOUND_IN_WORKSPACE",
406
406
  BUILD_FAILED: "BUILD_FAILED",
407
407
  BUILD_TIMEOUT: "BUILD_TIMEOUT",
408
+ /** 400 — billing details failed validation; the field is in `details.path`. */
409
+ BILLING_DETAILS_INVALID: "BILLING_DETAILS_INVALID",
410
+ /** 402 — the bank refused the card charge. */
411
+ CARD_DECLINED: "CARD_DECLINED",
412
+ /** 400 — the plan can only be paid by PIX. */
413
+ CARD_NOT_ALLOWED_FOR_PLAN: "CARD_NOT_ALLOWED_FOR_PLAN",
414
+ CARD_NOT_FOUND: "CARD_NOT_FOUND",
408
415
  CERTIFICATE_NOT_FOUND: "CERTIFICATE_NOT_FOUND",
409
416
  CLEANUP_LANGUAGE_SAME_AS_CURRENT: "CLEANUP_LANGUAGE_SAME_AS_CURRENT",
410
417
  CONTAINER_ALREADY_RUNNING: "CONTAINER_ALREADY_RUNNING",
418
+ /** 400 — no active coupon with this code. */
419
+ COUPON_INVALID: "COUPON_INVALID",
420
+ COUPON_INACTIVE: "COUPON_INACTIVE",
421
+ COUPON_NOT_STARTED: "COUPON_NOT_STARTED",
422
+ COUPON_EXPIRED: "COUPON_EXPIRED",
423
+ /** 400 — the coupon reached its total number of uses. */
424
+ COUPON_EXHAUSTED: "COUPON_EXHAUSTED",
425
+ /** 400 — the account already used this coupon as many times as allowed. */
426
+ COUPON_USER_LIMIT: "COUPON_USER_LIMIT",
427
+ /** 400 — the coupon is not available to this account. */
428
+ COUPON_AUDIENCE: "COUPON_AUDIENCE",
429
+ /** 400 — the coupon does not apply to this plan. */
430
+ COUPON_PLAN: "COUPON_PLAN",
431
+ /** 400 — the coupon does not apply to this billing period. */
432
+ COUPON_DURATION: "COUPON_DURATION",
433
+ COUPON_PAYMENT_METHOD: "COUPON_PAYMENT_METHOD",
411
434
  CUSTOM_DOMAIN_RECORD_NOT_FOUND: "CUSTOM_DOMAIN_RECORD_NOT_FOUND",
412
435
  CUSTOM_DOMAIN_REGISTRATION_FAILED: "CUSTOM_DOMAIN_REGISTRATION_FAILED",
413
436
  DAILY_QUOTA_EXCEEDED: "DAILY_QUOTA_EXCEEDED",
@@ -483,9 +506,12 @@ var API_ERROR_CODES = {
483
506
  ORDER_NOT_PAID: "ORDER_NOT_PAID",
484
507
  ORDER_NOT_PAYABLE: "ORDER_NOT_PAYABLE",
485
508
  ORDER_NOT_REFUNDED: "ORDER_NOT_REFUNDED",
509
+ /** 404 — the order has no payment receipt (unpaid, redeemed code or paid before receipts existed). */
510
+ ORDER_RECEIPT_UNAVAILABLE: "ORDER_RECEIPT_UNAVAILABLE",
486
511
  OWNER_APP_WITHOUT_LIMITS: "OWNER_APP_WITHOUT_LIMITS",
487
512
  PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE",
488
513
  PENDING_ORDER_LIMIT_REACHED: "PENDING_ORDER_LIMIT_REACHED",
514
+ PAYMENT_METHOD_UNAVAILABLE: "PAYMENT_METHOD_UNAVAILABLE",
489
515
  PLAN_DOES_NOT_SUPPORT_CUSTOM_DOMAIN: "PLAN_DOES_NOT_SUPPORT_CUSTOM_DOMAIN",
490
516
  PLAN_DOES_NOT_SUPPORT_CUSTOM_SUBDOMAIN: "PLAN_DOES_NOT_SUPPORT_CUSTOM_SUBDOMAIN",
491
517
  PLAN_DOES_NOT_SUPPORT_WEB_PUBLISH: "PLAN_DOES_NOT_SUPPORT_WEB_PUBLISH",
@@ -508,6 +534,8 @@ var API_ERROR_CODES = {
508
534
  SUBDOMAIN_CHANGE_RATE_LIMITED: "SUBDOMAIN_CHANGE_RATE_LIMITED",
509
535
  SUBDOMAIN_FORBIDDEN: "SUBDOMAIN_FORBIDDEN",
510
536
  SUBDOMAIN_TAKEN: "SUBDOMAIN_TAKEN",
537
+ /** 400 — the CPF or CNPJ is not valid. */
538
+ TAX_ID_INVALID: "TAX_ID_INVALID",
511
539
  TYPE_MISMATCH: "TYPE_MISMATCH",
512
540
  USER_LIMITS_NOT_FOUND: "USER_LIMITS_NOT_FOUND",
513
541
  USER_NOT_FOUND: "USER_NOT_FOUND",
@@ -582,6 +610,12 @@ var ApplicationRealtimeEventType = {
582
610
  HEARTBEAT: "heartbeat"
583
611
  };
584
612
 
613
+ // payloads/v1/billing.ts
614
+ var BillingTaxIdType = {
615
+ CPF: "cpf",
616
+ CNPJ: "cnpj"
617
+ };
618
+
585
619
  // payloads/v1/database.ts
586
620
  var DatabaseType = {
587
621
  POSTGRESQL: 1,
@@ -658,8 +692,14 @@ var OrderType = {
658
692
  };
659
693
  var OrderProvider = {
660
694
  PIX: "pix",
695
+ CARD: "card",
661
696
  REDEEM_CODE: "redeem_code"
662
697
  };
698
+ var OrderCardPaymentStatus = {
699
+ SUCCEEDED: "succeeded",
700
+ REQUIRES_ACTION: "requires_action",
701
+ PROCESSING: "processing"
702
+ };
663
703
 
664
704
  // payloads/v1/snapshot.ts
665
705
  var ResourceType = {
@@ -709,6 +749,7 @@ export {
709
749
  ApplicationStatus,
710
750
  ApplicationType,
711
751
  ApplicationVersion,
752
+ BillingTaxIdType,
712
753
  DatabaseCluster,
713
754
  DatabaseFilterOperator,
714
755
  DatabaseRedisKeyType,
@@ -718,6 +759,7 @@ export {
718
759
  DatabaseType,
719
760
  NotificationImportance,
720
761
  NotificationType,
762
+ OrderCardPaymentStatus,
721
763
  OrderProvider,
722
764
  OrderStatus,
723
765
  OrderType,