@nhost/stripe-graphql-js 0.0.1 → 0.0.2

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 (201) hide show
  1. package/dist/builder.d.ts +66 -0
  2. package/dist/builder.d.ts.map +1 -0
  3. package/dist/builder.js +15 -0
  4. package/dist/builder.js.map +1 -0
  5. package/dist/index.d.ts +5 -0
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +21 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/schema/address.d.ts +2 -0
  10. package/dist/schema/address.d.ts.map +1 -0
  11. package/dist/schema/address.js +14 -0
  12. package/dist/schema/address.js.map +1 -0
  13. package/dist/schema/billing-portal-session.d.ts +2 -0
  14. package/dist/schema/billing-portal-session.d.ts.map +1 -0
  15. package/dist/schema/billing-portal-session.js +23 -0
  16. package/dist/schema/billing-portal-session.js.map +1 -0
  17. package/dist/schema/customer-shipping.d.ts +2 -0
  18. package/dist/schema/customer-shipping.d.ts.map +1 -0
  19. package/dist/schema/customer-shipping.js +24 -0
  20. package/dist/schema/customer-shipping.js.map +1 -0
  21. package/dist/schema/customer-tax-location.d.ts +2 -0
  22. package/dist/schema/customer-tax-location.d.ts.map +1 -0
  23. package/dist/schema/customer-tax-location.js +20 -0
  24. package/dist/schema/customer-tax-location.js.map +1 -0
  25. package/dist/schema/customer-tax.d.ts +2 -0
  26. package/dist/schema/customer-tax.d.ts.map +1 -0
  27. package/dist/schema/customer-tax.js +21 -0
  28. package/dist/schema/customer-tax.js.map +1 -0
  29. package/dist/schema/customer.d.ts +2 -0
  30. package/dist/schema/customer.d.ts.map +1 -0
  31. package/dist/schema/customer.js +126 -0
  32. package/dist/schema/customer.js.map +1 -0
  33. package/dist/schema/customers.d.ts +2 -0
  34. package/dist/schema/customers.d.ts.map +1 -0
  35. package/dist/schema/customers.js +15 -0
  36. package/dist/schema/customers.js.map +1 -0
  37. package/dist/schema/index.d.ts +46 -0
  38. package/dist/schema/index.d.ts.map +1 -0
  39. package/dist/schema/index.js +50 -0
  40. package/dist/schema/index.js.map +1 -0
  41. package/dist/schema/invoice-automatic-tax.d.ts +2 -0
  42. package/dist/schema/invoice-automatic-tax.d.ts.map +1 -0
  43. package/dist/schema/invoice-automatic-tax.js +12 -0
  44. package/dist/schema/invoice-automatic-tax.js.map +1 -0
  45. package/dist/schema/invoice-custom-field.d.ts +2 -0
  46. package/dist/schema/invoice-custom-field.d.ts.map +1 -0
  47. package/dist/schema/invoice-custom-field.js +10 -0
  48. package/dist/schema/invoice-custom-field.js.map +1 -0
  49. package/dist/schema/invoice-customer-shipping.d.ts +2 -0
  50. package/dist/schema/invoice-customer-shipping.d.ts.map +1 -0
  51. package/dist/schema/invoice-customer-shipping.js +24 -0
  52. package/dist/schema/invoice-customer-shipping.js.map +1 -0
  53. package/dist/schema/invoice-customer-tax-id.d.ts +2 -0
  54. package/dist/schema/invoice-customer-tax-id.d.ts.map +1 -0
  55. package/dist/schema/invoice-customer-tax-id.js +12 -0
  56. package/dist/schema/invoice-customer-tax-id.js.map +1 -0
  57. package/dist/schema/invoice-line-item-period.d.ts +2 -0
  58. package/dist/schema/invoice-line-item-period.d.ts.map +1 -0
  59. package/dist/schema/invoice-line-item-period.js +10 -0
  60. package/dist/schema/invoice-line-item-period.js.map +1 -0
  61. package/dist/schema/invoice-line-item-tax-amount.d.ts +2 -0
  62. package/dist/schema/invoice-line-item-tax-amount.d.ts.map +1 -0
  63. package/dist/schema/invoice-line-item-tax-amount.js +15 -0
  64. package/dist/schema/invoice-line-item-tax-amount.js.map +1 -0
  65. package/dist/schema/invoice-line-item.d.ts +2 -0
  66. package/dist/schema/invoice-line-item.d.ts.map +1 -0
  67. package/dist/schema/invoice-line-item.js +59 -0
  68. package/dist/schema/invoice-line-item.js.map +1 -0
  69. package/dist/schema/invoice-line-items.d.ts +2 -0
  70. package/dist/schema/invoice-line-items.d.ts.map +1 -0
  71. package/dist/schema/invoice-line-items.js +15 -0
  72. package/dist/schema/invoice-line-items.js.map +1 -0
  73. package/dist/schema/invoice-rendering-options.d.ts +2 -0
  74. package/dist/schema/invoice-rendering-options.d.ts.map +1 -0
  75. package/dist/schema/invoice-rendering-options.js +12 -0
  76. package/dist/schema/invoice-rendering-options.js.map +1 -0
  77. package/dist/schema/invoice-status-transitions.d.ts +2 -0
  78. package/dist/schema/invoice-status-transitions.d.ts.map +1 -0
  79. package/dist/schema/invoice-status-transitions.js +24 -0
  80. package/dist/schema/invoice-status-transitions.js.map +1 -0
  81. package/dist/schema/invoice.d.ts +2 -0
  82. package/dist/schema/invoice.d.ts.map +1 -0
  83. package/dist/schema/invoice.js +201 -0
  84. package/dist/schema/invoice.js.map +1 -0
  85. package/dist/schema/invoices.d.ts +2 -0
  86. package/dist/schema/invoices.d.ts.map +1 -0
  87. package/dist/schema/invoices.js +15 -0
  88. package/dist/schema/invoices.js.map +1 -0
  89. package/dist/schema/payment-method-billing-details.d.ts +2 -0
  90. package/dist/schema/payment-method-billing-details.d.ts.map +1 -0
  91. package/dist/schema/payment-method-billing-details.js +21 -0
  92. package/dist/schema/payment-method-billing-details.js.map +1 -0
  93. package/dist/schema/payment-method-card-checks.d.ts +2 -0
  94. package/dist/schema/payment-method-card-checks.d.ts.map +1 -0
  95. package/dist/schema/payment-method-card-checks.js +17 -0
  96. package/dist/schema/payment-method-card-checks.js.map +1 -0
  97. package/dist/schema/payment-method-card-networks.d.ts +2 -0
  98. package/dist/schema/payment-method-card-networks.d.ts.map +1 -0
  99. package/dist/schema/payment-method-card-networks.js +12 -0
  100. package/dist/schema/payment-method-card-networks.js.map +1 -0
  101. package/dist/schema/payment-method-card-three-d-secure-usage.d.ts +2 -0
  102. package/dist/schema/payment-method-card-three-d-secure-usage.d.ts.map +1 -0
  103. package/dist/schema/payment-method-card-three-d-secure-usage.js +9 -0
  104. package/dist/schema/payment-method-card-three-d-secure-usage.js.map +1 -0
  105. package/dist/schema/payment-method-card-wallet-masterpass.d.ts +2 -0
  106. package/dist/schema/payment-method-card-wallet-masterpass.d.ts.map +1 -0
  107. package/dist/schema/payment-method-card-wallet-masterpass.js +22 -0
  108. package/dist/schema/payment-method-card-wallet-masterpass.js.map +1 -0
  109. package/dist/schema/payment-method-card-wallet-visa-checkout.d.ts +2 -0
  110. package/dist/schema/payment-method-card-wallet-visa-checkout.d.ts.map +1 -0
  111. package/dist/schema/payment-method-card-wallet-visa-checkout.js +22 -0
  112. package/dist/schema/payment-method-card-wallet-visa-checkout.js.map +1 -0
  113. package/dist/schema/payment-method-card-wallet.d.ts +2 -0
  114. package/dist/schema/payment-method-card-wallet.d.ts.map +1 -0
  115. package/dist/schema/payment-method-card-wallet.js +31 -0
  116. package/dist/schema/payment-method-card-wallet.js.map +1 -0
  117. package/dist/schema/payment-method-card.d.ts +2 -0
  118. package/dist/schema/payment-method-card.d.ts.map +1 -0
  119. package/dist/schema/payment-method-card.js +48 -0
  120. package/dist/schema/payment-method-card.js.map +1 -0
  121. package/dist/schema/payment-method.d.ts +2 -0
  122. package/dist/schema/payment-method.d.ts.map +1 -0
  123. package/dist/schema/payment-method.js +27 -0
  124. package/dist/schema/payment-method.js.map +1 -0
  125. package/dist/schema/payment-methods.d.ts +2 -0
  126. package/dist/schema/payment-methods.d.ts.map +1 -0
  127. package/dist/schema/payment-methods.js +66 -0
  128. package/dist/schema/payment-methods.js.map +1 -0
  129. package/dist/schema/plan-transform-usage.d.ts +2 -0
  130. package/dist/schema/plan-transform-usage.d.ts.map +1 -0
  131. package/dist/schema/plan-transform-usage.js +15 -0
  132. package/dist/schema/plan-transform-usage.js.map +1 -0
  133. package/dist/schema/plan.d.ts +2 -0
  134. package/dist/schema/plan.d.ts.map +1 -0
  135. package/dist/schema/plan.js +69 -0
  136. package/dist/schema/plan.js.map +1 -0
  137. package/dist/schema/price.d.ts +2 -0
  138. package/dist/schema/price.d.ts.map +1 -0
  139. package/dist/schema/price.js +63 -0
  140. package/dist/schema/price.js.map +1 -0
  141. package/dist/schema/product.d.ts +2 -0
  142. package/dist/schema/product.d.ts.map +1 -0
  143. package/dist/schema/product.js +75 -0
  144. package/dist/schema/product.js.map +1 -0
  145. package/dist/schema/stripe.d.ts +2 -0
  146. package/dist/schema/stripe.d.ts.map +1 -0
  147. package/dist/schema/stripe.js +117 -0
  148. package/dist/schema/stripe.js.map +1 -0
  149. package/dist/schema/subscription-automatic-tax.d.ts +2 -0
  150. package/dist/schema/subscription-automatic-tax.d.ts.map +1 -0
  151. package/dist/schema/subscription-automatic-tax.js +10 -0
  152. package/dist/schema/subscription-automatic-tax.js.map +1 -0
  153. package/dist/schema/subscription-billing-thresholds.d.ts +2 -0
  154. package/dist/schema/subscription-billing-thresholds.d.ts.map +1 -0
  155. package/dist/schema/subscription-billing-thresholds.js +15 -0
  156. package/dist/schema/subscription-billing-thresholds.js.map +1 -0
  157. package/dist/schema/subscription-item-billing-thresholds.d.ts +2 -0
  158. package/dist/schema/subscription-item-billing-thresholds.d.ts.map +1 -0
  159. package/dist/schema/subscription-item-billing-thresholds.js +12 -0
  160. package/dist/schema/subscription-item-billing-thresholds.js.map +1 -0
  161. package/dist/schema/subscription-item.d.ts +2 -0
  162. package/dist/schema/subscription-item.d.ts.map +1 -0
  163. package/dist/schema/subscription-item.js +33 -0
  164. package/dist/schema/subscription-item.js.map +1 -0
  165. package/dist/schema/subscription-items.d.ts +2 -0
  166. package/dist/schema/subscription-items.d.ts.map +1 -0
  167. package/dist/schema/subscription-items.js +15 -0
  168. package/dist/schema/subscription-items.js.map +1 -0
  169. package/dist/schema/subscription-pause-collection.d.ts +2 -0
  170. package/dist/schema/subscription-pause-collection.d.ts.map +1 -0
  171. package/dist/schema/subscription-pause-collection.js +16 -0
  172. package/dist/schema/subscription-pause-collection.js.map +1 -0
  173. package/dist/schema/subscription.d.ts +2 -0
  174. package/dist/schema/subscription.d.ts.map +1 -0
  175. package/dist/schema/subscription.js +134 -0
  176. package/dist/schema/subscription.js.map +1 -0
  177. package/dist/schema/subscriptions.d.ts +2 -0
  178. package/dist/schema/subscriptions.d.ts.map +1 -0
  179. package/dist/schema/subscriptions.js +15 -0
  180. package/dist/schema/subscriptions.js.map +1 -0
  181. package/dist/schema/tax-rate.d.ts +2 -0
  182. package/dist/schema/tax-rate.d.ts.map +1 -0
  183. package/dist/schema/tax-rate.js +58 -0
  184. package/dist/schema/tax-rate.js.map +1 -0
  185. package/dist/schema/test-clock.d.ts +2 -0
  186. package/dist/schema/test-clock.d.ts.map +1 -0
  187. package/dist/schema/test-clock.js +19 -0
  188. package/dist/schema/test-clock.js.map +1 -0
  189. package/dist/server.d.ts +9 -0
  190. package/dist/server.d.ts.map +1 -0
  191. package/dist/server.js +41 -0
  192. package/dist/server.js.map +1 -0
  193. package/dist/types.d.ts +32 -0
  194. package/dist/types.d.ts.map +1 -0
  195. package/dist/types.js +3 -0
  196. package/dist/types.js.map +1 -0
  197. package/dist/utils.d.ts +5 -0
  198. package/dist/utils.d.ts.map +1 -0
  199. package/dist/utils.js +34 -0
  200. package/dist/utils.js.map +1 -0
  201. package/package.json +1 -1
