@nhost/stripe-graphql-js 1.3.0-beta.6 → 1.3.0-beta7

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 (127) hide show
  1. package/README.md +37 -10
  2. package/dist/src/builder.d.ts +2 -2
  3. package/dist/src/builder.d.ts.map +1 -1
  4. package/dist/src/builder.js +1 -1
  5. package/dist/src/builder.js.map +1 -1
  6. package/dist/src/index.d.ts.map +1 -1
  7. package/dist/src/index.js.map +1 -1
  8. package/dist/src/schema/address.js +8 -8
  9. package/dist/src/schema/address.js.map +1 -1
  10. package/dist/src/schema/billing-portal-session.js +9 -9
  11. package/dist/src/schema/billing-portal-session.js.map +1 -1
  12. package/dist/src/schema/charge.js +23 -11
  13. package/dist/src/schema/charge.js.map +1 -1
  14. package/dist/src/schema/charges.js +3 -3
  15. package/dist/src/schema/charges.js.map +1 -1
  16. package/dist/src/schema/connectedAccount.js +2 -2
  17. package/dist/src/schema/connectedAccount.js.map +1 -1
  18. package/dist/src/schema/connectedAccounts.js +3 -3
  19. package/dist/src/schema/connectedAccounts.js.map +1 -1
  20. package/dist/src/schema/customer-shipping.js +7 -7
  21. package/dist/src/schema/customer-shipping.js.map +1 -1
  22. package/dist/src/schema/customer-tax-location.js +4 -4
  23. package/dist/src/schema/customer-tax-location.js.map +1 -1
  24. package/dist/src/schema/customer-tax.js +4 -4
  25. package/dist/src/schema/customer-tax.js.map +1 -1
  26. package/dist/src/schema/customer.js +35 -35
  27. package/dist/src/schema/customer.js.map +1 -1
  28. package/dist/src/schema/customers.js +5 -5
  29. package/dist/src/schema/customers.js.map +1 -1
  30. package/dist/src/schema/index.d.ts.map +1 -1
  31. package/dist/src/schema/index.js.map +1 -1
  32. package/dist/src/schema/invoice-automatic-tax.js +4 -4
  33. package/dist/src/schema/invoice-automatic-tax.js.map +1 -1
  34. package/dist/src/schema/invoice-custom-field.js +4 -4
  35. package/dist/src/schema/invoice-custom-field.js.map +1 -1
  36. package/dist/src/schema/invoice-customer-shipping.js +7 -7
  37. package/dist/src/schema/invoice-customer-shipping.js.map +1 -1
  38. package/dist/src/schema/invoice-customer-tax-id.js +4 -4
  39. package/dist/src/schema/invoice-customer-tax-id.js.map +1 -1
  40. package/dist/src/schema/invoice-line-item-period.js +4 -4
  41. package/dist/src/schema/invoice-line-item-period.js.map +1 -1
  42. package/dist/src/schema/invoice-line-item-tax-amount.js +4 -4
  43. package/dist/src/schema/invoice-line-item-tax-amount.js.map +1 -1
  44. package/dist/src/schema/invoice-line-item.js +21 -21
  45. package/dist/src/schema/invoice-line-item.js.map +1 -1
  46. package/dist/src/schema/invoice-line-items.js +5 -5
  47. package/dist/src/schema/invoice-line-items.js.map +1 -1
  48. package/dist/src/schema/invoice-rendering-options.js +3 -3
  49. package/dist/src/schema/invoice-rendering-options.js.map +1 -1
  50. package/dist/src/schema/invoice-status-transitions.js +6 -6
  51. package/dist/src/schema/invoice-status-transitions.js.map +1 -1
  52. package/dist/src/schema/invoice.js +59 -59
  53. package/dist/src/schema/invoice.js.map +1 -1
  54. package/dist/src/schema/invoices.js +5 -5
  55. package/dist/src/schema/invoices.js.map +1 -1
  56. package/dist/src/schema/payment-intent.js +14 -14
  57. package/dist/src/schema/payment-intent.js.map +1 -1
  58. package/dist/src/schema/payment-intents.js +3 -3
  59. package/dist/src/schema/payment-intents.js.map +1 -1
  60. package/dist/src/schema/payment-method-billing-details.js +6 -6
  61. package/dist/src/schema/payment-method-billing-details.js.map +1 -1
  62. package/dist/src/schema/payment-method-card-checks.js +5 -5
  63. package/dist/src/schema/payment-method-card-checks.js.map +1 -1
  64. package/dist/src/schema/payment-method-card-networks.js +4 -4
  65. package/dist/src/schema/payment-method-card-networks.js.map +1 -1
  66. package/dist/src/schema/payment-method-card-three-d-secure-usage.js +3 -3
  67. package/dist/src/schema/payment-method-card-three-d-secure-usage.js.map +1 -1
  68. package/dist/src/schema/payment-method-card-wallet-masterpass.js +6 -6
  69. package/dist/src/schema/payment-method-card-wallet-masterpass.js.map +1 -1
  70. package/dist/src/schema/payment-method-card-wallet-visa-checkout.js +6 -6
  71. package/dist/src/schema/payment-method-card-wallet-visa-checkout.js.map +1 -1
  72. package/dist/src/schema/payment-method-card-wallet.d.ts.map +1 -1
  73. package/dist/src/schema/payment-method-card-wallet.js +8 -8
  74. package/dist/src/schema/payment-method-card-wallet.js.map +1 -1
  75. package/dist/src/schema/payment-method-card.js +16 -16
  76. package/dist/src/schema/payment-method-card.js.map +1 -1
  77. package/dist/src/schema/payment-method.js +10 -10
  78. package/dist/src/schema/payment-method.js.map +1 -1
  79. package/dist/src/schema/payment-methods.d.ts.map +1 -1
  80. package/dist/src/schema/payment-methods.js +7 -7
  81. package/dist/src/schema/payment-methods.js.map +1 -1
  82. package/dist/src/schema/plan-transform-usage.js +4 -4
  83. package/dist/src/schema/plan-transform-usage.js.map +1 -1
  84. package/dist/src/schema/plan.js +21 -21
  85. package/dist/src/schema/plan.js.map +1 -1
  86. package/dist/src/schema/price.js +17 -17
  87. package/dist/src/schema/price.js.map +1 -1
  88. package/dist/src/schema/product.js +21 -21
  89. package/dist/src/schema/product.js.map +1 -1
  90. package/dist/src/schema/stripe.js +31 -30
  91. package/dist/src/schema/stripe.js.map +1 -1
  92. package/dist/src/schema/subscription-automatic-tax.js +3 -3
  93. package/dist/src/schema/subscription-automatic-tax.js.map +1 -1
  94. package/dist/src/schema/subscription-billing-thresholds.js +4 -4
  95. package/dist/src/schema/subscription-billing-thresholds.js.map +1 -1
  96. package/dist/src/schema/subscription-item-billing-thresholds.js +3 -3
  97. package/dist/src/schema/subscription-item-billing-thresholds.js.map +1 -1
  98. package/dist/src/schema/subscription-item.js +11 -11
  99. package/dist/src/schema/subscription-item.js.map +1 -1
  100. package/dist/src/schema/subscription-items.js +5 -5
  101. package/dist/src/schema/subscription-items.js.map +1 -1
  102. package/dist/src/schema/subscription-pause-collection.js +4 -4
  103. package/dist/src/schema/subscription-pause-collection.js.map +1 -1
  104. package/dist/src/schema/subscription.js +33 -33
  105. package/dist/src/schema/subscription.js.map +1 -1
  106. package/dist/src/schema/subscriptions.js +5 -5
  107. package/dist/src/schema/subscriptions.js.map +1 -1
  108. package/dist/src/schema/tax-rate.js +16 -16
  109. package/dist/src/schema/tax-rate.js.map +1 -1
  110. package/dist/src/schema/test-clock.js +10 -10
  111. package/dist/src/schema/test-clock.js.map +1 -1
  112. package/dist/src/server.d.ts +2 -2
  113. package/dist/src/server.d.ts.map +1 -1
  114. package/dist/src/server.js +3 -3
  115. package/dist/src/server.js.map +1 -1
  116. package/dist/src/types.d.ts +1 -1
  117. package/dist/src/types.d.ts.map +1 -1
  118. package/dist/src/utils.d.ts +1 -1
  119. package/dist/src/utils.d.ts.map +1 -1
  120. package/dist/src/utils.js +3 -2
  121. package/dist/src/utils.js.map +1 -1
  122. package/dist/stripe-graphql-js.cjs +2 -0
  123. package/dist/stripe-graphql-js.cjs.map +1 -0
  124. package/dist/stripe-graphql-js.js +76 -0
  125. package/dist/stripe-graphql-js.js.map +1 -0
  126. package/dist/tsconfig.tsbuildinfo +1 -1
  127. package/package.json +31 -23
