@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
@@ -4,28 +4,28 @@ builder.objectType('StripeProduct', {
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
  active: t.exposeBoolean('active', {
13
- description: `Whether the product is currently available for purchase.`
13
+ description: `Whether the product is currently available for purchase.`,
14
14
  }),
15
15
  attributes: t.exposeStringList('attributes', {
16
16
  description: `A list of up to 5 attributes that each SKU can provide values for (e.g., \`["color", "size"]\`).`,
17
- nullable: true
17
+ nullable: true,
18
18
  }),
19
19
  caption: t.exposeString('caption', {
20
20
  description: `A short one-line description of the product, meant to be displayable to the customer. Only applicable to products of \`type=good\`.`,
21
- nullable: true
21
+ nullable: true,
22
22
  }),
23
23
  created: t.exposeInt('created', {
24
- description: `Time at which the object was created. Measured in seconds since the Unix epoch.`
24
+ description: `Time at which the object was created. Measured in seconds since the Unix epoch.`,
25
25
  }),
26
26
  deactivateOn: t.exposeStringList('deactivate_on', {
27
27
  description: `An array of connect application identifiers that cannot purchase this product. Only applicable to products of \`type=good\`.`,
28
- nullable: true
28
+ nullable: true,
29
29
  }),
30
30
  defaultPrice: t.field({
31
31
  description: `The ID of the [Price](https://stripe.com/docs/api/prices) object that is the default price for this product.`,
@@ -41,52 +41,52 @@ builder.objectType('StripeProduct', {
41
41
  return null;
42
42
  }
43
43
  return price;
44
- }
44
+ },
45
45
  }),
46
46
  description: t.exposeString('description', {
47
47
  description: `The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.`,
48
- nullable: true
48
+ nullable: true,
49
49
  }),
50
50
  images: t.exposeStringList('images', {
51
51
  description: `A list of up to 8 URLs of images for this product, meant to be displayable to the customer.`,
52
- nullable: true
52
+ nullable: true,
53
53
  }),
54
54
  livemode: t.exposeBoolean('livemode', {
55
- description: `Has the value \`true\` if the object exists in live mode or the value \`false\` if the object exists in test mode.`
55
+ description: `Has the value \`true\` if the object exists in live mode or the value \`false\` if the object exists in test mode.`,
56
56
  }),
57
57
  metadata: t.expose('metadata', {
58
58
  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.`,
59
59
  type: 'JSON',
60
- nullable: true
60
+ nullable: true,
61
61
  }),
62
62
  name: t.exposeString('name', {
63
- description: `The product's name, meant to be displayable to the customer.`
63
+ description: `The product's name, meant to be displayable to the customer.`,
64
64
  }),
65
65
  // todo: pacakge dimentions
66
66
  // todo: fix typo here -> shippable
67
67
  sippable: t.exposeBoolean('shippable', {
68
68
  description: `Whether this product is shipped (i.e., physical goods).`,
69
- nullable: true
69
+ nullable: true,
70
70
  }),
71
71
  statementDescriptor: t.exposeString('statement_descriptor', {
72
72
  description: `Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used.`,
73
- nullable: true
73
+ nullable: true,
74
74
  }),
75
75
  // todo: tax code
76
76
  type: t.exposeString('type', {
77
- description: `The type of the product. The product is either of type \`good\`, which is eligible for use with Orders and SKUs, or \`service\`, which is eligible for use with Subscriptions and Plans.`
77
+ description: `The type of the product. The product is either of type \`good\`, which is eligible for use with Orders and SKUs, or \`service\`, which is eligible for use with Subscriptions and Plans.`,
78
78
  }),
79
79
  unitLabel: t.exposeString('unit_label', {
80
80
  description: `A label that represents units of this product in Stripe and on customers' receipts and invoices. When set, this will be included in associated invoice line item descriptions.`,
81
- nullable: true
81
+ nullable: true,
82
82
  }),
83
83
  updated: t.exposeInt('updated', {
84
- description: `Time at which the object was last updated. Measured in seconds since the Unix epoch.`
84
+ description: `Time at which the object was last updated. Measured in seconds since the Unix epoch.`,
85
85
  }),
86
86
  url: t.exposeString('url', {
87
87
  description: `A URL of a publicly-accessible webpage for this product.`,
88
- nullable: true
89
- })
90
- })
88
+ nullable: true,
89
+ }),
90
+ }),
91
91
  });
