diff --git a/src/entities/adjustment/adjustment-item.ts b/src/entities/adjustment/adjustment-item.ts index 44bb727..48ebad7 100644 --- a/src/entities/adjustment/adjustment-item.ts +++ b/src/entities/adjustment/adjustment-item.ts @@ -4,7 +4,7 @@ * Changes may be overwritten as part of auto-generation. */ -import { type AdjustmentItemType } from '../../enums/index.js'; +import { type AdjustmentType } from '../../enums/index.js'; import { AdjustmentProration } from './adjustment-proration.js'; import { AdjustmentItemTotals } from './adjustment-item-totals.js'; import { type IAdjustmentItemResponse } from '../../types/index.js'; @@ -12,7 +12,7 @@ import { type IAdjustmentItemResponse } from '../../types/index.js'; export class AdjustmentItem { public readonly id: string; public readonly itemId: string; - public readonly type: AdjustmentItemType; + public readonly type: AdjustmentType; public readonly amount: string | null; public readonly proration: AdjustmentProration | null; public readonly totals: AdjustmentItemTotals | null; diff --git a/src/entities/adjustment/adjustment.ts b/src/entities/adjustment/adjustment.ts index 040e658..002736e 100644 --- a/src/entities/adjustment/adjustment.ts +++ b/src/entities/adjustment/adjustment.ts @@ -5,7 +5,7 @@ */ import { - type AdjustmentType, + type AdjustmentTransactionType, type AdjustmentAction, type AdjustmentStatus, type CurrencyCode, @@ -17,7 +17,7 @@ import { type IAdjustmentResponse } from '../../types/index.js'; export class Adjustment { public readonly id: string; public readonly action: AdjustmentAction; - public readonly type: AdjustmentType; + public readonly type: AdjustmentTransactionType; public readonly transactionId: string; public readonly subscriptionId: string | null; public readonly customerId: string; diff --git a/src/entities/subscription/next-transaction-adjustment-item.ts b/src/entities/subscription/next-transaction-adjustment-item.ts index e8655d1..68076b6 100644 --- a/src/entities/subscription/next-transaction-adjustment-item.ts +++ b/src/entities/subscription/next-transaction-adjustment-item.ts @@ -4,13 +4,13 @@ * Changes may be overwritten as part of auto-generation. */ -import { type AdjustmentItemType } from '../../enums/index.js'; +import { type AdjustmentType } from '../../enums/index.js'; import { AdjustmentItemTotals, AdjustmentProration } from '../adjustment/index.js'; import { type IAdjustmentItemResponse } from '../../types/index.js'; export class NextTransactionAdjustmentItem { public readonly itemId: string; - public readonly type: AdjustmentItemType; + public readonly type: AdjustmentType; public readonly amount: string | null; public readonly proration: AdjustmentProration | null; public readonly totals: AdjustmentItemTotals | null; diff --git a/src/entities/transaction/transaction-adjustment-item.ts b/src/entities/transaction/transaction-adjustment-item.ts index 60be1c0..95a7953 100644 --- a/src/entities/transaction/transaction-adjustment-item.ts +++ b/src/entities/transaction/transaction-adjustment-item.ts @@ -4,7 +4,7 @@ * Changes may be overwritten as part of auto-generation. */ -import { type AdjustmentItemType } from '../../enums/index.js'; +import { type AdjustmentType } from '../../enums/index.js'; import { TransactionProration } from './transaction-proration.js'; import { AdjustmentItemTotals } from '../adjustment/index.js'; import { type ITransactionAdjustmentItemResponse } from '../../types/index.js'; @@ -12,7 +12,7 @@ import { type ITransactionAdjustmentItemResponse } from '../../types/index.js'; export class TransactionAdjustmentItem { public readonly id: string | null; public readonly itemId: string; - public readonly type: AdjustmentItemType; + public readonly type: AdjustmentType; public readonly amount: string | null; public readonly proration: TransactionProration | null; public readonly totals: AdjustmentItemTotals | null; diff --git a/src/enums/adjustment/adjustment-item-type.ts b/src/enums/adjustment/adjustment-item-type.ts index 5078a8c..7bfdeb1 100644 --- a/src/enums/adjustment/adjustment-item-type.ts +++ b/src/enums/adjustment/adjustment-item-type.ts @@ -4,4 +4,4 @@ * Changes may be overwritten as part of auto-generation. */ -export type AdjustmentItemType = 'full' | 'partial' | 'tax' | 'proration'; +export type AdjustmentType = 'full' | 'partial' | 'tax' | 'proration'; diff --git a/src/enums/adjustment/adjustment-type.ts b/src/enums/adjustment/adjustment-type.ts index 2374da0..8bb51f5 100644 --- a/src/enums/adjustment/adjustment-type.ts +++ b/src/enums/adjustment/adjustment-type.ts @@ -4,4 +4,4 @@ * Changes may be overwritten as part of auto-generation. */ -export type AdjustmentType = 'full' | 'partial'; +export type AdjustmentTransactionType = 'full' | 'partial'; diff --git a/src/notifications/entities/adjustment/adjustment-item-notification.ts b/src/notifications/entities/adjustment/adjustment-item-notification.ts index 7165a34..ab79f35 100644 --- a/src/notifications/entities/adjustment/adjustment-item-notification.ts +++ b/src/notifications/entities/adjustment/adjustment-item-notification.ts @@ -4,7 +4,7 @@ * Changes may be overwritten as part of auto-generation. */ -import { type AdjustmentItemType } from '../../../enums/index.js'; +import { type AdjustmentType } from '../../../enums/index.js'; import { AdjustmentProrationNotification } from './adjustment-proration-notification.js'; import { AdjustmentItemTotalsNotification } from './adjustment-item-totals-notification.js'; import { type IAdjustmentItemNotificationResponse } from '../../types/index.js'; @@ -12,7 +12,7 @@ import { type IAdjustmentItemNotificationResponse } from '../../types/index.js'; export class AdjustmentItemNotification { public readonly id: string; public readonly itemId: string; - public readonly type: AdjustmentItemType; + public readonly type: AdjustmentType; public readonly amount: string | null; public readonly proration: AdjustmentProrationNotification | null; public readonly totals: AdjustmentItemTotalsNotification | null; diff --git a/src/notifications/entities/adjustment/adjustment-notification.ts b/src/notifications/entities/adjustment/adjustment-notification.ts index aee2d31..3a95655 100644 --- a/src/notifications/entities/adjustment/adjustment-notification.ts +++ b/src/notifications/entities/adjustment/adjustment-notification.ts @@ -5,7 +5,7 @@ */ import { - type AdjustmentType, + type AdjustmentTransactionType, type AdjustmentAction, type AdjustmentStatus, type CurrencyCode, @@ -17,7 +17,7 @@ import { type IAdjustmentNotificationResponse } from '../../types/index.js'; export class AdjustmentNotification { public readonly id: string; public readonly action: AdjustmentAction; - public readonly type: AdjustmentType; + public readonly type: AdjustmentTransactionType; public readonly transactionId: string; public readonly subscriptionId: string | null; public readonly customerId: string; diff --git a/src/notifications/types/adjustment/adjustment-item-notification-response.ts b/src/notifications/types/adjustment/adjustment-item-notification-response.ts index 45193e3..adf9662 100644 --- a/src/notifications/types/adjustment/adjustment-item-notification-response.ts +++ b/src/notifications/types/adjustment/adjustment-item-notification-response.ts @@ -5,13 +5,13 @@ */ import { type IAdjustmentsProrationNotificationResponse } from './adjustments-proration-notification-response.js'; -import { type AdjustmentItemType } from '../../../enums/index.js'; +import { type AdjustmentType } from '../../../enums/index.js'; import { type IAdjustmentItemTotalsNotificationResponse } from './adjustment-totals-notification-response.js'; export interface IAdjustmentItemNotificationResponse { id: string; item_id: string; - type: AdjustmentItemType; + type: AdjustmentType; amount?: string | null; proration?: IAdjustmentsProrationNotificationResponse | null; totals?: IAdjustmentItemTotalsNotificationResponse | null; diff --git a/src/notifications/types/adjustment/adjustment-notification-response.ts b/src/notifications/types/adjustment/adjustment-notification-response.ts index 82bffb2..001832a 100644 --- a/src/notifications/types/adjustment/adjustment-notification-response.ts +++ b/src/notifications/types/adjustment/adjustment-notification-response.ts @@ -5,7 +5,7 @@ */ import { - type AdjustmentType, + type AdjustmentTransactionType, type AdjustmentAction, type AdjustmentStatus, type CurrencyCode, @@ -19,7 +19,7 @@ import { export interface IAdjustmentNotificationResponse { id: string; action: AdjustmentAction; - type: AdjustmentType; + type: AdjustmentTransactionType; transaction_id: string; subscription_id?: string | null; customer_id: string; diff --git a/src/resources/adjustments/operations/create-adjustment-request-body.ts b/src/resources/adjustments/operations/create-adjustment-request-body.ts index 1fb57f4..c0c7c44 100644 --- a/src/resources/adjustments/operations/create-adjustment-request-body.ts +++ b/src/resources/adjustments/operations/create-adjustment-request-body.ts @@ -4,12 +4,12 @@ * Changes may be overwritten as part of auto-generation. */ -import { type AdjustmentAction, type AdjustmentItemType } from '../../../enums/index.js'; +import { type AdjustmentAction, type AdjustmentType } from '../../../enums/index.js'; export interface CreateAdjustmentLineItem { amount: string | null; itemId: string; - type: AdjustmentItemType; + type: AdjustmentType; } interface CreatePartialAdjustmentRequestBody { diff --git a/src/types/adjustment/adjustment-item-response.ts b/src/types/adjustment/adjustment-item-response.ts index 002ef30..70bf967 100644 --- a/src/types/adjustment/adjustment-item-response.ts +++ b/src/types/adjustment/adjustment-item-response.ts @@ -4,14 +4,14 @@ * Changes may be overwritten as part of auto-generation. */ -import { type AdjustmentItemType } from '../../enums/index.js'; +import { type AdjustmentType } from '../../enums/index.js'; import { type IAdjustmentsProrationResponse } from './adjustments-proration-response.js'; import { type IAdjustmentItemTotals } from '../shared/index.js'; export interface IAdjustmentItemResponse { id: string; item_id: string; - type: AdjustmentItemType; + type: AdjustmentType; amount?: string | null; proration?: IAdjustmentsProrationResponse | null; totals?: IAdjustmentItemTotals | null; diff --git a/src/types/adjustment/adjustment-response.ts b/src/types/adjustment/adjustment-response.ts index cab774b..2580ff4 100644 --- a/src/types/adjustment/adjustment-response.ts +++ b/src/types/adjustment/adjustment-response.ts @@ -5,7 +5,7 @@ */ import { - type AdjustmentType, + type AdjustmentTransactionType, type AdjustmentAction, type AdjustmentStatus, type CurrencyCode, @@ -16,7 +16,7 @@ import { type IPayoutTotalsAdjustmentResponse, type ITotalAdjustmentsResponse } export interface IAdjustmentResponse { id: string; action: AdjustmentAction; - type: AdjustmentType; + type: AdjustmentTransactionType; transaction_id: string; subscription_id?: string | null; customer_id: string; diff --git a/src/types/transaction/transaction-adjustment-item-response.ts b/src/types/transaction/transaction-adjustment-item-response.ts index 3c209b4..3a362c8 100644 --- a/src/types/transaction/transaction-adjustment-item-response.ts +++ b/src/types/transaction/transaction-adjustment-item-response.ts @@ -4,14 +4,14 @@ * Changes may be overwritten as part of auto-generation. */ -import { type AdjustmentItemType } from '../../enums/index.js'; +import { type AdjustmentType } from '../../enums/index.js'; import { type ITransactionProrationResponse } from './transaction-proration-response.js'; import { type IAdjustmentItemTotals } from '../shared/index.js'; export interface ITransactionAdjustmentItemResponse { id?: string | null; item_id: string; - type: AdjustmentItemType; + type: AdjustmentType; amount?: string | null; proration?: ITransactionProrationResponse | null; totals?: IAdjustmentItemTotals | null;