@@ -3,20 +3,20 @@ builder.objectType('StripeInvoiceStatusTransitions', {
3
3
  fields: (t) => ({
4
4
  finalizedAt: t.exposeInt('finalized_at', {
5
5
  description: 'The time that the invoice draft was finalized.',
6
- nullable: true
6
+ nullable: true,
7
7
  }),
8
8
  markedUncollectibleAt: t.exposeInt('marked_uncollectible_at', {
9
9
  description: 'The time that the invoice was marked uncollectible.',
10
- nullable: true
10
+ nullable: true,
11
11
  }),
12
12
  paidAt: t.exposeInt('paid_at', {
13
13
  description: 'The time that the invoice was paid.',
14
- nullable: true
14
+ nullable: true,
15
15
  }),
16
16
  voidedAt: t.exposeInt('voided_at', {
17
17
  description: 'The time that the invoice was voided.',
18
- nullable: true
19
- })
20
- })
18
+ nullable: true,
19
+ }),
20
+ }),
21
21
  });
22
22
  //# sourceMappingURL=invoice-status-transitions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoice-status-transitions.js","sourceRoot":"","sources":["../../../src/schema/invoice-status-transitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,CAAC,UAAU,CAAC,gCAAgC,EAAE;IACnD,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,WAAW,EAAE,CAAC,CAAC,SAAS,CAAC,cAAc,EAAE;YACvC,WAAW,EAAE,gDAAgD;YAC7D,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,qBAAqB,EAAE,CAAC,CAAC,SAAS,CAAC,yBAAyB,EAAE;YAC5D,WAAW,EAAE,qDAAqD;YAClE,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE;YAC7B,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,WAAW,EAAE;YACjC,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"invoice-status-transitions.js","sourceRoot":"","sources":["../../../src/schema/invoice-status-transitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,CAAC,UAAU,CAAC,gCAAgC,EAAE;IACnD,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,WAAW,EAAE,CAAC,CAAC,SAAS,CAAC,cAAc,EAAE;YACvC,WAAW,EAAE,gDAAgD;YAC7D,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,qBAAqB,EAAE,CAAC,CAAC,SAAS,CAAC,yBAAyB,EAAE;YAC5D,WAAW,EAAE,qDAAqD;YAClE,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE;YAC7B,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,WAAW,EAAE;YACjC,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -4,31 +4,31 @@ builder.objectType('StripeInvoice', {