92
92
  //# sourceMappingURL=product.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.js","sourceRoot":"","sources":["../../../src/schema/product.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,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,EAAE;YACvB,WAAW,EAAE,mCAAmC;SACjD,CAAC;QACF,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,EAAE;YAC/B,WAAW,EAAE,uFAAuF;SACrG,CAAC;QACF,MAAM,EAAE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C,SAAS,EAAE;YAC9B,WAAW,EAAE,sFAAsF;SACpG,CAAC;QACF,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE;YACzB,WAAW,EAAE,0DAA0D;YACvE,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -11,14 +11,14 @@ builder.objectType('Stripe', {
11
11
  throw new GraphQLError('Not allowed');
12
12
  const connectedAccounts = await stripe.accounts.list();
13
13
  return connectedAccounts;
14
- }
14
+ },
15
15
  }),
16
16
  connectedAccount: t.field({
17
17
  type: 'StripeConnectedAccount',
18
18
  args: {
19
19
  id: t.arg.string({
20
- required: true
21
- })
20
+ required: true,
21
+ }),
22
22
  },
23
23
  resolve: async (_parent, { id }, context) => {
24
24
  const { isAdmin } = context;
@@ -26,14 +26,14 @@ builder.objectType('Stripe', {
26
26
  throw new GraphQLError('Not allowed');
27
27
  const connectedAccount = await stripe.accounts.retrieve(id);
28
28
  return connectedAccount;
29
- }
29
+ },
30
30
  }),
31
31
  customer: t.field({
32
32
  type: 'StripeCustomer',
33
33
  args: {
34
34
  id: t.arg.string({
35
- required: true
36
- })
35
+ required: true,
36
+ }),
37
37
  },
38
38
  resolve: async (_parent, { id }, context) => {
39
39
  const { isAllowed } = context;
@@ -45,27 +45,27 @@ builder.objectType('Stripe', {
45
45
  throw new GraphQLError('The Stripe customer is deleted');
46
46
  }
47
47
  return customer;
48
- }
48
+ },
49
49
  }),
50
50
  customers: t.field({
51
51
  type: 'StripeCustomers',
52
52
  args: {
53
53
  email: t.arg.string({
54
54
  description: "A case-sensitive filter on the list based on the customer's `email` field. The value must be a string.",
55
- required: false
55
+ required: false,
56
56
  }),
57
57
  endingBefore: t.arg.string({
58
58
  description: 'A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.',
59
- required: false
59
+ required: false,
60
60
  }),
61
61
  limit: t.arg.int({
62
62
  description: 'A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.',
63
- required: false
63
+ required: false,
64
64
  }),
65
65
  startingAfter: t.arg.string({
66
66
  description: 'A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.',
67
- required: false
68
- })
67
+ required: false,
68
+ }),
69
69
  },
70
70
  resolve: async (_parent, { email, endingBefore, limit, startingAfter }, context) => {
71
71
  const { isAllowed } = context;
@@ -73,7 +73,7 @@ builder.objectType('Stripe', {
73
73
  email: email || undefined,
74
74
  limit: limit || undefined,
75
75
  ending_before: endingBefore || undefined,
76
- starting_after: startingAfter || undefined
76
+ starting_after: startingAfter || undefined,
77
77
  });
78
78
  const customerData = [];
79
79
  for (const customer of customers.data) {
@@ -83,9 +83,9 @@ builder.objectType('Stripe', {
83
83
  }
84
84
  customers.data = customerData;
85
85
  return customers;
86
- }
87
- })
88
- })
86
+ },
87
+ }),
88
+ }),
89
89
  });
