@nhost/stripe-graphql-js 0.0.4 → 0.0.6

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.
Files changed (115) hide show
  1. package/README.md +8 -0
  2. package/dist/builder.d.ts +7 -1
  3. package/dist/builder.d.ts.map +1 -1
  4. package/dist/builder.js.map +1 -1
  5. package/dist/schema/address.js +24 -6
  6. package/dist/schema/address.js.map +1 -1
  7. package/dist/schema/billing-portal-session.js +17 -5
  8. package/dist/schema/billing-portal-session.js.map +1 -1
  9. package/dist/schema/charge.d.ts +2 -0
  10. package/dist/schema/charge.d.ts.map +1 -0
  11. package/dist/schema/charge.js +85 -0
  12. package/dist/schema/charge.js.map +1 -0
  13. package/dist/schema/charges.d.ts +2 -0
  14. package/dist/schema/charges.d.ts.map +1 -0
  15. package/dist/schema/charges.js +16 -0
  16. package/dist/schema/charges.js.map +1 -0
  17. package/dist/schema/connectedAccount.d.ts +2 -0
  18. package/dist/schema/connectedAccount.d.ts.map +1 -0
  19. package/dist/schema/connectedAccount.js +30 -0
  20. package/dist/schema/connectedAccount.js.map +1 -0
  21. package/dist/schema/connectedAccounts.d.ts +2 -0
  22. package/dist/schema/connectedAccounts.d.ts.map +1 -0
  23. package/dist/schema/connectedAccounts.js +16 -0
  24. package/dist/schema/connectedAccounts.js.map +1 -0
  25. package/dist/schema/customer-shipping.js +4 -0
  26. package/dist/schema/customer-shipping.js.map +1 -1
  27. package/dist/schema/customer-tax-location.js +4 -1
  28. package/dist/schema/customer-tax-location.js.map +1 -1
  29. package/dist/schema/customer-tax.js +2 -0
  30. package/dist/schema/customer-tax.js.map +1 -1
  31. package/dist/schema/customer.js +48 -5
  32. package/dist/schema/customer.js.map +1 -1
  33. package/dist/schema/customers.js +6 -2
  34. package/dist/schema/customers.js.map +1 -1
  35. package/dist/schema/index.d.ts +6 -0
  36. package/dist/schema/index.d.ts.map +1 -1
  37. package/dist/schema/index.js +6 -0
  38. package/dist/schema/index.js.map +1 -1
  39. package/dist/schema/invoice-automatic-tax.js +4 -1
  40. package/dist/schema/invoice-automatic-tax.js.map +1 -1
  41. package/dist/schema/invoice-custom-field.js +6 -2
  42. package/dist/schema/invoice-custom-field.js.map +1 -1
  43. package/dist/schema/invoice-customer-shipping.js +4 -0
  44. package/dist/schema/invoice-customer-shipping.js.map +1 -1
  45. package/dist/schema/invoice-customer-tax-id.js +4 -1
  46. package/dist/schema/invoice-customer-tax-id.js.map +1 -1
  47. package/dist/schema/invoice-line-item-period.js +6 -2
  48. package/dist/schema/invoice-line-item-period.js.map +1 -1
  49. package/dist/schema/invoice-line-item-tax-amount.js +6 -2
  50. package/dist/schema/invoice-line-item-tax-amount.js.map +1 -1
  51. package/dist/schema/invoice-line-item.js +33 -8
  52. package/dist/schema/invoice-line-item.js.map +1 -1
  53. package/dist/schema/invoice-line-items.js +6 -2
  54. package/dist/schema/invoice-line-items.js.map +1 -1
  55. package/dist/schema/invoice.js +103 -21
  56. package/dist/schema/invoice.js.map +1 -1
  57. package/dist/schema/invoices.js +6 -2
  58. package/dist/schema/invoices.js.map +1 -1
  59. package/dist/schema/payment-intent.d.ts +2 -0
  60. package/dist/schema/payment-intent.d.ts.map +1 -0
  61. package/dist/schema/payment-intent.js +79 -0
  62. package/dist/schema/payment-intent.js.map +1 -0
  63. package/dist/schema/payment-intents.d.ts +2 -0
  64. package/dist/schema/payment-intents.d.ts.map +1 -0
  65. package/dist/schema/payment-intents.js +15 -0
  66. package/dist/schema/payment-intents.js.map +1 -0
  67. package/dist/schema/payment-method-billing-details.js +4 -0
  68. package/dist/schema/payment-method-billing-details.js.map +1 -1
  69. package/dist/schema/payment-method-card-checks.js +3 -0
  70. package/dist/schema/payment-method-card-checks.js.map +1 -1
  71. package/dist/schema/payment-method-card-networks.js +4 -1
  72. package/dist/schema/payment-method-card-networks.js.map +1 -1
  73. package/dist/schema/payment-method-card-three-d-secure-usage.js +3 -1
  74. package/dist/schema/payment-method-card-three-d-secure-usage.js.map +1 -1
  75. package/dist/schema/payment-method-card-wallet-masterpass.js +4 -0
  76. package/dist/schema/payment-method-card-wallet-masterpass.js.map +1 -1
  77. package/dist/schema/payment-method-card-wallet-visa-checkout.js +4 -0
  78. package/dist/schema/payment-method-card-wallet-visa-checkout.js.map +1 -1
  79. package/dist/schema/payment-method-card-wallet.d.ts.map +1 -1
  80. package/dist/schema/payment-method-card-wallet.js +5 -1
  81. package/dist/schema/payment-method-card-wallet.js.map +1 -1
  82. package/dist/schema/payment-method-card.js +19 -4
  83. package/dist/schema/payment-method-card.js.map +1 -1
  84. package/dist/schema/payment-method.js +17 -5
  85. package/dist/schema/payment-method.js.map +1 -1
  86. package/dist/schema/payment-methods.d.ts.map +1 -1
  87. package/dist/schema/payment-methods.js +6 -2
  88. package/dist/schema/payment-methods.js.map +1 -1
  89. package/dist/schema/plan.js +39 -10
  90. package/dist/schema/plan.js.map +1 -1
  91. package/dist/schema/price.js +31 -8
  92. package/dist/schema/price.js.map +1 -1
  93. package/dist/schema/product.js +36 -8
  94. package/dist/schema/product.js.map +1 -1
  95. package/dist/schema/stripe.js +25 -0
  96. package/dist/schema/stripe.js.map +1 -1
  97. package/dist/schema/subscription-automatic-tax.js +3 -1
  98. package/dist/schema/subscription-automatic-tax.js.map +1 -1
  99. package/dist/schema/subscription-billing-thresholds.js +2 -0
  100. package/dist/schema/subscription-billing-thresholds.js.map +1 -1
  101. package/dist/schema/subscription-item-billing-thresholds.js +1 -0
  102. package/dist/schema/subscription-item-billing-thresholds.js.map +1 -1
  103. package/dist/schema/subscription-item.js +17 -4
  104. package/dist/schema/subscription-item.js.map +1 -1
  105. package/dist/schema/subscription-items.js +6 -2
  106. package/dist/schema/subscription-items.js.map +1 -1
  107. package/dist/schema/subscription.js +56 -13
  108. package/dist/schema/subscription.js.map +1 -1
  109. package/dist/schema/subscriptions.js +6 -2
  110. package/dist/schema/subscriptions.js.map +1 -1
  111. package/dist/schema/test-clock.js +22 -7
  112. package/dist/schema/test-clock.js.map +1 -1
  113. package/dist/types.d.ts +8 -0
  114. package/dist/types.d.ts.map +1 -1
  115. package/package.json +5 -6