4
4
  description: '',
5
5
  fields: (t) => ({
6
6
  id: t.exposeString('id', {
7
- description: `Unique identifier for the object.`
7
+ description: `Unique identifier for the object.`,
8
8
  }),
9
9
  object: t.exposeString('object', {
10
- description: `String representing the object's type. Objects of the same type share the same value.`
10
+ description: `String representing the object's type. Objects of the same type share the same value.`,
11
11
  }),
12
12
  accountCountry: t.exposeString('account_country', {
13
13
  description: `The country of the business associated with this invoice, most often the business creating the invoice.`,
14
- nullable: true
14
+ nullable: true,
15
15
  }),
16
16
  accountName: t.exposeString('account_name', {
17
17
  description: `The public name of the business associated with this invoice, most often the business creating the invoice.`,
18
- nullable: true
18
+ nullable: true,
19
19
  }),
20
20
  // accountTaxIds: t.expose('account_tax_ids', {
21
21
  // type: 'StripeInvoceAccountTaxIds',
22
22
  // nullable: true
23
23
  // }),
24
24
  amountDue: t.exposeInt('amount_due', {
25
- 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\`.`
25
+ 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\`.`,
26
26
  }),
27
27
  amountPaid: t.exposeInt('amount_paid', {
28
- description: `The amount, in %s, that was paid.`
28
+ description: `The amount, in %s, that was paid.`,
29
29
  }),
30
30
  amountRemaining: t.exposeInt('amount_remaining', {
31
- description: `The difference between amount_due and amount_paid, in %s.`
31
+ description: `The difference between amount_due and amount_paid, in %s.`,
32
32
  }),
33
33
  application: t.field({
34
34
  type: 'StripeConnectedAccount',
@@ -39,39 +39,39 @@ builder.objectType('StripeInvoice', {
39
39
  return null;
40
40
  const connectedAccount = await stripe.accounts.retrieve(application);
41
41
  return connectedAccount;
42
- }
42
+ },
43
43
  }),
44
44
  applicationFeeAmount: t.exposeInt('application_fee_amount', {
45
45
  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.`,
46
- nullable: true
46
+ nullable: true,
47
47
  }),
48
48
  attemptCount: t.exposeInt('attempt_count', {
49
- 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.`
49
+ 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.`,
50
50
  }),
51
51
  attempted: t.exposeBoolean('attempted', {
52
- 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.`
52
+ 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.`,
53
53
  }),
54
54
  autoAdvance: t.exposeBoolean('auto_advance', {
55
55
  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.`,
56
- nullable: true
56
+ nullable: true,
57
57
  }),
58
58
  automaticTax: t.expose('automatic_tax', {
59
- type: 'StripeInvoiceAutomaticTax'
59
+ type: 'StripeInvoiceAutomaticTax',
60
60
  }),
61
61
  billingReason: t.exposeString('billing_reason', {
62
62
  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.`,
63
- nullable: true
63
+ nullable: true,
64
64
  }),
65
65
  // todo: charge
66
66
  collectionMethod: t.exposeString('collection_method', {
67
67
  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.`,
68
- nullable: true
68
+ nullable: true,
69
69
  }),
70
70
  created: t.exposeInt('created', {
71
- description: `Time at which the object was created. Measured in seconds since the Unix epoch.`
71
+ description: `Time at which the object was created. Measured in seconds since the Unix epoch.`,
72
72
  }),
73
73
  currency: t.exposeString('currency', {
74
- 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).`
74
+ 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).`,
75
75
  }),
76
76
  // customFields: t.expose('custom_fields', {
77
77
  // type: 'StripeInvoiceCustomField',
@@ -79,38 +79,38 @@ builder.objectType('StripeInvoice', {
79
79
  // nullable: true
80
80
  // }),
81
81
  customer: t.exposeString('customer', {
82
- description: `The ID of the customer who will be billed.`
82
+ description: `The ID of the customer who will be billed.`,
83
83
  }),
84
84
  customerAddress: t.expose('customer_address', {
85
85
  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.`,
86
86
  type: 'StripeAddress',
87
- nullable: true
87
+ nullable: true,
88
88
  }),
89
89
  customerEmail: t.exposeString('customer_email', {
90
90
  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.`,
91
- nullable: true
91
+ nullable: true,
92
92
  }),
93
93
  customerName: t.exposeString('customer_name', {
94
94
  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.`,
95
- nullable: true
95
+ nullable: true,
96
96
  }),
97
97
  customerPhone: t.exposeString('customer_phone', {
98
98
  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.`,
99
- nullable: true
99
+ nullable: true,
100
100
  }),
101
101
  customerShipping: t.expose('customer_shipping', {
102
102
  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.`,
103
103
  type: 'StripeInvoiceCustomerShipping',
104
- nullable: true
104
+ nullable: true,
105
105
  }),
106
106
  customerTaxExempt: t.exposeString('customer_tax_exempt', {
107
107
  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.`,
108
- nullable: true
108
+ nullable: true,
109
109
  }),
110
110
  customerTaxIds: t.expose('customer_tax_ids', {
111
111
  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.`,
112
112
  type: ['StripeInvoiceCustomerTaxId'],
113
- nullable: true
113
+ nullable: true,
114
114
  }),
115
115
  defaultPaymentMethod: t.field({
116
116
  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.`,
@@ -123,7 +123,7 @@ builder.objectType('StripeInvoice', {
123
123
  }
124
124
  const paymentMethod = await stripe.paymentMethods.retrieve(default_payment_method);
125
125
  return paymentMethod;
126
- }
126
+ },
127
127
  }),
128
128
  // todo: default source
129
129
  // defaultTaxRates: t.exposeString('default_tax_rates', {
@@ -132,96 +132,96 @@ builder.objectType('StripeInvoice', {
132
132
  // skipping: deleted
133
133
  description: t.exposeString('description', {
134
134
  description: `An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.`,
135
- nullable: true
135
+ nullable: true,
136
136
  }),
137
137
  // todo: discount
138
138
  // todo: discounts
139
139
  dueDate: t.exposeInt('due_date', {
140
140
  description: `The date on which payment for this invoice is due. This value will be \`null\` for invoices where \`collection_method=charge_automatically\`.`,
141
- nullable: true
141
+ nullable: true,
142
142
  }),
143
143
  endingBalance: t.exposeInt('ending_balance', {
144
144
  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.`,
145
- nullable: true
145
+ nullable: true,
146
146
  }),
147
147
  footer: t.exposeString('footer', {
148
148
  description: `Footer displayed on the invoice.`,
149
- nullable: true
149
+ nullable: true,
150
150
  }),
151
151
  hostedInvoiceUrl: t.exposeString('hosted_invoice_url', {
152
152
  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.`,
153
- nullable: true
153
+ nullable: true,
154
154
  }),
155
155
  invoicePdf: t.exposeString('invoice_pdf', {
156
156
  description: `The link to download the PDF for the invoice. If the invoice has not been finalized yet, this will be null.`,
157
- nullable: true
157
+ nullable: true,
158
158
  }),
159
159
  // todo: last finalization error
160
160
  lines: t.expose('lines', {
161
161
  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.`,
162
- type: 'StripeInvoiceLineItems'
162
+ type: 'StripeInvoiceLineItems',
163
163
  }),
164
164
  livemode: t.exposeBoolean('livemode', {
165
- description: `Has the value \`true\` if the object exists in live mode or the value \`false\` if the object exists in test mode.`
165
+ description: `Has the value \`true\` if the object exists in live mode or the value \`false\` if the object exists in test mode.`,
166
166
  }),
167
167
  metadata: t.expose('metadata', {
168
168
  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.`,
169
- type: 'JSON'
169
+ type: 'JSON',
170
170
  }),
171
171
  nextPaymentAttempt: t.exposeInt('next_payment_attempt', {
172
172
  description: `The time at which payment will next be attempted. This value will be \`null\` for invoices where \`collection_method=send_invoice\`.`,
173
- nullable: true
173
+ nullable: true,
174
174
  }),
175
175
  number: t.exposeString('number', {
176
176
  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.`,
177
- nullable: true
177
+ nullable: true,
178
178
  }),
179
179
  // todo: on behalf of
180
180
  paid: t.exposeBoolean('paid', {
181
- 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.`
181
+ 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.`,
182
182
  }),
183
183
  paidOutOfBand: t.exposeBoolean('paid_out_of_band', {
184
- 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.`
184
+ 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.`,
185
185
  }),
186
186
  // todo: payment intent
187
187
  // todo: payment settings
188
188
  periodEnd: t.exposeInt('period_end', {
189
- description: `End of the usage period during which invoice items were added to this invoice.`
189
+ description: `End of the usage period during which invoice items were added to this invoice.`,
190
190
  }),
191
191
  periodStart: t.exposeInt('period_start', {
192
- description: `Start of the usage period during which invoice items were added to this invoice.`
192
+ description: `Start of the usage period during which invoice items were added to this invoice.`,
193
193
  }),
194
194
  postPaymentCreditNotesAmount: t.exposeInt('post_payment_credit_notes_amount', {
195
- description: `Total amount of all post-payment credit notes issued for this invoice.`
195
+ description: `Total amount of all post-payment credit notes issued for this invoice.`,
196
196
  }),
197
197
  prePaymentCreditNotesAmount: t.exposeInt('pre_payment_credit_notes_amount', {
198
- description: `Total amount of all pre-payment credit notes issued for this invoice.`
198
+ description: `Total amount of all pre-payment credit notes issued for this invoice.`,
199
199
  }),
200
200
  // todo: quote
201
201
  receiptNumber: t.exposeString('receipt_number', {
202
202
  description: `This is the transaction number that appears on email receipts sent for this invoice.`,
203
- nullable: true
203
+ nullable: true,
204
204
  }),
205
205
  renderingOptions: t.expose('rendering_options', {
206
206
  type: 'StripeInvoiceRenderingOptions',
207
207
  description: 'Options for invoice PDF rendering.',
208
- nullable: true
208
+ nullable: true,
209
209
  }),
210
210
  startingBalance: t.exposeInt('starting_balance', {
211
- 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.`
211
+ 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.`,
212
212
  }),
213
213
  statementDescriptor: t.exposeString('statement_descriptor', {
214
214
  description: `Extra information about an invoice for the customer's credit card statement.`,
215
- nullable: true
215
+ nullable: true,
216
216
  }),
217
217
  status: t.exposeString('status', {
218
218
  description: 'The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://stripe.com/docs/billing/invoices/workflow#workflow-overview)',
219
- nullable: true
219
+ nullable: true,
220
220
  }),
221
221
  // todo: status transitions
222
222
  statusTransition: t.expose('status_transitions', {
223
223
  type: 'StripeInvoiceStatusTransitions',
224
- nullable: true
224
+ nullable: true,
225
225
  }),
226
226
  subscription: t.field({
227
227
  description: `The subscription that this invoice was prepared for, if any.`,
@@ -234,39 +234,39 @@ builder.objectType('StripeInvoice', {
234
234
  }
235
235
  const subscriptionData = await stripe.subscriptions.retrieve(subscription);
236
236
  return subscriptionData;
237
- }
237
+ },
238
238
  }),
239
239
  subscriptionProrationDate: t.exposeInt('subscription_proration_date', {
240
240
  description: `Only set for upcoming invoices that preview prorations. The time used to calculate prorations.`,
241
- nullable: true
241
+ nullable: true,
242
242
  }),
243
243
  subtotal: t.exposeInt('subtotal', {
244
- 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`
244
+ 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`,
245
245
  }),
246
246
  subtotalExcludingTax: t.exposeInt('subtotal_excluding_tax', {
247
247
  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`,
248
- nullable: true
248
+ nullable: true,
249
249
  }),
250
250
  tax: t.exposeInt('tax', {
251
251
  description: `The amount of tax on this invoice. This is the sum of all the tax amounts on this invoice.`,
252
- nullable: true
252
+ nullable: true,
253
253
  }),
254
254
  // todo: test clock
255
255
  // todo: threshold reason
256
256
  total: t.exposeInt('total', {
257
- description: `Total after discounts and taxes.`
257
+ description: `Total after discounts and taxes.`,
258
258
  }),
259
259
  // todo: total discount amounts
260
260
  totalExcludingTax: t.exposeInt('total_excluding_tax', {
261
261
  description: `The integer amount in %s representing the total amount of the invoice including all discounts but excluding all tax.`,
262
- nullable: true
262
+ nullable: true,
263
263
  }),
264
264
  // todo: total tax amounts
265
265
  // todo: transfer data
266
266
  webhooksDeliveredAt: t.exposeInt('webhooks_delivered_at', {
267
267
  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.`,
268
- nullable: true
269
- })
270
- })
268
+ nullable: true,
269
+ }),
270
+ }),
271
271
  });