90
90
  builder.objectType('StripeMutations', {
91
91
  fields: (t) => ({
@@ -93,17 +93,17 @@ builder.objectType('StripeMutations', {
93
93
  type: 'StripeBillingPortalSession',
94
94
  args: {
95
95
  customer: t.arg.string({
96
- required: true
96
+ required: true,
97
97
  }),
98
98
  configuration: t.arg.string({
99
- required: false
99
+ required: false,
100
100
  }),
101
101
  locale: t.arg.string({
102
- required: false
102
+ required: false,
103
103
  }),
104
104
  returnUrl: t.arg.string({
105
- required: false
106
- })
105
+ required: false,
106
+ }),
107
107
  },
108
108
  resolve: async (_, { customer, configuration, locale, returnUrl }, context) => {
109
109
  const { isAllowed } = context;
@@ -113,24 +113,25 @@ builder.objectType('StripeMutations', {
113
113
  const session = await stripe.billingPortal.sessions.create({
114
114
  customer,
115
115
  configuration: configuration || undefined,
116
- locale: locale || undefined,
117
- return_url: returnUrl || undefined
116
+ locale: locale ||
117
+ undefined,
118
+ return_url: returnUrl || undefined,
118
119
  });
119
120
  return session;
120
- }
121
- })
122
- })
121
+ },
122
+ }),
123
+ }),
123
124
  });
124
125
  builder.queryFields((t) => ({
125
126
  stripe: t.field({
126
127
  type: 'Stripe',
127
- resolve: () => ({})
128
- })
128
+ resolve: () => ({}),
129
+ }),
129
130
  }));
130
131
  builder.mutationFields((t) => ({
131
132
  stripe: t.field({
132
133
  type: 'StripeMutations',
133
- resolve: () => ({})
134
- })
134
+ resolve: () => ({}),
135
+ }),
135
136
  }));
136
137
  //# sourceMappingURL=stripe.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stripe.js","sourceRoot":"","sources":["../../../src/schema/stripe.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC;YACzB,IAAI,EAAE,yBAAyB;YAC/B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE;gBACrC,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAA;gBAE3B,IAAI,CAAC,OAAO;oBAAE,MAAM,IAAI,YAAY,CAAC,aAAa,CAAC,CAAA;gBAEnD,MAAM,iBAAiB,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAA;gBAEtD,OAAO,iBAAiB,CAAA;YAC1B,CAAC;SACF,CAAC;QACF,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC;YACxB,IAAI,EAAE,wBAAwB;YAC9B,IAAI,EAAE;gBACJ,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;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,CAAC;AAEH,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC;QACd,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC;KACpB,CAAC;CACH,CAAC,CAAC,CAAC;AAEJ,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC7B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC;QACd,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC;KACpB,CAAC;CACH,CAAC,CAAC,CAAC"}
@@ -3,8 +3,8 @@ builder.objectType('StripeSubscriptionAutomaticTax', {
3
3
  description: '',
4
4
  fields: (t) => ({
5
5
  enabled: t.exposeBoolean('enabled', {
6
- description: `Whether Stripe automatically computes tax on this subscription.`
7
- })
8
- })
6
+ description: `Whether Stripe automatically computes tax on this subscription.`,
7
+ }),
8
+ }),
9
9
  });
10
10
  //# sourceMappingURL=subscription-automatic-tax.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-automatic-tax.js","sourceRoot":"","sources":["../../../src/schema/subscription-automatic-tax.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,CAAC,UAAU,CAAC,gCAAgC,EAAE;IACnD,WAAW,EAAE,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,aAAa,CAAC,SAAS,EAAE;YAClC,WAAW,EAAE,iEAAiE;SAC/E,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"subscription-automatic-tax.js","sourceRoot":"","sources":["../../../src/schema/subscription-automatic-tax.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,CAAC,UAAU,CAAC,gCAAgC,EAAE;IACnD,WAAW,EAAE,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,aAAa,CAAC,SAAS,EAAE;YAClC,WAAW,EAAE,iEAAiE;SAC/E,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -4,12 +4,12 @@ builder.objectType('StripeSubscriptionBillingThresholds', {
