@cinerino/sdk 18.0.0 → 18.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,11 +45,11 @@ export declare class SellerService extends Service<IOptions> {
45
45
  /**
46
46
  * 対応決済方法区分検索
47
47
  */
48
- searchPaymentAccepted(params: {
48
+ findSellerPaymentAccepted(params: {
49
49
  /**
50
50
  * 販売者ID
51
51
  */
52
- id: string;
52
+ sellerId: string;
53
53
  /**
54
54
  * 検索条件
55
55
  */
@@ -60,18 +60,14 @@ export declare class SellerService extends Service<IOptions> {
60
60
  $eq?: string;
61
61
  };
62
62
  };
63
- }): Promise<IPaymentAccepted[]>;
64
- createPaymentAccepted(params: {
63
+ }): Promise<Pick<IPaymentAccepted, 'codeValue'>[]>;
64
+ addSellerPaymentAccepted(params: {
65
65
  codeValue: string;
66
- seller: {
67
- id: string;
68
- };
66
+ sellerId: string;
69
67
  }): Promise<void>;
70
- deletePaymentAccepted(params: {
68
+ deleteSellerPaymentAccepted(params: {
71
69
  codeValue: string;
72
- seller: {
73
- id: string;
74
- };
70
+ sellerId: string;
75
71
  }): Promise<void>;
76
72
  /**
77
73
  * 提供決済サービス検索
@@ -71,27 +71,29 @@ class SellerService extends service_1.Service {
71
71
  /**
72
72
  * 対応決済方法区分検索
73
73
  */
74
- async searchPaymentAccepted(params) {
74
+ async findSellerPaymentAccepted(params) {
75
+ const { sellerId } = params;
75
76
  return this.fetch({
76
- uri: `/sellers/${params.id}/paymentAccepted`,
77
+ uri: `/sellers/${sellerId}/paymentAccepted`,
77
78
  method: 'GET',
78
79
  qs: params.qs,
79
80
  expectedStatusCodes: [http_status_1.status.OK]
80
81
  })
81
82
  .then(async (response) => response.json());
82
83
  }
83
- async createPaymentAccepted(params) {
84
- const { seller, ...body } = params;
84
+ async addSellerPaymentAccepted(params) {
85
+ const { sellerId, codeValue } = params;
85
86
  await this.fetch({
86
- uri: `/sellers/${seller.id}/paymentAccepted`,
87
+ uri: `/sellers/${sellerId}/paymentAccepted`,
87
88
  method: 'POST',
88
- body,
89
+ body: { codeValue },
89
90
  expectedStatusCodes: [http_status_1.status.NO_CONTENT]
90
91
  });
91
92
  }
92
- async deletePaymentAccepted(params) {
93
+ async deleteSellerPaymentAccepted(params) {
94
+ const { sellerId, codeValue } = params;
93
95
  await this.fetch({
94
- uri: `/sellers/${params.seller.id}/paymentAccepted/${params.codeValue}`,
96
+ uri: `/sellers/${sellerId}/paymentAccepted/${codeValue}`,
95
97
  method: 'DELETE',
96
98
  expectedStatusCodes: [http_status_1.status.NO_CONTENT]
97
99
  });