@flexprice/sdk 2.0.11 → 2.0.13
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 +78 -0
- package/docs/sdk/models/dto-create-customer-request.md +0 -1
- package/docs/sdk/models/dto-customer-response.md +1 -0
- package/docs/sdk/models/dto-invoice-response.md +1 -0
- package/docs/sdk/models/{dto-create-entity-integration-mapping-request.md → dto-link-integration-mapping-request.md} +4 -4
- package/docs/sdk/models/dto-link-integration-mapping-response.md +15 -0
- package/docs/sdk/models/dto-update-customer-request.md +0 -1
- package/docs/sdk/models/invoice-status.md +1 -1
- package/docs/sdk/models/schedule-draft-finalization-response.md +16 -0
- package/docs/sdk/models/scheduled-task-interval.md +1 -1
- package/docs/sdk/models/webhook-dto-alert-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-communication-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-credit-note-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-customer-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-entitlement-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-feature-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-invoice-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-payment-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-subscription-phase-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-subscription-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-transaction-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-wallet-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-event-name.md +17 -0
- package/docs/sdks/integrations/README.md +18 -235
- package/docs/sdks/scheduledtasks/README.md +73 -2
- package/esm/funcs/coupons-create-coupon.d.ts +2 -0
- package/esm/funcs/coupons-create-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-create-coupon.js +3 -1
- package/esm/funcs/coupons-create-coupon.js.map +1 -1
- package/esm/funcs/coupons-delete-coupon.d.ts +2 -0
- package/esm/funcs/coupons-delete-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-delete-coupon.js +3 -1
- package/esm/funcs/coupons-delete-coupon.js.map +1 -1
- package/esm/funcs/coupons-update-coupon.d.ts +2 -0
- package/esm/funcs/coupons-update-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-update-coupon.js +3 -1
- package/esm/funcs/coupons-update-coupon.js.map +1 -1
- package/esm/funcs/credit-notes-create-credit-note.d.ts +2 -0
- package/esm/funcs/credit-notes-create-credit-note.d.ts.map +1 -1
- package/esm/funcs/credit-notes-create-credit-note.js +3 -1
- package/esm/funcs/credit-notes-create-credit-note.js.map +1 -1
- package/esm/funcs/credit-notes-process-credit-note.d.ts +2 -0
- package/esm/funcs/credit-notes-process-credit-note.d.ts.map +1 -1
- package/esm/funcs/credit-notes-process-credit-note.js +3 -1
- package/esm/funcs/credit-notes-process-credit-note.js.map +1 -1
- package/esm/funcs/credit-notes-void-credit-note.d.ts +2 -0
- package/esm/funcs/credit-notes-void-credit-note.d.ts.map +1 -1
- package/esm/funcs/credit-notes-void-credit-note.js +3 -1
- package/esm/funcs/credit-notes-void-credit-note.js.map +1 -1
- package/esm/funcs/{integrations-get-integration.d.ts → integrations-link-integration-mapping.d.ts} +4 -4
- package/esm/funcs/integrations-link-integration-mapping.d.ts.map +1 -0
- package/esm/funcs/{entity-integration-mappings-create-entity-integration-mapping.js → integrations-link-integration-mapping.js} +9 -9
- package/esm/funcs/integrations-link-integration-mapping.js.map +1 -0
- package/esm/funcs/scheduled-tasks-schedule-draft-finalization.d.ts +17 -0
- package/esm/funcs/scheduled-tasks-schedule-draft-finalization.d.ts.map +1 -0
- package/esm/funcs/{integrations-list-linked-integrations.js → scheduled-tasks-schedule-draft-finalization.js} +9 -9
- package/esm/funcs/scheduled-tasks-schedule-draft-finalization.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/security.d.ts +1 -1
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +19 -8
- package/esm/lib/security.js.map +1 -1
- package/esm/sdk/integrations.d.ts +3 -24
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +5 -35
- package/esm/sdk/integrations.js.map +1 -1
- package/esm/sdk/models/dto-create-customer-request.d.ts +0 -6
- package/esm/sdk/models/dto-create-customer-request.d.ts.map +1 -1
- package/esm/sdk/models/dto-create-customer-request.js +0 -3
- package/esm/sdk/models/dto-create-customer-request.js.map +1 -1
- package/esm/sdk/models/dto-customer-response.d.ts +2 -0
- package/esm/sdk/models/dto-customer-response.d.ts.map +1 -1
- package/esm/sdk/models/dto-customer-response.js +2 -0
- package/esm/sdk/models/dto-customer-response.js.map +1 -1
- package/esm/sdk/models/dto-invoice-response.d.ts +4 -0
- package/esm/sdk/models/dto-invoice-response.d.ts.map +1 -1
- package/esm/sdk/models/dto-invoice-response.js +2 -0
- package/esm/sdk/models/dto-invoice-response.js.map +1 -1
- package/esm/sdk/models/dto-link-integration-mapping-request.d.ts +25 -0
- package/esm/sdk/models/dto-link-integration-mapping-request.d.ts.map +1 -0
- package/esm/sdk/models/{dto-create-entity-integration-mapping-request.js → dto-link-integration-mapping-request.js} +4 -4
- package/esm/sdk/models/dto-link-integration-mapping-request.js.map +1 -0
- package/esm/sdk/models/dto-link-integration-mapping-response.d.ts +11 -0
- package/esm/sdk/models/dto-link-integration-mapping-response.d.ts.map +1 -0
- package/esm/sdk/models/dto-link-integration-mapping-response.js +15 -0
- package/esm/sdk/models/dto-link-integration-mapping-response.js.map +1 -0
- package/esm/sdk/models/dto-update-customer-request.d.ts +0 -6
- package/esm/sdk/models/dto-update-customer-request.d.ts.map +1 -1
- package/esm/sdk/models/dto-update-customer-request.js +0 -3
- package/esm/sdk/models/dto-update-customer-request.js.map +1 -1
- package/esm/sdk/models/index.d.ts +4 -8
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +4 -8
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/models/invoice-status.d.ts +1 -0
- package/esm/sdk/models/invoice-status.d.ts.map +1 -1
- package/esm/sdk/models/invoice-status.js +1 -0
- package/esm/sdk/models/invoice-status.js.map +1 -1
- package/esm/sdk/models/schedule-draft-finalization-op.d.ts +11 -0
- package/esm/sdk/models/schedule-draft-finalization-op.d.ts.map +1 -0
- package/esm/sdk/models/schedule-draft-finalization-op.js +11 -0
- package/esm/sdk/models/schedule-draft-finalization-op.js.map +1 -0
- package/esm/sdk/models/scheduled-task-interval.d.ts +1 -0
- package/esm/sdk/models/scheduled-task-interval.d.ts.map +1 -1
- package/esm/sdk/models/scheduled-task-interval.js +1 -0
- package/esm/sdk/models/scheduled-task-interval.js.map +1 -1
- package/esm/sdk/models/secret-provider.d.ts +0 -2
- package/esm/sdk/models/secret-provider.d.ts.map +1 -1
- package/esm/sdk/models/secret-provider.js +0 -2
- package/esm/sdk/models/secret-provider.js.map +1 -1
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-event-name.d.ts +51 -0
- package/esm/sdk/models/webhook-event-name.d.ts.map +1 -0
- package/esm/sdk/models/webhook-event-name.js +52 -0
- package/esm/sdk/models/webhook-event-name.js.map +1 -0
- package/esm/sdk/scheduled-tasks.d.ts +7 -0
- package/esm/sdk/scheduled-tasks.d.ts.map +1 -1
- package/esm/sdk/scheduled-tasks.js +10 -0
- package/esm/sdk/scheduled-tasks.js.map +1 -1
- package/esm/sdk/sdk.d.ts +2 -5
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -9
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/coupons-create-coupon.ts +3 -1
- package/src/funcs/coupons-delete-coupon.ts +3 -1
- package/src/funcs/coupons-update-coupon.ts +3 -1
- package/src/funcs/credit-notes-create-credit-note.ts +3 -1
- package/src/funcs/credit-notes-process-credit-note.ts +3 -1
- package/src/funcs/credit-notes-void-credit-note.ts +3 -1
- package/src/funcs/{entity-integration-mappings-create-entity-integration-mapping.ts → integrations-link-integration-mapping.ts} +14 -17
- package/src/funcs/{integrations-list-linked-integrations.ts → scheduled-tasks-schedule-draft-finalization.ts} +12 -11
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +14 -2
- package/src/sdk/integrations.ts +8 -62
- package/src/sdk/models/dto-create-customer-request.ts +0 -16
- package/src/sdk/models/dto-customer-response.ts +8 -0
- package/src/sdk/models/dto-invoice-response.ts +6 -0
- package/src/sdk/models/dto-link-integration-mapping-request.ts +59 -0
- package/src/sdk/models/dto-link-integration-mapping-response.ts +35 -0
- package/src/sdk/models/dto-update-customer-request.ts +0 -16
- package/src/sdk/models/index.ts +4 -8
- package/src/sdk/models/invoice-status.ts +1 -0
- package/src/sdk/models/schedule-draft-finalization-op.ts +29 -0
- package/src/sdk/models/scheduled-task-interval.ts +1 -0
- package/src/sdk/models/secret-provider.ts +0 -5
- package/src/sdk/models/webhook-dto-alert-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-communication-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-credit-note-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-customer-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-entitlement-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-feature-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-invoice-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-payment-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-subscription-phase-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-subscription-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-transaction-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-wallet-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-event-name.ts +60 -0
- package/src/sdk/scheduled-tasks.ts +16 -0
- package/src/sdk/sdk.ts +5 -13
- package/docs/sdk/models/create-or-update-integration-request.md +0 -26
- package/docs/sdk/models/delete-entity-integration-mapping-request.md +0 -17
- package/docs/sdk/models/delete-integration-request.md +0 -17
- package/docs/sdk/models/dto-create-integration-request.md +0 -21
- package/docs/sdk/models/dto-integration-entity-mapping.md +0 -21
- package/docs/sdk/models/dto-linked-integrations-response.md +0 -15
- package/docs/sdk/models/get-integration-request.md +0 -17
- package/docs/sdk/models/provider.md +0 -17
- package/docs/sdks/entityintegrationmappings/README.md +0 -160
- package/esm/funcs/entity-integration-mappings-create-entity-integration-mapping.d.ts +0 -17
- package/esm/funcs/entity-integration-mappings-create-entity-integration-mapping.d.ts.map +0 -1
- package/esm/funcs/entity-integration-mappings-create-entity-integration-mapping.js.map +0 -1
- package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.d.ts +0 -17
- package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.d.ts.map +0 -1
- package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.js +0 -90
- package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.js.map +0 -1
- package/esm/funcs/integrations-create-or-update-integration.d.ts +0 -17
- package/esm/funcs/integrations-create-or-update-integration.d.ts.map +0 -1
- package/esm/funcs/integrations-create-or-update-integration.js +0 -92
- package/esm/funcs/integrations-create-or-update-integration.js.map +0 -1
- package/esm/funcs/integrations-delete-integration.d.ts +0 -17
- package/esm/funcs/integrations-delete-integration.d.ts.map +0 -1
- package/esm/funcs/integrations-delete-integration.js +0 -90
- package/esm/funcs/integrations-delete-integration.js.map +0 -1
- package/esm/funcs/integrations-get-integration.d.ts.map +0 -1
- package/esm/funcs/integrations-get-integration.js +0 -90
- package/esm/funcs/integrations-get-integration.js.map +0 -1
- package/esm/funcs/integrations-list-linked-integrations.d.ts +0 -17
- package/esm/funcs/integrations-list-linked-integrations.d.ts.map +0 -1
- package/esm/funcs/integrations-list-linked-integrations.js.map +0 -1
- package/esm/sdk/entity-integration-mappings.d.ts +0 -19
- package/esm/sdk/entity-integration-mappings.d.ts.map +0 -1
- package/esm/sdk/entity-integration-mappings.js +0 -28
- package/esm/sdk/entity-integration-mappings.js.map +0 -1
- package/esm/sdk/models/create-or-update-integration-op.d.ts +0 -21
- package/esm/sdk/models/create-or-update-integration-op.d.ts.map +0 -1
- package/esm/sdk/models/create-or-update-integration-op.js +0 -14
- package/esm/sdk/models/create-or-update-integration-op.js.map +0 -1
- package/esm/sdk/models/delete-entity-integration-mapping-op.d.ts +0 -15
- package/esm/sdk/models/delete-entity-integration-mapping-op.d.ts.map +0 -1
- package/esm/sdk/models/delete-entity-integration-mapping-op.js +0 -12
- package/esm/sdk/models/delete-entity-integration-mapping-op.js.map +0 -1
- package/esm/sdk/models/delete-integration-op.d.ts +0 -15
- package/esm/sdk/models/delete-integration-op.d.ts.map +0 -1
- package/esm/sdk/models/delete-integration-op.js +0 -12
- package/esm/sdk/models/delete-integration-op.js.map +0 -1
- package/esm/sdk/models/dto-create-entity-integration-mapping-request.d.ts +0 -25
- package/esm/sdk/models/dto-create-entity-integration-mapping-request.d.ts.map +0 -1
- package/esm/sdk/models/dto-create-entity-integration-mapping-request.js.map +0 -1
- package/esm/sdk/models/dto-create-integration-request.d.ts +0 -21
- package/esm/sdk/models/dto-create-integration-request.d.ts.map +0 -1
- package/esm/sdk/models/dto-create-integration-request.js +0 -15
- package/esm/sdk/models/dto-create-integration-request.js.map +0 -1
- package/esm/sdk/models/dto-integration-entity-mapping.d.ts +0 -38
- package/esm/sdk/models/dto-integration-entity-mapping.d.ts.map +0 -1
- package/esm/sdk/models/dto-integration-entity-mapping.js +0 -23
- package/esm/sdk/models/dto-integration-entity-mapping.js.map +0 -1
- package/esm/sdk/models/dto-linked-integrations-response.d.ts +0 -10
- package/esm/sdk/models/dto-linked-integrations-response.d.ts.map +0 -1
- package/esm/sdk/models/dto-linked-integrations-response.js +0 -14
- package/esm/sdk/models/dto-linked-integrations-response.js.map +0 -1
- package/esm/sdk/models/get-integration-op.d.ts +0 -15
- package/esm/sdk/models/get-integration-op.d.ts.map +0 -1
- package/esm/sdk/models/get-integration-op.js +0 -12
- package/esm/sdk/models/get-integration-op.js.map +0 -1
- package/src/funcs/entity-integration-mappings-delete-entity-integration-mapping.ts +0 -183
- package/src/funcs/integrations-create-or-update-integration.ts +0 -187
- package/src/funcs/integrations-delete-integration.ts +0 -179
- package/src/funcs/integrations-get-integration.ts +0 -181
- package/src/sdk/entity-integration-mappings.ts +0 -45
- package/src/sdk/models/create-or-update-integration-op.ts +0 -46
- package/src/sdk/models/delete-entity-integration-mapping-op.ts +0 -36
- package/src/sdk/models/delete-integration-op.ts +0 -33
- package/src/sdk/models/dto-create-entity-integration-mapping-request.ts +0 -61
- package/src/sdk/models/dto-create-integration-request.ts +0 -42
- package/src/sdk/models/dto-integration-entity-mapping.ts +0 -63
- package/src/sdk/models/dto-linked-integrations-response.ts +0 -31
- package/src/sdk/models/get-integration-op.ts +0 -33
|
@@ -4,18 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
### Available Operations
|
|
6
6
|
|
|
7
|
-
* [
|
|
8
|
-
* [createOrUpdateIntegration](#createorupdateintegration) - Create or update an integration
|
|
9
|
-
* [listLinkedIntegrations](#listlinkedintegrations) - List linked integrations
|
|
10
|
-
* [deleteIntegration](#deleteintegration) - Delete an integration
|
|
7
|
+
* [linkIntegrationMapping](#linkintegrationmapping) - Link integration mapping
|
|
11
8
|
|
|
12
|
-
##
|
|
9
|
+
## linkIntegrationMapping
|
|
13
10
|
|
|
14
|
-
|
|
11
|
+
Link a FlexPrice entity to provider entity with provider-specific side effects.
|
|
15
12
|
|
|
16
13
|
### Example Usage
|
|
17
14
|
|
|
18
|
-
<!-- UsageSnippet language="typescript" operationID="
|
|
15
|
+
<!-- UsageSnippet language="typescript" operationID="linkIntegrationMapping" method="post" path="/integrations/mappings/link" -->
|
|
19
16
|
```typescript
|
|
20
17
|
import { Flexprice } from "@flexprice/sdk";
|
|
21
18
|
|
|
@@ -24,83 +21,11 @@ const flexprice = new Flexprice({
|
|
|
24
21
|
});
|
|
25
22
|
|
|
26
23
|
async function run() {
|
|
27
|
-
const result = await flexprice.integrations.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
run();
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Standalone function
|
|
36
|
-
|
|
37
|
-
The standalone function version of this method:
|
|
38
|
-
|
|
39
|
-
```typescript
|
|
40
|
-
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
41
|
-
import { integrationsGetIntegration } from "@flexprice/sdk/funcs/integrations-get-integration.js";
|
|
42
|
-
|
|
43
|
-
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
44
|
-
// You can create one instance of it to use across an application.
|
|
45
|
-
const flexprice = new FlexpriceCore({
|
|
46
|
-
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
async function run() {
|
|
50
|
-
const res = await integrationsGetIntegration(flexprice, "<value>");
|
|
51
|
-
if (res.ok) {
|
|
52
|
-
const { value: result } = res;
|
|
53
|
-
console.log(result);
|
|
54
|
-
} else {
|
|
55
|
-
console.log("integrationsGetIntegration failed:", res.error);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
run();
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### Parameters
|
|
63
|
-
|
|
64
|
-
| Parameter | Type | Required | Description |
|
|
65
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
66
|
-
| `provider` | *string* | :heavy_check_mark: | Integration provider |
|
|
67
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
68
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
69
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
70
|
-
|
|
71
|
-
### Response
|
|
72
|
-
|
|
73
|
-
**Promise\<[models.DtoSecretResponse](../../sdk/models/dto-secret-response.md)\>**
|
|
74
|
-
|
|
75
|
-
### Errors
|
|
76
|
-
|
|
77
|
-
| Error Type | Status Code | Content Type |
|
|
78
|
-
| -------------------------------- | -------------------------------- | -------------------------------- |
|
|
79
|
-
| models.ErrorsErrorsErrorResponse | 404 | application/json |
|
|
80
|
-
| models.ErrorsErrorsErrorResponse | 500 | application/json |
|
|
81
|
-
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
82
|
-
|
|
83
|
-
## createOrUpdateIntegration
|
|
84
|
-
|
|
85
|
-
Use when storing or updating credentials for an external integration (e.g. Stripe, HubSpot). Secrets are encrypted at rest.
|
|
86
|
-
|
|
87
|
-
### Example Usage
|
|
88
|
-
|
|
89
|
-
<!-- UsageSnippet language="typescript" operationID="createOrUpdateIntegration" method="post" path="/secrets/integrations/create/{provider}" -->
|
|
90
|
-
```typescript
|
|
91
|
-
import { Flexprice } from "@flexprice/sdk";
|
|
92
|
-
|
|
93
|
-
const flexprice = new Flexprice({
|
|
94
|
-
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
async function run() {
|
|
98
|
-
const result = await flexprice.integrations.createOrUpdateIntegration("<value>", {
|
|
99
|
-
credentials: {
|
|
100
|
-
"key": "<value>",
|
|
101
|
-
},
|
|
102
|
-
name: "<value>",
|
|
103
|
-
provider: "quickbooks",
|
|
24
|
+
const result = await flexprice.integrations.linkIntegrationMapping({
|
|
25
|
+
entityId: "<id>",
|
|
26
|
+
entityType: "item_price",
|
|
27
|
+
providerEntityId: "<id>",
|
|
28
|
+
providerType: "<value>",
|
|
104
29
|
});
|
|
105
30
|
|
|
106
31
|
console.log(result);
|
|
@@ -115,7 +40,7 @@ The standalone function version of this method:
|
|
|
115
40
|
|
|
116
41
|
```typescript
|
|
117
42
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
118
|
-
import {
|
|
43
|
+
import { integrationsLinkIntegrationMapping } from "@flexprice/sdk/funcs/integrations-link-integration-mapping.js";
|
|
119
44
|
|
|
120
45
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
121
46
|
// You can create one instance of it to use across an application.
|
|
@@ -124,18 +49,17 @@ const flexprice = new FlexpriceCore({
|
|
|
124
49
|
});
|
|
125
50
|
|
|
126
51
|
async function run() {
|
|
127
|
-
const res = await
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
provider: "quickbooks",
|
|
52
|
+
const res = await integrationsLinkIntegrationMapping(flexprice, {
|
|
53
|
+
entityId: "<id>",
|
|
54
|
+
entityType: "item_price",
|
|
55
|
+
providerEntityId: "<id>",
|
|
56
|
+
providerType: "<value>",
|
|
133
57
|
});
|
|
134
58
|
if (res.ok) {
|
|
135
59
|
const { value: result } = res;
|
|
136
60
|
console.log(result);
|
|
137
61
|
} else {
|
|
138
|
-
console.log("
|
|
62
|
+
console.log("integrationsLinkIntegrationMapping failed:", res.error);
|
|
139
63
|
}
|
|
140
64
|
}
|
|
141
65
|
|
|
@@ -146,15 +70,14 @@ run();
|
|
|
146
70
|
|
|
147
71
|
| Parameter | Type | Required | Description |
|
|
148
72
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
149
|
-
| `
|
|
150
|
-
| `body` | [models.DtoCreateIntegrationRequest](../../sdk/models/dto-create-integration-request.md) | :heavy_check_mark: | Integration creation request |
|
|
73
|
+
| `request` | [models.DtoLinkIntegrationMappingRequest](../../sdk/models/dto-link-integration-mapping-request.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
151
74
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
152
75
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
153
76
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
154
77
|
|
|
155
78
|
### Response
|
|
156
79
|
|
|
157
|
-
**Promise\<[models.
|
|
80
|
+
**Promise\<[models.DtoLinkIntegrationMappingResponse](../../sdk/models/dto-link-integration-mapping-response.md)\>**
|
|
158
81
|
|
|
159
82
|
### Errors
|
|
160
83
|
|
|
@@ -162,144 +85,4 @@ run();
|
|
|
162
85
|
| -------------------------------- | -------------------------------- | -------------------------------- |
|
|
163
86
|
| models.ErrorsErrorsErrorResponse | 400 | application/json |
|
|
164
87
|
| models.ErrorsErrorsErrorResponse | 500 | application/json |
|
|
165
|
-
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
166
|
-
|
|
167
|
-
## listLinkedIntegrations
|
|
168
|
-
|
|
169
|
-
Use when showing which integrations are connected (e.g. settings page). Returns providers that have valid linked credentials.
|
|
170
|
-
|
|
171
|
-
### Example Usage
|
|
172
|
-
|
|
173
|
-
<!-- UsageSnippet language="typescript" operationID="listLinkedIntegrations" method="get" path="/secrets/integrations/linked" -->
|
|
174
|
-
```typescript
|
|
175
|
-
import { Flexprice } from "@flexprice/sdk";
|
|
176
|
-
|
|
177
|
-
const flexprice = new Flexprice({
|
|
178
|
-
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
async function run() {
|
|
182
|
-
const result = await flexprice.integrations.listLinkedIntegrations();
|
|
183
|
-
|
|
184
|
-
console.log(result);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
run();
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
### Standalone function
|
|
191
|
-
|
|
192
|
-
The standalone function version of this method:
|
|
193
|
-
|
|
194
|
-
```typescript
|
|
195
|
-
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
196
|
-
import { integrationsListLinkedIntegrations } from "@flexprice/sdk/funcs/integrations-list-linked-integrations.js";
|
|
197
|
-
|
|
198
|
-
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
199
|
-
// You can create one instance of it to use across an application.
|
|
200
|
-
const flexprice = new FlexpriceCore({
|
|
201
|
-
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
202
|
-
});
|
|
203
|
-
|
|
204
|
-
async function run() {
|
|
205
|
-
const res = await integrationsListLinkedIntegrations(flexprice);
|
|
206
|
-
if (res.ok) {
|
|
207
|
-
const { value: result } = res;
|
|
208
|
-
console.log(result);
|
|
209
|
-
} else {
|
|
210
|
-
console.log("integrationsListLinkedIntegrations failed:", res.error);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
run();
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
### Parameters
|
|
218
|
-
|
|
219
|
-
| Parameter | Type | Required | Description |
|
|
220
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
221
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
222
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
223
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
224
|
-
|
|
225
|
-
### Response
|
|
226
|
-
|
|
227
|
-
**Promise\<[models.DtoLinkedIntegrationsResponse](../../sdk/models/dto-linked-integrations-response.md)\>**
|
|
228
|
-
|
|
229
|
-
### Errors
|
|
230
|
-
|
|
231
|
-
| Error Type | Status Code | Content Type |
|
|
232
|
-
| -------------------------------- | -------------------------------- | -------------------------------- |
|
|
233
|
-
| models.ErrorsErrorsErrorResponse | 500 | application/json |
|
|
234
|
-
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
235
|
-
|
|
236
|
-
## deleteIntegration
|
|
237
|
-
|
|
238
|
-
Use when disconnecting an integration (e.g. switching provider or removing OAuth). Deletes stored credentials.
|
|
239
|
-
|
|
240
|
-
### Example Usage
|
|
241
|
-
|
|
242
|
-
<!-- UsageSnippet language="typescript" operationID="deleteIntegration" method="delete" path="/secrets/integrations/{id}" -->
|
|
243
|
-
```typescript
|
|
244
|
-
import { Flexprice } from "@flexprice/sdk";
|
|
245
|
-
|
|
246
|
-
const flexprice = new Flexprice({
|
|
247
|
-
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
248
|
-
});
|
|
249
|
-
|
|
250
|
-
async function run() {
|
|
251
|
-
await flexprice.integrations.deleteIntegration("<id>");
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
run();
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
### Standalone function
|
|
260
|
-
|
|
261
|
-
The standalone function version of this method:
|
|
262
|
-
|
|
263
|
-
```typescript
|
|
264
|
-
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
265
|
-
import { integrationsDeleteIntegration } from "@flexprice/sdk/funcs/integrations-delete-integration.js";
|
|
266
|
-
|
|
267
|
-
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
268
|
-
// You can create one instance of it to use across an application.
|
|
269
|
-
const flexprice = new FlexpriceCore({
|
|
270
|
-
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
async function run() {
|
|
274
|
-
const res = await integrationsDeleteIntegration(flexprice, "<id>");
|
|
275
|
-
if (res.ok) {
|
|
276
|
-
const { value: result } = res;
|
|
277
|
-
|
|
278
|
-
} else {
|
|
279
|
-
console.log("integrationsDeleteIntegration failed:", res.error);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
run();
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
### Parameters
|
|
287
|
-
|
|
288
|
-
| Parameter | Type | Required | Description |
|
|
289
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
290
|
-
| `id` | *string* | :heavy_check_mark: | Integration ID |
|
|
291
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
292
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
293
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
294
|
-
|
|
295
|
-
### Response
|
|
296
|
-
|
|
297
|
-
**Promise\<void\>**
|
|
298
|
-
|
|
299
|
-
### Errors
|
|
300
|
-
|
|
301
|
-
| Error Type | Status Code | Content Type |
|
|
302
|
-
| -------------------------------- | -------------------------------- | -------------------------------- |
|
|
303
|
-
| models.ErrorsErrorsErrorResponse | 404 | application/json |
|
|
304
|
-
| models.ErrorsErrorsErrorResponse | 500 | application/json |
|
|
305
88
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
* [listScheduledTasks](#listscheduledtasks) - List scheduled tasks
|
|
8
8
|
* [createScheduledTask](#createscheduledtask) - Create scheduled task
|
|
9
|
+
* [scheduleDraftFinalization](#scheduledraftfinalization) - Schedule draft finalization
|
|
9
10
|
* [scheduleUpdateBillingPeriod](#scheduleupdatebillingperiod) - Schedule update billing period
|
|
10
11
|
* [getScheduledTask](#getscheduledtask) - Get scheduled task
|
|
11
12
|
* [updateScheduledTask](#updatescheduledtask) - Update a scheduled task
|
|
@@ -101,7 +102,7 @@ async function run() {
|
|
|
101
102
|
const result = await flexprice.scheduledTasks.createScheduledTask({
|
|
102
103
|
connectionId: "<id>",
|
|
103
104
|
entityType: "credit_topups",
|
|
104
|
-
interval: "
|
|
105
|
+
interval: "custom",
|
|
105
106
|
jobConfig: {},
|
|
106
107
|
});
|
|
107
108
|
|
|
@@ -129,7 +130,7 @@ async function run() {
|
|
|
129
130
|
const res = await scheduledTasksCreateScheduledTask(flexprice, {
|
|
130
131
|
connectionId: "<id>",
|
|
131
132
|
entityType: "credit_topups",
|
|
132
|
-
interval: "
|
|
133
|
+
interval: "custom",
|
|
133
134
|
jobConfig: {},
|
|
134
135
|
});
|
|
135
136
|
if (res.ok) {
|
|
@@ -164,6 +165,76 @@ run();
|
|
|
164
165
|
| models.ErrorsErrorsErrorResponse | 500 | application/json |
|
|
165
166
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
166
167
|
|
|
168
|
+
## scheduleDraftFinalization
|
|
169
|
+
|
|
170
|
+
Triggers the draft invoice finalization workflow that scans computed draft invoices whose finalization delay has elapsed and finalizes them (assign invoice number, sync to vendors, attempt payment).
|
|
171
|
+
|
|
172
|
+
### Example Usage
|
|
173
|
+
|
|
174
|
+
<!-- UsageSnippet language="typescript" operationID="scheduleDraftFinalization" method="post" path="/tasks/scheduled/schedule-draft-finalization" -->
|
|
175
|
+
```typescript
|
|
176
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
177
|
+
|
|
178
|
+
const flexprice = new Flexprice({
|
|
179
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
async function run() {
|
|
183
|
+
const result = await flexprice.scheduledTasks.scheduleDraftFinalization();
|
|
184
|
+
|
|
185
|
+
console.log(result);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
run();
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Standalone function
|
|
192
|
+
|
|
193
|
+
The standalone function version of this method:
|
|
194
|
+
|
|
195
|
+
```typescript
|
|
196
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
197
|
+
import { scheduledTasksScheduleDraftFinalization } from "@flexprice/sdk/funcs/scheduled-tasks-schedule-draft-finalization.js";
|
|
198
|
+
|
|
199
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
200
|
+
// You can create one instance of it to use across an application.
|
|
201
|
+
const flexprice = new FlexpriceCore({
|
|
202
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
async function run() {
|
|
206
|
+
const res = await scheduledTasksScheduleDraftFinalization(flexprice);
|
|
207
|
+
if (res.ok) {
|
|
208
|
+
const { value: result } = res;
|
|
209
|
+
console.log(result);
|
|
210
|
+
} else {
|
|
211
|
+
console.log("scheduledTasksScheduleDraftFinalization failed:", res.error);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
run();
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Parameters
|
|
219
|
+
|
|
220
|
+
| Parameter | Type | Required | Description |
|
|
221
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
222
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
223
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
224
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
225
|
+
|
|
226
|
+
### Response
|
|
227
|
+
|
|
228
|
+
**Promise\<[models.ScheduleDraftFinalizationResponse](../../sdk/models/schedule-draft-finalization-response.md)\>**
|
|
229
|
+
|
|
230
|
+
### Errors
|
|
231
|
+
|
|
232
|
+
| Error Type | Status Code | Content Type |
|
|
233
|
+
| -------------------------------- | -------------------------------- | -------------------------------- |
|
|
234
|
+
| models.ErrorsErrorsErrorResponse | 400 | application/json |
|
|
235
|
+
| models.ErrorsErrorsErrorResponse | 500 | application/json |
|
|
236
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
237
|
+
|
|
167
238
|
## scheduleUpdateBillingPeriod
|
|
168
239
|
|
|
169
240
|
Use when you need to trigger a billing-period update workflow (e.g. to recalculate or sync billing windows).
|
|
@@ -12,6 +12,8 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
14
|
* Use when creating a discount (e.g. promo code or referral). Ideal for percent or fixed value, with optional validity and usage limits.
|
|
15
|
+
*
|
|
16
|
+
* This operation requires either {@link Security.apiKeyAuth} or {@link Security.apiKeyAuth} to be set on the `security` parameter when initializing the SDK.
|
|
15
17
|
*/
|
|
16
18
|
export declare function couponsCreateCoupon(client: FlexpriceCore, request: models.DtoCreateCouponRequest, options?: RequestOptions): APIPromise<Result<models.DtoCouponResponse, models.ErrorsErrorsErrorResponse | FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
19
|
//# sourceMappingURL=coupons-create-coupon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupons-create-coupon.d.ts","sourceRoot":"","sources":["../../src/funcs/coupons-create-coupon.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC
|
|
1
|
+
{"version":3,"file":"coupons-create-coupon.d.ts","sourceRoot":"","sources":["../../src/funcs/coupons-create-coupon.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,MAAM,CAAC,sBAAsB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,iBAAiB,EACtB,MAAM,CAAC,yBAAyB,GAChC,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -15,6 +15,8 @@ import { APIPromise } from "../types/async.js";
|
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
17
|
* Use when creating a discount (e.g. promo code or referral). Ideal for percent or fixed value, with optional validity and usage limits.
|
|
18
|
+
*
|
|
19
|
+
* This operation requires either {@link Security.apiKeyAuth} or {@link Security.apiKeyAuth} to be set on the `security` parameter when initializing the SDK.
|
|
18
20
|
*/
|
|
19
21
|
export function couponsCreateCoupon(client, request, options) {
|
|
20
22
|
return new APIPromise($do(client, request, options));
|
|
@@ -33,7 +35,7 @@ async function $do(client, request, options) {
|
|
|
33
35
|
}));
|
|
34
36
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
35
37
|
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
36
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
37
39
|
const context = {
|
|
38
40
|
options: client._options,
|
|
39
41
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupons-create-coupon.js","sourceRoot":"","sources":["../../src/funcs/coupons-create-coupon.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAA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E,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,+BAA+B,CAAC,EACnD,CAAC,CAAC,OAAO,CACP,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACpB,MAAM,CAAC,uCAAuC,CAC/C,EACD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,uCAAuC,CAAC,EAC9D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -12,6 +12,8 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
14
|
* Use when retiring a coupon (e.g. campaign ended). Returns 200 with success message.
|
|
15
|
+
*
|
|
16
|
+
* This operation requires either {@link Security.apiKeyAuth} or {@link Security.apiKeyAuth} to be set on the `security` parameter when initializing the SDK.
|
|
15
17
|
*/
|
|
16
18
|
export declare function couponsDeleteCoupon(client: FlexpriceCore, id: string, options?: RequestOptions): APIPromise<Result<{
|
|
17
19
|
[k: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupons-delete-coupon.d.ts","sourceRoot":"","sources":["../../src/funcs/coupons-delete-coupon.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC
|
|
1
|
+
{"version":3,"file":"coupons-delete-coupon.d.ts","sourceRoot":"","sources":["../../src/funcs/coupons-delete-coupon.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,aAAa,EACrB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EACrB,MAAM,CAAC,yBAAyB,GAChC,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -16,6 +16,8 @@ import * as types$ from "../types/primitives.js";
|
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
18
|
* Use when retiring a coupon (e.g. campaign ended). Returns 200 with success message.
|
|
19
|
+
*
|
|
20
|
+
* This operation requires either {@link Security.apiKeyAuth} or {@link Security.apiKeyAuth} to be set on the `security` parameter when initializing the SDK.
|
|
19
21
|
*/
|
|
20
22
|
export function couponsDeleteCoupon(client, id, options) {
|
|
21
23
|
return new APIPromise($do(client, id, options));
|
|
@@ -42,7 +44,7 @@ async function $do(client, id, options) {
|
|
|
42
44
|
}));
|
|
43
45
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
44
46
|
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
45
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
46
48
|
const context = {
|
|
47
49
|
options: client._options,
|
|
48
50
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupons-delete-coupon.js","sourceRoot":"","sources":["../../src/funcs/coupons-delete-coupon.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,CAAC,MAAM,oBAA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15
|
+
*
|
|
16
|
+
* This operation requires either {@link Security.apiKeyAuth} or {@link Security.apiKeyAuth} to be set on the `security` parameter when initializing the SDK.
|
|
15
17
|
*/
|
|
16
18
|
export declare function couponsUpdateCoupon(client: FlexpriceCore, id: string, body: models.DtoUpdateCouponRequest, options?: RequestOptions): APIPromise<Result<models.DtoCouponResponse, models.ErrorsErrorsErrorResponse | FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
19
|
//# sourceMappingURL=coupons-update-coupon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupons-update-coupon.d.ts","sourceRoot":"","sources":["../../src/funcs/coupons-update-coupon.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC
|
|
1
|
+
{"version":3,"file":"coupons-update-coupon.d.ts","sourceRoot":"","sources":["../../src/funcs/coupons-update-coupon.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,aAAa,EACrB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,CAAC,sBAAsB,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,iBAAiB,EACtB,MAAM,CAAC,yBAAyB,GAChC,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAOA"}
|
|
@@ -15,6 +15,8 @@ import { APIPromise } from "../types/async.js";
|
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
17
|
* Use when changing coupon config (e.g. value, validity, or usage limits).
|
|
18
|
+
*
|
|
19
|
+
* This operation requires either {@link Security.apiKeyAuth} or {@link Security.apiKeyAuth} to be set on the `security` parameter when initializing the SDK.
|
|
18
20
|
*/
|
|
19
21
|
export function couponsUpdateCoupon(client, id, body, options) {
|
|
20
22
|
return new APIPromise($do(client, id, body, options));
|
|
@@ -43,7 +45,7 @@ async function $do(client, id, body, options) {
|
|
|
43
45
|
}));
|
|
44
46
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
45
47
|
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
46
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
47
49
|
const context = {
|
|
48
50
|
options: client._options,
|
|
49
51
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupons-update-coupon.js","sourceRoot":"","sources":["../../src/funcs/coupons-update-coupon.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAGjD,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD
|
|
1
|
+
{"version":3,"file":"coupons-update-coupon.js","sourceRoot":"","sources":["../../src/funcs/coupons-update-coupon.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,C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W,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -12,6 +12,8 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
14
|
* Use when issuing a refund or adjustment (e.g. customer dispute or proration). Links to an invoice; create as draft then finalize.
|
|
15
|
+
*
|
|
16
|
+
* This operation requires either {@link Security.apiKeyAuth} or {@link Security.apiKeyAuth} to be set on the `security` parameter when initializing the SDK.
|
|
15
17
|
*/
|
|
16
18
|
export declare function creditNotesCreateCreditNote(client: FlexpriceCore, request: models.DtoCreateCreditNoteRequest, options?: RequestOptions): APIPromise<Result<models.DtoCreditNoteResponse, models.ErrorsErrorsErrorResponse | FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
19
|
//# sourceMappingURL=credit-notes-create-credit-note.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-notes-create-credit-note.d.ts","sourceRoot":"","sources":["../../src/funcs/credit-notes-create-credit-note.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC
|
|
1
|
+
{"version":3,"file":"credit-notes-create-credit-note.d.ts","sourceRoot":"","sources":["../../src/funcs/credit-notes-create-credit-note.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,MAAM,CAAC,0BAA0B,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,qBAAqB,EAC1B,MAAM,CAAC,yBAAyB,GAChC,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|