272
272
  //# sourceMappingURL=invoice.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoice.js","sourceRoot":"","sources":["../../../src/schema/invoice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,EAAE,MAAM,EA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AAO,IAAI,CAAC;gBACd,CAAC;gBAED,MAAM,gBAAgB,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAC1D,YAAsB,CACvB,CAAC;gBAEF,OAAO,gBAAsC,CAAC;YAChD,CAAC;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,CAAC"}
@@ -3,15 +3,15 @@ builder.objectType('StripeInvoices', {
3
3
  fields: (t) => ({
4
4
  object: t.exposeString('object'),
5
5
  url: t.exposeString('url', {
6
- description: `The URL where this list can be accessed.`
6
+ description: `The URL where this list can be accessed.`,
7
7
  }),
8
8
  hasMore: t.exposeBoolean('has_more', {
9
- description: `True if this list has another page of items after this one that can be fetched.`
9
+ description: `True if this list has another page of items after this one that can be fetched.`,
10
10
  }),
11
11
  data: t.expose('data', {
12
12
  type: ['StripeInvoice'],
13
- nullable: false
14
- })
15
- })
13
+ nullable: false,
14
+ }),
15
+ }),
16
16
  });
17
17
  //# sourceMappingURL=invoices.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/schema/invoices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,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"}
