mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user