> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mastermindcms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# StripeServiceMock

> Aufruf öffentlicher Servicemethoden über die REST API: stripeServiceMock

<ResponseField name="beanId" type="string">
  Die Spring-Bean-ID des aufzurufenden Services.

  stripeServiceMock
</ResponseField>

<ResponseField name="scope" type="string" default="PROTOTYPE">
  Bean-Scope. Für Serviceaufrufe wird PROTOTYPE verwendet.
</ResponseField>

<ResponseField name="functionName" type="string">
  Der öffentliche Methodenname des Services, der in der Signatur angegeben ist.
</ResponseField>

<ResponseField name="args" type="object[]">
  Das Argument-Array der Methode. Jedes Argument wird mit dem Index 0, 1 usw. übergeben; der Wert muss dem Java-Parametertyp entsprechen.
</ResponseField>

## Headers

```http theme={null}
POST /api/v1/bean/request
Content-Type: application/json
Lang-Context: de
Site-Context: my-site
Authorization: Bearer <token>
```

Senden Sie `Lang-Context` und `Site-Context` mit jeder Anfrage. Für geschützte Methoden senden Sie das JWT im Header `Authorization` im Format `Bearer <token>`.

**Zugriff:** ADMIN. **Bearer Token:** erforderlich.

* GUEST — nicht angemeldete Benutzer; nur Whitelist-Services sind verfügbar.
* USER — Authentifizierung erforderlich; Methoden mit USER-Prüfung sind verfügbar.
* ADMIN — vollständiger Zugriff auf öffentliche Methoden aller Services.
* Wenn eine Methode intern eine Rolle prüft, kann GUEST null erhalten.

## Methoden

