(
key: IntegrationTaskKey,
params: GetCustomerByIdParams
)
| 97 | } |
| 98 | |
| 99 | getCustomerById( |
| 100 | key: IntegrationTaskKey, |
| 101 | params: GetCustomerByIdParams |
| 102 | ): Promise<GetCustomerByIdResponse> { |
| 103 | return this.runTask( |
| 104 | key, |
| 105 | async (client) => { |
| 106 | const response = await client.getCustomerById(params); |
| 107 | |
| 108 | if (response.error) { |
| 109 | throw response.error; |
| 110 | } else { |
| 111 | return response.data ? recursivelyRemoveTypenameProperties(response.data) : undefined; |
| 112 | } |
| 113 | }, |
| 114 | { |
| 115 | name: "Get Customer By Id", |
| 116 | params, |
| 117 | icon: "plain", |
| 118 | properties: [ |
| 119 | { |
| 120 | label: "Customer ID", |
| 121 | text: params.customerId, |
| 122 | }, |
| 123 | ], |
| 124 | } |
| 125 | ); |
| 126 | } |
| 127 | |
| 128 | upsertCustomer( |
| 129 | key: IntegrationTaskKey, |
no test coverage detected