4
4
  fields: (t) => ({
5
5
  amountGte: t.exposeInt('amount_gte', {
6
6
  description: `Monetary threshold that triggers the subscription to create an invoice`,
7
- nullable: true
7
+ nullable: true,
8
8
  }),
9
9
  resetBillingCycleAnchor: t.exposeBoolean('reset_billing_cycle_anchor', {
10
10
  description: `Indicates if the \`billing_cycle_anchor\` should be reset when a threshold is reached. If true, \`billing_cycle_anchor\` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be \`true\` if the subscription contains items with plans that have \`aggregate_usage=last_ever\`.`,
11
- nullable: true
12
- })
13
- })
11
+ nullable: true,
12
+ }),
13
+ }),
14
14
  });
15
15
  //# sourceMappingURL=subscription-billing-thresholds.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-billing-thresholds.js","sourceRoot":"","sources":["../../../src/schema/subscription-billing-thresholds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,CAAC,UAAU,CAAC,qCAAqC,EAAE;IACxD,WAAW,EAAE,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,YAAY,EAAE;YACnC,WAAW,EAAE,wEAAwE;YACrF,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,uBAAuB,EAAE,CAAC,CAAC,aAAa,CAAC,4BAA4B,EAAE;YACrE,WAAW,EAAE,6VAA6V;YAC1W,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"subscription-billing-thresholds.js","sourceRoot":"","sources":["../../../src/schema/subscription-billing-thresholds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,CAAC,UAAU,CAAC,qCAAqC,EAAE;IACxD,WAAW,EAAE,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,YAAY,EAAE;YACnC,WAAW,EAAE,wEAAwE;YACrF,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,uBAAuB,EAAE,CAAC,CAAC,aAAa,CAAC,4BAA4B,EAAE;YACrE,WAAW,EAAE,6VAA6V;YAC1W,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -4,8 +4,8 @@ builder.objectType('StripeSubscriptionItemBillingThresholds', {
4
4
  fields: (t) => ({
5
5
  usageGte: t.exposeInt('usage_gte', {
6
6
  description: `Usage threshold that triggers the subscription to create an invoice`,
7
- nullable: true
8
- })
9
- })
7
+ nullable: true,
8
+ }),
9
+ }),
10
10
  });
11
11
  //# sourceMappingURL=subscription-item-billing-thresholds.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-item-billing-thresholds.js","sourceRoot":"","sources":["../../../src/schema/subscription-item-billing-thresholds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,CAAC,UAAU,CAAC,yCAAyC,EAAE;IAC5D,WAAW,EAAE,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,WAAW,EAAE;YACjC,WAAW,EAAE,qEAAqE;YAClF,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"subscription-item-billing-thresholds.js","sourceRoot":"","sources":["../../../src/schema/subscription-item-billing-thresholds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,CAAC,UAAU,CAAC,yCAAyC,EAAE;IAC5D,WAAW,EAAE,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,WAAW,EAAE;YACjC,WAAW,EAAE,qEAAqE;YAClF,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -3,42 +3,42 @@ builder.objectType('StripeSubscriptionItem', {
3
3
  description: '',