1
+ {"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/schema/invoices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,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,CAAC"}
@@ -8,43 +8,43 @@ builder.objectType('StripePaymentIntent', {
8
8
  amount: t.exposeInt('amount'),
9
9
  currency: t.exposeString('currency'),
10
10
  description: t.exposeString('description', {
11
- nullable: true
11
+ nullable: true,
12
12
  }),
13
13
  metadata: t.expose('metadata', {
14
14
  type: 'JSON',
15
- nullable: true
15
+ nullable: true,
16
16
  }),
17
17
  paymentMethodTypes: t.exposeStringList('payment_method_types'),
18
18
  statementDescriptor: t.exposeString('statement_descriptor', {
19
- nullable: true
19
+ nullable: true,
20
20
  }),
21
21
  statementDescriptorSuffix: t.exposeString('statement_descriptor_suffix', {
22
- nullable: true
22
+ nullable: true,
23
23
  }),
24
24
  receiptEmail: t.exposeString('receipt_email', {
25
- nullable: true
25
+ nullable: true,
26
26
  }),
27
27
  customer: t.exposeString('customer'),
28
28
  amountCapturable: t.exposeInt('amount_capturable'),
29
29
  amountDetails: t.expose('amount_details', {
30
30
  nullable: true,
31
- type: 'JSON'
31
+ type: 'JSON',
32
32
  }),
33
33
  amountReceived: t.exposeInt('amount_received'),
34
34
  applicationFeeAmount: t.exposeInt('application_fee_amount', {
35
- nullable: true
35
+ nullable: true,
36
36
  }),
37
37
  canceledAt: t.exposeInt('canceled_at', {
38
- nullable: true
38
+ nullable: true,
39
39
  }),
40
40
  transferGroup: t.exposeString('transfer_group', {
41
- nullable: true
41
+ nullable: true,
42
42
  }),
43
43
  cancellationReason: t.exposeString('cancellation_reason', {
44
- nullable: true
44
+ nullable: true,
45
45
  }),
46
46
  created: t.exposeInt('created', {
47
- nullable: true
47
+ nullable: true,
48
48
  }),
49
49
  status: t.exposeString('status'),
50
50
  invoice: t.field({
@@ -57,12 +57,12 @@ builder.objectType('StripePaymentIntent', {
57
57
  }
58
58
  const invoiceData = await stripe.invoices.retrieve(invoice);
59
59
  return invoiceData;
60
- }
61
- })
60
+ },
61
+ }),
62
62
  // todo: missing fields
