refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)

This commit is contained in:
Michael Kret
2023-01-13 19:11:56 +02:00
committed by GitHub
parent d7732ea150
commit 6608e69457
254 changed files with 2687 additions and 2675 deletions

View File

@@ -30,16 +30,6 @@ export async function stripeApiRequest(
return this.helpers.requestWithAuthentication.call(this, 'stripeApi', options);
}
/**
* Make n8n's charge fields compliant with the Stripe API request object.
*/
export const adjustChargeFields = flow([adjustShipping, adjustMetadata]);
/**
* Make n8n's customer fields compliant with the Stripe API request object.
*/
export const adjustCustomerFields = flow([adjustShipping, adjustAddress, adjustMetadata]);
/**
* Convert n8n's address object into a Stripe API request shipping object.
*/
@@ -91,6 +81,16 @@ function adjustShipping(shippingFields: {
};
}
/**
* Make n8n's charge fields compliant with the Stripe API request object.
*/
export const adjustChargeFields = flow([adjustShipping, adjustMetadata]);
/**
* Make n8n's customer fields compliant with the Stripe API request object.
*/
export const adjustCustomerFields = flow([adjustShipping, adjustAddress, adjustMetadata]);
/**
* Load a resource so it can be selected by name from a dropdown.
*/