Skip to content

Commit

Permalink
chore: rename adjustment type
Browse files Browse the repository at this point in the history
  • Loading branch information
danbillson committed Dec 13, 2024
1 parent dd27cf0 commit 9dfcfbe
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions src/entities/adjustment/adjustment-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
* 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';

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;
Expand Down
4 changes: 2 additions & 2 deletions src/entities/adjustment/adjustment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import {
type AdjustmentType,
type AdjustmentTransactionType,
type AdjustmentAction,
type AdjustmentStatus,
type CurrencyCode,
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/entities/subscription/next-transaction-adjustment-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/entities/transaction/transaction-adjustment-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
* 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';

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;
Expand Down
2 changes: 1 addition & 1 deletion src/enums/adjustment/adjustment-item-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
2 changes: 1 addition & 1 deletion src/enums/adjustment/adjustment-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
* Changes may be overwritten as part of auto-generation.
*/

export type AdjustmentType = 'full' | 'partial';
export type AdjustmentTransactionType = 'full' | 'partial';
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
* 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';

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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import {
type AdjustmentType,
type AdjustmentTransactionType,
type AdjustmentAction,
type AdjustmentStatus,
type CurrencyCode,
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import {
type AdjustmentType,
type AdjustmentTransactionType,
type AdjustmentAction,
type AdjustmentStatus,
type CurrencyCode,
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/types/adjustment/adjustment-item-response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/types/adjustment/adjustment-response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import {
type AdjustmentType,
type AdjustmentTransactionType,
type AdjustmentAction,
type AdjustmentStatus,
type CurrencyCode,
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/types/transaction/transaction-adjustment-item-response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9dfcfbe

Please sign in to comment.