@@ -45,6 +45,12 @@ require("./product");
45
45
  require("./tax-rate");
46
46
  require("./test-clock");
47
47
  require("./billing-portal-session");
48
+ require("./payment-intent");
49
+ require("./payment-intents");
50
+ require("./charges");
51
+ require("./charge");
52
+ require("./connectedAccount");
53
+ require("./connectedAccounts");
48
54
  const builder_1 = require("../builder");
49
55
  exports.schema = builder_1.builder.toSchema();
50
56
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";;;AAAA,qBAAkB;AAClB,sBAAmB;AACnB,uBAAoB;AACpB,+BAA4B;AAC5B,0BAAuB;AACvB,mCAAgC;AAChC,6BAA0B;AAC1B,4BAAyB;AACzB,4CAAyC;AACzC,iCAA8B;AAC9B,wCAAqC;AACrC,0CAAuC;AACvC,sDAAmD;AACnD,mDAAgD;AAChD,sDAAmD;AACnD,wCAAqC;AACrC,oBAAiB;AACjB,2BAAwB;AACxB,0BAAuB;AACvB,gCAA6B;AAC7B,+BAA4B;AAC5B,kDAA+C;AAC/C,wCAAqC;AACrC,6CAA0C;AAC1C,2CAAwC;AACxC,sBAAmB;AACnB,qBAAkB;AAClB,mCAAgC;AAChC,kCAA+B;AAC/B,uCAAoC;AACpC,qCAAkC;AAClC,gCAA6B;AAC7B,+BAA4B;AAC5B,sCAAmC;AACnC,0CAAuC;AACvC,uCAAoC;AACpC,wCAAqC;AACrC,kBAAe;AACf,kCAA+B;AAC/B,mBAAgB;AAChB,qBAAkB;AAClB,sBAAmB;AACnB,wBAAqB;AACrB,oCAAiC;AAEjC,wCAAoC;AAEvB,QAAA,MAAM,GAAG,iBAAO,CAAC,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";;;AAAA,qBAAkB;AAClB,sBAAmB;AACnB,uBAAoB;AACpB,+BAA4B;AAC5B,0BAAuB;AACvB,mCAAgC;AAChC,6BAA0B;AAC1B,4BAAyB;AACzB,4CAAyC;AACzC,iCAA8B;AAC9B,wCAAqC;AACrC,0CAAuC;AACvC,sDAAmD;AACnD,mDAAgD;AAChD,sDAAmD;AACnD,wCAAqC;AACrC,oBAAiB;AACjB,2BAAwB;AACxB,0BAAuB;AACvB,gCAA6B;AAC7B,+BAA4B;AAC5B,kDAA+C;AAC/C,wCAAqC;AACrC,6CAA0C;AAC1C,2CAAwC;AACxC,sBAAmB;AACnB,qBAAkB;AAClB,mCAAgC;AAChC,kCAA+B;AAC/B,uCAAoC;AACpC,qCAAkC;AAClC,gCAA6B;AAC7B,+BAA4B;AAC5B,sCAAmC;AACnC,0CAAuC;AACvC,uCAAoC;AACpC,wCAAqC;AACrC,kBAAe;AACf,kCAA+B;AAC/B,mBAAgB;AAChB,qBAAkB;AAClB,sBAAmB;AACnB,wBAAqB;AACrB,oCAAiC;AACjC,4BAAyB;AACzB,6BAA0B;AAC1B,qBAAkB;AAClB,oBAAiB;AACjB,8BAA2B;AAC3B,+BAA4B;AAE5B,wCAAoC;AAEvB,QAAA,MAAM,GAAG,iBAAO,CAAC,QAAQ,EAAE,CAAA"}
@@ -3,8 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const builder_1 = require("../builder");
4
4
  builder_1.builder.objectType('StripeInvoiceAutomaticTax', {
5
5
  fields: (t) => ({
6
- enabled: t.exposeBoolean('enabled'),
6
+ enabled: t.exposeBoolean('enabled', {
7
+ description: `Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or \`tax_behavior=unspecified\`) cannot be added to automatic tax invoices.`
8
+ }),
7
9
  status: t.exposeString('status', {
10
+ description: `The status of the most recent automated tax calculation for this invoice.`,
8
11
  nullable: true
9
12
  })
10
13
  })
@@ -1 +1 @@
1
- {"version":3,"file":"invoice-automatic-tax.js","sourceRoot":"","sources":["../../src/schema/invoice-automatic-tax.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,2BAA2B,EAAE;IAC9C,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC;QACnC,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,EAAE;YAC/B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"invoice-automatic-tax.js","sourceRoot":"","sources":["../../src/schema/invoice-automatic-tax.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,2BAA2B,EAAE;IAC9C,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,aAAa,CAAC,SAAS,EAAE;YAClC,WAAW,EAAE,0RAA0R;SACxS,CAAC;QACF,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,EAAE;YAC/B,WAAW,EAAE,2EAA2E;YACxF,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
@@ -3,8 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const builder_1 = require("../builder");
4
4
  builder_1.builder.objectType('StripeInvoiceCustomField', {
5
5
  fields: (t) => ({
6
- name: t.exposeString('name'),
7
- value: t.exposeString('value')
6
+ name: t.exposeString('name', {
7
+ description: `The name of the custom field.`
8
+ }),
9
+ value: t.exposeString('value', {
10
+ description: `The value of the custom field.`
11
+ })
8
12
  })
9
13
  });
10
14
  //# sourceMappingURL=invoice-custom-field.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoice-custom-field.js","sourceRoot":"","sources":["../../src/schema/invoice-custom-field.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,0BAA0B,EAAE;IAC7C,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC;QAC5B,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC;KAC/B,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"invoice-custom-field.js","sourceRoot":"","sources":["../../src/schema/invoice-custom-field.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,0BAA0B,EAAE;IAC7C,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE;YAC3B,WAAW,EAAE,+BAA+B;SAC7C,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,WAAW,EAAE,gCAAgC;SAC9C,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
@@ -8,15 +8,19 @@ builder_1.builder.objectType('StripeInvoiceCustomerShipping', {
8
8
  nullable: true
9
9
  }),
10
10
  carrier: t.exposeString('carrier', {
11
+ description: `The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.`,
11
12
  nullable: true
12
13
  }),
13
14
  name: t.exposeString('name', {
15
+ description: `Recipient name.`,
14
16
  nullable: true
15
17
  }),
16
18
  phone: t.exposeString('phone', {
19
+ description: `Recipient phone (including extension).`,
17
20
  nullable: true
18
21
  }),
19
22
  trackingNumber: t.exposeString('tracking_number', {
23
+ description: `The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.`,
20
24
  nullable: true
21
25
  })
22
26
  })
@@ -1 +1 @@
1
- {"version":3,"file":"invoice-customer-shipping.js","sourceRoot":"","sources":["../../src/schema/invoice-customer-shipping.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,i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ACrD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,cAAc,EAAE,CAAC,CAAC,YAAY,CAAC,iBAAiB,EAAE;YAChD,WAAW,EAAE,kLAAkL;YAC/L,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
@@ -3,8 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const builder_1 = require("../builder");
4
4
  builder_1.builder.objectType('StripeInvoiceCustomerTaxId', {
5
5
  fields: (t) => ({
6
- type: t.exposeString('type'),
6
+ type: t.exposeString('type', {
7
+ description: `The type of the tax ID, one of \`eu_vat\`, \`br_cnpj\`, \`br_cpf\`, \`eu_oss_vat\`, \`gb_vat\`, \`nz_gst\`, \`au_abn\`, \`au_arn\`, \`in_gst\`, \`no_vat\`, \`za_vat\`, \`ch_vat\`, \`mx_rfc\`, \`sg_uen\`, \`ru_inn\`, \`ru_kpp\`, \`ca_bn\`, \`hk_br\`, \`es_cif\`, \`tw_vat\`, \`th_vat\`, \`jp_cn\`, \`jp_rn\`, \`li_uid\`, \`my_itn\`, \`us_ein\`, \`kr_brn\`, \`ca_qst\`, \`ca_gst_hst\`, \`ca_pst_bc\`, \`ca_pst_mb\`, \`ca_pst_sk\`, \`my_sst\`, \`sg_gst\`, \`ae_trn\`, \`cl_tin\`, \`sa_vat\`, \`id_npwp\`, \`my_frp\`, \`il_vat\`, \`ge_vat\`, \`ua_vat\`, \`is_vat\`, \`bg_uic\`, \`hu_tin\`, \`si_tin\`, or \`unknown\``
8
+ }),
7
9
  value: t.exposeString('value', {
10
+ description: `The value of the tax ID.`,
8
11
  nullable: true
9
12
  })
10
13
  })
@@ -1 +1 @@
1
- {"version":3,"file":"invoice-customer-tax-id.js","sourceRoot":"","sources":["../../src/schema/invoice-customer-tax-id.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,4BAA4B,EAAE;IAC/C,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC;QAC5B,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"invoice-customer-tax-id.js","sourceRoot":"","sources":["../../src/schema/invoice-customer-tax-id.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,4BAA4B,EAAE;IAC/C,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE;YAC3B,WAAW,EAAE,smBAAsmB;SACpnB,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,WAAW,EAAE,0BAA0B;YACvC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
@@ -3,8 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const builder_1 = require("../builder");
4
4
  builder_1.builder.objectType('StripeInvoiceLineItemPeriod', {
5
5
  fields: (t) => ({
6
- start: t.exposeInt('start'),
7
- end: t.exposeInt('end')
6
+ start: t.exposeInt('start', {
7
+ description: `The start of the period.`
8
+ }),
9
+ end: t.exposeInt('end', {
10
+ description: `The end of the period, which must be greater than or equal to the start.`
11
+ })
8
12
  })
9
13
  });
10
14
  //# sourceMappingURL=invoice-line-item-period.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoice-line-item-period.js","sourceRoot":"","sources":["../../src/schema/invoice-line-item-period.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,6BAA6B,EAAE;IAChD,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC;QAC3B,GAAG,EAAE,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC;KACxB,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"invoice-line-item-period.js","sourceRoot":"","sources":["../../src/schema/invoice-line-item-period.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,6BAA6B,EAAE;IAChD,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,EAAE;YAC1B,WAAW,EAAE,0BAA0B;SACxC,CAAC;QACF,GAAG,EAAE,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE;YACtB,WAAW,EAAE,0EAA0E;SACxF,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
@@ -3,8 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const builder_1 = require("../builder");
4
4
  builder_1.builder.objectType('StripeInvoiceLineItemTaxAmount', {
5
5
  fields: (t) => ({
6
- amount: t.exposeInt('amount'),
7
- inclusive: t.exposeBoolean('inclusive')
6
+ amount: t.exposeInt('amount', {
7
+ description: `The amount, in %s, of the tax.`
8
+ }),
9
+ inclusive: t.exposeBoolean('inclusive', {
10
+ description: `Whether this tax amount is inclusive or exclusive.`
11
+ })
8
12
  // todo: tax rate
9
13
  // issues because tax_rate can be a string or TaxRate
10
14
  // taxRate: t.expose('tax_rate', {
@@ -1 +1 @@
1
- {"version":3,"file":"invoice-line-item-tax-amount.js","sourceRoot":"","sources":["../../src/schema/invoice-line-item-tax-amount.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,gCAAgC,EAAE;IACnD,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC;QAC7B,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,WAAW,CAAC;QACvC,iBAAiB;QACjB,qDAAqD;QACrD,kCAAkC;QAClC,0BAA0B;QAC1B,KAAK;KACN,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"invoice-line-item-tax-amount.js","sourceRoot":"","sources":["../../src/schema/invoice-line-item-tax-amount.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,gCAAgC,EAAE;IACnD,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE;YAC5B,WAAW,EAAE,gCAAgC;SAC9C,CAAC;QACF,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,WAAW,EAAE;YACtC,WAAW,EAAE,oDAAoD;SAClE,CAAC;QACF,iBAAiB;QACjB,qDAAqD;QACrD,kCAAkC;QAClC,0BAA0B;QAC1B,KAAK;KACN,CAAC;CACH,CAAC,CAAA"}
@@ -3,55 +3,80 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const builder_1 = require("../builder");
4
4
  builder_1.builder.objectType('StripeInvoiceLineItem', {
5
5
  fields: (t) => ({
6
- id: t.exposeString('id'),
7
- object: t.exposeString('object'),
8
- amount: t.exposeInt('amount'),
6
+ id: t.exposeString('id', {
7
+ description: `Unique identifier for the object.`
8
+ }),
9
+ object: t.exposeString('object', {
10
+ description: `String representing the object's type. Objects of the same type share the same value.`
11
+ }),
12
+ amount: t.exposeInt('amount', {
13
+ description: `The amount, in %s.`
14
+ }),
9
15
  amountExcludingTax: t.exposeInt('amount_excluding_tax', {
16
+ description: `The integer amount in %s representing the amount for this line item, excluding all tax and discounts.`,
10
17
  nullable: true
11
18
  }),
12
- currency: t.exposeString('currency'),
19
+ currency: t.exposeString('currency', {
20
+ description: `Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).`
21
+ }),
13
22
  description: t.exposeString('description', {
23
+ description: `An arbitrary string attached to the object. Often useful for displaying to users.`,
14
24
  nullable: true
15
25
  }),
16
26
  // todo: discount_amounts
17
- discountable: t.exposeBoolean('discountable'),
27
+ discountable: t.exposeBoolean('discountable', {
28
+ description: `If true, discounts will apply to this line item. Always false for prorations.`
29
+ }),
18
30
  // todo: discounts
19
31
  invoiceItem: t.exposeString('invoice_item', {
20
32
  description: 'The ID of the [invoice item](https://stripe.com/docs/api/invoiceitems) associated with this line item if any.',
21
33
  nullable: true
22
34
  }),
23
- livemode: t.exposeBoolean('livemode'),
35
+ livemode: t.exposeBoolean('livemode', {
36
+ description: `Has the value \`true\` if the object exists in live mode or the value \`false\` if the object exists in test mode.`
37
+ }),
24
38
  metadata: t.expose('metadata', {
39
+ description: `Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Note that for line items with \`type=subscription\` this will reflect the metadata of the subscription that caused the line item to be created.`,
25
40
  type: 'JSON'
26
41
  }),
27
42
  period: t.expose('period', {
28
43
  type: 'StripeInvoiceLineItemPeriod'
29
44
  }),
30
45
  plan: t.expose('plan', {
46
+ description: `The plan of the subscription, if the line item is a subscription or a proration.`,
31
47
  type: 'StripePlan',
32
48
  nullable: true
33
49
  }),
34
50
  price: t.expose('price', {
51
+ description: `The price of the line item.`,
35
52
  type: 'StripePrice',
36
53
  nullable: true
37
54
  }),
38
- proration: t.exposeBoolean('proration'),
55
+ proration: t.exposeBoolean('proration', {
56
+ description: `Whether this is a proration.`
57
+ }),
39
58
  // todo: proration details
40
59
  quantity: t.exposeInt('quantity', {
60
+ description: `The quantity of the subscription, if the line item is a subscription or a proration.`,
41
61
  nullable: true
42
62
  }),
43
63
  // todo: subscription field + resolver
44
64
  // todo: subscription_item field + resolver
45
65
  taxAmount: t.expose('tax_amounts', {
66
+ description: `The amount of tax calculated per tax rate for this line item`,
46
67
  type: ['StripeInvoiceLineItemTaxAmount'],
47
68
  nullable: true
48
69
  }),
49
70
  taxRates: t.expose('tax_rates', {
71
+ description: `The tax rates which apply to the line item.`,
50
72
  type: ['StripeTaxRate'],
51
73
  nullable: true
52
74
  }),
53
- type: t.exposeString('type'),
75
+ type: t.exposeString('type', {
76
+ description: `A string identifying the type of the source of this line item, either an \`invoiceitem\` or a \`subscription\`.`
77
+ }),
54
78
  unitAmountExcludingTax: t.exposeString('unit_amount_excluding_tax', {
79
+ description: `The amount in %s representing the unit amount for this line item, excluding all tax and discounts.`,
55
80
  nullable: true
56
81
  })
57
82
  })
@@ -1 +1 @@
1
- {"version":3,"file":"invoice-line-item.js","sourceRoot":"","sources":["../../src/schema/invoice-line-item.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,uBAAuB,EAAE;IAC1C,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC;QACxB,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC;QAChC,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC;QAC7B,kBAAkB,EAAE,CAAC,CAAC,SAAS,CAAC,sBAAsB,EAAE;YACtD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC;QACpC,WAAW,EAAE,CAAC,CAAC,YAAY,CAAC,aAAa,EAAE;YACzC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,yBAAyB;QACzB,YAAY,EAAE,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC;QAC7C,kBAAkB;QAClB,WAAW,EAAE,CAAC,CAAC,YAAY,CAAC,cAAc,EAAE;YAC1C,WAAW,EACT,+GAA+G;YACjH,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,CAAC;QACrC,QAAQ,EAAE,CAAC,CAAC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AAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE;YACvB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,aAAa;YACnB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,WAAW,EAAE;YACtC,WAAW,EAAE,8BAA8B;SAC5C,CAAC;QACF,0BAA0B;QAC1B,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,UAAU,EAAE;YAChC,WAAW,EAAE,sFAAsF;YACnG,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,sCAAsC;QACtC,2CAA2C;QAC3C,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aAAa,EAAE;YACjC,WAAW,EAAE,8DAA8D;YAC3E,IAAI,EAAE,CAAC,gCAAgC,CAAC;YACxC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE;YAC9B,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,CAAC,eAAe,CAAC;YACvB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE;YAC3B,WAAW,EAAE,iHAAiH;SAC/H,CAAC;QACF,sBAAsB,EAAE,CAAC,CAAC,YAAY,CAAC,2BAA2B,EAAE;YAClE,WAAW,EAAE,oGAAoG;YACjH,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
@@ -4,8 +4,12 @@ const builder_1 = require("../builder");
4
4
  builder_1.builder.objectType('StripeInvoiceLineItems', {
5
5
  fields: (t) => ({
6
6
  object: t.exposeString('object'),
7
- url: t.exposeString('url'),
8
- hasMore: t.exposeBoolean('has_more'),
7
+ url: t.exposeString('url', {
8
+ description: `The URL where this list can be accessed.`
9
+ }),
10
+ hasMore: t.exposeBoolean('has_more', {
11
+ description: `True if this list has another page of items after this one that can be fetched.`
12
+ }),
9
13
  data: t.expose('data', {
10
14
  type: ['StripeInvoiceLineItem'],
11
15
  nullable: false
@@ -1 +1 @@
1
- {"version":3,"file":"invoice-line-items.js","sourceRoot":"","sources":["../../src/schema/invoice-line-items.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE;IAC3C,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC;QAChC,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC;QAC1B,OAAO,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,CAAC;QACpC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE;YACrB,IAAI,EAAE,CAAC,uBAAuB,CAAC;YAC/B,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"invoice-line-items.js","sourceRoot":"","sources":["../../src/schema/invoice-line-items.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE;IAC3C,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC;QAChC,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE;YACzB,WAAW,EAAE,0CAA0C;SACxD,CAAC;QACF,OAAO,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,EAAE;YACnC,WAAW,EAAE,iFAAiF;SAC/F,CAAC;QACF,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE;YACrB,IAAI,EAAE,CAAC,uBAAuB,CAAC;YAC/B,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
@@ -14,73 +14,117 @@ const utils_1 = require("../utils");
14
14
  builder_1.builder.objectType('StripeInvoice', {
15
15
  description: '',
16
16
  fields: (t) => ({
17
- id: t.exposeString('id'),
18
- object: t.exposeString('object'),
17
+ id: t.exposeString('id', {
18
+ description: `Unique identifier for the object.`
19
+ }),
20
+ object: t.exposeString('object', {
21
+ description: `String representing the object's type. Objects of the same type share the same value.`
22
+ }),
19
23
  accountCountry: t.exposeString('account_country', {
24
+ description: `The country of the business associated with this invoice, most often the business creating the invoice.`,
20
25
  nullable: true
21
26
  }),
22
27
  accountName: t.exposeString('account_name', {
28
+ description: `The public name of the business associated with this invoice, most often the business creating the invoice.`,
23
29
  nullable: true
24
30
  }),
25
31
  // accountTaxIds: t.expose('account_tax_ids', {
26
32
  // type: 'StripeInvoceAccountTaxIds',
27
33
  // nullable: true
28
34
  // }),
29
- amountDue: t.exposeInt('amount_due'),
30
- amountPaid: t.exposeInt('amount_paid'),
31
- amountRemaining: t.exposeInt('amount_remaining'),
32
- // todo: application
35
+ amountDue: t.exposeInt('amount_due', {
36
+ description: `Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the \`amount_due\` may be 0. If there is a positive \`starting_balance\` for the invoice (the customer owes money), the \`amount_due\` will also take that into account. The charge that gets generated for the invoice will be for the amount specified in \`amount_due\`.`
37
+ }),
38
+ amountPaid: t.exposeInt('amount_paid', {
39
+ description: `The amount, in %s, that was paid.`
40
+ }),
41
+ amountRemaining: t.exposeInt('amount_remaining', {
42
+ description: `The difference between amount_due and amount_paid, in %s.`
43
+ }),
44
+ application: t.field({
45
+ type: 'StripeConnectedAccount',
46
+ nullable: true,
47
+ resolve: (invoice) => __awaiter(void 0, void 0, void 0, function* () {
48
+ const { application } = invoice;
49
+ if (!application)
50
+ return null;
51
+ const connectedAccount = yield utils_1.stripe.accounts.retrieve(application);
52
+ return connectedAccount;
53
+ })
54
+ }),
33
55
  applicationFeeAmount: t.exposeInt('application_fee_amount', {
56
+ description: `The fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account when the invoice is paid.`,
34
57
  nullable: true
35
58
  }),
36
- attemptCount: t.exposeInt('attempt_count'),
37
- attempted: t.exposeBoolean('attempted'),
59
+ attemptCount: t.exposeInt('attempt_count', {
60
+ description: `Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule.`
61
+ }),
62
+ attempted: t.exposeBoolean('attempted', {
63
+ description: `Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the \`invoice.created\` webhook, for example, so you might not want to display that invoice as unpaid to your users.`
64
+ }),
38
65
  autoAdvance: t.exposeBoolean('auto_advance', {
66
+ description: `Controls whether Stripe will perform [automatic collection](https://stripe.com/docs/billing/invoices/workflow/#auto_advance) of the invoice. When \`false\`, the invoice's state will not automatically advance without an explicit action.`,
39
67
  nullable: true
40
68
  }),
41
69
  automaticTax: t.expose('automatic_tax', {
42
70
  type: 'StripeInvoiceAutomaticTax'
43
71
  }),
44
72
  billingReason: t.exposeString('billing_reason', {
73
+ description: `Indicates the reason why the invoice was created. \`subscription_cycle\` indicates an invoice created by a subscription advancing into a new period. \`subscription_create\` indicates an invoice created due to creating a subscription. \`subscription_update\` indicates an invoice created due to updating a subscription. \`subscription\` is set for all old invoices to indicate either a change to a subscription or a period advancement. \`manual\` is set for all invoices unrelated to a subscription (for example: created via the invoice editor). The \`upcoming\` value is reserved for simulated invoices per the upcoming invoice endpoint. \`subscription_threshold\` indicates an invoice created due to a billing threshold being reached.`,
45
74
  nullable: true
46
75
  }),
47
76
  // todo: charge
48
77
  collectionMethod: t.exposeString('collection_method', {
78
+ description: `Either \`charge_automatically\`, or \`send_invoice\`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.`,
49
79
  nullable: true
50
80
  }),
51
- created: t.exposeInt('created'),
52
- currency: t.exposeString('currency'),
81
+ created: t.exposeInt('created', {
82
+ description: `Time at which the object was created. Measured in seconds since the Unix epoch.`
83
+ }),
84
+ currency: t.exposeString('currency', {
85
+ description: `Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).`
86
+ }),
53
87
  // customFields: t.expose('custom_fields', {
54
88
  // type: 'StripeInvoiceCustomField',
55
89
  // list: true,
56
90
  // nullable: true
57
91
  // }),
58
- customer: t.exposeString('customer'),
92
+ customer: t.exposeString('customer', {
93
+ description: `The ID of the customer who will be billed.`
94
+ }),
59
95
  customerAddress: t.expose('customer_address', {
96
+ description: `The customer's address. Until the invoice is finalized, this field will equal \`customer.address\`. Once the invoice is finalized, this field will no longer be updated.`,
60
97
  type: 'StripeAddress',
61
98
  nullable: true
62
99
  }),
63
100
  customerEmail: t.exposeString('customer_email', {
101
+ description: `The customer's email. Until the invoice is finalized, this field will equal \`customer.email\`. Once the invoice is finalized, this field will no longer be updated.`,
64
102
  nullable: true
65
103
  }),
66
104
  customerName: t.exposeString('customer_name', {
105
+ description: `The customer's name. Until the invoice is finalized, this field will equal \`customer.name\`. Once the invoice is finalized, this field will no longer be updated.`,
67
106
  nullable: true
68
107
  }),
69
108
  customerPhone: t.exposeString('customer_phone', {
109
+ description: `The customer's phone number. Until the invoice is finalized, this field will equal \`customer.phone\`. Once the invoice is finalized, this field will no longer be updated.`,
70
110
  nullable: true
71
111
  }),
72
112
  customerShipping: t.expose('customer_shipping', {
113
+ description: `The customer's shipping information. Until the invoice is finalized, this field will equal \`customer.shipping\`. Once the invoice is finalized, this field will no longer be updated.`,
73
114
  type: 'StripeInvoiceCustomerShipping',
74
115
  nullable: true
75
116
  }),
76
117
  customerTaxExempt: t.exposeString('customer_tax_exempt', {
118
+ description: `The customer's tax exempt status. Until the invoice is finalized, this field will equal \`customer.tax_exempt\`. Once the invoice is finalized, this field will no longer be updated.`,
77
119
  nullable: true
78
120
  }),
79
121
  customerTaxIds: t.expose('customer_tax_ids', {
122
+ description: `The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as \`customer.tax_ids\`. Once the invoice is finalized, this field will no longer be updated.`,
80
123
  type: ['StripeInvoiceCustomerTaxId'],
81
124
  nullable: true
82
125
  }),
83
126
  defaultPaymentMethod: t.field({
127
+ description: `ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.`,
84
128
  type: 'StripePaymentMethod',
85
129
  nullable: true,
86
130
  resolve: (invoice) => __awaiter(void 0, void 0, void 0, function* () {
@@ -98,50 +142,75 @@ builder_1.builder.objectType('StripeInvoice', {
98
142
  // }),
99
143
  // skipping: deleted
100
144
  description: t.exposeString('description', {
145
+ description: `An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.`,
101
146
  nullable: true
102
147
  }),
103
148
  // todo: discount
104
149
  // todo: discounts
105
150
  dueDate: t.exposeInt('due_date', {
151
+ description: `The date on which payment for this invoice is due. This value will be \`null\` for invoices where \`collection_method=charge_automatically\`.`,
106
152
  nullable: true
107
153
  }),
108
154
  endingBalance: t.exposeInt('ending_balance', {
155
+ description: `Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.`,
109
156
  nullable: true
110
157
  }),
111
158
  footer: t.exposeString('footer', {
159
+ description: `Footer displayed on the invoice.`,
112
160
  nullable: true
113
161
  }),
114
162
  hostedInvoiceUrl: t.exposeString('hosted_invoice_url', {
163
+ description: `The URL for the hosted invoice page, which allows customers to view and pay an invoice. If the invoice has not been finalized yet, this will be null.`,
115
164
  nullable: true
116
165
  }),
117
166
  invoicePdf: t.exposeString('invoice_pdf', {
167
+ description: `The link to download the PDF for the invoice. If the invoice has not been finalized yet, this will be null.`,
118
168
  nullable: true
119
169
  }),
120
170
  // todo: last finalization error
121
171
  lines: t.expose('lines', {
172
+ description: `The individual line items that make up the invoice. \`lines\` is sorted as follows: invoice items in reverse chronological order, followed by the subscription, if any.`,
122
173
  type: 'StripeInvoiceLineItems'
123
174
  }),
124
- livemode: t.exposeBoolean('livemode'),
175
+ livemode: t.exposeBoolean('livemode', {
176
+ description: `Has the value \`true\` if the object exists in live mode or the value \`false\` if the object exists in test mode.`
177
+ }),
125
178
  metadata: t.expose('metadata', {
179
+ description: `Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.`,
126
180
  type: 'JSON'
127
181
  }),
128
182
  nextPaymentAttempt: t.exposeInt('next_payment_attempt', {
183
+ description: `The time at which payment will next be attempted. This value will be \`null\` for invoices where \`collection_method=send_invoice\`.`,
129
184
  nullable: true
130
185
  }),
131
186
  number: t.exposeString('number', {
187
+ description: `A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique invoice_prefix if it is specified.`,
132
188
  nullable: true
133
189
  }),
134
190
  // todo: on behalf of
135
- paid: t.exposeBoolean('paid'),
136
- paidOutOfBand: t.exposeBoolean('paid_out_of_band'),
191
+ paid: t.exposeBoolean('paid', {
192
+ description: `Whether payment was successfully collected for this invoice. An invoice can be paid (most commonly) with a charge or with credit from the customer's account balance.`
193
+ }),
194
+ paidOutOfBand: t.exposeBoolean('paid_out_of_band', {
195
+ description: `Returns true if the invoice was manually marked paid, returns false if the invoice hasn't been paid yet or was paid on Stripe.`
196
+ }),
137
197
  // todo: payment intent
138
198
  // todo: payment settings
139
- periodEnd: t.exposeInt('period_end'),
140
- periodStart: t.exposeInt('period_start'),
141
- postPaymentCreditNotesAmount: t.exposeInt('post_payment_credit_notes_amount'),
142
- prePaymentCreditNotesAmount: t.exposeInt('pre_payment_credit_notes_amount'),
199
+ periodEnd: t.exposeInt('period_end', {
200
+ description: `End of the usage period during which invoice items were added to this invoice.`
201
+ }),
202
+ periodStart: t.exposeInt('period_start', {
203
+ description: `Start of the usage period during which invoice items were added to this invoice.`
204
+ }),
205
+ postPaymentCreditNotesAmount: t.exposeInt('post_payment_credit_notes_amount', {
206
+ description: `Total amount of all post-payment credit notes issued for this invoice.`
207
+ }),
208
+ prePaymentCreditNotesAmount: t.exposeInt('pre_payment_credit_notes_amount', {
209
+ description: `Total amount of all pre-payment credit notes issued for this invoice.`
210
+ }),
143
211
  // todo: quote
144
212
  receiptNumber: t.exposeString('receipt_number', {
213
+ description: `This is the transaction number that appears on email receipts sent for this invoice.`,
145
214
  nullable: true
146
215
  }),
147
216
  renderingOptions: t.expose('rendering_options', {
@@ -149,8 +218,11 @@ builder_1.builder.objectType('StripeInvoice', {
149
218
  description: 'Options for invoice PDF rendering.',
150
219
  nullable: true
151
220
  }),
152
- startingBalance: t.exposeInt('starting_balance'),
221
+ startingBalance: t.exposeInt('starting_balance', {
222
+ description: `Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance. For revision invoices, this also includes any customer balance that was applied to the original invoice.`
223
+ }),
153
224
  statementDescriptor: t.exposeString('statement_descriptor', {
225
+ description: `Extra information about an invoice for the customer's credit card statement.`,
154
226
  nullable: true
155
227
  }),
156
228
  status: t.exposeString('status', {
@@ -163,6 +235,7 @@ builder_1.builder.objectType('StripeInvoice', {
163
235
  nullable: true
164
236
  }),
165
237
  subscription: t.field({
238
+ description: `The subscription that this invoice was prepared for, if any.`,
166
239
  type: 'StripeSubscription',
167
240
  nullable: true,
168
241
  resolve: (invoice) => __awaiter(void 0, void 0, void 0, function* () {
@@ -175,25 +248,34 @@ builder_1.builder.objectType('StripeInvoice', {
175
248
  })
176
249
  }),
177
250
  subscriptionProrationDate: t.exposeInt('subscription_proration_date', {
251
+ description: `Only set for upcoming invoices that preview prorations. The time used to calculate prorations.`,
178
252
  nullable: true
179
253
  }),
180
- subtotal: t.exposeInt('subtotal'),
254
+ subtotal: t.exposeInt('subtotal', {
255
+ description: `Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or exclusive tax is applied. Item discounts are already incorporated`
256
+ }),
181
257
  subtotalExcludingTax: t.exposeInt('subtotal_excluding_tax', {
258
+ description: `The integer amount in %s representing the subtotal of the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated`,
182
259
  nullable: true
183
260
  }),
184
261
  tax: t.exposeInt('tax', {
262
+ description: `The amount of tax on this invoice. This is the sum of all the tax amounts on this invoice.`,
185
263
  nullable: true
186
264
  }),
187
265
  // todo: test clock
188
266
  // todo: threshold reason
189
- total: t.exposeInt('total'),
267
+ total: t.exposeInt('total', {
268
+ description: `Total after discounts and taxes.`
269
+ }),
190
270
  // todo: total discount amounts
191
271
  totalExcludingTax: t.exposeInt('total_excluding_tax', {
272
+ description: `The integer amount in %s representing the total amount of the invoice including all discounts but excluding all tax.`,
192
273
  nullable: true
193
274
  }),
194
275
  // todo: total tax amounts
195
276
  // todo: transfer data
196
277
  webhooksDeliveredAt: t.exposeInt('webhooks_delivered_at', {
278
+ description: `Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have [been exhausted](https://stripe.com/docs/billing/webhooks#understand). This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.`,
197
279
  nullable: true
198
280
  })
199
281
  })
@@ -1 +1 @@
1
- {"version":3,"file":"invoice.js","sourceRoot":"","sources":["../../src/schema/invoice.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,wCAAoC;AAEpC,oCAAiC;AAEjC,iBAAO,CAAC,UAAU,CAAC,eAAe,EAAE;IAClC,WAAW,EAAE,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC;QACxB,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC;QAChC,cAAc,EAAE,CAAC,CAAC,YAAY,CAAC,iBAAiB,EAAE;YAChD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,CAAC,C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B,OAAO,IAAI,CAAA;iBACZ;gBAED,MAAM,gBAAgB,GAAG,MAAM,cAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,YAAsB,CAAC,CAAA;gBAEpF,OAAO,gBAAsC,CAAA;YAC/C,CAAC,CAAA;SACF,CAAC;QACF,yBAAyB,EAAE,CAAC,CAAC,SAAS,CAAC,6BAA6B,EAAE;YACpE,WAAW,EAAE,gGAAgG;YAC7G,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,UAAU,EAAE;YAChC,WAAW,EAAE,iLAAiL;SAC/L,CAAC;QACF,oBAAoB,EAAE,CAAC,CAAC,SAAS,CAAC,wBAAwB,EAAE;YAC1D,WAAW,EAAE,gKAAgK;YAC7K,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,GAAG,EAAE,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE;YACtB,WAAW,EAAE,4FAA4F;YACzG,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,mBAAmB;QACnB,yBAAyB;QACzB,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,EAAE;YAC1B,WAAW,EAAE,kCAAkC;SAChD,CAAC;QACF,+BAA+B;QAC/B,iBAAiB,EAAE,CAAC,CAAC,SAAS,CAAC,qBAAqB,EAAE;YACpD,WAAW,EAAE,sHAAsH;YACnI,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,0BAA0B;QAC1B,sBAAsB;QACtB,mBAAmB,EAAE,CAAC,CAAC,SAAS,CAAC,uBAAuB,EAAE;YACxD,WAAW,EAAE,wXAAwX;YACrY,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
@@ -4,8 +4,12 @@ const builder_1 = require("../builder");
4
4
  builder_1.builder.objectType('StripeInvoices', {
5
5
  fields: (t) => ({
6
6
  object: t.exposeString('object'),
7
- url: t.exposeString('url'),
8
- hasMore: t.exposeBoolean('has_more'),
7
+ url: t.exposeString('url', {
8
+ description: `The URL where this list can be accessed.`
9
+ }),
10
+ hasMore: t.exposeBoolean('has_more', {
11
+ description: `True if this list has another page of items after this one that can be fetched.`
12
+ }),
9
13
  data: t.expose('data', {
10
14
  type: ['StripeInvoice'],
11
15
  nullable: false
@@ -1 +1 @@
1
- {"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../src/schema/invoices.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE;IACnC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC;QAChC,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC;QAC1B,OAAO,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,CAAC;QACpC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE;YACrB,IAAI,EAAE,CAAC,eAAe,CAAC;YACvB,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../src/schema/invoices.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE;IACnC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC;QAChC,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE;YACzB,WAAW,EAAE,0CAA0C;SACxD,CAAC;QACF,OAAO,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,EAAE;YACnC,WAAW,EAAE,iFAAiF;SAC/F,CAAC;QACF,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE;YACrB,IAAI,EAAE,CAAC,eAAe,CAAC;YACvB,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=payment-intent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-intent.d.ts","sourceRoot":"","sources":["../../src/schema/payment-intent.ts"],"names":[],"mappings":""}