4
4
  fields: (t) => ({
5
5
  id: t.exposeString('id', {
6
- description: `Unique identifier for the object.`
6
+ description: `Unique identifier for the object.`,
7
7
  }),
8
8
  object: t.exposeString('object', {
9
- description: `String representing the object's type. Objects of the same type share the same value.`
9
+ description: `String representing the object's type. Objects of the same type share the same value.`,
10
10
  }),
11
11
  billingThresholds: t.expose('billing_thresholds', {
12
12
  description: `Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period`,
13
13
  type: 'StripeSubscriptionItemBillingThresholds',
14
- nullable: true
14
+ nullable: true,
15
15
  }),
16
16
  created: t.exposeInt('created', {
17
- description: `Time at which the object was created. Measured in seconds since the Unix epoch.`
17
+ description: `Time at which the object was created. Measured in seconds since the Unix epoch.`,
18
18
  }),
19
19
  metadata: t.expose('metadata', {
20
20
  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.`,
21
- type: 'JSON'
21
+ type: 'JSON',
22
22
  }),
23
23
  plan: t.expose('plan', {
24
24
  description: `You can now model subscriptions more flexibly using the [Prices API](https://stripe.com/docs/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.\n\nPlans define the base price, currency, and billing cycle for recurring purchases of products.\n\n[Products](https://stripe.com/docs/api#products) help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme.\n\nFor example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year.\n\nRelated guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription) and more about [products and prices](https://stripe.com/docs/products-prices/overview).`,
25
- type: 'StripePlan'
25
+ type: 'StripePlan',
26
26
  }),
27
27
  price: t.expose('price', {
28
28
  description: `Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products.\n\n[Products](https://stripe.com/docs/api#products) help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme.\n\nFor example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once.\n\nRelated guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription), [create an invoice](https://stripe.com/docs/billing/invoices/create), and more about [products and prices](https://stripe.com/docs/products-prices/overview).`,
29
- type: 'StripePrice'
29
+ type: 'StripePrice',
30
30
  }),
31
31
  quantity: t.exposeInt('quantity', {
32
32
  description: `The [quantity](https://stripe.com/docs/subscriptions/quantities) of the plan to which the customer should be subscribed.`,
33
- nullable: true
33
+ nullable: true,
34
34
  }),
35
35
  subscription: t.exposeString('subscription', {
36
- description: `The \`subscription\` this \`subscription_item\` belongs to.`
37
- })
36
+ description: `The \`subscription\` this \`subscription_item\` belongs to.`,
37
+ }),
38
38
  // todo:
39
39
  // taxRates: t.exposeStringList('tax_rates', {
40
40
  // nullable: true
41
41
  // })
42
- })
42
+ }),
43
43
  });
44
44
  //# sourceMappingURL=subscription-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-item.js","sourceRoot":"","sources":["../../../src/schema/subscription-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,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A8C;QAC9C,mBAAmB;QACnB,KAAK;KACN,CAAC;CACH,CAAC,CAAC"}
@@ -3,15 +3,15 @@ builder.objectType('StripeSubscriptionItems', {
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: ['StripeSubscriptionItem'],
13
- nullable: false
14
- })
15
- })
13
+ nullable: false,
14
+ }),
15
+ }),
16
16
  });
17
17
  //# sourceMappingURL=subscription-items.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-items.js","sourceRoot":"","sources":["../../../src/schema/subscription-items.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE;IAC5C,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,wBAAwB,CAAC;YAChC,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"subscription-items.js","sourceRoot":"","sources":["../../../src/schema/subscription-items.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE;IAC5C,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,wBAAwB,CAAC;YAChC,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -3,12 +3,12 @@ builder.objectType('StripeSubscriptionPauseCollection', {
3
3
  description: '',
4
4
  fields: (t) => ({
5
5
  behavior: t.exposeString('behavior', {
6
- description: 'The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.'
6
+ description: 'The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.',
7
7
  }),
8
8
  resumesAt: t.exposeInt('resumes_at', {
9
9
  description: 'The time after which the subscription will resume collecting payments.',
10
- nullable: true
11
- })
12
- })
10
+ nullable: true,
11
+ }),
12
+ }),
13
13
  });
14
14
  //# sourceMappingURL=subscription-pause-collection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-pause-collection.js","sourceRoot":"","sources":["../../../src/schema/subscription-pause-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,CAAC,UAAU,CAAC,mCAAmC,EAAE;IACtD,WAAW,EAAE,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,QAAQ,EAAE,CAAC,CAAC,YAAY,CAAC,UAAU,EAAE;YACnC,WAAW,EACT,8HAA8H;SACjI,CAAC;QACF,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,YAAY,EAAE;YACnC,WAAW,EAAE,wEAAwE;YACrF,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"subscription-pause-collection.js","sourceRoot":"","sources":["../../../src/schema/subscription-pause-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,CAAC,UAAU,CAAC,mCAAmC,EAAE;IACtD,WAAW,EAAE,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,QAAQ,EAAE,CAAC,CAAC,YAAY,CAAC,UAAU,EAAE;YACnC,WAAW,EACT,8HAA8H;SACjI,CAAC;QACF,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,YAAY,EAAE;YACnC,WAAW,EACT,wEAAwE;YAC1E,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}