<ResponseField name="isStripeKeysDefined" type="boolean">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### isStripeKeysDefined

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "isStripeKeysDefined",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="getCurrency" type="String">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### getCurrency

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "getCurrency",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="cancelIntent" type="String">
  | Argument          | Typ      | Beschreibung                |
  | ----------------- | -------- | --------------------------- |
  | `paymentIntentId` | `String` | Übergeben über `args[0].0`. |

  ### cancelIntent

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "cancelIntent",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="refundIntent" type="String">
  | Argument          | Typ      | Beschreibung                |
  | ----------------- | -------- | --------------------------- |
  | `paymentIntentId` | `String` | Übergeben über `args[0].0`. |

  ### refundIntent

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "refundIntent",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="createIntent" type="String">
  | Argument              | Typ                             | Beschreibung                |
  | --------------------- | ------------------------------- | --------------------------- |
  | `paymentRequestAsMap` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### createIntent

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "createIntent",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="retrieveIntent" type="Map<String,Object>">
  | Argument          | Typ      | Beschreibung                |
  | ----------------- | -------- | --------------------------- |
  | `paymentIntentId` | `String` | Übergeben über `args[0].0`. |

  ### retrieveIntent

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "retrieveIntent",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="changePaymentMethod" type="boolean">
  | Argument          | Typ      | Beschreibung                |
  | ----------------- | -------- | --------------------------- |
  | `paymentIntentId` | `String` | Übergeben über `args[0].0`. |
  | `paymentMethodId` | `String` | Übergeben über `args[1].1`. |

  ### changePaymentMethod

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "changePaymentMethod",
    "args": [
      {
        "0": null,
        "1": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="chargeIntent" type="PaymentStatus">
  | Argument          | Typ      | Beschreibung                |
  | ----------------- | -------- | --------------------------- |
  | `paymentIntentId` | `String` | Übergeben über `args[0].0`. |

  ### chargeIntent

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "chargeIntent",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="obtain3DSecureLink" type="String">
  | Argument          | Typ      | Beschreibung                |
  | ----------------- | -------- | --------------------------- |
  | `paymentIntentId` | `String` | Übergeben über `args[0].0`. |

  ### obtain3DSecureLink

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "obtain3DSecureLink",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="chargeSepa" type="String">
  | Argument             | Typ                             | Beschreibung                |
  | -------------------- | ------------------------------- | --------------------------- |
  | `chargeRequestAsMap` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### chargeSepa

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "chargeSepa",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="chargeCreditCard" type="String">
  | Argument             | Typ                             | Beschreibung                |
  | -------------------- | ------------------------------- | --------------------------- |
  | `chargeRequestAsMap` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### chargeCreditCard

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "chargeCreditCard",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="chargeTariffSepa" type="void">
  | Argument             | Typ                             | Beschreibung                |
  | -------------------- | ------------------------------- | --------------------------- |
  | `chargeRequestAsMap` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### chargeTariffSepa

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "chargeTariffSepa",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="chargeTariffCreditCard" type="void">
  | Argument             | Typ                             | Beschreibung                |
  | -------------------- | ------------------------------- | --------------------------- |
  | `chargeRequestAsMap` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### chargeTariffCreditCard

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "chargeTariffCreditCard",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="getAmountByTariff" type="Map<String, String>">
  | Argument | Typ      | Beschreibung                |
  | -------- | -------- | --------------------------- |
  | `tariff` | `String` | Übergeben über `args[0].0`. |

  ### getAmountByTariff

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "getAmountByTariff",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="createInvoice" type="Map<String,Object>">
  | Argument  | Typ      | Beschreibung                |
  | --------- | -------- | --------------------------- |
  | `orderId` | `String` | Übergeben über `args[0].0`. |

  ### createInvoice

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "createInvoice",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="getInvoices" type="List<Invoice>">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### getInvoices

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "getInvoices",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="getProducts" type="List<Product>">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### getProducts

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "getProducts",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="createPaymentMethod" type="Map<String, Object>">
  | Argument        | Typ                             | Beschreibung                |
  | --------------- | ------------------------------- | --------------------------- |
  | `paymentMethod` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### createPaymentMethod

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "createPaymentMethod",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="createCustomer" type="String">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### createCustomer

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "createCustomer",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="deleteCustomer" type="void">
  | Argument   | Typ      | Beschreibung                |
  | ---------- | -------- | --------------------------- |
  | `sellerId` | `String` | Übergeben über `args[0].0`. |

  ### deleteCustomer

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "deleteCustomer",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="removePaymentMethod" type="void">
  | Argument          | Typ      | Beschreibung                |
  | ----------------- | -------- | --------------------------- |
  | `paymentMethodId` | `String` | Übergeben über `args[0].0`. |

  ### removePaymentMethod

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "removePaymentMethod",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="getPaymentMethods" type="List<PaymentMethod>">
  | Argument | Typ      | Beschreibung                |
  | -------- | -------- | --------------------------- |
  | `type`   | `String` | Übergeben über `args[0].0`. |

  ### getPaymentMethods

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "getPaymentMethods",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="getPaymentMethod" type="Map<String, Object>">
  | Argument          | Typ      | Beschreibung                |
  | ----------------- | -------- | --------------------------- |
  | `paymentMethodId` | `String` | Übergeben über `args[0].0`. |

  ### getPaymentMethod

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "getPaymentMethod",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="getSubscription" type="Map<String, Object>">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### getSubscription

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "getSubscription",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="calculateTaxRate" type="Map<String, Object>">
  | Argument         | Typ      | Beschreibung                |
  | ---------------- | -------- | --------------------------- |
  | `amount`         | `String` | Übergeben über `args[0].0`. |
  | `countryIsoCode` | `String` | Übergeben über `args[1].1`. |

  ### calculateTaxRate

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "calculateTaxRate",
    "args": [
      {
        "0": null,
        "1": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="obtainAllTaxRates" type="Map<String, TaxRate>">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### obtainAllTaxRates

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "obtainAllTaxRates",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="cancelSubscriptionAfterActivePeriod" type="String">
  | Argument   | Typ      | Beschreibung                |
  | ---------- | -------- | --------------------------- |
  | `sellerId` | `String` | Übergeben über `args[0].0`. |

  ### cancelSubscriptionAfterActivePeriod

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "cancelSubscriptionAfterActivePeriod",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="cancelSubscriptionImmediately" type="String">
  | Argument   | Typ      | Beschreibung                |
  | ---------- | -------- | --------------------------- |
  | `sellerId` | `String` | Übergeben über `args[0].0`. |

  ### cancelSubscriptionImmediately

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "cancelSubscriptionImmediately",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="getContractEndDate" type="Map<String, Object>">
  | Argument      | Typ      | Beschreibung                |
  | ------------- | -------- | --------------------------- |
  | `createdDate` | `String` | Übergeben über `args[0].0`. |
  | `pattern`     | `String` | Übergeben über `args[1].1`. |

  ### getContractEndDate

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "getContractEndDate",
    "args": [
      {
        "0": null,
        "1": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="getContractEndDateFromTimestamp" type="Map<String, Object>">
  | Argument  | Typ      | Beschreibung                |
  | --------- | -------- | --------------------------- |
  | `created` | `String` | Übergeben über `args[0].0`. |
  | `pattern` | `String` | Übergeben über `args[1].1`. |

  ### getContractEndDateFromTimestamp

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "getContractEndDateFromTimestamp",
    "args": [
      {
        "0": null,
        "1": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="isTariffEquals" type="boolean">
  | Argument | Typ      | Beschreibung                |
  | -------- | -------- | --------------------------- |
  | `tariff` | `String` | Übergeben über `args[0].0`. |

  ### isTariffEquals

  ```json theme={null}
  {
    "beanId": "stripeServiceMock",
    "scope": "PROTOTYPE",
    "functionName": "isTariffEquals",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>