63
63
  // capture_method
64
64
  // add charges
65
65
  // application
66
- })
66
+ }),
67
67
  });
68
68
  //# sourceMappingURL=payment-intent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-intent.js","sourceRoot":"","sources":["../../../src/schema/payment-intent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,CAAC,UAAU,CAAC,qBAAqB,EAAE;IACxC,WAAW,EAAE,iBAAiB;IAC9B,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,QAAQ,EAAE,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC;QACpC,WAAW,EAAE,CAAC,CAAC,YAAY,CAAC,aAAa,EAAE;YACzC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,UAAU,EAAE;YAC7B,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,kBAAkB,EAAE,CAAC,CAAC,gBAAgB,CAAC,sBAAsB,CAAC;QAC9D,mBAAmB,EAAE,CAAC,CAAC,YAAY,CAAC,sBAAsB,EAAE;YAC1D,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,yBAAyB,EAAE,CAAC,CAAC,YAAY,CAAC,6BAA6B,EAAE;YACvE,QAAQ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B,cAAc;QACd,cAAc;KACf,CAAC;CACH,CAAC,CAAC"}
@@ -6,8 +6,8 @@ builder.objectType('StripePaymentIntents', {
6
6
  hasMore: t.exposeBoolean('has_more'),
7
7
  data: t.expose('data', {
8
8
  type: ['StripePaymentIntent'],
9
- nullable: false
10
- })
11
- })
9
+ nullable: false,
10
+ }),
11
+ }),
12
12
  });
