Skip to content

Commit 0733c22

Browse files
fix: Use camel case for operation properties (#192)
1 parent c5f3c45 commit 0733c22

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/__tests__/resources/transactions.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ describe('TransactionsResource', () => {
121121
description: 'NCD for create',
122122
type: 'flat',
123123
recur: false,
124-
maximum_recurring_intervals: null,
125-
custom_data: { internal_reference: 'create_ref' },
126-
restrict_to: ['pri_123'],
124+
maximumRecurringIntervals: null,
125+
customData: { internal_reference: 'create_ref' },
126+
restrictTo: ['pri_123'],
127127
};
128128

129129
const body: CreateTransactionRequestBody = {
@@ -164,9 +164,9 @@ describe('TransactionsResource', () => {
164164
description: 'NCD for update',
165165
type: 'percentage',
166166
recur: true,
167-
maximum_recurring_intervals: 5,
168-
custom_data: { internal_reference: 'update_ref' },
169-
restrict_to: ['pri_456', 'pri_789'],
167+
maximumRecurringIntervals: 5,
168+
customData: { internal_reference: 'update_ref' },
169+
restrictTo: ['pri_456', 'pri_789'],
170170
};
171171

172172
const body: UpdateTransactionRequestBody = {
@@ -215,9 +215,9 @@ describe('TransactionsResource', () => {
215215
description: 'NCD for preview',
216216
type: 'flat',
217217
recur: false,
218-
maximum_recurring_intervals: null,
219-
custom_data: { internal_reference: 'preview_ref' },
220-
restrict_to: ['pri_123'],
218+
maximumRecurringIntervals: null,
219+
customData: { internal_reference: 'preview_ref' },
220+
restrictTo: ['pri_123'],
221221
};
222222

223223
const body: TransactionPreviewRequestBody = {

src/resources/transactions/operations/non-catalog-discount.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface NonCatalogDiscount {
1212
description: string;
1313
type: DiscountType;
1414
recur?: boolean;
15-
maximum_recurring_intervals?: number | null;
16-
custom_data?: ICustomData | null;
17-
restrict_to?: string[] | null;
15+
maximumRecurringIntervals?: number | null;
16+
customData?: ICustomData | null;
17+
restrictTo?: string[] | null;
1818
}

0 commit comments

Comments
 (0)