@almadar/std 6.5.2 → 7.2.0
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/behaviors/registry/atoms/std-agent-activity-log.orb +240 -227
- package/behaviors/registry/atoms/std-agent-chat-thread.orb +296 -199
- package/behaviors/registry/atoms/std-agent-classifier.orb +384 -133
- package/behaviors/registry/atoms/std-agent-completion.orb +404 -141
- package/behaviors/registry/atoms/std-agent-context-window.orb +904 -607
- package/behaviors/registry/atoms/std-agent-conversation.orb +443 -234
- package/behaviors/registry/atoms/std-agent-memory.orb +584 -150
- package/behaviors/registry/atoms/std-agent-provider.orb +431 -174
- package/behaviors/registry/atoms/std-agent-search.orb +217 -61
- package/behaviors/registry/atoms/std-agent-session.orb +406 -159
- package/behaviors/registry/atoms/std-agent-step-progress.orb +314 -294
- package/behaviors/registry/atoms/std-agent-token-gauge.orb +577 -500
- package/behaviors/registry/atoms/std-agent-tool-call.orb +328 -138
- package/behaviors/registry/atoms/std-async.orb +147 -86
- package/behaviors/registry/atoms/std-autoregressive.orb +64 -73
- package/behaviors/registry/atoms/std-browse.orb +260 -126
- package/behaviors/registry/atoms/std-cache-aside.orb +358 -259
- package/behaviors/registry/atoms/std-calendar.orb +280 -215
- package/behaviors/registry/atoms/std-circuit-breaker.orb +295 -234
- package/behaviors/registry/atoms/std-collision.orb +136 -135
- package/behaviors/registry/atoms/std-combat-log.orb +108 -90
- package/behaviors/registry/atoms/std-combat.orb +171 -98
- package/behaviors/registry/atoms/std-confirmation.orb +28 -300
- package/behaviors/registry/atoms/std-dialogue-box.orb +111 -30
- package/behaviors/registry/atoms/std-display.orb +491 -587
- package/behaviors/registry/atoms/std-drawer.orb +194 -121
- package/behaviors/registry/atoms/std-filter.orb +311 -326
- package/behaviors/registry/atoms/std-flip-card.orb +223 -177
- package/behaviors/registry/atoms/std-gallery.orb +130 -151
- package/behaviors/registry/atoms/std-game-audio.orb +133 -72
- package/behaviors/registry/atoms/std-game-canvas2d.orb +112 -52
- package/behaviors/registry/atoms/std-game-canvas3d.orb +150 -107
- package/behaviors/registry/atoms/std-game-hud.orb +87 -20
- package/behaviors/registry/atoms/std-game-menu.orb +32 -32
- package/behaviors/registry/atoms/std-game-over-screen.orb +100 -33
- package/behaviors/registry/atoms/std-gameflow.orb +147 -80
- package/behaviors/registry/atoms/std-input.orb +128 -393
- package/behaviors/registry/atoms/std-inventory-panel.orb +108 -71
- package/behaviors/registry/atoms/std-isometric-canvas.orb +156 -407
- package/behaviors/registry/atoms/std-loading.orb +127 -126
- package/behaviors/registry/atoms/std-modal.orb +30 -267
- package/behaviors/registry/atoms/std-movement.orb +391 -292
- package/behaviors/registry/atoms/std-notification.orb +133 -75
- package/behaviors/registry/atoms/std-overworld.orb +194 -121
- package/behaviors/registry/atoms/std-pagination.orb +120 -53
- package/behaviors/registry/atoms/std-physics2d.orb +94 -93
- package/behaviors/registry/atoms/std-platformer-canvas.orb +110 -98
- package/behaviors/registry/atoms/std-push.orb +172 -36
- package/behaviors/registry/atoms/std-quest.orb +552 -449
- package/behaviors/registry/atoms/std-rate-limiter.orb +242 -241
- package/behaviors/registry/atoms/std-rating.orb +123 -65
- package/behaviors/registry/atoms/std-related.orb +202 -26
- package/behaviors/registry/atoms/std-score-board.orb +109 -28
- package/behaviors/registry/atoms/std-score.orb +210 -146
- package/behaviors/registry/atoms/std-search.orb +265 -138
- package/behaviors/registry/atoms/std-selection.orb +311 -220
- package/behaviors/registry/atoms/std-service-custom-bearer.orb +199 -110
- package/behaviors/registry/atoms/std-service-custom-header.orb +206 -117
- package/behaviors/registry/atoms/std-service-custom-noauth.orb +197 -108
- package/behaviors/registry/atoms/std-service-custom-query.orb +193 -104
- package/behaviors/registry/atoms/std-service-email.orb +195 -107
- package/behaviors/registry/atoms/std-service-github.orb +216 -122
- package/behaviors/registry/atoms/std-service-llm.orb +204 -122
- package/behaviors/registry/atoms/std-service-oauth.orb +290 -204
- package/behaviors/registry/atoms/std-service-redis.orb +177 -92
- package/behaviors/registry/atoms/std-service-storage.orb +211 -122
- package/behaviors/registry/atoms/std-service-stripe.orb +236 -154
- package/behaviors/registry/atoms/std-service-twilio.orb +221 -137
- package/behaviors/registry/atoms/std-service-youtube.orb +327 -241
- package/behaviors/registry/atoms/std-simulation-canvas.orb +97 -36
- package/behaviors/registry/atoms/std-sort.orb +284 -207
- package/behaviors/registry/atoms/std-sprite.orb +150 -74
- package/behaviors/registry/atoms/std-tabs.orb +129 -62
- package/behaviors/registry/atoms/std-text-effects.orb +251 -190
- package/behaviors/registry/atoms/std-theme.orb +193 -135
- package/behaviors/registry/atoms/std-timer.orb +320 -344
- package/behaviors/registry/atoms/std-undo.orb +278 -199
- package/behaviors/registry/atoms/std-upload.orb +112 -111
- package/behaviors/registry/atoms/std-validate-on-save.orb +159 -151
- package/behaviors/registry/atoms/std-wizard.orb +445 -336
- package/behaviors/registry/molecules/std-agent-fix-loop.orb +876 -857
- package/behaviors/registry/molecules/std-agent-learner.orb +635 -654
- package/behaviors/registry/molecules/std-agent-planner.orb +581 -548
- package/behaviors/registry/molecules/std-agent-rag.orb +414 -410
- package/behaviors/registry/molecules/std-agent-tool-loop.orb +716 -711
- package/behaviors/registry/molecules/std-batch-selected-list.orb +28 -12
- package/behaviors/registry/molecules/std-builder-game.orb +86 -28
- package/behaviors/registry/molecules/std-calendar-booking.orb +32 -8
- package/behaviors/registry/molecules/std-cart.orb +347 -406
- package/behaviors/registry/molecules/std-classifier-game.orb +95 -37
- package/behaviors/registry/molecules/std-dashboard-tabbed.orb +16 -10
- package/behaviors/registry/molecules/std-debugger-game.orb +95 -37
- package/behaviors/registry/molecules/std-detail.orb +133 -138
- package/behaviors/registry/molecules/std-drawer-master-list.orb +12 -6
- package/behaviors/registry/molecules/std-event-handler-game.orb +91 -33
- package/behaviors/registry/molecules/std-filtered-list.orb +14 -8
- package/behaviors/registry/molecules/std-form-advanced.orb +242 -153
- package/behaviors/registry/molecules/std-gallery-filtered.orb +16 -10
- package/behaviors/registry/molecules/std-geospatial.orb +175 -122
- package/behaviors/registry/molecules/std-inventory.orb +216 -170
- package/behaviors/registry/molecules/std-list.orb +280 -205
- package/behaviors/registry/molecules/std-messaging.orb +146 -99
- package/behaviors/registry/molecules/std-negotiator-game.orb +95 -37
- package/behaviors/registry/molecules/std-platformer-game.orb +300 -171
- package/behaviors/registry/molecules/std-push-activity-log.orb +32 -8
- package/behaviors/registry/molecules/std-puzzle-game.orb +287 -146
- package/behaviors/registry/molecules/std-quiz.orb +322 -263
- package/behaviors/registry/molecules/std-related-master-detail.orb +21 -15
- package/behaviors/registry/molecules/std-sequencer-game.orb +92 -34
- package/behaviors/registry/molecules/std-service-content-pipeline.orb +268 -267
- package/behaviors/registry/molecules/std-service-custom-api-tester.orb +245 -152
- package/behaviors/registry/molecules/std-service-devops-toolkit.orb +633 -294
- package/behaviors/registry/molecules/std-service-notification-hub.orb +237 -152
- package/behaviors/registry/molecules/std-service-payment-flow.orb +310 -180
- package/behaviors/registry/molecules/std-simulator-game.orb +96 -38
- package/behaviors/registry/molecules/std-turn-based-battle.orb +247 -137
- package/behaviors/registry/molecules/std-wizard-form.orb +60 -9
- package/behaviors/registry/organisms/std-agent-assistant.orb +2810 -1833
- package/behaviors/registry/organisms/std-agent-builder.orb +6401 -4539
- package/behaviors/registry/organisms/std-agent-pipeline.orb +5028 -3497
- package/behaviors/registry/organisms/std-agent-reviewer.orb +2219 -1406
- package/behaviors/registry/organisms/std-agent-tutor.orb +2069 -1384
- package/behaviors/registry/organisms/std-api-gateway.orb +1419 -870
- package/behaviors/registry/organisms/std-arcade-game.orb +488 -231
- package/behaviors/registry/organisms/std-booking-system.orb +2457 -1467
- package/behaviors/registry/organisms/std-cicd-pipeline.orb +1367 -825
- package/behaviors/registry/organisms/std-cms.orb +1549 -566
- package/behaviors/registry/organisms/std-coding-academy.orb +744 -495
- package/behaviors/registry/organisms/std-crm.orb +1997 -1014
- package/behaviors/registry/organisms/std-devops-dashboard.orb +2160 -1606
- package/behaviors/registry/organisms/std-ecommerce.orb +2279 -1153
- package/behaviors/registry/organisms/std-finance-tracker.orb +1375 -727
- package/behaviors/registry/organisms/std-healthcare.orb +2940 -1703
- package/behaviors/registry/organisms/std-helpdesk.orb +1443 -781
- package/behaviors/registry/organisms/std-hr-portal.orb +2361 -1440
- package/behaviors/registry/organisms/std-iot-dashboard.orb +1491 -1026
- package/behaviors/registry/organisms/std-lms.orb +1629 -1046
- package/behaviors/registry/organisms/std-logic-training.orb +321 -134
- package/behaviors/registry/organisms/std-platformer-app.orb +855 -417
- package/behaviors/registry/organisms/std-project-manager.orb +1795 -877
- package/behaviors/registry/organisms/std-puzzle-app.orb +407 -206
- package/behaviors/registry/organisms/std-realtime-chat.orb +1436 -844
- package/behaviors/registry/organisms/std-rpg-game.orb +1522 -1007
- package/behaviors/registry/organisms/std-service-marketplace.orb +2110 -1204
- package/behaviors/registry/organisms/std-service-research-assistant.orb +1285 -1078
- package/behaviors/registry/organisms/std-social-feed.orb +612 -252
- package/behaviors/registry/organisms/std-stem-lab.orb +642 -450
- package/behaviors/registry/organisms/std-strategy-game.orb +893 -650
- package/behaviors/registry/organisms/std-trading-dashboard.orb +1271 -805
- package/dist/behaviors/registry/atoms/std-agent-activity-log.orb +240 -227
- package/dist/behaviors/registry/atoms/std-agent-chat-thread.orb +296 -199
- package/dist/behaviors/registry/atoms/std-agent-classifier.orb +384 -133
- package/dist/behaviors/registry/atoms/std-agent-completion.orb +404 -141
- package/dist/behaviors/registry/atoms/std-agent-context-window.orb +904 -607
- package/dist/behaviors/registry/atoms/std-agent-conversation.orb +443 -234
- package/dist/behaviors/registry/atoms/std-agent-memory.orb +584 -150
- package/dist/behaviors/registry/atoms/std-agent-provider.orb +431 -174
- package/dist/behaviors/registry/atoms/std-agent-search.orb +217 -61
- package/dist/behaviors/registry/atoms/std-agent-session.orb +406 -159
- package/dist/behaviors/registry/atoms/std-agent-step-progress.orb +314 -294
- package/dist/behaviors/registry/atoms/std-agent-token-gauge.orb +577 -500
- package/dist/behaviors/registry/atoms/std-agent-tool-call.orb +328 -138
- package/dist/behaviors/registry/atoms/std-async.orb +147 -86
- package/dist/behaviors/registry/atoms/std-autoregressive.orb +64 -73
- package/dist/behaviors/registry/atoms/std-browse.orb +260 -126
- package/dist/behaviors/registry/atoms/std-cache-aside.orb +358 -259
- package/dist/behaviors/registry/atoms/std-calendar.orb +280 -215
- package/dist/behaviors/registry/atoms/std-circuit-breaker.orb +295 -234
- package/dist/behaviors/registry/atoms/std-collision.orb +136 -135
- package/dist/behaviors/registry/atoms/std-combat-log.orb +108 -90
- package/dist/behaviors/registry/atoms/std-combat.orb +171 -98
- package/dist/behaviors/registry/atoms/std-confirmation.orb +28 -300
- package/dist/behaviors/registry/atoms/std-dialogue-box.orb +111 -30
- package/dist/behaviors/registry/atoms/std-display.orb +491 -587
- package/dist/behaviors/registry/atoms/std-drawer.orb +194 -121
- package/dist/behaviors/registry/atoms/std-filter.orb +311 -326
- package/dist/behaviors/registry/atoms/std-flip-card.orb +223 -177
- package/dist/behaviors/registry/atoms/std-gallery.orb +130 -151
- package/dist/behaviors/registry/atoms/std-game-audio.orb +133 -72
- package/dist/behaviors/registry/atoms/std-game-canvas2d.orb +112 -52
- package/dist/behaviors/registry/atoms/std-game-canvas3d.orb +150 -107
- package/dist/behaviors/registry/atoms/std-game-hud.orb +87 -20
- package/dist/behaviors/registry/atoms/std-game-menu.orb +32 -32
- package/dist/behaviors/registry/atoms/std-game-over-screen.orb +100 -33
- package/dist/behaviors/registry/atoms/std-gameflow.orb +147 -80
- package/dist/behaviors/registry/atoms/std-input.orb +128 -393
- package/dist/behaviors/registry/atoms/std-inventory-panel.orb +108 -71
- package/dist/behaviors/registry/atoms/std-isometric-canvas.orb +156 -407
- package/dist/behaviors/registry/atoms/std-loading.orb +127 -126
- package/dist/behaviors/registry/atoms/std-modal.orb +30 -267
- package/dist/behaviors/registry/atoms/std-movement.orb +391 -292
- package/dist/behaviors/registry/atoms/std-notification.orb +133 -75
- package/dist/behaviors/registry/atoms/std-overworld.orb +194 -121
- package/dist/behaviors/registry/atoms/std-pagination.orb +120 -53
- package/dist/behaviors/registry/atoms/std-physics2d.orb +94 -93
- package/dist/behaviors/registry/atoms/std-platformer-canvas.orb +110 -98
- package/dist/behaviors/registry/atoms/std-push.orb +172 -36
- package/dist/behaviors/registry/atoms/std-quest.orb +552 -449
- package/dist/behaviors/registry/atoms/std-rate-limiter.orb +242 -241
- package/dist/behaviors/registry/atoms/std-rating.orb +123 -65
- package/dist/behaviors/registry/atoms/std-related.orb +202 -26
- package/dist/behaviors/registry/atoms/std-score-board.orb +109 -28
- package/dist/behaviors/registry/atoms/std-score.orb +210 -146
- package/dist/behaviors/registry/atoms/std-search.orb +265 -138
- package/dist/behaviors/registry/atoms/std-selection.orb +311 -220
- package/dist/behaviors/registry/atoms/std-service-custom-bearer.orb +199 -110
- package/dist/behaviors/registry/atoms/std-service-custom-header.orb +206 -117
- package/dist/behaviors/registry/atoms/std-service-custom-noauth.orb +197 -108
- package/dist/behaviors/registry/atoms/std-service-custom-query.orb +193 -104
- package/dist/behaviors/registry/atoms/std-service-email.orb +195 -107
- package/dist/behaviors/registry/atoms/std-service-github.orb +216 -122
- package/dist/behaviors/registry/atoms/std-service-llm.orb +204 -122
- package/dist/behaviors/registry/atoms/std-service-oauth.orb +290 -204
- package/dist/behaviors/registry/atoms/std-service-redis.orb +177 -92
- package/dist/behaviors/registry/atoms/std-service-storage.orb +211 -122
- package/dist/behaviors/registry/atoms/std-service-stripe.orb +236 -154
- package/dist/behaviors/registry/atoms/std-service-twilio.orb +221 -137
- package/dist/behaviors/registry/atoms/std-service-youtube.orb +327 -241
- package/dist/behaviors/registry/atoms/std-simulation-canvas.orb +97 -36
- package/dist/behaviors/registry/atoms/std-sort.orb +284 -207
- package/dist/behaviors/registry/atoms/std-sprite.orb +150 -74
- package/dist/behaviors/registry/atoms/std-tabs.orb +129 -62
- package/dist/behaviors/registry/atoms/std-text-effects.orb +251 -190
- package/dist/behaviors/registry/atoms/std-theme.orb +193 -135
- package/dist/behaviors/registry/atoms/std-timer.orb +320 -344
- package/dist/behaviors/registry/atoms/std-undo.orb +278 -199
- package/dist/behaviors/registry/atoms/std-upload.orb +112 -111
- package/dist/behaviors/registry/atoms/std-validate-on-save.orb +159 -151
- package/dist/behaviors/registry/atoms/std-wizard.orb +445 -336
- package/dist/behaviors/registry/molecules/std-agent-fix-loop.orb +876 -857
- package/dist/behaviors/registry/molecules/std-agent-learner.orb +635 -654
- package/dist/behaviors/registry/molecules/std-agent-planner.orb +581 -548
- package/dist/behaviors/registry/molecules/std-agent-rag.orb +414 -410
- package/dist/behaviors/registry/molecules/std-agent-tool-loop.orb +716 -711
- package/dist/behaviors/registry/molecules/std-batch-selected-list.orb +28 -12
- package/dist/behaviors/registry/molecules/std-builder-game.orb +86 -28
- package/dist/behaviors/registry/molecules/std-calendar-booking.orb +32 -8
- package/dist/behaviors/registry/molecules/std-cart.orb +347 -406
- package/dist/behaviors/registry/molecules/std-classifier-game.orb +95 -37
- package/dist/behaviors/registry/molecules/std-dashboard-tabbed.orb +16 -10
- package/dist/behaviors/registry/molecules/std-debugger-game.orb +95 -37
- package/dist/behaviors/registry/molecules/std-detail.orb +133 -138
- package/dist/behaviors/registry/molecules/std-drawer-master-list.orb +12 -6
- package/dist/behaviors/registry/molecules/std-event-handler-game.orb +91 -33
- package/dist/behaviors/registry/molecules/std-filtered-list.orb +14 -8
- package/dist/behaviors/registry/molecules/std-form-advanced.orb +242 -153
- package/dist/behaviors/registry/molecules/std-gallery-filtered.orb +16 -10
- package/dist/behaviors/registry/molecules/std-geospatial.orb +175 -122
- package/dist/behaviors/registry/molecules/std-inventory.orb +216 -170
- package/dist/behaviors/registry/molecules/std-list.orb +280 -205
- package/dist/behaviors/registry/molecules/std-messaging.orb +146 -99
- package/dist/behaviors/registry/molecules/std-negotiator-game.orb +95 -37
- package/dist/behaviors/registry/molecules/std-platformer-game.orb +300 -171
- package/dist/behaviors/registry/molecules/std-push-activity-log.orb +32 -8
- package/dist/behaviors/registry/molecules/std-puzzle-game.orb +287 -146
- package/dist/behaviors/registry/molecules/std-quiz.orb +322 -263
- package/dist/behaviors/registry/molecules/std-related-master-detail.orb +21 -15
- package/dist/behaviors/registry/molecules/std-sequencer-game.orb +92 -34
- package/dist/behaviors/registry/molecules/std-service-content-pipeline.orb +268 -267
- package/dist/behaviors/registry/molecules/std-service-custom-api-tester.orb +245 -152
- package/dist/behaviors/registry/molecules/std-service-devops-toolkit.orb +633 -294
- package/dist/behaviors/registry/molecules/std-service-notification-hub.orb +237 -152
- package/dist/behaviors/registry/molecules/std-service-payment-flow.orb +310 -180
- package/dist/behaviors/registry/molecules/std-simulator-game.orb +96 -38
- package/dist/behaviors/registry/molecules/std-turn-based-battle.orb +247 -137
- package/dist/behaviors/registry/molecules/std-wizard-form.orb +60 -9
- package/dist/behaviors/registry/organisms/std-agent-assistant.orb +2810 -1833
- package/dist/behaviors/registry/organisms/std-agent-builder.orb +6401 -4539
- package/dist/behaviors/registry/organisms/std-agent-pipeline.orb +5028 -3497
- package/dist/behaviors/registry/organisms/std-agent-reviewer.orb +2219 -1406
- package/dist/behaviors/registry/organisms/std-agent-tutor.orb +2069 -1384
- package/dist/behaviors/registry/organisms/std-api-gateway.orb +1419 -870
- package/dist/behaviors/registry/organisms/std-arcade-game.orb +488 -231
- package/dist/behaviors/registry/organisms/std-booking-system.orb +2457 -1467
- package/dist/behaviors/registry/organisms/std-cicd-pipeline.orb +1367 -825
- package/dist/behaviors/registry/organisms/std-cms.orb +1549 -566
- package/dist/behaviors/registry/organisms/std-coding-academy.orb +744 -495
- package/dist/behaviors/registry/organisms/std-crm.orb +1997 -1014
- package/dist/behaviors/registry/organisms/std-devops-dashboard.orb +2160 -1606
- package/dist/behaviors/registry/organisms/std-ecommerce.orb +2279 -1153
- package/dist/behaviors/registry/organisms/std-finance-tracker.orb +1375 -727
- package/dist/behaviors/registry/organisms/std-healthcare.orb +2940 -1703
- package/dist/behaviors/registry/organisms/std-helpdesk.orb +1443 -781
- package/dist/behaviors/registry/organisms/std-hr-portal.orb +2361 -1440
- package/dist/behaviors/registry/organisms/std-iot-dashboard.orb +1491 -1026
- package/dist/behaviors/registry/organisms/std-lms.orb +1629 -1046
- package/dist/behaviors/registry/organisms/std-logic-training.orb +321 -134
- package/dist/behaviors/registry/organisms/std-platformer-app.orb +855 -417
- package/dist/behaviors/registry/organisms/std-project-manager.orb +1795 -877
- package/dist/behaviors/registry/organisms/std-puzzle-app.orb +407 -206
- package/dist/behaviors/registry/organisms/std-realtime-chat.orb +1436 -844
- package/dist/behaviors/registry/organisms/std-rpg-game.orb +1522 -1007
- package/dist/behaviors/registry/organisms/std-service-marketplace.orb +2110 -1204
- package/dist/behaviors/registry/organisms/std-service-research-assistant.orb +1285 -1078
- package/dist/behaviors/registry/organisms/std-social-feed.orb +612 -252
- package/dist/behaviors/registry/organisms/std-stem-lab.orb +642 -450
- package/dist/behaviors/registry/organisms/std-strategy-game.orb +893 -650
- package/dist/behaviors/registry/organisms/std-trading-dashboard.orb +1271 -805
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/dist/modules/core.js +16 -4
- package/dist/modules/core.js.map +1 -1
- package/dist/modules/index.js +16 -4
- package/dist/modules/index.js.map +1 -1
- package/dist/registry.js +16 -4
- package/dist/registry.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "std-service-payment-flow",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "std-service-payment-flow as a Function",
|
|
5
5
|
"orbitals": [
|
|
6
6
|
{
|
|
7
7
|
"name": "ServicePaymentFlowOrbital",
|
|
@@ -84,12 +84,89 @@
|
|
|
84
84
|
"traits": [
|
|
85
85
|
{
|
|
86
86
|
"name": "ServicePaymentFlowPayment",
|
|
87
|
-
"linkedEntity": "ServicePaymentFlow",
|
|
88
87
|
"category": "interaction",
|
|
88
|
+
"linkedEntity": "ServicePaymentFlow",
|
|
89
89
|
"emits": [
|
|
90
90
|
{
|
|
91
|
-
"event": "SEND_RECEIPT"
|
|
92
|
-
|
|
91
|
+
"event": "SEND_RECEIPT"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"event": "ServicePaymentFlowLoaded",
|
|
95
|
+
"description": "Fired when ServicePaymentFlow finishes loading",
|
|
96
|
+
"scope": "internal",
|
|
97
|
+
"payload": [
|
|
98
|
+
{
|
|
99
|
+
"name": "id",
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "name",
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "description",
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "status",
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "createdAt",
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "amount",
|
|
120
|
+
"type": "number"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "currency",
|
|
124
|
+
"type": "string"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "paymentIntentId",
|
|
128
|
+
"type": "string"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "clientSecret",
|
|
132
|
+
"type": "string"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "paymentStatus",
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "to",
|
|
140
|
+
"type": "string"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "subject",
|
|
144
|
+
"type": "string"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "body",
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "sendStatus",
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "error",
|
|
156
|
+
"type": "string"
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"event": "ServicePaymentFlowLoadFailed",
|
|
162
|
+
"description": "Fired when ServicePaymentFlow fails to load",
|
|
163
|
+
"scope": "internal",
|
|
164
|
+
"payload": [
|
|
165
|
+
{
|
|
166
|
+
"name": "message",
|
|
167
|
+
"type": "string"
|
|
168
|
+
}
|
|
169
|
+
]
|
|
93
170
|
}
|
|
94
171
|
],
|
|
95
172
|
"stateMachine": {
|
|
@@ -136,10 +213,6 @@
|
|
|
136
213
|
}
|
|
137
214
|
]
|
|
138
215
|
},
|
|
139
|
-
{
|
|
140
|
-
"key": "PAYMENT_CONFIRMED",
|
|
141
|
-
"name": "Payment Confirmed"
|
|
142
|
-
},
|
|
143
216
|
{
|
|
144
217
|
"key": "FAILED",
|
|
145
218
|
"name": "Failed",
|
|
@@ -152,12 +225,34 @@
|
|
|
152
225
|
]
|
|
153
226
|
},
|
|
154
227
|
{
|
|
155
|
-
"key": "
|
|
156
|
-
"name": "
|
|
228
|
+
"key": "PAYMENT_CONFIRMED",
|
|
229
|
+
"name": "Payment Confirmed"
|
|
157
230
|
},
|
|
158
231
|
{
|
|
159
232
|
"key": "RESET",
|
|
160
233
|
"name": "Reset"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"key": "RETRY",
|
|
237
|
+
"name": "Retry"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"key": "SEND_RECEIPT",
|
|
241
|
+
"name": "Send Receipt"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"key": "ServicePaymentFlowLoaded",
|
|
245
|
+
"name": "ServicePaymentFlow loaded"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"key": "ServicePaymentFlowLoadFailed",
|
|
249
|
+
"name": "ServicePaymentFlow load failed",
|
|
250
|
+
"payload": [
|
|
251
|
+
{
|
|
252
|
+
"name": "message",
|
|
253
|
+
"type": "string"
|
|
254
|
+
}
|
|
255
|
+
]
|
|
161
256
|
}
|
|
162
257
|
],
|
|
163
258
|
"transitions": [
|
|
@@ -168,7 +263,13 @@
|
|
|
168
263
|
"effects": [
|
|
169
264
|
[
|
|
170
265
|
"fetch",
|
|
171
|
-
"ServicePaymentFlow"
|
|
266
|
+
"ServicePaymentFlow",
|
|
267
|
+
{
|
|
268
|
+
"emit": {
|
|
269
|
+
"success": "ServicePaymentFlowLoaded",
|
|
270
|
+
"failure": "ServicePaymentFlowLoadFailed"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
172
273
|
],
|
|
173
274
|
[
|
|
174
275
|
"render-ui",
|
|
@@ -176,69 +277,69 @@
|
|
|
176
277
|
{
|
|
177
278
|
"type": "stack",
|
|
178
279
|
"direction": "vertical",
|
|
179
|
-
"gap": "lg",
|
|
180
280
|
"align": "center",
|
|
281
|
+
"gap": "lg",
|
|
181
282
|
"children": [
|
|
182
283
|
{
|
|
183
284
|
"type": "stack",
|
|
184
|
-
"direction": "horizontal",
|
|
185
|
-
"gap": "md",
|
|
186
285
|
"align": "center",
|
|
286
|
+
"direction": "horizontal",
|
|
187
287
|
"children": [
|
|
188
288
|
{
|
|
189
|
-
"type": "icon",
|
|
190
289
|
"name": "credit-card",
|
|
191
|
-
"size": "lg"
|
|
290
|
+
"size": "lg",
|
|
291
|
+
"type": "icon"
|
|
192
292
|
},
|
|
193
293
|
{
|
|
194
294
|
"type": "typography",
|
|
195
|
-
"
|
|
196
|
-
"
|
|
295
|
+
"variant": "h2",
|
|
296
|
+
"content": "Payment"
|
|
197
297
|
}
|
|
198
|
-
]
|
|
298
|
+
],
|
|
299
|
+
"gap": "md"
|
|
199
300
|
},
|
|
200
301
|
{
|
|
201
302
|
"type": "divider"
|
|
202
303
|
},
|
|
203
304
|
{
|
|
204
|
-
"type": "stack",
|
|
205
|
-
"direction": "vertical",
|
|
206
305
|
"gap": "md",
|
|
306
|
+
"direction": "vertical",
|
|
307
|
+
"type": "stack",
|
|
207
308
|
"children": [
|
|
208
309
|
{
|
|
209
|
-
"type": "input",
|
|
210
310
|
"label": "Amount",
|
|
211
|
-
"
|
|
311
|
+
"placeholder": "0.00",
|
|
312
|
+
"type": "input",
|
|
212
313
|
"inputType": "number",
|
|
213
|
-
"
|
|
314
|
+
"field": "amount"
|
|
214
315
|
},
|
|
215
316
|
{
|
|
216
|
-
"type": "select",
|
|
217
|
-
"label": "Currency",
|
|
218
|
-
"field": "currency",
|
|
219
317
|
"options": [
|
|
220
318
|
{
|
|
221
|
-
"
|
|
222
|
-
"
|
|
319
|
+
"value": "usd",
|
|
320
|
+
"label": "USD"
|
|
223
321
|
},
|
|
224
322
|
{
|
|
225
323
|
"label": "EUR",
|
|
226
324
|
"value": "eur"
|
|
227
325
|
},
|
|
228
326
|
{
|
|
229
|
-
"
|
|
230
|
-
"
|
|
327
|
+
"value": "gbp",
|
|
328
|
+
"label": "GBP"
|
|
231
329
|
}
|
|
232
|
-
]
|
|
330
|
+
],
|
|
331
|
+
"label": "Currency",
|
|
332
|
+
"field": "currency",
|
|
333
|
+
"type": "select"
|
|
233
334
|
}
|
|
234
335
|
]
|
|
235
336
|
},
|
|
236
337
|
{
|
|
237
338
|
"type": "button",
|
|
238
|
-
"label": "Pay",
|
|
239
|
-
"event": "CREATE_PAYMENT",
|
|
240
339
|
"variant": "primary",
|
|
241
|
-
"icon": "credit-card"
|
|
340
|
+
"icon": "credit-card",
|
|
341
|
+
"event": "CREATE_PAYMENT",
|
|
342
|
+
"label": "Pay"
|
|
242
343
|
}
|
|
243
344
|
]
|
|
244
345
|
}
|
|
@@ -254,9 +355,9 @@
|
|
|
254
355
|
"render-ui",
|
|
255
356
|
"main",
|
|
256
357
|
{
|
|
257
|
-
"type": "loading-state",
|
|
258
358
|
"title": "Creating payment...",
|
|
259
|
-
"message": "Setting up your payment intent."
|
|
359
|
+
"message": "Setting up your payment intent.",
|
|
360
|
+
"type": "loading-state"
|
|
260
361
|
}
|
|
261
362
|
],
|
|
262
363
|
[
|
|
@@ -264,8 +365,8 @@
|
|
|
264
365
|
"stripe",
|
|
265
366
|
"createPaymentIntent",
|
|
266
367
|
{
|
|
267
|
-
"
|
|
268
|
-
"
|
|
368
|
+
"currency": "@entity.currency",
|
|
369
|
+
"amount": "@entity.amount"
|
|
269
370
|
}
|
|
270
371
|
]
|
|
271
372
|
]
|
|
@@ -289,8 +390,8 @@
|
|
|
289
390
|
"render-ui",
|
|
290
391
|
"main",
|
|
291
392
|
{
|
|
292
|
-
"type": "loading-state",
|
|
293
393
|
"title": "Confirming payment...",
|
|
394
|
+
"type": "loading-state",
|
|
294
395
|
"message": "Processing your payment."
|
|
295
396
|
}
|
|
296
397
|
],
|
|
@@ -304,6 +405,28 @@
|
|
|
304
405
|
]
|
|
305
406
|
]
|
|
306
407
|
},
|
|
408
|
+
{
|
|
409
|
+
"from": "creating",
|
|
410
|
+
"to": "error",
|
|
411
|
+
"event": "FAILED",
|
|
412
|
+
"effects": [
|
|
413
|
+
[
|
|
414
|
+
"set",
|
|
415
|
+
"@entity.error",
|
|
416
|
+
"@payload.error"
|
|
417
|
+
],
|
|
418
|
+
[
|
|
419
|
+
"render-ui",
|
|
420
|
+
"main",
|
|
421
|
+
{
|
|
422
|
+
"type": "error-state",
|
|
423
|
+
"title": "Payment Failed",
|
|
424
|
+
"message": "@entity.error",
|
|
425
|
+
"onRetry": "RETRY"
|
|
426
|
+
}
|
|
427
|
+
]
|
|
428
|
+
]
|
|
429
|
+
},
|
|
307
430
|
{
|
|
308
431
|
"from": "confirming",
|
|
309
432
|
"to": "succeeded",
|
|
@@ -322,15 +445,15 @@
|
|
|
322
445
|
"render-ui",
|
|
323
446
|
"main",
|
|
324
447
|
{
|
|
325
|
-
"type": "stack",
|
|
326
448
|
"direction": "vertical",
|
|
449
|
+
"type": "stack",
|
|
327
450
|
"gap": "lg",
|
|
328
451
|
"align": "center",
|
|
329
452
|
"children": [
|
|
330
453
|
{
|
|
331
|
-
"
|
|
454
|
+
"size": "lg",
|
|
332
455
|
"name": "check-circle",
|
|
333
|
-
"
|
|
456
|
+
"type": "icon"
|
|
334
457
|
},
|
|
335
458
|
{
|
|
336
459
|
"type": "alert",
|
|
@@ -338,45 +461,23 @@
|
|
|
338
461
|
"message": "Payment successful! Sending receipt..."
|
|
339
462
|
},
|
|
340
463
|
{
|
|
341
|
-
"type": "typography",
|
|
342
|
-
"variant": "body",
|
|
343
464
|
"color": "muted",
|
|
465
|
+
"variant": "body",
|
|
466
|
+
"type": "typography",
|
|
344
467
|
"content": "@entity.paymentIntentId"
|
|
345
468
|
},
|
|
346
469
|
{
|
|
347
|
-
"type": "button",
|
|
348
|
-
"label": "New Payment",
|
|
349
470
|
"event": "RESET",
|
|
471
|
+
"type": "button",
|
|
472
|
+
"icon": "rotate-ccw",
|
|
350
473
|
"variant": "ghost",
|
|
351
|
-
"
|
|
474
|
+
"label": "New Payment"
|
|
352
475
|
}
|
|
353
476
|
]
|
|
354
477
|
}
|
|
355
478
|
]
|
|
356
479
|
]
|
|
357
480
|
},
|
|
358
|
-
{
|
|
359
|
-
"from": "creating",
|
|
360
|
-
"to": "error",
|
|
361
|
-
"event": "FAILED",
|
|
362
|
-
"effects": [
|
|
363
|
-
[
|
|
364
|
-
"set",
|
|
365
|
-
"@entity.error",
|
|
366
|
-
"@payload.error"
|
|
367
|
-
],
|
|
368
|
-
[
|
|
369
|
-
"render-ui",
|
|
370
|
-
"main",
|
|
371
|
-
{
|
|
372
|
-
"type": "error-state",
|
|
373
|
-
"title": "Payment Failed",
|
|
374
|
-
"message": "@entity.error",
|
|
375
|
-
"onRetry": "RETRY"
|
|
376
|
-
}
|
|
377
|
-
]
|
|
378
|
-
]
|
|
379
|
-
},
|
|
380
481
|
{
|
|
381
482
|
"from": "confirming",
|
|
382
483
|
"to": "error",
|
|
@@ -392,17 +493,17 @@
|
|
|
392
493
|
"main",
|
|
393
494
|
{
|
|
394
495
|
"type": "error-state",
|
|
395
|
-
"title": "Payment Failed",
|
|
396
496
|
"message": "@entity.error",
|
|
497
|
+
"title": "Payment Failed",
|
|
397
498
|
"onRetry": "RETRY"
|
|
398
499
|
}
|
|
399
500
|
]
|
|
400
501
|
]
|
|
401
502
|
},
|
|
402
503
|
{
|
|
403
|
-
"from": "
|
|
504
|
+
"from": "succeeded",
|
|
404
505
|
"to": "idle",
|
|
405
|
-
"event": "
|
|
506
|
+
"event": "RESET",
|
|
406
507
|
"effects": [
|
|
407
508
|
[
|
|
408
509
|
"render-ui",
|
|
@@ -410,69 +511,69 @@
|
|
|
410
511
|
{
|
|
411
512
|
"type": "stack",
|
|
412
513
|
"direction": "vertical",
|
|
413
|
-
"gap": "lg",
|
|
414
514
|
"align": "center",
|
|
515
|
+
"gap": "lg",
|
|
415
516
|
"children": [
|
|
416
517
|
{
|
|
417
|
-
"type": "stack",
|
|
418
|
-
"direction": "horizontal",
|
|
419
|
-
"gap": "md",
|
|
420
|
-
"align": "center",
|
|
421
518
|
"children": [
|
|
422
519
|
{
|
|
423
|
-
"type": "icon",
|
|
424
520
|
"name": "credit-card",
|
|
425
|
-
"size": "lg"
|
|
521
|
+
"size": "lg",
|
|
522
|
+
"type": "icon"
|
|
426
523
|
},
|
|
427
524
|
{
|
|
428
|
-
"type": "typography",
|
|
429
525
|
"content": "Payment",
|
|
430
|
-
"variant": "h2"
|
|
526
|
+
"variant": "h2",
|
|
527
|
+
"type": "typography"
|
|
431
528
|
}
|
|
432
|
-
]
|
|
529
|
+
],
|
|
530
|
+
"align": "center",
|
|
531
|
+
"direction": "horizontal",
|
|
532
|
+
"type": "stack",
|
|
533
|
+
"gap": "md"
|
|
433
534
|
},
|
|
434
535
|
{
|
|
435
536
|
"type": "divider"
|
|
436
537
|
},
|
|
437
538
|
{
|
|
438
|
-
"type": "stack",
|
|
439
|
-
"direction": "vertical",
|
|
440
539
|
"gap": "md",
|
|
441
540
|
"children": [
|
|
442
541
|
{
|
|
443
|
-
"type": "input",
|
|
444
|
-
"label": "Amount",
|
|
445
|
-
"field": "amount",
|
|
446
542
|
"inputType": "number",
|
|
447
|
-
"
|
|
543
|
+
"field": "amount",
|
|
544
|
+
"placeholder": "0.00",
|
|
545
|
+
"label": "Amount",
|
|
546
|
+
"type": "input"
|
|
448
547
|
},
|
|
449
548
|
{
|
|
450
|
-
"type": "select",
|
|
451
|
-
"label": "Currency",
|
|
452
549
|
"field": "currency",
|
|
550
|
+
"type": "select",
|
|
453
551
|
"options": [
|
|
454
552
|
{
|
|
455
553
|
"label": "USD",
|
|
456
554
|
"value": "usd"
|
|
457
555
|
},
|
|
458
556
|
{
|
|
459
|
-
"
|
|
460
|
-
"
|
|
557
|
+
"value": "eur",
|
|
558
|
+
"label": "EUR"
|
|
461
559
|
},
|
|
462
560
|
{
|
|
463
561
|
"label": "GBP",
|
|
464
562
|
"value": "gbp"
|
|
465
563
|
}
|
|
466
|
-
]
|
|
564
|
+
],
|
|
565
|
+
"label": "Currency"
|
|
467
566
|
}
|
|
468
|
-
]
|
|
567
|
+
],
|
|
568
|
+
"type": "stack",
|
|
569
|
+
"direction": "vertical"
|
|
469
570
|
},
|
|
470
571
|
{
|
|
471
|
-
"type": "button",
|
|
472
|
-
"label": "Pay",
|
|
473
572
|
"event": "CREATE_PAYMENT",
|
|
573
|
+
"icon": "credit-card",
|
|
574
|
+
"type": "button",
|
|
474
575
|
"variant": "primary",
|
|
475
|
-
"
|
|
576
|
+
"label": "Pay"
|
|
476
577
|
}
|
|
477
578
|
]
|
|
478
579
|
}
|
|
@@ -480,9 +581,9 @@
|
|
|
480
581
|
]
|
|
481
582
|
},
|
|
482
583
|
{
|
|
483
|
-
"from": "
|
|
584
|
+
"from": "error",
|
|
484
585
|
"to": "idle",
|
|
485
|
-
"event": "
|
|
586
|
+
"event": "RETRY",
|
|
486
587
|
"effects": [
|
|
487
588
|
[
|
|
488
589
|
"render-ui",
|
|
@@ -490,67 +591,67 @@
|
|
|
490
591
|
{
|
|
491
592
|
"type": "stack",
|
|
492
593
|
"direction": "vertical",
|
|
493
|
-
"gap": "lg",
|
|
494
594
|
"align": "center",
|
|
595
|
+
"gap": "lg",
|
|
495
596
|
"children": [
|
|
496
597
|
{
|
|
497
|
-
"type": "stack",
|
|
498
598
|
"direction": "horizontal",
|
|
499
|
-
"gap": "md",
|
|
500
599
|
"align": "center",
|
|
501
600
|
"children": [
|
|
502
601
|
{
|
|
602
|
+
"size": "lg",
|
|
503
603
|
"type": "icon",
|
|
504
|
-
"name": "credit-card"
|
|
505
|
-
"size": "lg"
|
|
604
|
+
"name": "credit-card"
|
|
506
605
|
},
|
|
507
606
|
{
|
|
508
|
-
"type": "typography",
|
|
509
607
|
"content": "Payment",
|
|
608
|
+
"type": "typography",
|
|
510
609
|
"variant": "h2"
|
|
511
610
|
}
|
|
512
|
-
]
|
|
611
|
+
],
|
|
612
|
+
"type": "stack",
|
|
613
|
+
"gap": "md"
|
|
513
614
|
},
|
|
514
615
|
{
|
|
515
616
|
"type": "divider"
|
|
516
617
|
},
|
|
517
618
|
{
|
|
518
619
|
"type": "stack",
|
|
519
|
-
"direction": "vertical",
|
|
520
620
|
"gap": "md",
|
|
621
|
+
"direction": "vertical",
|
|
521
622
|
"children": [
|
|
522
623
|
{
|
|
523
|
-
"type": "input",
|
|
524
|
-
"label": "Amount",
|
|
525
624
|
"field": "amount",
|
|
625
|
+
"placeholder": "0.00",
|
|
526
626
|
"inputType": "number",
|
|
527
|
-
"
|
|
627
|
+
"type": "input",
|
|
628
|
+
"label": "Amount"
|
|
528
629
|
},
|
|
529
630
|
{
|
|
530
|
-
"type": "select",
|
|
531
|
-
"label": "Currency",
|
|
532
|
-
"field": "currency",
|
|
533
631
|
"options": [
|
|
534
632
|
{
|
|
535
|
-
"
|
|
536
|
-
"
|
|
633
|
+
"value": "usd",
|
|
634
|
+
"label": "USD"
|
|
537
635
|
},
|
|
538
636
|
{
|
|
539
|
-
"
|
|
540
|
-
"
|
|
637
|
+
"value": "eur",
|
|
638
|
+
"label": "EUR"
|
|
541
639
|
},
|
|
542
640
|
{
|
|
543
|
-
"
|
|
544
|
-
"
|
|
641
|
+
"value": "gbp",
|
|
642
|
+
"label": "GBP"
|
|
545
643
|
}
|
|
546
|
-
]
|
|
644
|
+
],
|
|
645
|
+
"label": "Currency",
|
|
646
|
+
"type": "select",
|
|
647
|
+
"field": "currency"
|
|
547
648
|
}
|
|
548
649
|
]
|
|
549
650
|
},
|
|
550
651
|
{
|
|
551
|
-
"type": "button",
|
|
552
652
|
"label": "Pay",
|
|
553
653
|
"event": "CREATE_PAYMENT",
|
|
654
|
+
"type": "button",
|
|
554
655
|
"variant": "primary",
|
|
555
656
|
"icon": "credit-card"
|
|
556
657
|
}
|
|
@@ -568,15 +669,14 @@
|
|
|
568
669
|
"render-ui",
|
|
569
670
|
"main",
|
|
570
671
|
{
|
|
571
|
-
"type": "stack",
|
|
572
672
|
"direction": "vertical",
|
|
573
673
|
"gap": "lg",
|
|
674
|
+
"type": "stack",
|
|
574
675
|
"align": "center",
|
|
575
676
|
"children": [
|
|
576
677
|
{
|
|
577
|
-
"type": "stack",
|
|
578
678
|
"direction": "horizontal",
|
|
579
|
-
"
|
|
679
|
+
"type": "stack",
|
|
580
680
|
"align": "center",
|
|
581
681
|
"children": [
|
|
582
682
|
{
|
|
@@ -589,50 +689,51 @@
|
|
|
589
689
|
"content": "Payment",
|
|
590
690
|
"variant": "h2"
|
|
591
691
|
}
|
|
592
|
-
]
|
|
692
|
+
],
|
|
693
|
+
"gap": "md"
|
|
593
694
|
},
|
|
594
695
|
{
|
|
595
696
|
"type": "divider"
|
|
596
697
|
},
|
|
597
698
|
{
|
|
598
699
|
"type": "stack",
|
|
599
|
-
"direction": "vertical",
|
|
600
|
-
"gap": "md",
|
|
601
700
|
"children": [
|
|
602
701
|
{
|
|
603
702
|
"type": "input",
|
|
604
|
-
"label": "Amount",
|
|
605
703
|
"field": "amount",
|
|
704
|
+
"placeholder": "0.00",
|
|
606
705
|
"inputType": "number",
|
|
607
|
-
"
|
|
706
|
+
"label": "Amount"
|
|
608
707
|
},
|
|
609
708
|
{
|
|
610
|
-
"type": "select",
|
|
611
|
-
"label": "Currency",
|
|
612
|
-
"field": "currency",
|
|
613
709
|
"options": [
|
|
614
710
|
{
|
|
615
711
|
"label": "USD",
|
|
616
712
|
"value": "usd"
|
|
617
713
|
},
|
|
618
714
|
{
|
|
619
|
-
"
|
|
620
|
-
"
|
|
715
|
+
"value": "eur",
|
|
716
|
+
"label": "EUR"
|
|
621
717
|
},
|
|
622
718
|
{
|
|
623
719
|
"label": "GBP",
|
|
624
720
|
"value": "gbp"
|
|
625
721
|
}
|
|
626
|
-
]
|
|
722
|
+
],
|
|
723
|
+
"type": "select",
|
|
724
|
+
"label": "Currency",
|
|
725
|
+
"field": "currency"
|
|
627
726
|
}
|
|
628
|
-
]
|
|
727
|
+
],
|
|
728
|
+
"direction": "vertical",
|
|
729
|
+
"gap": "md"
|
|
629
730
|
},
|
|
630
731
|
{
|
|
631
|
-
"
|
|
732
|
+
"icon": "credit-card",
|
|
632
733
|
"label": "Pay",
|
|
633
|
-
"event": "CREATE_PAYMENT",
|
|
634
734
|
"variant": "primary",
|
|
635
|
-
"
|
|
735
|
+
"type": "button",
|
|
736
|
+
"event": "CREATE_PAYMENT"
|
|
636
737
|
}
|
|
637
738
|
]
|
|
638
739
|
}
|
|
@@ -640,17 +741,21 @@
|
|
|
640
741
|
]
|
|
641
742
|
}
|
|
642
743
|
]
|
|
643
|
-
}
|
|
744
|
+
},
|
|
745
|
+
"scope": "instance"
|
|
644
746
|
},
|
|
645
747
|
{
|
|
646
748
|
"name": "ServicePaymentFlowReceipt",
|
|
647
|
-
"linkedEntity": "ServicePaymentFlow",
|
|
648
749
|
"category": "interaction",
|
|
750
|
+
"linkedEntity": "ServicePaymentFlow",
|
|
649
751
|
"listens": [
|
|
650
752
|
{
|
|
651
753
|
"event": "SEND_RECEIPT",
|
|
652
754
|
"triggers": "SEND_RECEIPT",
|
|
653
|
-
"
|
|
755
|
+
"source": {
|
|
756
|
+
"kind": "trait",
|
|
757
|
+
"trait": "ServicePaymentFlowPayment"
|
|
758
|
+
}
|
|
654
759
|
}
|
|
655
760
|
],
|
|
656
761
|
"stateMachine": {
|
|
@@ -663,8 +768,7 @@
|
|
|
663
768
|
"name": "sending"
|
|
664
769
|
},
|
|
665
770
|
{
|
|
666
|
-
"name": "sent"
|
|
667
|
-
"isTerminal": true
|
|
771
|
+
"name": "sent"
|
|
668
772
|
},
|
|
669
773
|
{
|
|
670
774
|
"name": "receiptError"
|
|
@@ -681,11 +785,11 @@
|
|
|
681
785
|
},
|
|
682
786
|
{
|
|
683
787
|
"key": "SENT",
|
|
684
|
-
"name": "
|
|
788
|
+
"name": "Sent"
|
|
685
789
|
},
|
|
686
790
|
{
|
|
687
791
|
"key": "FAILED",
|
|
688
|
-
"name": "
|
|
792
|
+
"name": "Failed",
|
|
689
793
|
"payload": [
|
|
690
794
|
{
|
|
691
795
|
"name": "error",
|
|
@@ -709,23 +813,23 @@
|
|
|
709
813
|
"render-ui",
|
|
710
814
|
"main",
|
|
711
815
|
{
|
|
712
|
-
"type": "stack",
|
|
713
|
-
"direction": "vertical",
|
|
714
|
-
"gap": "md",
|
|
715
|
-
"align": "center",
|
|
716
816
|
"children": [
|
|
717
817
|
{
|
|
718
|
-
"type": "icon",
|
|
719
818
|
"name": "mail",
|
|
720
|
-
"size": "md"
|
|
819
|
+
"size": "md",
|
|
820
|
+
"type": "icon"
|
|
721
821
|
},
|
|
722
822
|
{
|
|
723
823
|
"type": "typography",
|
|
824
|
+
"color": "muted",
|
|
724
825
|
"content": "Receipt will be sent after payment.",
|
|
725
|
-
"variant": "body"
|
|
726
|
-
"color": "muted"
|
|
826
|
+
"variant": "body"
|
|
727
827
|
}
|
|
728
|
-
]
|
|
828
|
+
],
|
|
829
|
+
"align": "center",
|
|
830
|
+
"type": "stack",
|
|
831
|
+
"gap": "md",
|
|
832
|
+
"direction": "vertical"
|
|
729
833
|
}
|
|
730
834
|
]
|
|
731
835
|
]
|
|
@@ -739,9 +843,9 @@
|
|
|
739
843
|
"render-ui",
|
|
740
844
|
"main",
|
|
741
845
|
{
|
|
846
|
+
"message": "Delivering your payment receipt.",
|
|
742
847
|
"type": "loading-state",
|
|
743
|
-
"title": "Sending receipt..."
|
|
744
|
-
"message": "Delivering your payment receipt."
|
|
848
|
+
"title": "Sending receipt..."
|
|
745
849
|
}
|
|
746
850
|
],
|
|
747
851
|
[
|
|
@@ -749,9 +853,9 @@
|
|
|
749
853
|
"email",
|
|
750
854
|
"send",
|
|
751
855
|
{
|
|
752
|
-
"to": "@entity.to",
|
|
753
856
|
"subject": "@entity.subject",
|
|
754
|
-
"body": "@entity.body"
|
|
857
|
+
"body": "@entity.body",
|
|
858
|
+
"to": "@entity.to"
|
|
755
859
|
}
|
|
756
860
|
]
|
|
757
861
|
]
|
|
@@ -770,10 +874,7 @@
|
|
|
770
874
|
"render-ui",
|
|
771
875
|
"main",
|
|
772
876
|
{
|
|
773
|
-
"type": "stack",
|
|
774
877
|
"direction": "vertical",
|
|
775
|
-
"gap": "md",
|
|
776
|
-
"align": "center",
|
|
777
878
|
"children": [
|
|
778
879
|
{
|
|
779
880
|
"type": "icon",
|
|
@@ -781,11 +882,14 @@
|
|
|
781
882
|
"size": "md"
|
|
782
883
|
},
|
|
783
884
|
{
|
|
784
|
-
"
|
|
885
|
+
"message": "Receipt sent successfully",
|
|
785
886
|
"variant": "success",
|
|
786
|
-
"
|
|
887
|
+
"type": "alert"
|
|
787
888
|
}
|
|
788
|
-
]
|
|
889
|
+
],
|
|
890
|
+
"gap": "md",
|
|
891
|
+
"align": "center",
|
|
892
|
+
"type": "stack"
|
|
789
893
|
}
|
|
790
894
|
]
|
|
791
895
|
]
|
|
@@ -804,29 +908,54 @@
|
|
|
804
908
|
"render-ui",
|
|
805
909
|
"main",
|
|
806
910
|
{
|
|
807
|
-
"type": "stack",
|
|
808
911
|
"direction": "vertical",
|
|
809
912
|
"gap": "md",
|
|
913
|
+
"type": "stack",
|
|
810
914
|
"align": "center",
|
|
811
915
|
"children": [
|
|
812
916
|
{
|
|
813
|
-
"type": "error-state",
|
|
814
|
-
"title": "Receipt Failed",
|
|
815
917
|
"message": "Could not send receipt email.",
|
|
816
|
-
"onRetry": "RETRY_RECEIPT"
|
|
918
|
+
"onRetry": "RETRY_RECEIPT",
|
|
919
|
+
"type": "error-state",
|
|
920
|
+
"title": "Receipt Failed"
|
|
817
921
|
},
|
|
818
922
|
{
|
|
819
|
-
"type": "button",
|
|
820
|
-
"label": "Retry",
|
|
821
923
|
"event": "RETRY_RECEIPT",
|
|
822
|
-
"
|
|
823
|
-
"
|
|
924
|
+
"icon": "refresh-cw",
|
|
925
|
+
"label": "Retry",
|
|
926
|
+
"type": "button",
|
|
927
|
+
"variant": "primary"
|
|
824
928
|
}
|
|
825
929
|
]
|
|
826
930
|
}
|
|
827
931
|
]
|
|
828
932
|
]
|
|
829
933
|
},
|
|
934
|
+
{
|
|
935
|
+
"from": "sent",
|
|
936
|
+
"to": "sending",
|
|
937
|
+
"event": "SEND_RECEIPT",
|
|
938
|
+
"effects": [
|
|
939
|
+
[
|
|
940
|
+
"render-ui",
|
|
941
|
+
"main",
|
|
942
|
+
{
|
|
943
|
+
"title": "Resending receipt...",
|
|
944
|
+
"type": "loading-state"
|
|
945
|
+
}
|
|
946
|
+
],
|
|
947
|
+
[
|
|
948
|
+
"call-service",
|
|
949
|
+
"email",
|
|
950
|
+
"send",
|
|
951
|
+
{
|
|
952
|
+
"subject": "@entity.subject",
|
|
953
|
+
"to": "@entity.to",
|
|
954
|
+
"body": "@entity.body"
|
|
955
|
+
}
|
|
956
|
+
]
|
|
957
|
+
]
|
|
958
|
+
},
|
|
830
959
|
{
|
|
831
960
|
"from": "receiptError",
|
|
832
961
|
"to": "sending",
|
|
@@ -836,9 +965,9 @@
|
|
|
836
965
|
"render-ui",
|
|
837
966
|
"main",
|
|
838
967
|
{
|
|
839
|
-
"type": "loading-state",
|
|
840
968
|
"title": "Sending receipt...",
|
|
841
|
-
"message": "Delivering your payment receipt."
|
|
969
|
+
"message": "Delivering your payment receipt.",
|
|
970
|
+
"type": "loading-state"
|
|
842
971
|
}
|
|
843
972
|
],
|
|
844
973
|
[
|
|
@@ -847,14 +976,15 @@
|
|
|
847
976
|
"send",
|
|
848
977
|
{
|
|
849
978
|
"to": "@entity.to",
|
|
850
|
-
"
|
|
851
|
-
"
|
|
979
|
+
"body": "@entity.body",
|
|
980
|
+
"subject": "@entity.subject"
|
|
852
981
|
}
|
|
853
982
|
]
|
|
854
983
|
]
|
|
855
984
|
}
|
|
856
985
|
]
|
|
857
|
-
}
|
|
986
|
+
},
|
|
987
|
+
"scope": "instance"
|
|
858
988
|
}
|
|
859
989
|
],
|
|
860
990
|
"pages": [
|
|
@@ -873,4 +1003,4 @@
|
|
|
873
1003
|
]
|
|
874
1004
|
}
|
|
875
1005
|
]
|
|
876
|
-
}
|
|
1006
|
+
}
|