13
13
  //# sourceMappingURL=payment-intents.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-intents.js","sourceRoot":"","sources":["../../../src/schema/payment-intents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE;IACzC,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,qBAAqB,CAAC;YAC7B,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"payment-intents.js","sourceRoot":"","sources":["../../../src/schema/payment-intents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE;IACzC,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,qBAAqB,CAAC;YAC7B,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -4,20 +4,20 @@ builder.objectType('StripePaymentMethodBillingDetails', {
4
4
  address: t.expose('address', {
5
5
  description: `Billing address.`,
6
6
  type: 'StripeAddress',
7
- nullable: true
7
+ nullable: true,
8
8
  }),
9
9
  email: t.exposeString('email', {
10
10
  description: `Email address.`,
11
- nullable: true
11
+ nullable: true,
12
12
  }),
13
13
  name: t.exposeString('name', {
14
14
  description: `Full name.`,
15
- nullable: true
15
+ nullable: true,
16
16
  }),
17
17
  phone: t.exposeString('phone', {
18
18
  description: `Billing phone number (including extension).`,
19
- nullable: true
20
- })
21
- })
19
+ nullable: true,
20
+ }),
21
+ }),
22
22
  });
23
23
  //# sourceMappingURL=payment-method-billing-details.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-method-billing-details.js","sourceRoot":"","sources":["../../../src/schema/payment-method-billing-details.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,CAAC,UAAU,CAAC,mCAAmC,EAAE;IACtD,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE;YAC3B,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,WAAW,EAAE,gBAAgB;YAC7B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE;YAC3B,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,WAAW,EAAE,6CAA6C;YAC1D,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"payment-method-billing-details.js","sourceRoot":"","sources":["../../../src/schema/payment-method-billing-details.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,CAAC,UAAU,CAAC,mCAAmC,EAAE;IACtD,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE;YAC3B,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,WAAW,EAAE,gBAAgB;YAC7B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE;YAC3B,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,WAAW,EAAE,6CAA6C;YAC1D,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -3,16 +3,16 @@ builder.objectType('StripePaymentMethodCardChecks', {
