@cinerino/sdk 12.12.0-alpha.0 → 12.12.0-alpha.1

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.
@@ -1,4 +1,5 @@
1
1
  import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './service';
2
+ import type { AcceptedPaymentMethodService } from './chevreAdmin/acceptedPaymentMethod';
2
3
  import type { CancelReservationAssetTransactionService } from './chevreAdmin/assetTransaction/cancelReservation';
3
4
  import type { AuthorizationService } from './chevreAdmin/authorization';
4
5
  import type { CreativeWorkService } from './chevreAdmin/creativeWork';
@@ -21,6 +22,13 @@ import type { ReservationService } from './chevreAdmin/reservation';
21
22
  import type { SellerService } from './chevreAdmin/seller';
22
23
  export declare namespace service {
23
24
  type IUnset = IUnsetOnService;
25
+ /**
26
+ * 対応決済方法サービス
27
+ */
28
+ type AcceptedPaymentMethod = AcceptedPaymentMethodService;
29
+ namespace AcceptedPaymentMethod {
30
+ let svc: typeof AcceptedPaymentMethodService | undefined;
31
+ }
24
32
  /**
25
33
  * 承認サービス
26
34
  */
@@ -170,6 +178,7 @@ export declare namespace service {
170
178
  export declare class ChevreAdmin {
171
179
  options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>;
172
180
  constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>);
181
+ createAcceptedPaymentMethodInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AcceptedPaymentMethodService>;
173
182
  createAuthorizationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AuthorizationService>;
174
183
  createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
175
184
  createCustomerInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CustomerService>;
@@ -50,6 +50,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
50
50
  exports.ChevreAdmin = exports.service = void 0;
51
51
  var service;
52
52
  (function (service) {
53
+ var AcceptedPaymentMethod;
54
+ (function (AcceptedPaymentMethod) {
55
+ })(AcceptedPaymentMethod = service.AcceptedPaymentMethod || (service.AcceptedPaymentMethod = {}));
53
56
  var Authorization;
54
57
  (function (Authorization) {
55
58
  })(Authorization = service.Authorization || (service.Authorization = {}));
@@ -121,6 +124,23 @@ var ChevreAdmin = /** @class */ (function () {
121
124
  function ChevreAdmin(options) {
122
125
  this.options = options;
123
126
  }
127
+ ChevreAdmin.prototype.createAcceptedPaymentMethodInstance = function (params) {
128
+ return __awaiter(this, void 0, void 0, function () {
129
+ var _a;
130
+ return __generator(this, function (_b) {
131
+ switch (_b.label) {
132
+ case 0:
133
+ if (!(service.AcceptedPaymentMethod.svc === undefined)) return [3 /*break*/, 2];
134
+ _a = service.AcceptedPaymentMethod;
135
+ return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/acceptedPaymentMethod'); })];
136
+ case 1:
137
+ _a.svc = (_b.sent()).AcceptedPaymentMethodService;
138
+ _b.label = 2;
139
+ case 2: return [2 /*return*/, new service.AcceptedPaymentMethod.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
140
+ }
141
+ });
142
+ });
143
+ };
124
144
  ChevreAdmin.prototype.createAuthorizationInstance = function (params) {
125
145
  return __awaiter(this, void 0, void 0, function () {
126
146
  var _a;