@passly-nl/data 1.0.0 → 1.0.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@passly-nl/data",
3
3
  "description": "API implementation for Passly.",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/basmilius",
@@ -78,6 +78,23 @@ export class MerchantEventShopService extends BaseService {
78
78
  .runArrayAdapter(EventAdapter.parseShopElement);
79
79
  }
80
80
 
81
+ async patchFields(merchantId: string, eventId: string, shop: ShopDto): Promise<BaseResponse<ShopDto>> {
82
+ return await this
83
+ .request(`/merchants/${merchantId}/events/${eventId}/shops/${shop.id}/fields`)
84
+ .method('patch')
85
+ .queryString(QueryString.builder()
86
+ .append('language', 'nl'))
87
+ .bearerToken()
88
+ .body({
89
+ field_address: shop.fieldAddress,
90
+ field_address_mode: shop.fieldAddressMode,
91
+ field_birthdate: shop.fieldBirthdate,
92
+ field_gender: shop.fieldGender,
93
+ field_phone_number: shop.fieldPhoneNumber
94
+ })
95
+ .runAdapter(EventAdapter.parseShop);
96
+ }
97
+
81
98
  async postShortlink(merchantId: string, eventId: string, shopId: string): Promise<BaseResponse<ShortlinkDto>> {
82
99
  return await this
83
100
  .request(`/merchants/${merchantId}/events/${eventId}/shops/${shopId}/shortlink`)