@@ -0,0 +1,66 @@
1
+ import Stripe from 'stripe';
2
+ import { Context, StripeInvoice, StripePaymentMethod, StripeSubscription } from './types';
3
+ declare const builder: PothosSchemaTypes.SchemaBuilder<PothosSchemaTypes.ExtendDefaultTypes<{
4
+ Scalars: {
5
+ JSON: {
6
+ Output: unknown;
7
+ Input: JSON;
8
+ };
9
+ };
10
+ Objects: {
11
+ Stripe: {};
12
+ StripeMutations: {};
13
+ StripeCustomers: Stripe.ApiList<Stripe.Customer>;
14
+ StripeCustomer: Stripe.Customer;
15
+ StripeCustomerShipping: Stripe.Customer.Shipping;
16
+ StripeCustomerTax: Stripe.Customer.Tax;
17
+ StripeCustomerTaxAutomaticTax: Stripe.Customer.Tax.AutomaticTax;
18
+ StripeCustomerTaxLocation: Stripe.Customer.Tax.Location;
19
+ StripeAddress: Stripe.Address;
20
+ StripePaymentMethods: Stripe.ApiList<StripePaymentMethod>;
21
+ StripePaymentMethod: StripePaymentMethod;
22
+ StripeCustomerListPaymentMethodsParamsType: Stripe.CustomerListPaymentMethodsParams.Type;
23
+ StripePaymentMethodBillingDetails: Stripe.PaymentMethod.BillingDetails;
24
+ StripePaymentMethodTypes: Stripe.PaymentMethod.Type;
25
+ StripePaymentMethodCard: Stripe.PaymentMethod.Card;
26
+ StripePaymentMethodCardChecks: Stripe.PaymentMethod.Card.Checks;
27
+ StripePaymentMethodCardNetworks: Stripe.PaymentMethod.Card.Networks;
28
+ StripePaymentMethodCardThreeDSecureUsage: Stripe.PaymentMethod.Card.ThreeDSecureUsage;
29
+ StripePaymentMethodCardWallet: Stripe.PaymentMethod.Card.Wallet;
30
+ StripePaymentMethodCardWalletMasterpass: Stripe.PaymentMethod.Card.Wallet.Masterpass;
31
+ StripePaymentMethodCardWalletType: Stripe.PaymentMethod.Card.Wallet.Type;
32
+ StripePaymentMethodCardWalletVisaMasterpass: Stripe.PaymentMethod.Card.Wallet.Masterpass;
33
+ StripePaymentMethodCardWalletVisaCheckout: Stripe.PaymentMethod.Card.Wallet.VisaCheckout;
34
+ StripeSubscriptions: Stripe.ApiList<StripeSubscription>;
35
+ StripeSubscription: StripeSubscription;
36
+ StripeSubscriptionStatus: Stripe.Subscription.Status;
37
+ StripeSubscriptionItems: Stripe.ApiList<Stripe.SubscriptionItem>;
38
+ StripeSubscriptionItem: Stripe.SubscriptionItem;
39
+ StripeSubscriptionItemBillingThresholds: Stripe.SubscriptionItem.BillingThresholds;
40
+ StripeSubscriptionAutomaticTax: Stripe.Subscription.AutomaticTax;
41
+ StripeSubscriptionBillingThresholds: Stripe.Subscription.BillingThresholds;
42
+ StripeSubscriptionPauseCollection: Stripe.Subscription.PauseCollection;
43
+ StripeInvoice: StripeInvoice;
44
+ StripeInvoices: Stripe.ApiList<StripeInvoice>;
45
+ StripeInvoiceAutomaticTax: Stripe.Invoice.AutomaticTax;
46
+ StripeInvoiceCustomField: Stripe.Invoice.CustomField;
47
+ StripeInvoiceCustomerShipping: Stripe.Invoice.CustomerShipping;
48
+ StripeInvoiceCustomerTaxId: Stripe.Invoice.CustomerTaxId;
49
+ StripeInvoiceRenderingOptions: Stripe.Invoice.RenderingOptions;
50
+ StripeInvoiceStatusTransitions: Stripe.Invoice.StatusTransitions;
51
+ StripeInvoiceLineItems: Stripe.ApiList<Stripe.InvoiceLineItem>;
52
+ StripeInvoiceLineItem: Stripe.InvoiceLineItem;
53
+ StripeInvoiceLineItemPeriod: Stripe.InvoiceLineItem.Period;
54
+ StripeInvoiceLineItemTaxAmount: Stripe.InvoiceLineItem.TaxAmount;
55
+ StripePrice: Stripe.Price;
56
+ StripePlan: Stripe.Plan;
57
+ StripePlanTransformUsage: Stripe.Plan.TransformUsage;
58
+ StripeProduct: Stripe.Product;
59
+ StripeTaxRate: Stripe.TaxRate;
60
+ StripeTestClock: Stripe.TestHelpers.TestClock;
61
+ StripeBillingPortalSession: Stripe.BillingPortal.Session;
62
+ };
63
+ Context: Context;
64
+ }>>;
65
+ export { builder };
66
+ //# sourceMappingURL=builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../src/builder.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,QAAQ,CAAA;AAI3B,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAIzF,QAAA,MAAM,OAAO;aACF;QACP,MAAM;YACJ,MAAM,EAAE,OAAO,CAAA;YACf,KAAK,EAAE,IAAI,CAAA;SACZ,CAAA;KACF;aACQ;QACP,QAAQ,EAAE,CAAA;QACV,eAAe,EAAE,EAAE,CAAA;QAGnB,eAAe,EAAE,OAAO,OAAO,CAAC,OAAO,QAAQ,CAAC,CAAA;QAChD,cAAc,EAAE,OAAO,QAAQ,CAAA;QAC/B,sBAAsB,EAAE,OAAO,QAAQ,CAAC,QAAQ,CAAA;QAChD,iBAAiB,EAAE,OAAO,QAAQ,CAAC,GAAG,CAAA;QACt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2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.builder = void 0;
7
+ const graphql_scalars_1 = require("graphql-scalars");
8
+ const core_1 = __importDefault(require("@pothos/core"));
9
+ // TODO: Make sure we either use Type or Types (e.g. StripePaymentMethodTypes or StripePaymentMethodType ) everywhere
10
+ const builder = new core_1.default({});
11
+ exports.builder = builder;
12
+ builder.queryType();
13
+ builder.mutationType();
14
+ builder.addScalarType('JSON', graphql_scalars_1.GraphQLJSONObject, {});
15
+ //# sourceMappingURL=builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder.js","sourceRoot":"","sources":["../src/builder.ts"],"names":[],"mappings":";;;;;;AAAA,qDAAmD;AAGnD,wDAAwC;AAIxC,qHAAqH;AAErH,MAAM,OAAO,GAAG,IAAI,cAAa,CAwF9B,EAAE,CAAC,CAAA;AAOG,0BAAO;AALhB,OAAO,CAAC,SAAS,EAAE,CAAA;AACnB,OAAO,CAAC,YAAY,EAAE,CAAA;AAEtB,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE,mCAAiB,EAAE,EAAE,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './builder';
2
+ export * from './schema';
3
+ export * from './server';
4
+ export * from './types';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./builder"), exports);
18
+ __exportStar(require("./schema"), exports);
19
+ __exportStar(require("./server"), exports);
20
+ __exportStar(require("./types"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,2CAAwB;AACxB,2CAAwB;AACxB,0CAAuB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/schema/address.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const builder_1 = require("../builder");
4
+ builder_1.builder.objectType('StripeAddress', {
5
+ fields: (t) => ({
6
+ line1: t.exposeString('line1', { nullable: true }),
7
+ line2: t.exposeString('line2', { nullable: true }),
8
+ postalCode: t.exposeString('postal_code', { nullable: true }),
9
+ city: t.exposeString('city', { nullable: true }),
10
+ state: t.exposeString('state', { nullable: true }),
11
+ country: t.exposeString('country', { nullable: true })
12
+ })
13
+ });
14
+ //# sourceMappingURL=address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/schema/address.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,eAAe,EAAE;IAClC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAClD,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAClD,UAAU,EAAE,CAAC,CAAC,YAAY,CAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAC7D,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAChD,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAClD,OAAO,EAAE,CAAC,CAAC,YAAY,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;KACvD,CAAC;CACH,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=billing-portal-session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing-portal-session.d.ts","sourceRoot":"","sources":["../../src/schema/billing-portal-session.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const builder_1 = require("../builder");
4
+ builder_1.builder.objectType('StripeBillingPortalSession', {
5
+ description: '',
6
+ fields: (t) => ({
7
+ id: t.exposeString('id'),
8
+ object: t.exposeString('object'),
9
+ // todo: configuration
10
+ created: t.exposeInt('created'),
11
+ // todo: customer
12
+ livemode: t.exposeBoolean('livemode'),
13
+ locale: t.exposeString('locale', {
14
+ nullable: true
15
+ }),
16
+ // todo: on behalf of
17
+ returnUrl: t.exposeString('return_url', {
18
+ nullable: true
19
+ }),
20
+ url: t.exposeString('url')
21
+ })
22
+ });
23
+ //# sourceMappingURL=billing-portal-session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing-portal-session.js","sourceRoot":"","sources":["../../src/schema/billing-portal-session.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,4BAA4B,EAAE;IAC/C,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,sBAAsB;QACtB,OAAO,EAAE,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC;QAC/B,iBAAiB;QACjB,QAAQ,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,CAAC;QACrC,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,EAAE;YAC/B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,qBAAqB;QACrB,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YAAY,EAAE;YACtC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC;KAC3B,CAAC;CACH,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=customer-shipping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-shipping.d.ts","sourceRoot":"","sources":["../../src/schema/customer-shipping.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const builder_1 = require("../builder");
4
+ builder_1.builder.objectType('StripeCustomerShipping', {
5
+ fields: (t) => ({
6
+ address: t.expose('address', {
7
+ type: 'StripeAddress',
8
+ nullable: true
9
+ }),
10
+ carrier: t.exposeString('carrier', {
11
+ nullable: true
12
+ }),
13
+ name: t.exposeString('name', {
14
+ nullable: true
15
+ }),
16
+ phone: t.exposeString('phone', {
17
+ nullable: true
18
+ }),
19
+ trackingNumber: t.exposeString('tracking_number', {
20
+ nullable: true
21
+ })
22
+ })
23
+ });
24
+ //# sourceMappingURL=customer-shipping.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-shipping.js","sourceRoot":"","sources":["../../src/schema/customer-shipping.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE;IAC3C,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE;YAC3B,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,CAAC,CAAC,YAAY,CAAC,SAAS,EAAE;YACjC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE;YAC3B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,cAAc,EAAE,CAAC,CAAC,YAAY,CAAC,iBAAiB,EAAE;YAChD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=customer-tax-location.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-tax-location.d.ts","sourceRoot":"","sources":["../../src/schema/customer-tax-location.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const builder_1 = require("../builder");
4
+ builder_1.builder.objectType('StripeCustomerTaxLocation', {
5
+ fields: (t) => ({
6
+ country: t.exposeString('country'),
7
+ // todo: implement correct enum
8
+ // source: t.expose('source', {
9
+ // type: 'StripeCustomerTaxLocation',
10
+ // nullable: true
11
+ // }),
12
+ state: t.exposeString('state', {
13
+ nullable: true
14
+ })
15
+ })
16
+ });
17
+ // namespace Location {
18
+ // type Source = 'billing_address' | 'ip_address' | 'payment_method' | 'shipping_destination'
19
+ // }
20
+ //# sourceMappingURL=customer-tax-location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-tax-location.js","sourceRoot":"","sources":["../../src/schema/customer-tax-location.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,YAAY,CAAC,SAAS,CAAC;QAClC,+BAA+B;QAC/B,+BAA+B;QAC/B,uCAAuC;QACvC,mBAAmB;QACnB,MAAM;QACN,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA;AAEF,uBAAuB;AACvB,+FAA+F;AAC/F,IAAI"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=customer-tax.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-tax.d.ts","sourceRoot":"","sources":["../../src/schema/customer-tax.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const builder_1 = require("../builder");
4
+ builder_1.builder.objectType('StripeCustomerTax', {
5
+ fields: (t) => ({
6
+ // todo: implement correct enum
7
+ // automaticTax: t.expose('automatic_tax', {
8
+ // type: 'StripeCustomerTaxAutomaticTax',
9
+ // nullable: true
10
+ // }),
11
+ ipAddress: t.exposeString('ip_address', {
12
+ nullable: true
13
+ }),
14
+ location: t.expose('location', {
15
+ type: 'StripeCustomerTaxLocation',
16
+ nullable: true
17
+ })
18
+ })
19
+ });
20
+ // type AutomaticTax = 'failed' | 'not_collecting' | 'supported' | 'unrecognized_location'
21
+ //# sourceMappingURL=customer-tax.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer-tax.js","sourceRoot":"","sources":["../../src/schema/customer-tax.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE;IACtC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,+BAA+B;QAC/B,4CAA4C;QAC5C,2CAA2C;QAC3C,mBAAmB;QACnB,MAAM;QACN,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YAAY,EAAE;YACtC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,UAAU,EAAE;YAC7B,IAAI,EAAE,2BAA2B;YACjC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAA;AAEF,0FAA0F"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=customer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../src/schema/customer.ts"],"names":[],"mappings":""}
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const builder_1 = require("../builder");
13
+ const utils_1 = require("../utils");
14
+ const payment_methods_1 = require("./payment-methods");
15
+ builder_1.builder.objectType('StripeCustomer', {
16
+ description: 'This object represents a customer of your business. It lets you create recurring charges and track payments that belong to the same customer.',
17
+ fields: (t) => ({
18
+ id: t.exposeString('id'),
19
+ object: t.exposeString('object'),
20
+ address: t.expose('address', {
21
+ type: 'StripeAddress',
22
+ nullable: true
23
+ }),
24
+ balance: t.exposeInt('balance'),
25
+ // TODO: cash_balance
26
+ created: t.exposeInt('created'),
27
+ currency: t.exposeString('currency', {
28
+ nullable: true
29
+ }),
30
+ // TODO: default_source
31
+ delinquent: t.exposeBoolean('delinquent', {
32
+ nullable: true
33
+ }),
34
+ description: t.exposeString('description', {
35
+ nullable: true
36
+ }),
37
+ // TODO: discount
38
+ email: t.exposeString('email', {
39
+ nullable: true
40
+ }),
41
+ // TODO: invoice_credit_balance
42
+ invoicePrefix: t.exposeString('invoice_prefix', {
43
+ nullable: true
44
+ }),
45
+ // TODO: invoice_settings
46
+ livemode: t.exposeBoolean('livemode'),
47
+ metadata: t.expose('metadata', {
48
+ type: 'JSON'
49
+ }),
50
+ name: t.exposeString('name', {
51
+ nullable: true
52
+ }),
53
+ nextInvoiceSequence: t.exposeInt('next_invoice_sequence', {
54
+ nullable: true
55
+ }),
56
+ phone: t.exposeString('phone', {
57
+ nullable: true
58
+ }),
59
+ preferredLocales: t.exposeStringList('preferred_locales', {
60
+ nullable: true
61
+ }),
62
+ shipping: t.expose('shipping', {
63
+ type: 'StripeCustomerShipping',
64
+ nullable: true
65
+ }),
66
+ // TODO: sources
67
+ tax: t.expose('tax', {
68
+ type: 'StripeCustomerTax',
69
+ nullable: true
70
+ }),
71
+ // TODO: tax_exempt
72
+ // type TaxExempt = 'exempt' | 'none' | 'reverse';
73
+ // TODO: tax_ids
74
+ // tax_ids?: ApiList<Stripe.TaxId>;
75
+ subscriptions: t.field({
76
+ type: 'StripeSubscriptions',
77
+ nullable: false,
78
+ resolve: (customer) => __awaiter(void 0, void 0, void 0, function* () {
79
+ const subscriptions = yield utils_1.stripe.subscriptions.list({
80
+ customer: customer.id
81
+ });
82
+ return subscriptions;
83
+ })
84
+ }),
85
+ invoices: t.field({
86
+ type: 'StripeInvoices',
87
+ nullable: false,
88
+ resolve: (customer) => __awaiter(void 0, void 0, void 0, function* () {
89
+ const invoices = yield utils_1.stripe.invoices.list({
90
+ customer: customer.id
91
+ });
92
+ return invoices;
93
+ })
94
+ }),
95
+ paymentMethods: t.field({
96
+ type: 'StripePaymentMethods',
97
+ args: {
98
+ type: t.arg({
99
+ type: payment_methods_1.StripePaymentMethodTypes,
100
+ required: true,
101
+ defaultValue: 'card'
102
+ }),
103
+ startingAfter: t.arg.string({
104
+ required: false
105
+ }),
106
+ endingBefore: t.arg.string({
107
+ required: false
108
+ }),
109
+ limit: t.arg.int({
110
+ required: false
111
+ })
112
+ },
113
+ nullable: false,
114
+ resolve: (customer, { type, startingAfter, endingBefore, limit }) => __awaiter(void 0, void 0, void 0, function* () {
115
+ const paymentMethods = yield utils_1.stripe.customers.listPaymentMethods(customer.id, {
116
+ type,
117
+ starting_after: startingAfter || undefined,
118
+ ending_before: endingBefore || undefined,
119
+ limit: limit || undefined
120
+ });
121
+ return paymentMethods;
122
+ })
123
+ })
124
+ })
125
+ });
126
+ //# sourceMappingURL=customer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer.js","sourceRoot":"","sources":["../../src/schema/customer.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,wCAAoC;AAEpC,oCAAiC;AAEjC,uDAA4D;AAE5D,iBAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE;IACnC,WAAW,EACT,+IAA+I;IACjJ,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,OAAO,EAAE,CAAC,CAAC,MAAM,C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Q,EAAE,KAAK;iBAChB,CAAC;gBACF,YAAY,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;oBACzB,QAAQ,EAAE,KAAK;iBAChB,CAAC;gBACF,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;oBACf,QAAQ,EAAE,KAAK;iBAChB,CAAC;aACH;YACD,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,CAAO,QAAQ,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,EAAE;gBACxE,MAAM,cAAc,GAAG,MAAM,cAAM,CAAC,SAAS,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,EAAE;oBAC5E,IAAI;oBACJ,cAAc,EAAE,aAAa,IAAI,SAAS;oBAC1C,aAAa,EAAE,YAAY,IAAI,SAAS;oBACxC,KAAK,EAAE,KAAK,IAAI,SAAS;iBAC1B,CAAC,CAAA;gBACF,OAAO,cAAsE,CAAA;YAC/E,CAAC,CAAA;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=customers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../src/schema/customers.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const builder_1 = require("../builder");
4
+ builder_1.builder.objectType('StripeCustomers', {
5
+ fields: (t) => ({
6
+ object: t.exposeString('object'),
7
+ url: t.exposeString('url'),
8
+ hasMore: t.exposeBoolean('has_more'),
9
+ data: t.expose('data', {
10
+ type: ['StripeCustomer'],
11
+ nullable: false
12
+ })
13
+ })
14
+ });
15
+ //# sourceMappingURL=customers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customers.js","sourceRoot":"","sources":["../../src/schema/customers.ts"],"names":[],"mappings":";;AAAA,wCAAoC;AAEpC,iBAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE;IACpC,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,gBAAgB,CAAC;YACxB,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH,CAAC;CACH,CAAC,CAAA"}
@@ -0,0 +1,46 @@
1
+ import './address';
2
+ import './customer';
3
+ import './customers';
4
+ import './customer-shipping';
5
+ import './customer-tax';
6
+ import './customer-tax-location';
7
+ import './payment-methods';
8
+ import './payment-method';
9
+ import './payment-method-billing-details';
10
+ import './payment-method-card';
11
+ import './payment-method-card-checks';
12
+ import './payment-method-card-networks';
13
+ import './payment-method-card-three-d-secure-usage';
14
+ import './payment-method-card-wallet-masterpass';
15
+ import './payment-method-card-wallet-visa-checkout';
16
+ import './payment-method-card-wallet';
17
+ import './stripe';
18
+ import './subscriptions';
19
+ import './subscription';
20
+ import './subscription-items';
21
+ import './subscription-item';
22
+ import './subscription-item-billing-thresholds';
23
+ import './subscription-automatic-tax';
24
+ import './subscription-billing-thresholds';
25
+ import './subscription-pause-collection';
26
+ import './invoices';
27
+ import './invoice';
28
+ import './invoice-automatic-tax';
29
+ import './invoice-custom-field';
30
+ import './invoice-customer-shipping';
31
+ import './invoice-customer-tax-id';
32
+ import './invoice-line-items';
33
+ import './invoice-line-item';
34
+ import './invoice-line-item-period';
35
+ import './invoice-line-item-tax-amount';
36
+ import './invoice-rendering-options';
37
+ import './invoice-status-transitions';
38
+ import './plan';
39
+ import './plan-transform-usage';
40
+ import './price';
41
+ import './product';
42
+ import './tax-rate';
43
+ import './test-clock';
44
+ import './billing-portal-session';
45
+ export declare const schema: import("graphql").GraphQLSchema;
46
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,CAAA;AAClB,OAAO,YAAY,CAAA;AACnB,OAAO,aAAa,CAAA;AACpB,OAAO,qBAAqB,CAAA;AAC5B,OAAO,gBAAgB,CAAA;AACvB,OAAO,yBAAyB,CAAA;AAChC,OAAO,mBAAmB,CAAA;AAC1B,OAAO,kBAAkB,CAAA;AACzB,OAAO,kCAAkC,CAAA;AACzC,OAAO,uBAAuB,CAAA;AAC9B,OAAO,8BAA8B,CAAA;AACrC,OAAO,gCAAgC,CAAA;AACvC,OAAO,4CAA4C,CAAA;AACnD,OAAO,yCAAyC,CAAA;AAChD,OAAO,4CAA4C,CAAA;AACnD,OAAO,8BAA8B,CAAA;AACrC,OAAO,UAAU,CAAA;AACjB,OAAO,iBAAiB,CAAA;AACxB,OAAO,gBAAgB,CAAA;AACvB,OAAO,sBAAsB,CAAA;AAC7B,OAAO,qBAAqB,CAAA;AAC5B,OAAO,wCAAwC,CAAA;AAC/C,OAAO,8BAA8B,CAAA;AACrC,OAAO,mCAAmC,CAAA;AAC1C,OAAO,iCAAiC,CAAA;AACxC,OAAO,YAAY,CAAA;AACnB,OAAO,WAAW,CAAA;AAClB,OAAO,yBAAyB,CAAA;AAChC,OAAO,wBAAwB,CAAA;AAC/B,OAAO,6BAA6B,CAAA;AACpC,OAAO,2BAA2B,CAAA;AAClC,OAAO,sBAAsB,CAAA;AAC7B,OAAO,qBAAqB,CAAA;AAC5B,OAAO,4BAA4B,CAAA;AACnC,OAAO,gCAAgC,CAAA;AACvC,OAAO,6BAA6B,CAAA;AACpC,OAAO,8BAA8B,CAAA;AACrC,OAAO,QAAQ,CAAA;AACf,OAAO,wBAAwB,CAAA;AAC/B,OAAO,SAAS,CAAA;AAChB,OAAO,WAAW,CAAA;AAClB,OAAO,YAAY,CAAA;AACnB,OAAO,cAAc,CAAA;AACrB,OAAO,0BAA0B,CAAA;AAIjC,eAAO,MAAM,MAAM,iCAAqB,CAAA"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.schema = void 0;
4
+ require("./address");
5
+ require("./customer");
6
+ require("./customers");
7
+ require("./customer-shipping");
8
+ require("./customer-tax");
9
+ require("./customer-tax-location");
10
+ require("./payment-methods");
11
+ require("./payment-method");
12
+ require("./payment-method-billing-details");
13
+ require("./payment-method-card");
14
+ require("./payment-method-card-checks");
15
+ require("./payment-method-card-networks");
16
+ require("./payment-method-card-three-d-secure-usage");
17
+ require("./payment-method-card-wallet-masterpass");
18
+ require("./payment-method-card-wallet-visa-checkout");
19
+ require("./payment-method-card-wallet");
20
+ require("./stripe");
21
+ require("./subscriptions");
22
+ require("./subscription");
23
+ require("./subscription-items");
24
+ require("./subscription-item");
25
+ require("./subscription-item-billing-thresholds");
26
+ require("./subscription-automatic-tax");
27
+ require("./subscription-billing-thresholds");
28
+ require("./subscription-pause-collection");
29
+ require("./invoices");
30
+ require("./invoice");
31
+ require("./invoice-automatic-tax");
32
+ require("./invoice-custom-field");
33
+ require("./invoice-customer-shipping");
34
+ require("./invoice-customer-tax-id");
35
+ require("./invoice-line-items");
36
+ require("./invoice-line-item");
37
+ require("./invoice-line-item-period");
38
+ require("./invoice-line-item-tax-amount");
39
+ require("./invoice-rendering-options");
40
+ require("./invoice-status-transitions");
41
+ require("./plan");
42
+ require("./plan-transform-usage");
43
+ require("./price");
44
+ require("./product");
45
+ require("./tax-rate");
46
+ require("./test-clock");
47
+ require("./billing-portal-session");
48
+ const builder_1 = require("../builder");
49
+ exports.schema = builder_1.builder.toSchema();
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=invoice-automatic-tax.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoice-automatic-tax.d.ts","sourceRoot":"","sources":["../../src/schema/invoice-automatic-tax.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const builder_1 = require("../builder");
4
+ builder_1.builder.objectType('StripeInvoiceAutomaticTax', {
5
+ fields: (t) => ({
6
+ enabled: t.exposeBoolean('enabled'),
7
+ status: t.exposeString('status', {
8
+ nullable: true
9
+ })
10
+ })
11
+ });
12
+ //# sourceMappingURL=invoice-automatic-tax.js.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=invoice-custom-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoice-custom-field.d.ts","sourceRoot":"","sources":["../../src/schema/invoice-custom-field.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const builder_1 = require("../builder");
4
+ builder_1.builder.objectType('StripeInvoiceCustomField', {
5
+ fields: (t) => ({
6
+ name: t.exposeString('name'),
7
+ value: t.exposeString('value')
8
+ })
9
+ });
10
+ //# sourceMappingURL=invoice-custom-field.js.map
@@ -0,0 +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"}