Skip to content

Commit

Permalink
chore: rename adjustment.type to be AdjustmentActionType
Browse files Browse the repository at this point in the history
  • Loading branch information
danbillson committed Dec 13, 2024
1 parent 9dfcfbe commit 7884120
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
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 AdjustmentTransactionType,
type AdjustmentActionType,
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: AdjustmentTransactionType;
public readonly type: AdjustmentActionType;
public readonly transactionId: string;
public readonly subscriptionId: string | null;
public readonly customerId: string;
Expand Down
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 AdjustmentTransactionType = 'full' | 'partial';
export type AdjustmentActionType = 'full' | 'partial';
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import {
type AdjustmentTransactionType,
type AdjustmentActionType,
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: AdjustmentTransactionType;
public readonly type: AdjustmentActionType;
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,7 +5,7 @@
*/

import {
type AdjustmentTransactionType,
type AdjustmentActionType,
type AdjustmentAction,
type AdjustmentStatus,
type CurrencyCode,
Expand All @@ -19,7 +19,7 @@ import {
export interface IAdjustmentNotificationResponse {
id: string;
action: AdjustmentAction;
type: AdjustmentTransactionType;
type: AdjustmentActionType;
transaction_id: string;
subscription_id?: string | null;
customer_id: string;
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 AdjustmentTransactionType,
type AdjustmentActionType,
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: AdjustmentTransactionType;
type: AdjustmentActionType;
transaction_id: string;
subscription_id?: string | null;
customer_id: string;
Expand Down

0 comments on commit 7884120

Please sign in to comment.