3
3
  fields: (t) => ({
4
4
  addressLine1Check: t.exposeString('address_line1_check', {
5
5
  description: `If a address line1 was provided, results of the check, one of \`pass\`, \`fail\`, \`unavailable\`, or \`unchecked\`.`,
6
- nullable: true
6
+ nullable: true,
7
7
  }),
8
8
  addressPostalCodeCheck: t.exposeString('address_postal_code_check', {
9
9
  description: `If a address postal code was provided, results of the check, one of \`pass\`, \`fail\`, \`unavailable\`, or \`unchecked\`.`,
10
- nullable: true
10
+ nullable: true,
11
11
  }),
12
12
  cvcCheck: t.exposeString('cvc_check', {
13
13
  description: `If a CVC was provided, results of the check, one of \`pass\`, \`fail\`, \`unavailable\`, or \`unchecked\`.`,
14
- nullable: true
15
- })
16
- })
14
+ nullable: true,
15
+ }),
16
+ }),
17
17
  });
18
18
  //# sourceMappingURL=payment-method-card-checks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-method-card-checks.js","sourceRoot":"","sources":["../../../src/schema/payment-method-card-checks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,CAAC,UAAU,CAAC,+BAA+B,EAAE;IAClD,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,iBAAiB,EAAE,CAAC,CAAC,YAAY,CAAC,qBAAqB,EAAE;YACvD,WAAW,EAAE,sHAAsH;YACnI,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,sBAAsB,EAAE,CAAC,CAAC,YAAY,CAAC,2BAA2B,EAAE;YAClE,WAAW,EAAE,4HAA4H;YACzI,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,YAAY,CAAC,WAAW,EAAE;YACpC,WAAW,EAAE,4GAA4G;YACzH,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"payment-method-card-checks.js","sourceRoot":"","sources":["../../../src/schema/payment-method-card-checks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,CAAC,UAAU,CAAC,+BAA+B,EAAE;IAClD,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,iBAAiB,EAAE,CAAC,CAAC,YAAY,CAAC,qBAAqB,EAAE;YACvD,WAAW,EAAE,sHAAsH;YACnI,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,sBAAsB,EAAE,CAAC,CAAC,YAAY,CAAC,2BAA2B,EAAE;YAClE,WAAW,EAAE,4HAA4H;YACzI,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,YAAY,CAAC,WAAW,EAAE;YACpC,WAAW,EAAE,4GAA4G;YACzH,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -2,12 +2,12 @@ import { builder } from '../builder';
2
2
  builder.objectType('StripePaymentMethodCardNetworks', {
3
3
  fields: (t) => ({
4
4
  available: t.exposeStringList('available', {
5
- description: `All available networks for the card.`
5
+ description: `All available networks for the card.`,
6
6
  }),
7
7
  preferred: t.exposeString('preferred', {
8
8
  description: `The preferred network for the card.`,
9
- nullable: true
10
- })
11
- })
9
+ nullable: true,
10
+ }),
11
+ }),
12
12
  });
13
13
  //# sourceMappingURL=payment-method-card-networks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-method-card-networks.js","sourceRoot":"","sources":["../../../src/schema/payment-method-card-networks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,CAAC,UAAU,CAAC,iCAAiC,EAAE;IACpD,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,WAAW,EAAE;YACzC,WAAW,EAAE,sCAAsC;SACpD,CAAC;QACF,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,WAAW,EAAE;YACrC,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"payment-method-card-networks.js","sourceRoot":"","sources":["../../../src/schema/payment-method-card-networks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,CAAC,UAAU,CAAC,iCAAiC,EAAE;IACpD,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,WAAW,EAAE;YACzC,WAAW,EAAE,sCAAsC;SACpD,CAAC;QACF,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,WAAW,EAAE;YACrC,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -2,8 +2,8 @@ import { builder } from '../builder';
2
2
  builder.objectType('StripePaymentMethodCardThreeDSecureUsage', {
3
3
  fields: (t) => ({
4
4
  supported: t.exposeBoolean('supported', {
5
- description: `Whether 3D Secure is supported on this card.`
6
- })
7
- })
5
+ description: `Whether 3D Secure is supported on this card.`,
6
+ }),
7
+ }),
8
8
  });
9
9
  //# sourceMappingURL=payment-method-card-three-d-secure-usage.js.map