@nhost/stripe-graphql-js 1.3.0-beta.5 → 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.
- package/README.md +37 -10
- package/dist/src/builder.d.ts +2 -2
- package/dist/src/builder.d.ts.map +1 -1
- package/dist/src/builder.js +1 -1
- package/dist/src/builder.js.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/schema/address.js +8 -8
- package/dist/src/schema/address.js.map +1 -1
- package/dist/src/schema/billing-portal-session.js +9 -9
- package/dist/src/schema/billing-portal-session.js.map +1 -1
- package/dist/src/schema/charge.js +23 -11
- package/dist/src/schema/charge.js.map +1 -1
- package/dist/src/schema/charges.js +3 -3
- package/dist/src/schema/charges.js.map +1 -1
- package/dist/src/schema/connectedAccount.js +2 -2
- package/dist/src/schema/connectedAccount.js.map +1 -1
- package/dist/src/schema/connectedAccounts.js +3 -3
- package/dist/src/schema/connectedAccounts.js.map +1 -1
- package/dist/src/schema/customer-shipping.js +7 -7
- package/dist/src/schema/customer-shipping.js.map +1 -1
- package/dist/src/schema/customer-tax-location.js +4 -4
- package/dist/src/schema/customer-tax-location.js.map +1 -1
- package/dist/src/schema/customer-tax.js +4 -4
- package/dist/src/schema/customer-tax.js.map +1 -1
- package/dist/src/schema/customer.js +35 -35
- package/dist/src/schema/customer.js.map +1 -1
- package/dist/src/schema/customers.js +5 -5
- package/dist/src/schema/customers.js.map +1 -1
- package/dist/src/schema/index.d.ts.map +1 -1
- package/dist/src/schema/index.js.map +1 -1
- package/dist/src/schema/invoice-automatic-tax.js +4 -4
- package/dist/src/schema/invoice-automatic-tax.js.map +1 -1
- package/dist/src/schema/invoice-custom-field.js +4 -4
- package/dist/src/schema/invoice-custom-field.js.map +1 -1
- package/dist/src/schema/invoice-customer-shipping.js +7 -7
- package/dist/src/schema/invoice-customer-shipping.js.map +1 -1
- package/dist/src/schema/invoice-customer-tax-id.js +4 -4
- package/dist/src/schema/invoice-customer-tax-id.js.map +1 -1
- package/dist/src/schema/invoice-line-item-period.js +4 -4
- package/dist/src/schema/invoice-line-item-period.js.map +1 -1
- package/dist/src/schema/invoice-line-item-tax-amount.js +4 -4
- package/dist/src/schema/invoice-line-item-tax-amount.js.map +1 -1
- package/dist/src/schema/invoice-line-item.js +21 -21
- package/dist/src/schema/invoice-line-item.js.map +1 -1
- package/dist/src/schema/invoice-line-items.js +5 -5
- package/dist/src/schema/invoice-line-items.js.map +1 -1
- package/dist/src/schema/invoice-rendering-options.js +3 -3
- package/dist/src/schema/invoice-rendering-options.js.map +1 -1
- package/dist/src/schema/invoice-status-transitions.js +6 -6
- package/dist/src/schema/invoice-status-transitions.js.map +1 -1
- package/dist/src/schema/invoice.js +59 -59
- package/dist/src/schema/invoice.js.map +1 -1
- package/dist/src/schema/invoices.js +5 -5
- package/dist/src/schema/invoices.js.map +1 -1
- package/dist/src/schema/payment-intent.js +14 -14
- package/dist/src/schema/payment-intent.js.map +1 -1
- package/dist/src/schema/payment-intents.js +3 -3
- package/dist/src/schema/payment-intents.js.map +1 -1
- package/dist/src/schema/payment-method-billing-details.js +6 -6
- package/dist/src/schema/payment-method-billing-details.js.map +1 -1
- package/dist/src/schema/payment-method-card-checks.js +5 -5
- package/dist/src/schema/payment-method-card-checks.js.map +1 -1
- package/dist/src/schema/payment-method-card-networks.js +4 -4
- package/dist/src/schema/payment-method-card-networks.js.map +1 -1
- package/dist/src/schema/payment-method-card-three-d-secure-usage.js +3 -3
- package/dist/src/schema/payment-method-card-three-d-secure-usage.js.map +1 -1
- package/dist/src/schema/payment-method-card-wallet-masterpass.js +6 -6
- package/dist/src/schema/payment-method-card-wallet-masterpass.js.map +1 -1
- package/dist/src/schema/payment-method-card-wallet-visa-checkout.js +6 -6
- package/dist/src/schema/payment-method-card-wallet-visa-checkout.js.map +1 -1
- package/dist/src/schema/payment-method-card-wallet.d.ts.map +1 -1
- package/dist/src/schema/payment-method-card-wallet.js +8 -8
- package/dist/src/schema/payment-method-card-wallet.js.map +1 -1
- package/dist/src/schema/payment-method-card.js +16 -16
- package/dist/src/schema/payment-method-card.js.map +1 -1
- package/dist/src/schema/payment-method.js +10 -10
- package/dist/src/schema/payment-method.js.map +1 -1
- package/dist/src/schema/payment-methods.d.ts.map +1 -1
- package/dist/src/schema/payment-methods.js +7 -7
- package/dist/src/schema/payment-methods.js.map +1 -1
- package/dist/src/schema/plan-transform-usage.js +4 -4
- package/dist/src/schema/plan-transform-usage.js.map +1 -1
- package/dist/src/schema/plan.js +21 -21
- package/dist/src/schema/plan.js.map +1 -1
- package/dist/src/schema/price.js +17 -17
- package/dist/src/schema/price.js.map +1 -1
- package/dist/src/schema/product.js +21 -21
- package/dist/src/schema/product.js.map +1 -1
- package/dist/src/schema/stripe.js +31 -30
- package/dist/src/schema/stripe.js.map +1 -1
- package/dist/src/schema/subscription-automatic-tax.js +3 -3
- package/dist/src/schema/subscription-automatic-tax.js.map +1 -1
- package/dist/src/schema/subscription-billing-thresholds.js +4 -4
- package/dist/src/schema/subscription-billing-thresholds.js.map +1 -1
- package/dist/src/schema/subscription-item-billing-thresholds.js +3 -3
- package/dist/src/schema/subscription-item-billing-thresholds.js.map +1 -1
- package/dist/src/schema/subscription-item.js +11 -11
- package/dist/src/schema/subscription-item.js.map +1 -1
- package/dist/src/schema/subscription-items.js +5 -5
- package/dist/src/schema/subscription-items.js.map +1 -1
- package/dist/src/schema/subscription-pause-collection.js +4 -4
- package/dist/src/schema/subscription-pause-collection.js.map +1 -1
- package/dist/src/schema/subscription.js +33 -33
- package/dist/src/schema/subscription.js.map +1 -1
- package/dist/src/schema/subscriptions.js +5 -5
- package/dist/src/schema/subscriptions.js.map +1 -1
- package/dist/src/schema/tax-rate.js +16 -16
- package/dist/src/schema/tax-rate.js.map +1 -1
- package/dist/src/schema/test-clock.js +10 -10
- package/dist/src/schema/test-clock.js.map +1 -1
- package/dist/src/server.d.ts +2 -2
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +3 -3
- package/dist/src/server.js.map +1 -1
- package/dist/src/types.d.ts +1 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils.d.ts +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +3 -2
- package/dist/src/utils.js.map +1 -1
- package/dist/stripe-graphql-js.cjs +2 -0
- package/dist/stripe-graphql-js.cjs.map +1 -0
- package/dist/stripe-graphql-js.js +76 -0
- package/dist/stripe-graphql-js.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +32 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-method-card-three-d-secure-usage.js","sourceRoot":"","sources":["../../../src/schema/payment-method-card-three-d-secure-usage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"payment-method-card-three-d-secure-usage.js","sourceRoot":"","sources":["../../../src/schema/payment-method-card-three-d-secure-usage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,CAAC,UAAU,CAAC,0CAA0C,EAAE;IAC7D,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,WAAW,EAAE;YACtC,WAAW,EAAE,8CAA8C;SAC5D,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -4,21 +4,21 @@ builder.objectType('StripePaymentMethodCardWalletMasterpass', {
|
|
|
4
4
|
billingAddress: t.expose('billing_address', {
|
|
5
5
|
description: `Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.`,
|
|
6
6
|
type: 'StripeAddress',
|
|
7
|
-
nullable: true
|
|
7
|
+
nullable: true,
|
|
8
8
|
}),
|
|
9
9
|
email: t.exposeString('email', {
|
|
10
10
|
description: `Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.`,
|
|
11
|
-
nullable: true
|
|
11
|
+
nullable: true,
|
|
12
12
|
}),
|
|
13
13
|
name: t.exposeString('name', {
|
|
14
14
|
description: `Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.`,
|
|
15
|
-
nullable: true
|
|
15
|
+
nullable: true,
|
|
16
16
|
}),
|
|
17
17
|
shippinAddress: t.expose('shipping_address', {
|
|
18
18
|
description: `Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.`,
|
|
19
19
|
type: 'StripeAddress',
|
|
20
|
-
nullable: true
|
|
21
|
-
})
|
|
22
|
-
})
|
|
20
|
+
nullable: true,
|
|
21
|
+
}),
|
|
22
|
+
}),
|
|
23
23
|
});
|
|
24
24
|
//# sourceMappingURL=payment-method-card-wallet-masterpass.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-method-card-wallet-masterpass.js","sourceRoot":"","sources":["../../../src/schema/payment-method-card-wallet-masterpass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"payment-method-card-wallet-masterpass.js","sourceRoot":"","sources":["../../../src/schema/payment-method-card-wallet-masterpass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,CAAC,UAAU,CAAC,yCAAyC,EAAE;IAC5D,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,iBAAiB,EAAE;YAC1C,WAAW,EAAE,oLAAoL;YACjM,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,WAAW,EAAE,0KAA0K;YACvL,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE;YAC3B,WAAW,EAAE,8KAA8K;YAC3L,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,kBAAkB,EAAE;YAC3C,WAAW,EAAE,qLAAqL;YAClM,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -4,21 +4,21 @@ builder.objectType('StripePaymentMethodCardWalletVisaCheckout', {
|
|
|
4
4
|
billingAddress: t.expose('billing_address', {
|
|
5
5
|
description: `Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.`,
|
|
6
6
|
type: 'StripeAddress',
|
|
7
|
-
nullable: true
|
|
7
|
+
nullable: true,
|
|
8
8
|
}),
|
|
9
9
|
email: t.exposeString('email', {
|
|
10
10
|
description: `Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.`,
|
|
11
|
-
nullable: true
|
|
11
|
+
nullable: true,
|
|
12
12
|
}),
|
|
13
13
|
name: t.exposeString('name', {
|
|
14
14
|
description: `Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.`,
|
|
15
|
-
nullable: true
|
|
15
|
+
nullable: true,
|
|
16
16
|
}),
|
|
17
17
|
shippinAddress: t.expose('shipping_address', {
|
|
18
18
|
description: `Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.`,
|
|
19
19
|
type: 'StripeAddress',
|
|
20
|
-
nullable: true
|
|
21
|
-
})
|
|
22
|
-
})
|
|
20
|
+
nullable: true,
|
|
21
|
+
}),
|
|
22
|
+
}),
|
|
23
23
|
});
|
|
24
24
|
//# sourceMappingURL=payment-method-card-wallet-visa-checkout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-method-card-wallet-visa-checkout.js","sourceRoot":"","sources":["../../../src/schema/payment-method-card-wallet-visa-checkout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"payment-method-card-wallet-visa-checkout.js","sourceRoot":"","sources":["../../../src/schema/payment-method-card-wallet-visa-checkout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,CAAC,UAAU,CAAC,2CAA2C,EAAE;IAC9D,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,iBAAiB,EAAE;YAC1C,WAAW,EAAE,oLAAoL;YACjM,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,WAAW,EAAE,0KAA0K;YACvL,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE;YAC3B,WAAW,EAAE,8KAA8K;YAC3L,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,kBAAkB,EAAE;YAC3C,WAAW,EAAE,qLAAqL;YAClM,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-method-card-wallet.d.ts","sourceRoot":"","sources":["../../../src/schema/payment-method-card-wallet.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,iCAAiC,4PAY7C,
|
|
1
|
+
{"version":3,"file":"payment-method-card-wallet.d.ts","sourceRoot":"","sources":["../../../src/schema/payment-method-card-wallet.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,iCAAiC,4PAY7C,CAAC"}
|
|
@@ -3,21 +3,21 @@ builder.objectType('StripePaymentMethodCardWallet', {
|
|
|
3
3
|
fields: (t) => ({
|
|
4
4
|
dynamicLast4: t.exposeString('dynamic_last4', {
|
|
5
5
|
description: `(For tokenized numbers only.) The last four digits of the device account number.`,
|
|
6
|
-
nullable: true
|
|
6
|
+
nullable: true,
|
|
7
7
|
}),
|
|
8
8
|
masterpass: t.expose('masterpass', {
|
|
9
9
|
type: 'StripePaymentMethodCardWalletMasterpass',
|
|
10
|
-
nullable: true
|
|
10
|
+
nullable: true,
|
|
11
11
|
}),
|
|
12
12
|
type: t.expose('type', {
|
|
13
13
|
description: `The type of the card wallet, one of \`amex_express_checkout\`, \`apple_pay\`, \`google_pay\`, \`masterpass\`, \`samsung_pay\`, or \`visa_checkout\`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.`,
|
|
14
|
-
type: 'StripePaymentMethodCardWalletType'
|
|
14
|
+
type: 'StripePaymentMethodCardWalletType',
|
|
15
15
|
}),
|
|
16
16
|
visaCheckout: t.expose('visa_checkout', {
|
|
17
17
|
type: 'StripePaymentMethodCardWalletVisaCheckout',
|
|
18
|
-
nullable: true
|
|
19
|
-
})
|
|
20
|
-
})
|
|
18
|
+
nullable: true,
|
|
19
|
+
}),
|
|
20
|
+
}),
|
|
21
21
|
});
|
|
22
22
|
export const StripePaymentMethodCardWalletType = builder.enumType('StripePaymentMethodCardWalletType', {
|
|
23
23
|
values: [
|
|
@@ -26,7 +26,7 @@ export const StripePaymentMethodCardWalletType = builder.enumType('StripePayment
|
|
|
26
26
|
'google_pay',
|
|
27
27
|
'masterpass',
|
|
28
28
|
'samsung_pay',
|
|
29
|
-
'visa_checkout'
|
|
30
|
-
]
|
|
29
|
+
'visa_checkout',
|
|
30
|
+
],
|
|
31
31
|
});
|
|
32
32
|
//# sourceMappingURL=payment-method-card-wallet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-method-card-wallet.js","sourceRoot":"","sources":["../../../src/schema/payment-method-card-wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"payment-method-card-wallet.js","sourceRoot":"","sources":["../../../src/schema/payment-method-card-wallet.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,YAAY,EAAE,CAAC,CAAC,YAAY,CAAC,eAAe,EAAE;YAC5C,WAAW,EAAE,kFAAkF;YAC/F,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE;YACjC,IAAI,EAAE,yCAAyC;YAC/C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE;YACrB,WAAW,EAAE,iTAAiT;YAC9T,IAAI,EAAE,mCAAmC;SAC1C,CAAC;QACF,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,eAAe,EAAE;YACtC,IAAI,EAAE,2CAA2C;YACjD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG,OAAO,CAAC,QAAQ,CAC/D,mCAAmC,EACnC;IACE,MAAM,EAAE;QACN,uBAAuB;QACvB,WAAW;QACX,YAAY;QACZ,YAAY;QACZ,aAAa;QACb,eAAe;KACP;CACX,CACF,CAAC"}
|
|
@@ -2,60 +2,60 @@ import { builder } from '../builder';
|
|
|
2
2
|
builder.objectType('StripePaymentMethodCard', {
|
|
3
3
|
fields: (t) => ({
|
|
4
4
|
brand: t.exposeString('brand', {
|
|
5
|
-
description: `Card brand. Can be \`amex\`, \`diners\`, \`discover\`, \`jcb\`, \`mastercard\`, \`unionpay\`, \`visa\`, or \`unknown
|
|
5
|
+
description: `Card brand. Can be \`amex\`, \`diners\`, \`discover\`, \`jcb\`, \`mastercard\`, \`unionpay\`, \`visa\`, or \`unknown\`.`,
|
|
6
6
|
}),
|
|
7
7
|
check: t.expose('checks', {
|
|
8
8
|
description: `Checks on Card address and CVC if provided.`,
|
|
9
9
|
type: 'StripePaymentMethodCardChecks',
|
|
10
|
-
nullable: true
|
|
10
|
+
nullable: true,
|
|
11
11
|
}),
|
|
12
12
|
country: t.exposeString('country', {
|
|
13
13
|
description: `Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.`,
|
|
14
|
-
nullable: true
|
|
14
|
+
nullable: true,
|
|
15
15
|
}),
|
|
16
16
|
description: t.exposeString('description', {
|
|
17
17
|
description: `A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)`,
|
|
18
|
-
nullable: true
|
|
18
|
+
nullable: true,
|
|
19
19
|
}),
|
|
20
20
|
expMonth: t.exposeInt('exp_month', {
|
|
21
|
-
description: `Two-digit number representing the card's expiration month
|
|
21
|
+
description: `Two-digit number representing the card's expiration month.`,
|
|
22
22
|
}),
|
|
23
23
|
expYear: t.exposeInt('exp_year', {
|
|
24
|
-
description: `Four-digit number representing the card's expiration year
|
|
24
|
+
description: `Four-digit number representing the card's expiration year.`,
|
|
25
25
|
}),
|
|
26
26
|
fingerprint: t.exposeString('fingerprint', {
|
|
27
27
|
description: `Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.\n\n*Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.*`,
|
|
28
|
-
nullable: true
|
|
28
|
+
nullable: true,
|
|
29
29
|
}),
|
|
30
30
|
funding: t.exposeString('funding', {
|
|
31
|
-
description: `Card funding type. Can be \`credit\`, \`debit\`, \`prepaid\`, or \`unknown
|
|
31
|
+
description: `Card funding type. Can be \`credit\`, \`debit\`, \`prepaid\`, or \`unknown\`.`,
|
|
32
32
|
}),
|
|
33
33
|
iin: t.exposeString('iin', {
|
|
34
34
|
nullable: true,
|
|
35
|
-
description: `Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
|
35
|
+
description: `Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)`,
|
|
36
36
|
}),
|
|
37
37
|
issuer: t.exposeString('issuer', {
|
|
38
38
|
nullable: true,
|
|
39
|
-
description: `The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
|
39
|
+
description: `The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)`,
|
|
40
40
|
}),
|
|
41
41
|
last4: t.exposeString('last4', {
|
|
42
|
-
description: `The last four digits of the card
|
|
42
|
+
description: `The last four digits of the card.`,
|
|
43
43
|
}),
|
|
44
44
|
networks: t.expose('networks', {
|
|
45
45
|
description: `Contains information about card networks that can be used to process the payment.`,
|
|
46
46
|
type: 'StripePaymentMethodCardNetworks',
|
|
47
|
-
nullable: true
|
|
47
|
+
nullable: true,
|
|
48
48
|
}),
|
|
49
49
|
threeDSecureUsage: t.expose('three_d_secure_usage', {
|
|
50
50
|
description: `Contains details on how this Card maybe be used for 3D Secure authentication.`,
|
|
51
51
|
type: 'StripePaymentMethodCardThreeDSecureUsage',
|
|
52
|
-
nullable: true
|
|
52
|
+
nullable: true,
|
|
53
53
|
}),
|
|
54
54
|
wallet: t.expose('wallet', {
|
|
55
55
|
description: `If this Card is part of a card wallet, this contains the details of the card wallet.`,
|
|
56
56
|
type: 'StripePaymentMethodCardWallet',
|
|
57
|
-
nullable: true
|
|
58
|
-
})
|
|
59
|
-
})
|
|
57
|
+
nullable: true,
|
|
58
|
+
}),
|
|
59
|
+
}),
|
|
60
60
|
});
|
|
61
61
|
//# sourceMappingURL=payment-method-card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-method-card.js","sourceRoot":"","sources":["../../../src/schema/payment-method-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"payment-method-card.js","sourceRoot":"","sources":["../../../src/schema/payment-method-card.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,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,WAAW,EAAE,yHAAyH;SACvI,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;YACxB,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,+BAA+B;YACrC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,CAAC,CAAC,YAAY,CAAC,SAAS,EAAE;YACjC,WAAW,EAAE,iKAAiK;YAC9K,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,CAAC,CAAC,YAAY,CAAC,aAAa,EAAE;YACzC,WAAW,EAAE,mJAAmJ;YAChK,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,WAAW,EAAE;YACjC,WAAW,EAAE,4DAA4D;SAC1E,CAAC;QACF,OAAO,EAAE,CAAC,CAAC,SAAS,CAAC,UAAU,EAAE;YAC/B,WAAW,EAAE,4DAA4D;SAC1E,CAAC;QACF,WAAW,EAAE,CAAC,CAAC,YAAY,CAAC,aAAa,EAAE;YACzC,WAAW,EAAE,2fAA2f;YACxgB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,CAAC,CAAC,YAAY,CAAC,SAAS,EAAE;YACjC,WAAW,EAAE,+EAA+E;SAC7F,CAAC;QACF,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE;YACzB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,yHAAyH;SACvI,CAAC;QACF,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,EAAE;YAC/B,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,oHAAoH;SAClI,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,WAAW,EAAE,mCAAmC;SACjD,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,UAAU,EAAE;YAC7B,WAAW,EAAE,mFAAmF;YAChG,IAAI,EAAE,iCAAiC;YACvC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,iBAAiB,EAAE,CAAC,CAAC,MAAM,CAAC,sBAAsB,EAAE;YAClD,WAAW,EAAE,+EAA+E;YAC5F,IAAI,EAAE,0CAA0C;YAChD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;YACzB,WAAW,EAAE,sFAAsF;YACnG,IAAI,EAAE,+BAA+B;YACrC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -2,36 +2,36 @@ import { builder } from '../builder';
|
|
|
2
2
|
builder.objectType('StripePaymentMethod', {
|
|
3
3
|
fields: (t) => ({
|
|
4
4
|
id: t.exposeString('id', {
|
|
5
|
-
description: `Unique identifier for the object
|
|
5
|
+
description: `Unique identifier for the object.`,
|
|
6
6
|
}),
|
|
7
7
|
object: t.exposeString('object', {
|
|
8
|
-
description: `String representing the object's type. Objects of the same type share the same value
|
|
8
|
+
description: `String representing the object's type. Objects of the same type share the same value.`,
|
|
9
9
|
}),
|
|
10
10
|
billingDetails: t.expose('billing_details', {
|
|
11
11
|
type: 'StripePaymentMethodBillingDetails',
|
|
12
|
-
nullable: true
|
|
12
|
+
nullable: true,
|
|
13
13
|
}),
|
|
14
14
|
card: t.expose('card', {
|
|
15
15
|
type: 'StripePaymentMethodCard',
|
|
16
|
-
nullable: true
|
|
16
|
+
nullable: true,
|
|
17
17
|
}),
|
|
18
18
|
created: t.exposeInt('created', {
|
|
19
19
|
description: `The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.`,
|
|
20
20
|
}),
|
|
21
21
|
customer: t.exposeString('customer', {
|
|
22
|
-
nullable: true
|
|
22
|
+
nullable: true,
|
|
23
23
|
}),
|
|
24
24
|
livemode: t.exposeBoolean('livemode', {
|
|
25
|
-
description: `Has the value \`true\` if the object exists in live mode or the value \`false\` if the object exists in test mode
|
|
25
|
+
description: `Has the value \`true\` if the object exists in live mode or the value \`false\` if the object exists in test mode.`,
|
|
26
26
|
}),
|
|
27
27
|
metadata: t.expose('metadata', {
|
|
28
28
|
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.`,
|
|
29
|
-
type: 'JSON'
|
|
29
|
+
type: 'JSON',
|
|
30
30
|
}),
|
|
31
31
|
type: t.expose('type', {
|
|
32
32
|
description: `The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.`,
|
|
33
|
-
type: 'StripePaymentMethodTypes'
|
|
34
|
-
})
|
|
35
|
-
})
|
|
33
|
+
type: 'StripePaymentMethodTypes',
|
|
34
|
+
}),
|
|
35
|
+
}),
|
|
36
36
|
});
|
|
37
37
|
//# sourceMappingURL=payment-method.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-method.js","sourceRoot":"","sources":["../../../src/schema/payment-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"payment-method.js","sourceRoot":"","sources":["../../../src/schema/payment-method.ts"],"names":[],"mappings":"AAAA,OA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BAAwB,
|
|
1
|
+
{"version":3,"file":"payment-methods.d.ts","sourceRoot":"","sources":["../../../src/schema/payment-methods.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,wBAAwB,0vBAkCpC,CAAC"}
|
|
@@ -3,16 +3,16 @@ builder.objectType('StripePaymentMethods', {
|
|
|
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: ['StripePaymentMethod'],
|
|
13
|
-
nullable: false
|
|
14
|
-
})
|
|
15
|
-
})
|
|
13
|
+
nullable: false,
|
|
14
|
+
}),
|
|
15
|
+
}),
|
|
16
16
|
});
|
|
17
17
|
// TODO: generic args for payment methods
|
|
18
18
|
// export const paymentMethodsArgs = builder.args((t) => ({
|
|
@@ -61,7 +61,7 @@ export const StripePaymentMethodTypes = builder.enumType('StripePaymentMethodTyp
|
|
|
61
61
|
'sepa_debit',
|
|
62
62
|
'sofort',
|
|
63
63
|
'us_bank_account',
|
|
64
|
-
'wechat_pay'
|
|
65
|
-
]
|
|
64
|
+
'wechat_pay',
|
|
65
|
+
],
|
|
66
66
|
});
|
|
67
67
|
//# sourceMappingURL=payment-methods.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-methods.js","sourceRoot":"","sources":["../../../src/schema/payment-methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"payment-methods.js","sourceRoot":"","sources":["../../../src/schema/payment-methods.ts"],"names":[],"mappings":"AAAA,OAAO,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
|
@@ -3,11 +3,11 @@ builder.objectType('StripePlanTransformUsage', {
|
|
|
3
3
|
description: '',
|
|
4
4
|
fields: (t) => ({
|
|
5
5
|
divideBy: t.exposeInt('divide_by', {
|
|
6
|
-
description: 'Divide usage by this number.'
|
|
6
|
+
description: 'Divide usage by this number.',
|
|
7
7
|
}),
|
|
8
8
|
round: t.exposeString('round', {
|
|
9
|
-
description: 'After division, either round the result `up` or `down`.'
|
|
10
|
-
})
|
|
11
|
-
})
|
|
9
|
+
description: 'After division, either round the result `up` or `down`.',
|
|
10
|
+
}),
|
|
11
|
+
}),
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=plan-transform-usage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-transform-usage.js","sourceRoot":"","sources":["../../../src/schema/plan-transform-usage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"plan-transform-usage.js","sourceRoot":"","sources":["../../../src/schema/plan-transform-usage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,CAAC,UAAU,CAAC,0BAA0B,EAAE;IAC7C,WAAW,EAAE,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACd,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,WAAW,EAAE;YACjC,WAAW,EAAE,8BAA8B;SAC5C,CAAC;QACF,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE;YAC7B,WAAW,EAAE,yDAAyD;SACvE,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
package/dist/src/schema/plan.js
CHANGED
|
@@ -4,52 +4,52 @@ builder.objectType('StripePlan', {
|
|
|
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 plan can be used for new purchases
|
|
13
|
+
description: `Whether the plan can be used for new purchases.`,
|
|
14
14
|
}),
|
|
15
15
|
aggregateUsage: t.exposeString('aggregate_usage', {
|
|
16
16
|
description: `Specifies a usage aggregation strategy for plans of \`usage_type=metered\`. Allowed values are \`sum\` for summing up all usage during a period, \`last_during_period\` for using the last usage record reported within a period, \`last_ever\` for using the last usage record ever (across period bounds) or \`max\` which uses the usage record with the maximum reported usage during a period. Defaults to \`sum\`.`,
|
|
17
|
-
nullable: true
|
|
17
|
+
nullable: true,
|
|
18
18
|
}),
|
|
19
19
|
amount: t.exposeInt('amount', {
|
|
20
20
|
description: `The unit amount in %s to be charged, represented as a whole integer if possible. Only set if \`billing_scheme=per_unit\`.`,
|
|
21
|
-
nullable: true
|
|
21
|
+
nullable: true,
|
|
22
22
|
}),
|
|
23
23
|
amountDecimal: t.exposeString('amount_decimal', {
|
|
24
24
|
description: `The unit amount in %s to be charged, represented as a decimal string with at most 12 decimal places. Only set if \`billing_scheme=per_unit\`.`,
|
|
25
|
-
nullable: true
|
|
25
|
+
nullable: true,
|
|
26
26
|
}),
|
|
27
27
|
billingScheme: t.exposeString('billing_scheme', {
|
|
28
|
-
description: `Describes how to compute the price per period. Either \`per_unit\` or \`tiered\`. \`per_unit\` indicates that the fixed amount (specified in \`amount\`) will be charged per unit in \`quantity\` (for plans with \`usage_type=licensed\`), or per unit of total usage (for plans with \`usage_type=metered\`). \`tiered\` indicates that the unit pricing will be computed using a tiering strategy as defined using the \`tiers\` and \`tiers_mode\` attributes
|
|
28
|
+
description: `Describes how to compute the price per period. Either \`per_unit\` or \`tiered\`. \`per_unit\` indicates that the fixed amount (specified in \`amount\`) will be charged per unit in \`quantity\` (for plans with \`usage_type=licensed\`), or per unit of total usage (for plans with \`usage_type=metered\`). \`tiered\` indicates that the unit pricing will be computed using a tiering strategy as defined using the \`tiers\` and \`tiers_mode\` attributes.`,
|
|
29
29
|
}),
|
|
30
30
|
created: t.exposeInt('created', {
|
|
31
|
-
description: `Time at which the object was created. Measured in seconds since the Unix epoch
|
|
31
|
+
description: `Time at which the object was created. Measured in seconds since the Unix epoch.`,
|
|
32
32
|
}),
|
|
33
33
|
currency: t.exposeString('currency', {
|
|
34
|
-
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)
|
|
34
|
+
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).`,
|
|
35
35
|
}),
|
|
36
36
|
interval: t.exposeString('interval', {
|
|
37
|
-
description: `The frequency at which a subscription is billed. One of \`day\`, \`week\`, \`month\` or \`year
|
|
37
|
+
description: `The frequency at which a subscription is billed. One of \`day\`, \`week\`, \`month\` or \`year\`.`,
|
|
38
38
|
}),
|
|
39
39
|
intervalCount: t.exposeInt('interval_count', {
|
|
40
|
-
description: `The number of intervals (specified in the \`interval\` attribute) between subscription billings. For example, \`interval=month\` and \`interval_count=3\` bills every 3 months
|
|
40
|
+
description: `The number of intervals (specified in the \`interval\` attribute) between subscription billings. For example, \`interval=month\` and \`interval_count=3\` bills every 3 months.`,
|
|
41
41
|
}),
|
|
42
42
|
livemode: t.exposeBoolean('livemode', {
|
|
43
|
-
description: `Has the value \`true\` if the object exists in live mode or the value \`false\` if the object exists in test mode
|
|
43
|
+
description: `Has the value \`true\` if the object exists in live mode or the value \`false\` if the object exists in test mode.`,
|
|
44
44
|
}),
|
|
45
45
|
metadata: t.expose('metadata', {
|
|
46
46
|
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.`,
|
|
47
47
|
type: 'JSON',
|
|
48
|
-
nullable: true
|
|
48
|
+
nullable: true,
|
|
49
49
|
}),
|
|
50
50
|
nickname: t.exposeString('nickname', {
|
|
51
51
|
description: `A brief description of the plan, hidden from customers.`,
|
|
52
|
-
nullable: true
|
|
52
|
+
nullable: true,
|
|
53
53
|
}),
|
|
54
54
|
product: t.field({
|
|
55
55
|
description: `The product whose pricing this plan determines.`,
|
|
@@ -62,26 +62,26 @@ builder.objectType('StripePlan', {
|
|
|
62
62
|
}
|
|
63
63
|
const productData = await stripe.products.retrieve(product);
|
|
64
64
|
return productData;
|
|
65
|
-
}
|
|
65
|
+
},
|
|
66
66
|
}),
|
|
67
67
|
// toddo: tiers
|
|
68
68
|
// todo: tiers
|
|
69
69
|
tiersMode: t.exposeString('tiers_mode', {
|
|
70
70
|
description: `Defines if the tiering price should be \`graduated\` or \`volume\` based. In \`volume\`-based tiering, the maximum quantity within a period determines the per unit price. In \`graduated\` tiering, pricing can change as the quantity grows.`,
|
|
71
|
-
nullable: true
|
|
71
|
+
nullable: true,
|
|
72
72
|
}),
|
|
73
73
|
transformUsage: t.expose('transform_usage', {
|
|
74
74
|
description: `Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with \`tiers\`.`,
|
|
75
75
|
type: 'StripePlanTransformUsage',
|
|
76
|
-
nullable: true
|
|
76
|
+
nullable: true,
|
|
77
77
|
}),
|
|
78
78
|
trialPeriodDays: t.exposeInt('trial_period_days', {
|
|
79
79
|
description: `Default number of trial days when subscribing a customer to this plan using [\`trial_from_plan=true\`](https://stripe.com/docs/api#create_subscription-trial_from_plan).`,
|
|
80
|
-
nullable: true
|
|
80
|
+
nullable: true,
|
|
81
81
|
}),
|
|
82
82
|
usageType: t.exposeString('usage_type', {
|
|
83
|
-
description: `Configures how the quantity per period should be determined. Can be either \`metered\` or \`licensed\`. \`licensed\` automatically bills the \`quantity\` set when adding it to a subscription. \`metered\` aggregates the total usage based on usage records. Defaults to \`licensed
|
|
84
|
-
})
|
|
85
|
-
})
|
|
83
|
+
description: `Configures how the quantity per period should be determined. Can be either \`metered\` or \`licensed\`. \`licensed\` automatically bills the \`quantity\` set when adding it to a subscription. \`metered\` aggregates the total usage based on usage records. Defaults to \`licensed\`.`,
|
|
84
|
+
}),
|
|
85
|
+
}),
|
|
86
86
|
});
|
|
87
87
|
//# sourceMappingURL=plan.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan.js","sourceRoot":"","sources":["../../../src/schema/plan.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"plan.js","sourceRoot":"","sources":["../../../src/schema/plan.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE;IAC/B,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,CAAC,CAAC,aAAa,CAAC,QAAQ,EAAE;YAChC,WAAW,EAAE,iDAAiD;SAC/D,CAAC;QACF,cAAc,EAAE,CAAC,CAAC,YAAY,CAAC,iBAAiB,EAAE;YAChD,WAAW,EAAE,0ZAA0Z;YACva,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE;YAC5B,WAAW,EAAE,2HAA2H;YACxI,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,aAAa,EAAE,CAA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,MAAM,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAiB,CAAC,CAAC;gBACtE,OAAO,WAA6B,CAAC;YACvC,CAAC;SACF,CAAC;QACF,eAAe;QACf,cAAc;QACd,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YAAY,EAAE;YACtC,WAAW,EAAE,gPAAgP;YAC7P,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,iBAAiB,EAAE;YAC1C,WAAW,EAAE,qIAAqI;YAClJ,IAAI,EAAE,0BAA0B;YAChC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,eAAe,EAAE,CAAC,CAAC,SAAS,CAAC,mBAAmB,EAAE;YAChD,WAAW,EAAE,0KAA0K;YACvL,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YAAY,EAAE;YACtC,WAAW,EAAE,0RAA0R;SACxS,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
package/dist/src/schema/price.js
CHANGED
|
@@ -4,41 +4,41 @@ builder.objectType('StripePrice', {
|
|
|
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 price can be used for new purchases
|
|
13
|
+
description: `Whether the price can be used for new purchases.`,
|
|
14
14
|
}),
|
|
15
15
|
// todo: billing_scheme
|
|
16
16
|
billingScheme: t.exposeString('billing_scheme', {
|
|
17
|
-
description: `Describes how to compute the price per period. Either \`per_unit\` or \`tiered\`. \`per_unit\` indicates that the fixed amount (specified in \`unit_amount\` or \`unit_amount_decimal\`) will be charged per unit in \`quantity\` (for prices with \`usage_type=licensed\`), or per unit of total usage (for prices with \`usage_type=metered\`). \`tiered\` indicates that the unit pricing will be computed using a tiering strategy as defined using the \`tiers\` and \`tiers_mode\` attributes
|
|
17
|
+
description: `Describes how to compute the price per period. Either \`per_unit\` or \`tiered\`. \`per_unit\` indicates that the fixed amount (specified in \`unit_amount\` or \`unit_amount_decimal\`) will be charged per unit in \`quantity\` (for prices with \`usage_type=licensed\`), or per unit of total usage (for prices with \`usage_type=metered\`). \`tiered\` indicates that the unit pricing will be computed using a tiering strategy as defined using the \`tiers\` and \`tiers_mode\` attributes.`,
|
|
18
18
|
}),
|
|
19
19
|
created: t.exposeInt('created', {
|
|
20
|
-
description: `Time at which the object was created. Measured in seconds since the Unix epoch
|
|
20
|
+
description: `Time at which the object was created. Measured in seconds since the Unix epoch.`,
|
|
21
21
|
}),
|
|
22
22
|
currency: t.exposeString('currency', {
|
|
23
|
-
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)
|
|
23
|
+
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).`,
|
|
24
24
|
}),
|
|
25
25
|
// todo: currency_options
|
|
26
26
|
// todo: custom_unit_amount
|
|
27
27
|
livemode: t.exposeBoolean('livemode', {
|
|
28
|
-
description: `Has the value \`true\` if the object exists in live mode or the value \`false\` if the object exists in test mode
|
|
28
|
+
description: `Has the value \`true\` if the object exists in live mode or the value \`false\` if the object exists in test mode.`,
|
|
29
29
|
}),
|
|
30
30
|
lookupKey: t.exposeString('lookup_key', {
|
|
31
31
|
description: `A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.`,
|
|
32
|
-
nullable: true
|
|
32
|
+
nullable: true,
|
|
33
33
|
}),
|
|
34
34
|
metadata: t.expose('metadata', {
|
|
35
35
|
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.`,
|
|
36
36
|
type: 'JSON',
|
|
37
|
-
nullable: true
|
|
37
|
+
nullable: true,
|
|
38
38
|
}),
|
|
39
39
|
nickname: t.exposeString('nickname', {
|
|
40
40
|
description: `A brief description of the price, hidden from customers.`,
|
|
41
|
-
nullable: true
|
|
41
|
+
nullable: true,
|
|
42
42
|
}),
|
|
43
43
|
product: t.field({
|
|
44
44
|
description: `The ID of the product this price is associated with.`,
|
|
@@ -47,29 +47,29 @@ builder.objectType('StripePrice', {
|
|
|
47
47
|
const { product } = price;
|
|
48
48
|
const productData = await stripe.products.retrieve(product);
|
|
49
49
|
return productData;
|
|
50
|
-
}
|
|
50
|
+
},
|
|
51
51
|
}),
|
|
52
52
|
// todo: recurring
|
|
53
53
|
// todo: tax_behavior
|
|
54
54
|
// todo: tiers
|
|
55
55
|
tiersMode: t.exposeString('tiers_mode', {
|
|
56
56
|
description: `Defines if the tiering price should be \`graduated\` or \`volume\` based. In \`volume\`-based tiering, the maximum quantity within a period determines the per unit price. In \`graduated\` tiering, pricing can change as the quantity grows.`,
|
|
57
|
-
nullable: true
|
|
57
|
+
nullable: true,
|
|
58
58
|
}),
|
|
59
59
|
// tiersQuantity: t.exposeString('transform_quantity', {
|
|
60
60
|
// nullable: true
|
|
61
61
|
// })
|
|
62
62
|
type: t.exposeString('type', {
|
|
63
|
-
description: `One of \`one_time\` or \`recurring\` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase
|
|
63
|
+
description: `One of \`one_time\` or \`recurring\` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.`,
|
|
64
64
|
}),
|
|
65
65
|
unitAmount: t.exposeInt('unit_amount', {
|
|
66
66
|
description: `The unit amount in %s to be charged, represented as a whole integer if possible. Only set if \`billing_scheme=per_unit\`.`,
|
|
67
|
-
nullable: true
|
|
67
|
+
nullable: true,
|
|
68
68
|
}),
|
|
69
69
|
unitAmountDecimal: t.exposeString('unit_amount_decimal', {
|
|
70
70
|
description: `The unit amount in %s to be charged, represented as a decimal string with at most 12 decimal places. Only set if \`billing_scheme=per_unit\`.`,
|
|
71
|
-
nullable: true
|
|
72
|
-
})
|
|
73
|
-
})
|
|
71
|
+
nullable: true,
|
|
72
|
+
}),
|
|
73
|
+
}),
|
|
74
74
|
});
|
|
75
75
|
//# sourceMappingURL=price.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"price.js","sourceRoot":"","sources":["../../../src/schema/price.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"price.js","sourceRoot":"","sources":["../../../src/schema/price.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE;IAChC,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,CAAC,CAAC,aAAa,CAAC,QAAQ,EAAE;YAChC,WAAW,EAAE,kDAAkD;SAChE,CAAC;QACF,uBAAuB;QACvB,aAAa,EAAE,CAAC,CAAC,YAAY,CAAC,gBAAgB,EAAE;YAC9C,WAAW,EAAE,seAAse;SACpf,CAAC;QACF,OAAO,EAAE,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE;YAC9B,WAAW,EAAE,iFAAiF;SAC/F,CAAC;QACF,QAAQ,EAAE,CAAC,CAAC,YAAY,CAAC,UAAU,EAAE;YAC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