Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

feat(stripe): ui improvement (#16636)

Talal Jaber43f583137dc2
diff --git a/bun.lock b/bun.lock
index 1f4f22942ed..8b114d44682 100644
--- a/bun.lock
+++ b/bun.lock
@@ -8877,7 +8877,7 @@
},
"packages/pieces/community/stripe": {
"name": "@activepieces/piece-stripe",
- "version": "0.8.1",
+ "version": "0.9.0",
"dependencies": {
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
diff --git a/packages/pieces/community/stripe/package.json b/packages/pieces/community/stripe/package.json
index f529945d497..34e5de4a044 100644
--- a/packages/pieces/community/stripe/package.json
+++ b/packages/pieces/community/stripe/package.json
@@ -1,6 +1,6 @@
{
"name": "@activepieces/piece-stripe",
- "version": "0.8.1",
+ "version": "0.9.0",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"scripts": {
diff --git a/packages/pieces/community/stripe/src/i18n/de.json b/packages/pieces/community/stripe/src/i18n/de.json
index da5ec38b5e5..989fbaf33ab 100644
--- a/packages/pieces/community/stripe/src/i18n/de.json
+++ b/packages/pieces/community/stripe/src/i18n/de.json
@@ -632,5 +632,7 @@
"Only disputes for this charge. Empty: all.": "Nur Anfechtungen für diese Belastung. Leer: alle.",
"Only disputes for this payment. Empty: all.": "Nur Anfechtungen für diese Zahlung. Leer: alle.",
"Only updates where the subscription's status is this.": "Nur Updates, bei denen das Abonnement diesen Status hat.",
- "Only sessions for this customer. Empty: all.": "Nur Sitzungen dieses Kunden. Leer: alle."
+ "Only sessions for this customer. Empty: all.": "Nur Sitzungen dieses Kunden. Leer: alle.",
+ "Markdown": "Markdown",
+ "Empty fields keep their current value.": "Leere Felder behalten ihren aktuellen Wert."
}
\ No newline at end of file
diff --git a/packages/pieces/community/stripe/src/i18n/es.json b/packages/pieces/community/stripe/src/i18n/es.json
index e5b5d43d250..a01ff45cb87 100644
--- a/packages/pieces/community/stripe/src/i18n/es.json
+++ b/packages/pieces/community/stripe/src/i18n/es.json
@@ -632,5 +632,7 @@
"Only disputes for this charge. Empty: all.": "Solo disputas de este cargo. Vacío: todas.",
"Only disputes for this payment. Empty: all.": "Solo disputas de este pago. Vacío: todas.",
"Only updates where the subscription's status is this.": "Solo cambios en los que la suscripción tiene este estado.",
- "Only sessions for this customer. Empty: all.": "Solo sesiones de este cliente. Vacío: todas."
+ "Only sessions for this customer. Empty: all.": "Solo sesiones de este cliente. Vacío: todas.",
+ "Markdown": "Markdown",
+ "Empty fields keep their current value.": "Los campos vacíos conservan su valor actual."
}
\ No newline at end of file
diff --git a/packages/pieces/community/stripe/src/i18n/fr.json b/packages/pieces/community/stripe/src/i18n/fr.json
index 6388e09156e..4de50d71b3a 100644
--- a/packages/pieces/community/stripe/src/i18n/fr.json
+++ b/packages/pieces/community/stripe/src/i18n/fr.json
@@ -632,5 +632,7 @@
"Only disputes for this charge. Empty: all.": "Uniquement les litiges de ce débit. Vide : tous.",
"Only disputes for this payment. Empty: all.": "Uniquement les litiges de ce paiement. Vide : tous.",
"Only updates where the subscription's status is this.": "Uniquement les mises à jour où l'abonnement a ce statut.",
- "Only sessions for this customer. Empty: all.": "Uniquement les sessions de ce client. Vide : toutes."
+ "Only sessions for this customer. Empty: all.": "Uniquement les sessions de ce client. Vide : toutes.",
+ "Markdown": "Markdown",
+ "Empty fields keep their current value.": "Les champs vides conservent leur valeur actuelle."
}
\ No newline at end of file
diff --git a/packages/pieces/community/stripe/src/i18n/ja.json b/packages/pieces/community/stripe/src/i18n/ja.json
index 556dfe9cf35..c3dea157c87 100644
--- a/packages/pieces/community/stripe/src/i18n/ja.json
+++ b/packages/pieces/community/stripe/src/i18n/ja.json
@@ -632,5 +632,7 @@
"Only disputes for this charge. Empty: all.": "この課金の不審請求のみ。空欄: すべて。",
"Only disputes for this payment. Empty: all.": "この支払いの不審請求のみ。空欄: すべて。",
"Only updates where the subscription's status is this.": "サブスクリプションのステータスがこれである更新のみ。",
- "Only sessions for this customer. Empty: all.": "この顧客のセッションのみ。空欄: すべて。"
+ "Only sessions for this customer. Empty: all.": "この顧客のセッションのみ。空欄: すべて。",
+ "Markdown": "Markdown",
+ "Empty fields keep their current value.": "空欄のフィールドは現在の値のままです。"
}
\ No newline at end of file
diff --git a/packages/pieces/community/stripe/src/i18n/nl.json b/packages/pieces/community/stripe/src/i18n/nl.json
index 92fce71f8d5..4f5e0aa2324 100644
--- a/packages/pieces/community/stripe/src/i18n/nl.json
+++ b/packages/pieces/community/stripe/src/i18n/nl.json
@@ -632,5 +632,7 @@
"Only disputes for this charge. Empty: all.": "Alleen aanvechtingen voor deze afschrijving. Leeg: alle.",
"Only disputes for this payment. Empty: all.": "Alleen aanvechtingen voor deze betaling. Leeg: alle.",
"Only updates where the subscription's status is this.": "Alleen updates waarbij het abonnement deze status heeft.",
- "Only sessions for this customer. Empty: all.": "Alleen sessies voor deze klant. Leeg: alle."
+ "Only sessions for this customer. Empty: all.": "Alleen sessies voor deze klant. Leeg: alle.",
+ "Markdown": "Markdown",
+ "Empty fields keep their current value.": "Lege velden behouden hun huidige waarde."
}
\ No newline at end of file
diff --git a/packages/pieces/community/stripe/src/i18n/pt.json b/packages/pieces/community/stripe/src/i18n/pt.json
index 12806a02c91..8688abcfd4f 100644
--- a/packages/pieces/community/stripe/src/i18n/pt.json
+++ b/packages/pieces/community/stripe/src/i18n/pt.json
@@ -632,5 +632,7 @@
"Only disputes for this charge. Empty: all.": "Só disputas desta cobrança. Vazio: todas.",
"Only disputes for this payment. Empty: all.": "Só disputas deste pagamento. Vazio: todas.",
"Only updates where the subscription's status is this.": "Só atualizações em que o status da assinatura é este.",
- "Only sessions for this customer. Empty: all.": "Só sessões deste cliente. Vazio: todas."
+ "Only sessions for this customer. Empty: all.": "Só sessões deste cliente. Vazio: todas.",
+ "Markdown": "Markdown",
+ "Empty fields keep their current value.": "Campos vazios mantêm o valor atual."
}
\ No newline at end of file
diff --git a/packages/pieces/community/stripe/src/i18n/ru.json b/packages/pieces/community/stripe/src/i18n/ru.json
index 30b308ed195..2aaf8815f36 100644
--- a/packages/pieces/community/stripe/src/i18n/ru.json
+++ b/packages/pieces/community/stripe/src/i18n/ru.json
@@ -177,5 +177,6 @@
"Only disputes for this charge. Empty: all.": "Только споры по этому списанию. Пусто: все.",
"Only disputes for this payment. Empty: all.": "Только споры по этому платежу. Пусто: все.",
"Only updates where the subscription's status is this.": "Только обновления, где подписка в этом статусе.",
- "Only sessions for this customer. Empty: all.": "Только сессии этого клиента. Пусто: все."
+ "Only sessions for this customer. Empty: all.": "Только сессии этого клиента. Пусто: все.",
+ "Empty fields keep their current value.": "Пустые поля сохраняют текущее значение."
}
\ No newline at end of file
diff --git a/packages/pieces/community/stripe/src/i18n/translation.json b/packages/pieces/community/stripe/src/i18n/translation.json
index 0a265f58f6a..f8adaa24fbc 100644
--- a/packages/pieces/community/stripe/src/i18n/translation.json
+++ b/packages/pieces/community/stripe/src/i18n/translation.json
@@ -632,5 +632,7 @@
"Only disputes for this charge. Empty: all.": "Only disputes for this charge. Empty: all.",
"Only disputes for this payment. Empty: all.": "Only disputes for this payment. Empty: all.",
"Only updates where the subscription's status is this.": "Only updates where the subscription's status is this.",
- "Only sessions for this customer. Empty: all.": "Only sessions for this customer. Empty: all."
+ "Only sessions for this customer. Empty: all.": "Only sessions for this customer. Empty: all.",
+ "Markdown": "Markdown",
+ "Empty fields keep their current value.": "Empty fields keep their current value."
}
\ No newline at end of file
diff --git a/packages/pieces/community/stripe/src/i18n/vi.json b/packages/pieces/community/stripe/src/i18n/vi.json
index bb667da1f2c..d527f58d1db 100644
--- a/packages/pieces/community/stripe/src/i18n/vi.json
+++ b/packages/pieces/community/stripe/src/i18n/vi.json
@@ -177,5 +177,6 @@
"Only disputes for this charge. Empty: all.": "Chỉ tranh chấp cho khoản phí này. Để trống: tất cả.",
"Only disputes for this payment. Empty: all.": "Chỉ tranh chấp cho khoản thanh toán này. Để trống: tất cả.",
"Only updates where the subscription's status is this.": "Chỉ cập nhật khi trạng thái gói đăng ký là giá trị này.",
- "Only sessions for this customer. Empty: all.": "Chỉ phiên của khách hàng này. Để trống: tất cả."
+ "Only sessions for this customer. Empty: all.": "Chỉ phiên của khách hàng này. Để trống: tất cả.",
+ "Empty fields keep their current value.": "Các trường để trống sẽ giữ nguyên giá trị hiện tại."
}
\ No newline at end of file
diff --git a/packages/pieces/community/stripe/src/i18n/zh.json b/packages/pieces/community/stripe/src/i18n/zh.json
index 77803ccf727..717e0ec8e9b 100644
--- a/packages/pieces/community/stripe/src/i18n/zh.json
+++ b/packages/pieces/community/stripe/src/i18n/zh.json
@@ -632,5 +632,7 @@
"Only disputes for this charge. Empty: all.": "仅此扣款的争议。留空:全部。",
"Only disputes for this payment. Empty: all.": "仅此付款的争议。留空:全部。",
"Only updates where the subscription's status is this.": "仅限订阅状态为此值的更新。",
- "Only sessions for this customer. Empty: all.": "仅此客户的会话。留空:全部。"
+ "Only sessions for this customer. Empty: all.": "仅此客户的会话。留空:全部。",
+ "Markdown": "Markdown",
+ "Empty fields keep their current value.": "留空的字段保留当前值。"
}
\ No newline at end of file
diff --git a/packages/pieces/community/stripe/src/index.ts b/packages/pieces/community/stripe/src/index.ts
index 9d4acfb94b1..2d45aba0aa9 100644
--- a/packages/pieces/community/stripe/src/index.ts
+++ b/packages/pieces/community/stripe/src/index.ts
@@ -115,6 +115,7 @@ import { stripeListDisputes } from './lib/actions/list-disputes';
import { stripeListTransfers } from './lib/actions/list-transfers';
import { stripeUpdateDispute } from './lib/actions/update-dispute';
import { stripeCloseDispute } from './lib/actions/close-dispute';
+import { stripeCommon } from './lib/common';
export const stripeAuth = PieceAuth.SecretText({
displayName: 'Secret API Key',
@@ -265,6 +266,15 @@ export const stripe = createPiece({
authMapping: async (auth) => ({
Authorization: `Bearer ${auth.secret_text}`,
}),
+ props: {
+ url: {
+ description: `Full URL, or a path relative to ${stripeCommon.baseUrl}`,
+ placeholder: '/customers',
+ },
+ body: {
+ description: 'Stripe reads form-encoded fields, not JSON.',
+ },
+ },
}),
],
triggers: [
diff --git a/packages/pieces/community/stripe/src/lib/actions/cancel-subscription.ts b/packages/pieces/community/stripe/src/lib/actions/cancel-subscription.ts
index d4900a2117b..0ddf7bb5dee 100644
--- a/packages/pieces/community/stripe/src/lib/actions/cancel-subscription.ts
+++ b/packages/pieces/community/stripe/src/lib/actions/cancel-subscription.ts
@@ -15,6 +15,15 @@ export const stripeCancelSubscription = createAction({
'Cancels an existing Stripe subscription by its ID, in one of two modes: immediately, or scheduled to end at the close of the current billing period. Use to stop recurring billing for a customer. Effectively idempotent: re-running on an already-canceled subscription leaves it canceled.',
idempotent: true,
},
+ propertyGroups: [
+ {
+ key: 'subscription',
+ display: 'section',
+ label: 'Subscription',
+ icon: 'tag',
+ props: ['subscription', 'cancel_at_period_end'],
+ },
+ ],
props: {
subscription: stripeCommon.subscription,
cancel_at_period_end: Property.Checkbox({
diff --git a/packages/pieces/community/stripe/src/lib/actions/create-invoice.ts b/packages/pieces/community/stripe/src/lib/actions/create-invoice.ts
index 0d55f1db552..26c6c543683 100644
--- a/packages/pieces/community/stripe/src/lib/actions/create-invoice.ts
+++ b/packages/pieces/community/stripe/src/lib/actions/create-invoice.ts
@@ -16,6 +16,15 @@ export const stripeCreateInvoice = createAction({
'Creates a draft invoice in Stripe for an existing customer in the given currency. Use to bill a customer for pending invoice items. Requires a valid Stripe customer ID; not idempotent, as each call creates a separate invoice.',
idempotent: false,
},
+ propertyGroups: [
+ {
+ key: 'invoice',
+ display: 'section',
+ label: 'Invoice',
+ icon: 'file',
+ props: ['customer_id', 'currency', 'description'],
+ },
+ ],
props: {
customer_id: Property.ShortText({
displayName: 'Customer ID',
diff --git a/packages/pieces/community/stripe/src/lib/actions/create-payment-link.ts b/packages/pieces/community/stripe/src/lib/actions/create-payment-link.ts
index bacaea9ccb2..3991edd6f4b 100644
--- a/packages/pieces/community/stripe/src/lib/actions/create-payment-link.ts
+++ b/packages/pieces/community/stripe/src/lib/actions/create-payment-link.ts
@@ -16,6 +16,22 @@ export const stripeCreatePaymentLink = createAction({
'Creates a reusable, Stripe-hosted payment link for the given line items (price IDs and quantities), with optional after-completion redirect, promotion codes, and billing-address collection. Use to generate a shareable checkout URL without building a custom flow. Not idempotent: each call creates a new payment link.',
idempotent: false,
},
+ propertyGroups: [
+ {
+ key: 'items',
+ display: 'section',
+ label: 'Line Items',
+ icon: 'tag',
+ props: ['line_items'],
+ },
+ {
+ key: 'after_payment',
+ display: 'section',
+ label: 'After Payment',
+ icon: 'send',
+ props: ['after_completion_type', 'after_completion_redirect_url'],
+ },
+ ],
props: {
line_items: Property.Array({
displayName: 'Line Items',
@@ -38,18 +54,15 @@ export const stripeCreatePaymentLink = createAction({
after_completion_type: Property.StaticDropdown({
displayName: 'After Payment',
required: false,
- display: 'cards',
options: {
options: [
{
label: 'Thank-You Page',
value: 'hosted_confirmation',
- icon: 'inbox',
},
{
label: 'Redirect to URL',
value: 'redirect',
- icon: 'send',
},
],
},
diff --git a/packages/pieces/community/stripe/src/lib/actions/create-price.ts b/packages/pieces/community/stripe/src/lib/actions/create-price.ts
index 607598219a6..8d72c4b9d6b 100644
--- a/packages/pieces/community/stripe/src/lib/actions/create-price.ts
+++ b/packages/pieces/community/stripe/src/lib/actions/create-price.ts
@@ -20,6 +20,22 @@ export const stripeCreatePrice = createAction({
'Creates a price for an existing Stripe product, in either one-time or recurring mode depending on the selected billing interval. Use after creating a product to define what to charge before building a subscription or payment link. Requires the product ID; not idempotent, as each call creates a new price.',
idempotent: false,
},
+ propertyGroups: [
+ {
+ key: 'price',
+ display: 'section',
+ label: 'Price',
+ icon: 'tag',
+ props: ['product', 'unit_amount', 'currency'],
+ },
+ {
+ key: 'billing',
+ display: 'section',
+ label: 'Billing',
+ icon: 'calendar',
+ props: ['recurring_interval'],
+ },
+ ],
props: {
product: stripeCommon.product,
unit_amount: Property.Number({
diff --git a/packages/pieces/community/stripe/src/lib/actions/create-product.ts b/packages/pieces/community/stripe/src/lib/actions/create-product.ts
index f0dbbf24c2a..6a276524457 100644
--- a/packages/pieces/community/stripe/src/lib/actions/create-product.ts
+++ b/packages/pieces/community/stripe/src/lib/actions/create-product.ts
@@ -20,6 +20,22 @@ export const stripeCreateProduct = createAction({
'Creates a new product object in Stripe (the catalog item that prices attach to), with optional description, images, URL, and metadata. Use before creating a price or when adding a sellable item. Not idempotent: each call creates a distinct product.',
idempotent: false,
},
+ propertyGroups: [
+ {
+ key: 'product',
+ display: 'section',
+ label: 'Product',
+ icon: 'tag',
+ props: ['name', 'description', 'active'],
+ },
+ {
+ key: 'images',
+ display: 'section',
+ label: 'Images',
+ icon: 'paperclip',
+ props: ['images'],
+ },
+ ],
props: {
name: Property.ShortText({
displayName: 'Product Name',
diff --git a/packages/pieces/community/stripe/src/lib/actions/create-refund.ts b/packages/pieces/community/stripe/src/lib/actions/create-refund.ts
index 9296b91d186..42f8c27980c 100644
--- a/packages/pieces/community/stripe/src/lib/actions/create-refund.ts
+++ b/packages/pieces/community/stripe/src/lib/actions/create-refund.ts
@@ -20,6 +20,15 @@ export const stripeCreateRefund = createAction({
'Issues a refund against a payment identified by its PaymentIntent ID; refunds the full amount by default, or a partial amount if one is given, with an optional reason. Use to return funds to a customer for a captured payment. Not idempotent: each call creates a new refund and moves money again.',
idempotent: false,
},
+ propertyGroups: [
+ {
+ key: 'refund',
+ display: 'section',
+ label: 'Refund',
+ icon: 'tag',
+ props: ['payment_intent', 'amount', 'reason'],
+ },
+ ],
props: {
payment_intent: stripeCommon.paymentIntent,
amount: Property.Number({
diff --git a/packages/pieces/community/stripe/src/lib/actions/create-subscription.ts b/packages/pieces/community/stripe/src/lib/actions/create-subscription.ts
index 9adb1ac0ece..29c7e8617e6 100644
--- a/packages/pieces/community/stripe/src/lib/actions/create-subscription.ts
+++ b/packages/pieces/community/stripe/src/lib/actions/create-subscription.ts
@@ -24,6 +24,22 @@ export const stripeCreateSubscription = createAction({
'Starts a recurring subscription for an existing customer against one or more price IDs, with optional collection method, trial period, and default payment method. Use to enroll a customer in recurring billing. Requires a customer ID and at least one price; not idempotent, as each call creates a separate subscription.',
idempotent: false,
},
+ propertyGroups: [
+ {
+ key: 'subscription',
+ display: 'section',
+ label: 'Subscription',
+ icon: 'tag',
+ props: ['customer', 'items'],
+ },
+ {
+ key: 'billing',
+ display: 'section',
+ label: 'Billing',
+ icon: 'calendar',
+ props: ['collection_method', 'days_until_due', 'trial_period_days'],
+ },
+ ],
props: {
customer: stripeCommon.customer,
items: Property.Array({
@@ -48,18 +64,15 @@ export const stripeCreateSubscription = createAction({
collection_method: Property.StaticDropdown({
displayName: 'Collection Method',
required: false,
- display: 'cards',
options: {
options: [
{
label: 'Auto-Charge',
value: 'charge_automatically',
- icon: 'tag',
},
{
label: 'Send Invoice',
value: 'send_invoice',
- icon: 'send',
},
],
},
@@ -73,7 +86,6 @@ export const stripeCreateSubscription = createAction({
displayName: 'Trial Days',
description: 'Free days before the first bill.',
required: false,
- display: 'stepper',
min: 1,
max: 730,
step: 1,
diff --git a/packages/pieces/community/stripe/src/lib/actions/update-customer.ts b/packages/pieces/community/stripe/src/lib/actions/update-customer.ts
index a20ad177299..f3fc48d1469 100644
--- a/packages/pieces/community/stripe/src/lib/actions/update-customer.ts
+++ b/packages/pieces/community/stripe/src/lib/actions/update-customer.ts
@@ -1,4 +1,8 @@
-import { createAction, Property } from '@activepieces/pieces-framework';
+import {
+ createAction,
+ MarkdownVariant,
+ Property,
+} from '@activepieces/pieces-framework';
import {
httpClient,
HttpMethod,
@@ -26,7 +30,14 @@ export const stripeUpdateCustomer = createAction({
display: 'section',
label: 'Customer',
icon: 'user',
- props: ['customer', 'name', 'email', 'phone', 'description'],
+ props: [
+ 'customer',
+ 'empty_fields_info',
+ 'name',
+ 'email',
+ 'phone',
+ 'description',
+ ],
},
{
key: 'address',
@@ -37,10 +48,11 @@ export const stripeUpdateCustomer = createAction({
},
],
props: {
- customer: {
- ...stripeCommon.customer,
- description: 'Only the fields you fill in below are changed.',
- },
+ customer: stripeCommon.customer,
+ empty_fields_info: Property.MarkDown({
+ value: 'Empty fields keep their current value.',
+ variant: MarkdownVariant.INFO,
+ }),
email: Property.ShortText({
displayName: 'Email',
diff --git a/packages/pieces/community/stripe/src/lib/trigger/new-dispute.ts b/packages/pieces/community/stripe/src/lib/trigger/new-dispute.ts
index 80d2f65747a..e49c1e4b63d 100644
--- a/packages/pieces/community/stripe/src/lib/trigger/new-dispute.ts
+++ b/packages/pieces/community/stripe/src/lib/trigger/new-dispute.ts
@@ -28,6 +28,15 @@ export const stripeNewDispute = createTrigger({
description:
'Fires when a customer disputes a charge in Stripe (the charge.dispute.created event), emitting the dispute including its reason and evidence due date. Optional filters narrow firing to a specific charge ID or payment intent ID. Use to react to chargebacks, such as alerting a team or gathering evidence.',
},
+ propertyGroups: [
+ {
+ key: 'filters',
+ display: 'section',
+ label: 'Filters',
+ icon: 'filter',
+ props: ['charge', 'payment_intent'],
+ },
+ ],
props: {
charge: Property.ShortText({
displayName: 'Charge ID',
diff --git a/packages/pieces/community/stripe/src/lib/trigger/new-invoice.ts b/packages/pieces/community/stripe/src/lib/trigger/new-invoice.ts
index 365faa188dd..626fb6592c1 100644
--- a/packages/pieces/community/stripe/src/lib/trigger/new-invoice.ts
+++ b/packages/pieces/community/stripe/src/lib/trigger/new-invoice.ts
@@ -28,6 +28,15 @@ export const stripeNewInvoice = createTrigger({
description:
'Fires when an invoice is created in Stripe (the invoice.created event), emitting the new invoice. Optional filters narrow firing to a specific status, customer ID, or subscription ID. Use to react to newly issued invoices, for example to record or forward them.',
},
+ propertyGroups: [
+ {
+ key: 'filters',
+ display: 'section',
+ label: 'Filters',
+ icon: 'filter',
+ props: ['status', 'customer', 'subscription'],
+ },
+ ],
props: {
status: Property.StaticDropdown({
displayName: 'Status',
diff --git a/packages/pieces/community/stripe/src/lib/trigger/new-refund.ts b/packages/pieces/community/stripe/src/lib/trigger/new-refund.ts
index 1a40765b5b0..c7962d776b0 100644
--- a/packages/pieces/community/stripe/src/lib/trigger/new-refund.ts
+++ b/packages/pieces/community/stripe/src/lib/trigger/new-refund.ts
@@ -28,6 +28,15 @@ export const stripeNewRefund = createTrigger({
description:
'Fires when a refund is created in Stripe (the refund.created event), for a full or partial refund, emitting the refund record. Optional filters narrow firing to a specific charge ID or payment intent ID. Use to react to money returned to a customer, such as updating accounting or notifying them.',
},
+ propertyGroups: [
+ {
+ key: 'filters',
+ display: 'section',
+ label: 'Filters',
+ icon: 'filter',
+ props: ['charge', 'payment_intent'],
+ },
+ ],
props: {
charge: Property.ShortText({
displayName: 'Charge ID',
diff --git a/packages/pieces/community/stripe/src/lib/trigger/updated-subscription.ts b/packages/pieces/community/stripe/src/lib/trigger/updated-subscription.ts
index 1bcc7703439..7660890e595 100644
--- a/packages/pieces/community/stripe/src/lib/trigger/updated-subscription.ts
+++ b/packages/pieces/community/stripe/src/lib/trigger/updated-subscription.ts
@@ -28,6 +28,15 @@ export const stripeUpdatedSubscription = createTrigger({
description:
'Fires when an existing subscription is updated in Stripe (the customer.subscription.updated event), emitting the changed subscription. Optional filters narrow firing to a target new status or a specific customer ID. Use to react to plan changes, status transitions, or quantity updates.',
},
+ propertyGroups: [
+ {
+ key: 'filters',
+ display: 'section',
+ label: 'Filters',
+ icon: 'filter',
+ props: ['status', 'customer'],
+ },
+ ],
props: {
status: Property.StaticDropdown({
displayName: 'New Status',