> ## 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.

# GeoLocationServiceImpl

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

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

  geoLocationServiceImpl
</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:** GUEST. **Bearer Token:** nicht 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="getAddressRepository" type="AddressRepository">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### getAddressRepository

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

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

  ### getPaginationFilter

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

<ResponseField name="searchCountries" type="LinkedHashSet<Country>">
  | Argument      | Typ      | Beschreibung                |
  | ------------- | -------- | --------------------------- |
  | `requestJson` | `String` | Übergeben über `args[0].0`. |

  ### searchCountries

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

<ResponseField name="searchCountriesPaged" type="Page<Country>">
  | Argument      | Typ      | Beschreibung                |
  | ------------- | -------- | --------------------------- |
  | `requestJson` | `String` | Übergeben über `args[0].0`. |

  ### searchCountriesPaged

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

<ResponseField name="searchAddresses" type="List<Address>">
  | Argument | Typ      | Beschreibung                |
  | -------- | -------- | --------------------------- |
  | `query`  | `String` | Übergeben über `args[0].0`. |
  | `from`   | `String` | Übergeben über `args[1].1`. |
  | `to`     | `String` | Übergeben über `args[2].2`. |

  ### searchAddresses

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

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

  ### getAddressById

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

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

  ### getCountries

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

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

  ### getCountryByCode

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

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

  ### getCountryCodeValue

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

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

  ### getCountryBySellerId

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

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

  ### getCountryNameBySellerId

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

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

  ### getSellersByCountryCode

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

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

  ### createAddress

  Beispiel für das JSON-Anfrageobjekt:

  ```json theme={null}
  {
      "id":  null,
      "houseNumber":  null,
      "city":  null,
      "street":  null,
      "postalCode":  null,
      "country":  null,
      "fallIntoObjects":  null
  }
  ```

  Request:

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

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

  ### saveAddress

  Beispiel für das JSON-Anfrageobjekt:

  ```json theme={null}
  {
      "id":  null,
      "houseNumber":  null,
      "city":  null,
      "street":  null,
      "postalCode":  null,
      "country":  null,
      "fallIntoObjects":  null
  }
  ```

  Request:

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

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

  ### removeAddressAndClean

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

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

  ### removeAddressesByIds

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

<ResponseField name="addShippingAddress" type="Address">
  | Argument       | Typ                             | Beschreibung                |
  | -------------- | ------------------------------- | --------------------------- |
  | `sellerId`     | `String`                        | Übergeben über `args[0].0`. |
  | `addressAsMap` | `LinkedHashMap<String, Object>` | Übergeben über `args[1].1`. |

  ### addShippingAddress

  Beispiel für das JSON-Anfrageobjekt:

  ```json theme={null}
  {
      "id":  null,
      "houseNumber":  null,
      "city":  null,
      "street":  null,
      "postalCode":  null,
      "country":  null,
      "fallIntoObjects":  null
  }
  ```

  Request:

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

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

  ### removeShippingAddress

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

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

  ### removeAddressFromSeller

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

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

  ### getShippingAddresses

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